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.
Regards,
Ganesh
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.
endloop.
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.
Regards
Anurag
Add a comment