12-18-2008 7:08 AM
Hi ppl,
Can you please let me know what are the exceptions that can be handled for open, read, transfer and close data set ?
Many Thanks.
12-18-2008 7:10 AM
HI,
try this way....
DO.
TRY.
READ DATASET filename INTO datatab.
CATCH cx_sy_conversion_codepage cx_sy_codepage_converter_init
cx_sy_file_authority cx_sy_file_io cx_sy_file_open .
ENDTRY.
READ DATASET filename INTO datatab.
End of changes CHRK941728
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND datatab.
ENDIF.
ENDDO.
12-18-2008 7:10 AM
HI,
try this way....
DO.
TRY.
READ DATASET filename INTO datatab.
CATCH cx_sy_conversion_codepage cx_sy_codepage_converter_init
cx_sy_file_authority cx_sy_file_io cx_sy_file_open .
ENDTRY.
READ DATASET filename INTO datatab.
End of changes CHRK941728
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND datatab.
ENDIF.
ENDDO.
12-18-2008 7:11 AM
HI Kishan,
Please take the F1 help on KEY word OPEN DATASET
All exceptions are listed and how to handle them also given there
There you find the Perfect Answer
Regards
Ramchander Rao.K
Edited by: ramchander krishnamraju on Dec 18, 2008 8:11 AM
12-18-2008 7:11 AM