‎2009 Jan 21 3:13 AM
I have the problem while reading data of a fle from application server to internal table.
For the following code its giving DUMP..bcoz of having 4GB of data in sequential file.
open dataset p_file for input in text mode encoding default.
if sy-subrc = 0.
do.
read dataset p_file into it_datatab.
if sy-subrc eq 0.
append it_datatab.
else.
exit.
endif.
enddo.
endif.
close dataset p_file.
Any suggetions plz..
Sachin.
‎2009 Jan 21 4:25 AM
Hi,
Try to use field-symbols in ur program....
FIELD-SYMBOLS <hex_container> TYPE x.
OPEN DATASET file FOR INPUT IN BINARY MODE.
ASSIGN wa TO <hex_container> CASTING.
DO.
READ DATASET file INTO <hex_container>.
IF sy-subrc = 0.
code.....
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET file.
‎2009 Jan 21 4:04 AM
‎2009 Jan 21 4:09 AM
Hi... I'm not sure but that is the only reason to point out. there is 2 chances.
1. sap may not support reading 4GB data.
2. Maximum size able to assign for internal table exceded the limit.
try ti investigate in this angles.
Regards,
KP.
‎2009 Jan 21 4:25 AM
Hi,
Try to use field-symbols in ur program....
FIELD-SYMBOLS <hex_container> TYPE x.
OPEN DATASET file FOR INPUT IN BINARY MODE.
ASSIGN wa TO <hex_container> CASTING.
DO.
READ DATASET file INTO <hex_container>.
IF sy-subrc = 0.
code.....
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET file.
‎2009 Jan 21 4:35 AM
Hi
Maybe your DO statement is going into an infinite loop.
Regards,
Jayanthi.K