将一指派金额更新至屏幕
DATA:LT_DYNPREAD TYPE STANDARD TABLE OF DYNPREAD,
LS_DYNPREAD TYPE DYNPREAD.
LS_DYNPREAD-FIELDNAME = 'GS_PZHEAD-ZYZPJE'.
LS_DYNPREAD-FIELDVALUE = GS_PZHEAD-ZYZPJE.
APPEND LS_DYNPREAD TO LT_DYNPREAD.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = LT_DYNPREAD
* EXCEPTIONS
* INVALID_ABAPWORKAREA = 1
* INVALID_DYNPROFIELD = 2
* INVALID_DYNPRONAME = 3
* INVALID_DYNPRONUMMER = 4
* INVALID_REQUEST = 5
* NO_FIELDDESCRIPTION = 6
* UNDEFIND_ERROR = 7
* OTHERS = 8
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
网友评论