*&---------------------------------------------------------------------*
*& TAB 131 - ASSIGN RESULT
*&---------------------------------------------------------------------*
* TEXT
*----------------------------------------------------------------------*
*&SPWIZARD: FUNCTION CODES FOR TABSTRIP 'TAB_131'
CONSTANTS: BEGIN OF C_TAB_131,
TAB1 LIKE SY-UCOMM VALUE 'TAB_131_FC1',
TAB2 LIKE SY-UCOMM VALUE 'TAB_131_FC2',
TAB3 LIKE SY-UCOMM VALUE 'TAB_131_FC3',
END OF C_TAB_131.
*&SPWIZARD: DATA FOR TABSTRIP 'TAB_131'
CONTROLS: TAB_131 TYPE TABSTRIP.
DATA: BEGIN OF G_TAB_131,
SUBSCREEN LIKE SY-DYNNR,
PROG LIKE SY-REPID VALUE 'ZPROJECT_EAS',
PRESSED_TAB LIKE SY-UCOMM VALUE C_TAB_131-TAB1,
END OF G_TAB_131.
*&SPWIZARD: OUTPUT MODULE FOR TS 'TAB_131'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: SETS ACTIVE TAB
MODULE TAB_131_ACTIVE_TAB_SET OUTPUT.
TAB_131-ACTIVETAB = G_TAB_131-PRESSED_TAB.
CASE G_TAB_131-PRESSED_TAB.
WHEN C_TAB_131-TAB1.
G_TAB_131-SUBSCREEN = '0132'.
WHEN C_TAB_131-TAB2.
G_TAB_131-SUBSCREEN = '0133'.
WHEN C_TAB_131-TAB3.
G_TAB_131-SUBSCREEN = '0134'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TS 'TAB_131'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GETS ACTIVE TAB
MODULE TAB_131_ACTIVE_TAB_GET INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN C_TAB_131-TAB1.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB1.
WHEN C_TAB_131-TAB2.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB2.
WHEN C_TAB_131-TAB3.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB3.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
*&---------------------------------------------------------------------*
*& MODULE STATUS_0131 OUTPUT
*&---------------------------------------------------------------------*
* TEXT
*----------------------------------------------------------------------*
MODULE STATUS_0131 OUTPUT.
SET PF-STATUS '131'.
SET TITLEBAR '131'.
TYPE-POOLS : VRM.
SELECT *
FROM ZPROJECT_YEAR
INTO TABLE YEAR_DETAILS WHERE EMP_ID = ZPROJECT_EMP-EMP_ID.
LOOP AT YEAR_DETAILS INTO TEMP_YEAR.
WA_LISTBOX-KEY = TEMP_YEAR-START_DATE.
WA_LISTBOX-TEXT = TEMP_YEAR-START_DATE.
APPEND WA_LISTBOX TO IT_LISTBOX.
ENDLOOP.
LD_FIELD = 'START_DATE'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = LD_FIELD
VALUES = IT_LISTBOX.
REFRESH IT_LISTBOX.
SELECT *
FROM ZPROJECT_YEAR
INTO TABLE YEAR_DETAILS WHERE EMP_ID = ZPROJECT_EMP-EMP_ID.
LOOP AT YEAR_DETAILS INTO TEMP_YEAR.
WA_LISTBOX-KEY = TEMP_YEAR-END_DATE.
WA_LISTBOX-TEXT = TEMP_YEAR-END_DATE.
APPEND WA_LISTBOX TO IT_LISTBOX.
ENDLOOP.
LD_FIELD = 'END_DATE'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = LD_FIELD
VALUES = IT_LISTBOX.
REFRESH IT_LISTBOX.
ENDMODULE. " STATUS_0131 OUTPUT
Output:
*& TAB 131 - ASSIGN RESULT
*&---------------------------------------------------------------------*
* TEXT
*----------------------------------------------------------------------*
*&SPWIZARD: FUNCTION CODES FOR TABSTRIP 'TAB_131'
CONSTANTS: BEGIN OF C_TAB_131,
TAB1 LIKE SY-UCOMM VALUE 'TAB_131_FC1',
TAB2 LIKE SY-UCOMM VALUE 'TAB_131_FC2',
TAB3 LIKE SY-UCOMM VALUE 'TAB_131_FC3',
END OF C_TAB_131.
*&SPWIZARD: DATA FOR TABSTRIP 'TAB_131'
CONTROLS: TAB_131 TYPE TABSTRIP.
DATA: BEGIN OF G_TAB_131,
SUBSCREEN LIKE SY-DYNNR,
PROG LIKE SY-REPID VALUE 'ZPROJECT_EAS',
PRESSED_TAB LIKE SY-UCOMM VALUE C_TAB_131-TAB1,
END OF G_TAB_131.
*&SPWIZARD: OUTPUT MODULE FOR TS 'TAB_131'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: SETS ACTIVE TAB
MODULE TAB_131_ACTIVE_TAB_SET OUTPUT.
TAB_131-ACTIVETAB = G_TAB_131-PRESSED_TAB.
CASE G_TAB_131-PRESSED_TAB.
WHEN C_TAB_131-TAB1.
G_TAB_131-SUBSCREEN = '0132'.
WHEN C_TAB_131-TAB2.
G_TAB_131-SUBSCREEN = '0133'.
WHEN C_TAB_131-TAB3.
G_TAB_131-SUBSCREEN = '0134'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TS 'TAB_131'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GETS ACTIVE TAB
MODULE TAB_131_ACTIVE_TAB_GET INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN C_TAB_131-TAB1.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB1.
WHEN C_TAB_131-TAB2.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB2.
WHEN C_TAB_131-TAB3.
G_TAB_131-PRESSED_TAB = C_TAB_131-TAB3.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
*&---------------------------------------------------------------------*
*& MODULE STATUS_0131 OUTPUT
*&---------------------------------------------------------------------*
* TEXT
*----------------------------------------------------------------------*
MODULE STATUS_0131 OUTPUT.
SET PF-STATUS '131'.
SET TITLEBAR '131'.
TYPE-POOLS : VRM.
SELECT *
FROM ZPROJECT_YEAR
INTO TABLE YEAR_DETAILS WHERE EMP_ID = ZPROJECT_EMP-EMP_ID.
LOOP AT YEAR_DETAILS INTO TEMP_YEAR.
WA_LISTBOX-KEY = TEMP_YEAR-START_DATE.
WA_LISTBOX-TEXT = TEMP_YEAR-START_DATE.
APPEND WA_LISTBOX TO IT_LISTBOX.
ENDLOOP.
LD_FIELD = 'START_DATE'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = LD_FIELD
VALUES = IT_LISTBOX.
REFRESH IT_LISTBOX.
SELECT *
FROM ZPROJECT_YEAR
INTO TABLE YEAR_DETAILS WHERE EMP_ID = ZPROJECT_EMP-EMP_ID.
LOOP AT YEAR_DETAILS INTO TEMP_YEAR.
WA_LISTBOX-KEY = TEMP_YEAR-END_DATE.
WA_LISTBOX-TEXT = TEMP_YEAR-END_DATE.
APPEND WA_LISTBOX TO IT_LISTBOX.
ENDLOOP.
LD_FIELD = 'END_DATE'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = LD_FIELD
VALUES = IT_LISTBOX.
REFRESH IT_LISTBOX.
ENDMODULE. " STATUS_0131 OUTPUT
Output:
mandatory date fields to be entered
values entered by the reviewing officer