on 05-19-2008 3:25 AM
Hello friends,
My requirement is ,
I have a sap-script ZSD_SHIP_COPY for
Shipment.
fields in lips table is like:
Delivery posnr batch weight in tons
vbeln items charg lfimg
0080001322 000010 no batch 0
0080001322 000020 no batch 0
0080001322 000030 no batch 0
0080001322 900001 BARA000003 20
0080001322 900002 BARA000003 30
0080001322 900003 BARA000003 20
0080001322 - 000010 have batch split (900001) having value 20.
0080001322 - 000020 have batch split (900002) having value 30.
0080001322 - 000030 have batch split (900003) having value 20.
but, my requirement is using batch split, i have to add lfimg for each line item and display output like this:
vbeln items lfimg
0080001322 000010 20.
0080001322 000020 30.
0080001322 000030 20.
any ides about splitting the deliveries using batch split for multiple items.
its an urgent requirement,
Pl help me in this regard with some coding,
Thanks,
vamsykrishna.
You need to bring information into the internal table from field UECHA in LIPS.
eg. POSNR 900001. its UECHA = 000010
So if you want to have that display, you can list them first, then search and collect the value via condition 'UECHA = wa_xxx-uecha'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to bring information into the internal table from field UECHA in LIPS.
eg. POSNR 900001. its UECHA = 000010
So if you want to have that display, you can list them first, then search and collect the value via condition 'UECHA = wa_xxx-uecha'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this way ,
once you get the lips data into the internal table then
SORT on delivery, posnr.
Eg:if the data in this way
0080001322 000010 no batch 0
0080001322 000020 no batch 0
0080001322 000030 no batch 0
0080001322 000010 900001 BARA000003 20
0080001322 000020 900002 BARA000003 30
0080001322 000020 900003 BARA000003 20
After Sorting
0080001322 000010 no batch 0
0080001322 000010 900001 BARA000003 20
0080001322 000020 no batch 0
0080001322 000020 900002 BARA000003 30
0080001322 000030 no batch 0
0080001322 000020 900003 BARA000003 20
now you can add the lfigm field
thanks,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi aditya,
but the internal table is in this format:
vbeln items charg lfimg
0080001322 000010 no batch 0
0080001322 000020 no batch 0
0080001322 000030 no batch 0
0080001322 900001 BARA000003 20
0080001322 900002 BARA000003 30
0080001322 900003 BARA000003 20
how i can make a link between batches for that particular item.
and i have to display addition of LFIMG of the batches and display like this,
vbeln posnr lfimg
80001322 000010 20
80001322 000020 30
80001322 000030 20
if any idea let me know.
Thanks,
vamsykrishna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.