Application Development 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: 

PACKAGE SIZE in select function not working (loop problem).

Former Member
0 Kudos

Hi!

I've got a problem with PACKAGE SIZE. My report is as follows;

data : begin of gt_bseg occurs 0,

     bukrs like bseg-bukrs,

     belnr like bseg-belnr,

     gjahr like bseg-gjahr,

     end of gt_bseg.

select bukrs belnr gjahr

     from bseg

     into table gt_bseg

     PACKAGE SIZE 1000 UP TO 200000 rows.

          IF sy-subrc <> 0.

          ENDIF.

ENDSELECT.


I think I'm looping incorrectly, as currently the report stops after the first package size (1000) is done, instead of looping up to 200000 rows. How should package size be handled?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi frank,

if the rollback area is small then it couldn't handle large volume of data and throws error.

decrease package size and then try.

1 REPLY 1

Former Member
0 Kudos

hi frank,

if the rollback area is small then it couldn't handle large volume of data and throws error.

decrease package size and then try.