cancel
Showing results for 
Search instead for 
Did you mean: 

Getting dump in my include

Former Member
0 Kudos

HI,

i wriien a piece of code in the exit EXIT_SAPLEINM_002.In development is working fine but in quality giving dump

ABAP runtime errors TABLE_ILLEGAL_STATEMENT

Occurred on 04/27/2010 at 06:08:07

>> Short dump has not been completely stored. It is too big.

Error analysis

You attempted to change, delete or create a line in the

internal table "\PROG=SAPLEINM\DATA=XEKPO[]", but no valid cursor exists

for the table.

Possible reasons:

1. The relevant ABAP/4 statement does not include the addition

"...INDEX...", although the statement is not

inside a "LOOP...ENDLOOP" loop processing this table.

2. The relevant ABAP/4 statement was called from within a

"LOOP...ENDLOOP" loop after a DELETE "\PROG=SAPLEINM\DATA=XEKPO[]".

*The stopped line items should be dropped by the idoc

loop at DEKEK_X where ebelp = xekpo-ebelp.

if DEKEK_X-stpin = 1.

delete DEKEK_X where stpin = 1.

delete xekpo where ebelp eq DEKEK_X-ebelp.

endif.

endloop.

if DEKEK_X[] is initial.

delete xekpo.

endif.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Instead of writing delete in loop with where condition

you should write it as 'DELETE dekek_x '. This will delete only current record in loop which is in process.

Regard's

Ashutosh Tripathi

Former Member
0 Kudos

if DEKEK_X[] is initial.

delete xekpo.

endif.

this is wrong... which record do you wish to delete? you need to tell him... either give an index or a where condition.

if you want to clear the whole table then make use of the CLEAR command instead of delete.