cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in Internal table

Former Member
0 Kudos

Hi All.

I have one internal table like itab.

data:itab like ekpo with header line.

i have to delete some records from Itab which records have EKPO_WERKS is blank.

help me.

Thanks.

jay

Accepted Solutions (1)

Accepted Solutions (1)

ferry_lianto
Active Contributor
0 Kudos

Hi Jay,

Please try this.


DELETE ITAB WHERE ( WERKS IS INITIAL OR WERKS EQ SPACE ) AND
                  ( AUFNR IS INITIAL OR AUFNR EQ SPACE ).

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Ferry.

I have one more doubt.I have one internal table.i need to find number of records .if it has more then one ,i need fetch that record based on EBELN.

please help me.

Thanks.

Jay

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Ferry.

I have one more doubt.I have one internal table.i need to find number of records .if it has more then one ,i need fetch that record based on EBELN.

please help me.

Thanks.

Jay

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this.


DELETE ITAB WHERE WERKS IS INITIAL OR
                  WERKS EQ SPACE.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Ferry.

I have one internal table it has number of field referd from diffrent table .

data:begin of wa,

EBELN type EKPO-EBELN

BUKRS type EKPO-BUKRS

WERKS type EKPO-WERKS

AUFNR type EKKN-AUFNR

end of wa.

data:itab like WA with header line.

now i need to delete records from itab which records with blank in EKPO_WERKS

and records with blank in EKKN_AUFNR.

please help me.

Thanks.

Jay

Former Member
0 Kudos

hi,

do this way ..

 delete it_marc where werks = SPACE. 

Former Member
0 Kudos

Try

Delete <internal table> where WERKS IS initial.

Regards

Tushar Mundlik

Message was edited by:

Tushar Mundlik

Former Member
0 Kudos

delete itab where werks is initial.