on 05-19-2008 3:21 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 0
0080001322 000020 0
0080001322 000030 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.
Hi,
Try this:
Loop at lips where item is not batch-split.
if current item is batch-split item, get corresponding batch-split item.
endif.
endloop.
Cheers.
...Reward if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is no batch indicator, you need check the value of POSNR with UECHA feild to get the batch split.
Code would be something like:
codedata: i_lips like lips occurs 0 with header line,
i_lips_split like lips occurs 0 with header line,
x_lips like lips.
loop at i_lips into x_lips.
loop at i_lips where posnr = x_lips-uecha and
charg ' '.
i_lips_split = i_lips.
append i_lips_split.
endloop.
Regards,
Shiva Kumar
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.