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

dump with BSEG table

Former Member
0 Likes
1,368

i am facing dump with this select query

SELECT bukrs

             belnr

             gjahr

             buzei

             shkzg

             dmbtr

             vorgn

             ktosl

             vbel2  " Sales Document Number

             matnr

             menge

             meins

             ebeln

             ebelp

             xref3

             FROM bseg

              INTO TABLE i_bseg

              WHERE bukrs EQ p_bukrs

              AND   belnr IN r_belnr

              AND   augdt EQ c_date

              AND   hkont EQ g_account.

suspecting that  r_belnr[]   contain 16000  entry  due to dump  DBIF_RSQL_INVALID_RSQL is occur .

i am facing dump with this select query

SELECT bukrs

             belnr

             gjahr

             buzei

             shkzg

             dmbtr

             vorgn

             ktosl

             vbel2  " Sales Document Number

             matnr

             menge

             meins

             ebeln

             ebelp

             xref3

             FROM bseg

              INTO TABLE i_bseg

              WHERE bukrs EQ p_bukrs

              AND   belnr IN r_belnr

              AND   augdt EQ c_date

              AND   hkont EQ g_account.

suspecting that  r_belnr[]   contain 16000  entry  due to dump  DBIF_RSQL_INVALID_RSQL is occur .

4 REPLIES 4
Read only

mariano_gallicchio2
Participant
0 Likes
1,149

That's the problem.

r_belnr contains many entries for a select option.

You should try to do a FOR ALL ENTRIES.

Read only

0 Likes
1,149

A range table have a limit for number of data (approx. 5000 you can consider). You can avoid this using any of this:

1.) Use for all entries in place of range table.

2.) Packet data selection also possible for same select query. Add keyword 'PACKAGE SIZE n' in select statement.

Cheers,

Prakash

Read only

Former Member
Read only

Former Member
0 Likes
1,149

Hi,

Use the move-corresponding in table i_bseg!

Check the time of executing the statement! it is taking time to execute 16000 accounting docs, need to check the secondary indexes as per your requirement.

Rg, Kiran