FM实现F4帮助系列三:弹出框多筛选条件的搜索帮助(根据搜索帮助筛选字段)
函数:F4IF_GET_SHLP_DESCR
效果图:
本例子代码:
找到需要的帮助:
*&---------------------------------------------------------------------*
ZLM_TEST_045
zlm_test_045.
TABLES makt.
DATA:
maktx TYPE maktx,
DATA:l_it_f4 LIKE TABLE OF str_f4.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECT-OPTIONS:
s_matnr FOR makt-matnr NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b1.
"帮助
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_matnr-low.
PERFORM frm_f4." USING 'S_MATNR-LOW' .
*&-------------------------------------------------------------------
*& 搜索帮助
*&-------------------------------------------------------------------
FORM frm_f4.
DATA g_shlp_descr_t
DATA: gt_return_tab
"调用标准帮助
shlp
shlp = g_shlp_descr_t
maxrecords = 500
multisel = 'X'
" FRM_F4
另外一个F4增强的例子,也是添加筛选字段:
http://blog.sina.com.cn/s/blog_c0978c9b0101h1qf.html
标签:帮助,f4,shlp,框多,SCREEN,F4,DATA,FM From: https://blog.51cto.com/u_15680210/5751445