F4字段搜索帮助
TYPES: BEGIN OF ty_aufnr,
werks TYPE aufk-werks,
aufnr TYPE aufk-aufnr,
END OF ty_aufnr.
PROCESS ON VALUE-REQUEST.
FIELD W_ZBSPP005-AUFNR MODULE f4_AUFNR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'AUFNR'
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'W_ZBSPP005-AUFNR'
value_org = 'S'
TABLES
value_tab = t_aufnr
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.