cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery split

Former Member
0 Kudos

Hi All,

When I create a delivery, the number of items should not exceed 9. When 10th item comes it should create another delivery document. How to do this?

Regards,

M.Mani

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

See it wont be possible to tackle this thru any standard functionality.

I think you give a try on using the split criteria available in the delivery header. This is how it works. Suppose you pass some conflicting data from two items in the order in the ZUKRL field in delivery header thru copy control then the delivery automatically splits into 2.

Now in your case: You ask your ABAPer to write a code something like to pass the POSNR from sales order in the ZUKRL feild.

IF POSNR > 90, then pass Value > 90 in ZUKRL.

Also it should be in multiple of 90 (Value + 90), someting in loop.

You can see the code below for you reference:

SELECT SINGLE PRAT1 PRAT2 PRAT3 PRAT4 PRAT5 INTO (MVKE-PRAT1,MVKE-PRAT2,MVKE-PRAT3,MVKE-PRAT4,MVKE-PRAT5) FROM MVKE

WHERE MATNR = CVBAP-MATNR

AND VKORG = CVBAK-VKORG

AND VTWEG = CVBAK-VTWEG.

IF NOT MVKE-PRAT1 IS INITIAL.

ZUK1-C+0(1) = 'O'. "FOR OIL

ENDIF.

IF NOT MVKE-PRAT2 IS INITIAL.

ZUK1-C+0(1) = '1'. " FOR FRAGILE 1

ENDIF.

IF NOT MVKE-PRAT3 IS INITIAL.

ZUK1-C+0(1) = 'N'. " FOR NON FRAGILE

ENDIF.

IF NOT MVKE-PRAT4 IS INITIAL.

ZUK1-C+0(1) = '2'. " FOR FRAGILE 2

ENDIF.

IF NOT MVKE-PRAT5 IS INITIAL.

ZUK1-C+0(1) = 'B'. " FOR BULK / OVERWEIGHT

ENDIF.

LIKP-ZUKRL = ZUK1.

CONDENSE LIKP-ZUKRL NO-GAPS.

clear zuk1.

*endif.

*vbpa-ablad.

*parvw = 'we'.

*} INSERT

ENDFORM.

Hope this helps you.

Regards,

Dhananjay

Former Member
0 Kudos

Hi there,

You can acheive this by writing a customized code in the delivery creation prog SAPMV50A.

In the code check for the number of line items in a sales order VBAK-POSNR. If the VBAK-POSNR >= 9, then allow delivery split. ABAPer will be able to help you with this. There are many routines in the prog. Take the help of ABAPer to check the relevant prog.

Also look at the possibility of using the copy control routine 601 prog RV50B601.

Regards,

Sivanand

Former Member
0 Kudos

Hi,

when u create delivery through VL01N tcode , than in From item and To item, if u put 10 to 90 as ur line item no. than system will generate delivery for 10 to 90 no. items only.

reg

Deepak

Former Member
0 Kudos

Dear Deepak,

Thanks for reply. If create Delivery based on sale order which contains 15 items, then I need two delivery documents, the split has to come automattically.

How to do this.

thanks.

Former Member
0 Kudos

Hi,

In Standard SAP we can not achive this functionality, as we maintain copy controls between the documents and remaining settings.

Discuss the same with ur technical consultant by giving the table names of LIKP and LIPS. Ask him to write a code when ever delivery contains more than 9 items it has to through an error message "Maximum line items entry is 9".

try this this may help u.

Regards,

Ravi Duggirala

Edited by: ravi duggirala on Aug 18, 2008 1:44 PM

Former Member
0 Kudos

If it is a manual split then you can group the forst 9 items in one delivery group and the next one in another delivery group everytime you cretae a sales order.

And if you require automatic split in that case if the material belong to same material group (if this is always and if not try to achieve this) then put the same delivery group in mat master and then crate a sales order.

So, you will get a split everytime after 9 items.