1:更新屏幕
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = sy-repid
DYNUMB = sy-dynnr
TABLES
DYNPFIELDS = lt_dynpfields.
2:读取屏幕
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = l_dyfield_tab
EXCEPTIONS
invalid_dynprofield = 4.
3:获取光标信息
GET CURSOR FIELD gs_nnnn_cursor-field
OFFSET gs_nnnn_cursor-offset
LINE gs_nnnn_cursor-line.