‎2006 Oct 25 1:55 PM
I have a doubt.
I am using a DELETE itab from itab statement in between my LOOP-ENDLOOP .
Now, if I declare my itab with the syntax :-
Data: BEGIN of itab occurs 0,
...
END of itab.
Then the above DELETE statement works fine but
when I declare my itab as:
DATA: itab type / like standard table of say MARA with header line.
then the program gives me a dump at the DELETE statement.
Can anyone please tell me the difference and the reason for it.
Thank you
‎2006 Oct 25 1:58 PM
use
DELETE <b>TABLE</b> itab WITH TABLE KEY k1 = v1 ... kn = vn.or
DELETE TABLE itab [FROM wa].
‎2006 Oct 25 2:02 PM
Hi Chandrasekhar.
Thanks for your response.
I got the point but when we declare an internal table with the statement
DATA: Begin of itab
...
End of itab...
It means that the internal table is a standard internal table only...Isnt it?and if I am not wrong then the system will automatically consider data objects of type C , as its key fields .
Thanks
‎2006 Oct 25 2:02 PM
Hi Chandrasekhar.
Thanks for your response.
I got the point but when we declare an internal table with the statement
DATA: Begin of itab occurs 0,
...
End of itab...
It means that the internal table is a standard internal table only...Isnt it?and if I am not wrong then the system will automatically consider data objects of type C , as its key fields .
Thanks
‎2006 Oct 25 2:00 PM
hi soni ,
since the itab structure and the mara structure is diff .
so this problem ..
regards,
vijay
‎2006 Oct 25 2:05 PM
‎2006 Oct 25 2:50 PM
We can't really help without knowing some of the details of the dump. Could you post them please?
Rpb