1、 定義時利用數據類型自己的幫助ide
PARAMETERS: carrid TYPE sflight-carrid,函數
connid TYPE sflight-connid .blog
若是須要定義工廠、公司、倉庫地點等,能夠找有搜索幫助的數據元素作參考圖片
2、 使用幫助函數完成通常幫助it
函數:class
F4IF_INT_TABLE_VALUE_REQUESTbfc
效果:搜索
本例代碼:數據類型
REPORT ZLM_TEST_044.im
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_matnr TYPE matnr.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
PERFORM frm_f4.
FORM frm_f4.
TYPES: BEGIN OF values,
matnr TYPE matnr,
maktx TYPE maktx,
END OF values.
DATA: values_tab TYPE TABLE OF values.
SELECT matnr maktx
FROM makt
INTO TABLE values_tab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR' "須要回傳的字段
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'MAKTX' "須要顯示的字段
window_title = '情選擇物料 '
value_org = 'S'
TABLES
value_tab = values_tab.
ENDFORM. "frm_f4