2007 Mar 22 9:00 AM
HI ,
I need to add a parameter Extract and on that I need to put output file destination kt_extract/NAME . Just suggest me how to do and how I will send the output into that output file . The below code is used for open dataset . Please help me in this issue .
.
OPEN DATASET CUSTMAT_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
PERFORM WRITE_ERROR_TO_SYS_LOG
USING 'PP Data Warehouse' SY-REPID 'PP_CJ'
'Error in Opening Cust Material File' custmat_file.
ENDIF.
Regds
Sabya
HI ,
I need to add a parameter Extract and on that I need to put output file destination kt_extract/NAME . Just suggest me how to do and how I will send the output into that output file . The below code is used for open dataset . Please help me in this issue .
.
OPEN DATASET CUSTMAT_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
PERFORM WRITE_ERROR_TO_SYS_LOG
USING 'PP Data Warehouse' SY-REPID 'PP_CJ'
'Error in Opening Cust Material File' custmat_file.
ENDIF.
Regds
Sabya
2007 Mar 22 9:03 AM
parameters: p_extr like rlgrap-FILENAME.
OPEN DATASET p_extr FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
PERFORM WRITE_ERROR_TO_SYS_LOG
USING 'PP Data Warehouse' SY-REPID 'PP_CJ'
'Error in Opening Cust Material File' custmat_file.
else.
loop at itab.
transfer itab-data to p_extr.
endloop.
close dataset p_extr.
ENDIF.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |