2011년 6월 28일 화요일

HR_ECM_GET_DATETYP_FROM_IT0041

일자명세 41번 일자가져오기.

Function Group: HRECM00DATES(Function Group for Dates Handling)

(1) HR_ECM_ADD_NUMBER_UNIT_TO_DATE
(2) HR_ECM_ADD_PERIOD_TO_DATE
(3) HR_ECM_GET_DATETYP_FROM_IT0041
(4) HR_ECM_GET_PERIOD_BETW_DATES
(5) HR_ECM_READ_IT0041_DATE_TYPE

2011년 6월 2일 목요일

ZTEST

REPORT ZTEST.
DATA: BEGIN OF ITAB OCCURS 0,
LINE(130),
END OF ITAB.

PARAMETER: PROGRAM(40) OBLIGATORY.

AT SELECTION-SCREEN.
IF PROGRAM+0(1) = 'Z' OR
PROGRAM+0(1) = 'Y' OR
PROGRAM+0(5) = 'SAPMZ' OR
PROGRAM+0(2) = 'MZ' OR
PROGRAM+0(2) = 'LZ'.
ELSE.
LEAVE PROGRAM.
ENDIF.

START-OF-SELECTION.



READ REPORT PROGRAM INTO ITAB.


EDITOR-CALL FOR ITAB.

IF SY-UCOMM = 'WB_SAVE' OR SY-UCOMM = 'YES'.
INSERT REPORT PROGRAM FROM ITAB.
ENDIF.