Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Read data set DUMP!!!

Former Member
0 Likes
1,226

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

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.

4 REPLIES 4
Read only

Former Member
0 Likes
736

Any suggetions plzzzzzz.....

Read only

Former Member
0 Likes
736

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.

Read only

Former Member
0 Likes
737

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.

Read only

Former Member
0 Likes
736

Hi

Maybe your DO statement is going into an infinite loop.

Regards,

Jayanthi.K