2007 Feb 16 4:50 AM
Hi ,
Please help me in this.
When extracting file from program on that time it must be delimiter extracted file (delimeter";" semicolon).
For this what is the logic please help me.
Thanks
Hi ,
Please help me in this.
When extracting file from program on that time it must be delimiter extracted file (delimeter";" semicolon).
For this what is the logic please help me.
Thanks
2007 Feb 16 4:54 AM
Hi,
Use 'Split' Statement but i don't think this would be required since the FM which you use to extract the data does that if required then you can use this 'SPLIT' statement.
Thanks,
Prashanth
2007 Feb 16 4:55 AM
see the following ex code to read ',' delemeted file.
OPEN DATASET g_file FOR INPUT IN TEXT MODE
ENCODING DEFAULT
IGNORING CONVERSION ERRORS.
IF SY-SUBRC EQ 0.
DO.
READ DATASET g_file INTO FILE.
if sy-subrc = 0.
split FILE at ',' into ITAB-SOL_DOCNO ITAB-SOL_DOCDT
ITAB-WERKS ITAB-LGORT ITAB-MATNR ITAB-ERFMG .
else.
exit.
endif.
APPEND ITAB.
CLEAR ITAB.
ENDDO.
ENDIF.
2007 Feb 16 5:00 AM
Hi
OPEN DATASET g_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
IF SY-SUBRC EQ 0.
READ DATASET g_file INTO FILE.
if sy-subrc = 0.
split FILE at ',' into itab.
endif.
Regards,
kumar
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |