REPORT ZCO_EXEC NO STANDARD PAGE HEADING
MESSAGE-ID zfcm01.
TYPES: BEGIN OF itype,
line(132),
END OF itype.
DATA: itab TYPE itype OCCURS 0 WITH HEADER LINE,
g_answer(1).
PARAMETERS program LIKE trdir-name OBLIGATORY.
AT SELECTION-SCREEN.
* IF sy-uname <> 'SAMAB01' AND
* sy-uname <> 'SAMAB05'.
* MESSAGE e000 WITH '프로그램을 실행하지 마세요.'.
* ENDIF.
IF program(3) NE 'ZCO' AND
program(2) NE 'ZL' AND
program(3) NE 'ZHR' AND
program(4) NE 'MZHR' AND
program(4) NE 'MYHR' AND
program(4) NE 'LZCO' AND
program(5) NE 'LZ_HR' AND
program(3) NE '/1P'.
MESSAGE e001 WITH 'CBO만 가능.....'.
ENDIF.
START-OF-SELECTION.
READ REPORT program INTO itab.
EDITOR-CALL FOR itab.
IF sy-ucomm = 'WB_SAVE' OR sy-ucomm = 'YES'.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
textline1 = ' '
textline2 = '저장 하시겠습니까?'
titel = 'SOURCE 저장'
IMPORTING
answer = g_answer.
CHECK g_answer = 'J'.
INSERT REPORT program FROM itab.
ENDIF.
'ERP-SAP > ABAP' 카테고리의 다른 글
<ABAP> 동적 where 조건문 연습하기 (0) | 2012.09.18 |
---|---|
<ABAP> Native sql 프로시져 호출 및 db insert(RFC) (0) | 2012.09.11 |
<ABAP> SALV 03. Normal Display 2탄 (0) | 2012.08.29 |
<ABAP> SALV 02. Normal Display (0) | 2012.08.29 |
<ABAP> SALV 01. Hierarchical List (0) | 2012.08.29 |