Skip to Content
author's profile photo Former Member
Former Member

Code optimization required

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 04:17 PM

    Moderator message - Please see before posting - post locked Rob

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.