cancel
Showing results for 
Search instead for 
Did you mean: 

problem in Delivery items

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hai Wong,

can u please help me by giving some codign,

also i have given the internal table and fields of items.

regards,

vamsykrishna.

Former Member
0 Kudos

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