Skip to Content
0
Former Member
Oct 05, 2005 at 08:26 PM

Loop statement in ABAP OO

660 Views

Hi,

I am trying to change a BADI interface and since BADIs use ABAP OO, a simple loop statement fails to work.

I need to loop through an internal table and for each record in the internal table I need to read another db table which has a field in common with the internal table.

Ideally,

Loop at lt_selections

select logsys from /bic/mzcs_unit where /bic/zcs_unit = lt_selections-cs_unit

endloop.

But this piece of code fails to work in BADI because of OO concepts.

Can anyone help me out here?

THank you