cancel
Showing results for 
Search instead for 
Did you mean: 

problem in batch split for line items in delivery.

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 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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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'.

Former Member
0 Kudos

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'.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

List of tables which contains CHSPL

VBAP

LIPS

KNVV

KNMT

The batch split items still will be in LIPS.

Field : LIPS-UECHA will tell you about higher level item

For code:

Regards,

Shiva Kumar