SAP ABAP – Create SELECTION SCREEN for TMG (Table Maintenance Generator)

SAP ABAP – Create SELECTION SCREEN for TMG (Table Maintenance Generator)

REPORT zpg_pp01_07_del_plan_eff. CONSTANTS: gc_view TYPE   char30  VALUE 'ZMV_PP_WDEF_A', gc_u    TYPE   char1   VALUE 'U', gc_and  TYPE   char3   VALUE 'AND'. DATA: gt_seltab    TYPE STANDARD TABLE OF vimsellist. DATA: gv_fieldname TYPE vimsellist-viewfield. DATA gv_date TYPE sy-datum. TABLES: ztb_pp_wdef_a, mara. SELECT-OPTIONS: s_fac FOR ztb_pp_wdef_a-factory OBLIGATORY. SELECT-OPTIONS: s_matnr FOR mara-matnr. SELECT-OPTIONS: s_date FOR ztb_pp_wdef_a-datab. gv_fieldname = 'FACTORY'. CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST' EXPORTING fieldname          = gv_fieldname…