1、需求:选择屏幕中的“库存类型”字段的搜索帮助按照自定义的要求显示,如下效果:
关键代码:
SELECT-OPTIONS: s_insmk FOR mseg-insmk NO INTERVALS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_insmk-low.
PERFORM frm_request_f4_insmk USING 'S_INSMK-LOW'.
*&---------------------------------------------------------------------*
*& Form FRM_REQUEST_F4_INSMK
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM frm_request_f4_insmk USING pv_field TYPE help_info-dynprofld.
DEFINE lm_modify_insmk.
LS_VALUE_TAB-INSMK = &1.
LS_VALUE_TAB-INSMKT = &2.
APPEND LS_VALUE_TAB TO Lt_VALUE_TAB.
CLEAR LS_