Skip to Content
0
Former Member
Sep 10, 2007 at 11:09 AM

using Modify and insert statements I m not able to transfer data from one i

24 Views

I have two internal tables itab and jtab.

I want to transfer product id, desc, net value and quantity from jtab to itab.

In one case for object id 200630775 there r 3 products hence 3 rows present in jtab..and for object id 200630775 there is only one row present in itab. I want to take theses 3 products hence 3 rows from jtab and merge into itab... I have used following code but its not merging tables properly.. Please help me out.

sort itab by OBJECT_ID .

sort jtab by OBJECT_ID .

loop at itab .

loop at jtab.

if jtab-object_id = itab-object_id.

itab-ordered_prod = jtab-ordered_prod.

itab-description_uc = jtab-description_uc.

itab-quantity = jtab-quantity.

itab-net_value_man = jtab-net_value_man.

INSERT lines of jtab INTO itab.

modify itab.

clear itab.

endif.

endloop.

endloop.