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

Reg: Modify

Hi all,

We have our own Function module in that FM under tables iam passing 3 internal tables.the requirement is (previously we had a single ship to account and now now we have changed it to multiple ship to accounts) Keep on appending first 2 internal tables for multiple ship to accounts but for the third internal table keep on modifying the internal table by adding the values into it based on a particular field.

Please suggest wht shall i do here.

If any one is very clear with FM plz give ur ID so tht i can directly be in touch with u.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 08:11 AM

    I am not 100% certain about your requirement but the below logic/code to help you.

    itab -->has the data for multiple ship account.

    loop at itab.

    move itab-shipacc to itab1-shipacc.

    append itab1.

    move itab-shipacc to itab2-shipacc.

    append itab2.

    move itab-shipacc to itab3-shipacc.

    move itab-qty to itab3-qty.

    collect itab3.


    In the above code, itab1 and itab2 would have records for multiple shipacc while itab3 would have only one record for each shipacc and you can collect the other values. Make sure to define itab3 with shipacc as the first field and a quantity/value(pack numeric field) as the second.



    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.