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

Short Dump

Former Member
0 Likes
814

Hi,

I'm having a problem, i have a program that selects data from a join of the table mkpf with the table mseg. what appens is that when i select a material with more data it gives a short dump, and i don't know how to solve it. Any ideas? Next i'm going to put the code where the short dump is called:

SELECT mkpfmblnr mkpfmjahr mkpf~budat

mkpfcputm mkpfxblnr mkpf~xabln

mkpfbktxt mkpffrbnr

msegmatnr msegwerks mseg~mblnr

msegzeile msegmjahr mseg~bwart

mseglgort msegmeins mseg~shkzg

msegmenge msegkunnr

INTO CORRESPONDING FIELDS OF TABLE t_aux_pt

FROM mkpf JOIN mseg ON

( msegmblnr = mkpfmblnr ) AND

( msegmjahr = mkpfmjahr )

WHERE budat < datamv-low

AND matnr IN mat

AND werks = centro

AND lgort IN depos

AND bwart IN tpomov

AND sobkz IN stkesp

AND shkzg = 'H'.

and the short dump is:

DBIF_RSQL_INVALID_RSQL

CX_SY_OPEN_SQL_DB

Hi,

I'm having a problem, i have a program that selects data from a join of the table mkpf with the table mseg. what appens is that when i select a material with more data it gives a short dump, and i don't know how to solve it. Any ideas? Next i'm going to put the code where the short dump is called:

SELECT mkpfmblnr mkpfmjahr mkpf~budat

mkpfcputm mkpfxblnr mkpf~xabln

mkpfbktxt mkpffrbnr

msegmatnr msegwerks mseg~mblnr

msegzeile msegmjahr mseg~bwart

mseglgort msegmeins mseg~shkzg

msegmenge msegkunnr

INTO CORRESPONDING FIELDS OF TABLE t_aux_pt

FROM mkpf JOIN mseg ON

( msegmblnr = mkpfmblnr ) AND

( msegmjahr = mkpfmjahr )

WHERE budat < datamv-low

AND matnr IN mat

AND werks = centro

AND lgort IN depos

AND bwart IN tpomov

AND sobkz IN stkesp

AND shkzg = 'H'.

and the short dump is:

DBIF_RSQL_INVALID_RSQL

CX_SY_OPEN_SQL_DB

6 REPLIES 6
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
791

Hi,

Use SELECT ENDSELCT and use PACKAGE SIZE option to retrive the data in packets.

SELECT mkpfmblnr mkpfmjahr mkpf~budat

mkpfcputm mkpfxblnr mkpf~xabln

mkpfbktxt mkpffrbnr

msegmatnr msegwerks mseg~mblnr

msegzeile msegmjahr mseg~bwart

mseglgort msegmeins mseg~shkzg

msegmenge msegkunnr

<b>APPENDING</b> CORRESPONDING FIELDS OF TABLE t_aux_pt <b>PACKAGE SIZE 500</b>

FROM mkpf JOIN mseg ON

( msegmblnr = mkpfmblnr ) AND

( msegmjahr = mkpfmjahr )

WHERE budat < datamv-low

AND matnr IN mat

AND werks = centro

AND lgort IN depos

AND bwart IN tpomov

AND sobkz IN stkesp

AND shkzg = 'H'.

ENDSELECT.

Regards,

Sesh

Read only

Former Member
0 Likes
791

Hallo,

This can be due to too many entries in a range table or select option.

select * from table where field in MAT.

If MAT has too many entries the DB will choke on it.

So try with Select .. Appending ..

Regards,

Vasanth

Read only

Former Member
0 Likes
791

check the declarations in the internal table t_aux_pt if they are compatible with those fields used in the SELECT statement

Read only

Former Member
0 Likes
791

Hi!

I think the date format, you give can be a problem in the WHERE condition.

Try comment out (with *) the some part of the code to see is it working now?

You can find the problem quickly.

Regards

Tamá

Read only

Former Member
0 Likes
791

I tried every solutions and the shortdump continues.

Read only

Former Member
0 Likes
791

Hi Ricardo,

Try replacing the code:

<b>WHERE matnr IN Mat</b>

with the following:

<b>FOR ALL ENTRIES IN mat

WHERE matnr EQ mat-low.</b>