报表选择屏幕 隐藏部分元素
* DATA: lt_restriction TYPE sscr_restrict. * DATA: lt_optlist TYPE sscr_opt_list_tab, * ls_optlist TYPE sscr_opt_list. * DATA: ls_ass_tab TYPE sscr_ass. * ** 限制MATNR参数只能使用‘EQ’ 和‘BT’. * ls_optlist-name = 'OBJECTKEY1'. ** ls_optlist-options-eq = 'X'. * ls_optlist-options-bt = 'X'. * APPEND ls_optlist TO lt_restriction-opt_list_tab. * * ls_ass_tab-kind = 'S'. * ls_ass_tab-name = 'S_MONTH'. * ls_ass_tab-sg_main = 'I'. * ls_ass_tab-sg_addy = space. * ls_ass_tab-op_main = 'OBJECTKEY1'. * APPEND ls_ass_tab TO lt_restriction-ass_tab. * * * CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' * EXPORTING * restriction = lt_restriction * EXCEPTIONS * too_late = 1 * repeated = 2 * selopt_without_options = 3 * selopt_without_signs = 4 * invalid_sign = 5 * empty_option_list = 6 * invalid_kind = 7 * repeated_kind_a = 8 * OTHERS = 9. * * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF.
标签:ass,restriction,sy,隐藏,optlist,ls,tab,OPTIONS,SELECT From: https://www.cnblogs.com/yy-abaper/p/17370593.html