Skip to Content
0
Jan 27, 2009 at 11:17 PM

Dinamic delete. is it possible?

17 Views

Hi guys.

How are you?

Is it possible use the command delete itab. with dinamic fields?

For exemple:

field-symbols: <field> type any.

do 3 times.

case sy-index.

when 1.

l_field = 'MARK1'.

when 2.

l_field = 'MARK2'.

when 3.

l_field = 'MARK3'.

endcase.

assign l_field to <field>.

DELETE itab WHERE <field> EQ 'X'.

enddo.

thanks.

bye.

Edited by: guilherme lahr on Jan 28, 2009 12:17 AM

Edited by: guilherme lahr on Jan 28, 2009 12:20 AM