on 2012 Dec 17 3:32 AM
hi,
I have Source DSO A and Target DSO B and both DSOs have Delivery number, Delivery Item and Schedule Line.
There is a lookup DSO C and has deliver number , delivery item and quantity.
My requirement is to get the quantity from Lookup DSO C into Target DSO B based on delivery number and Item but the only the first record should be populated, I mean there will be multiple schedule lines for delivery number and same item, so I need to populate against only first schedule line.
Writing the routine in field level routine will populate all the quantity against all schedule lines for same delivery number and item.
Could anyone please suggest ?
Thanks.
Hi Lavanya,
As per my suggestion u should write a end routine.....as below
Data: it_tab type table of structure of Result_package,
wa like line of of Result_package.
sort Result_Package by order_no item_no schedule_line .
it_tab [] = Result_package [].
delete adjacent duplicate records comparing order_no item_no.
**now in it_tab u will have only records for first schedule line.
Loop it_tab into wa.
**now do lookup using order_no item_no between it-tab and DSO C. assuming u can write the lookup code.use key order_no and item_no
modify it_tab by wa.
end loop.
loop at it_tab into wa.
**read result package with key order_no and item_no
modify result package by wa.
end loop.
using this only record for first line item will be updated form DSO C in result package.
Regards,
Saurabh Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.