on 04-27-2010 12:24 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.