Skip to Content
0
Former Member
Feb 23, 2009 at 11:00 PM

Trying to delete few values from internal table with delete stmt

23 Views

Hi all,

I have a requirement where I have to delete some entries from an internal table.

My internal table is as follows.

Data: begin of itab,
          A type c,
          B type c,
          D type c,
          End of itab.

Values in itab are as follows

A	B	C
P1	L1	
P1	L1	M1
P2	N1	
P2	N1	Q1
P3	R1	
P3	R1	S1
P4	T1	
P4	T1	U1	

My requirement isu2026when ever the value of itab-c is null I need tp delete that row and my final result internal table should be.

A	B	C
P1	L1	M1
P2	N1	Q1
P3	R1	S1
P4	T1	U1

How should I be doing this ..i am saying

Loop at itab.
If itab-c = u2018u2019.
Delete itab-a.
Delet itab-b.
Endloop.

But it doesnot work. Can some one guide me with this?

Regards,

Jessica Sam.