Skip to Content
0
Former Member
Nov 27, 2012 at 04:21 PM

Alternative for nested loops(Performance Issue)

596 Views

Hi,

The following code has performance issues:

LOOP AT itab_mara.
LOOP AT itab_store.
MOVE itab_mara-matnr TO imara-matnr.
MOVE itab_store-werks TO imara-werks.
APPEND imara.
ENDLOOP.

ENDLOOP.

I have two internal tables one is Itab_mara having one field called matnr and other internal table itab_store having werks field and the data from both the tables

need to be added in the final internal table imara.

Please guide me how to achieve the above code without using nested loop so that i dont get the performance issue.

Thanks.