Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Code optimization required

Former Member
0 Likes
396

I need code optimization for below code. Can anyone help me out for this?

loop at itab_keko

CALL FUNCTION MODULE FOR BOM

RETURNS (ITAB_FM)

SELECT * FROM KEKO INTO TABLE ITAB1 FOR ALL ENTRIES IN ITAB_FM

WHERE Matnum EQ ITAB_FM(matnum) AND

plant NE ITAB_KEKO(plant) AND

BESKZ EQ constant AND

SOBSL IN range.

SELECT * FROM KEPH INTO TABLE ITAB2 FOR ALL ENTRIES IN ITAB1

WHERE BZOBJ = ITAB1-BZOBJ AND

KALNR = ITAB1-KALNR AND

KALKA = ITAB1-KALKA .

LOOP AT ITAB2.

adding cost elements data

ENDLOOP.

endloop

1 REPLY 1
Read only

Former Member
0 Likes
355

Moderator message - Please see before posting - post locked Rob