cancel
Showing results for 
Search instead for 
Did you mean: 

Split Deliveries by Line Items

chris_mowl
Participant
0 Kudos

Hello all,

We would like to split deliveries that have more than 250 lines on them. We have tried inserting code in several routines in transaction VOFM - Data Transfer - Deliveries. We have copied Routines 302 & 500 and inserted code directly in 500.

Here is an example of what we have tried. We count the lines in table xlips and if it is greater than 249, we delete the table from 250 and following. Right now we are using 10 lines for testing purposes.


 DATA: l_lines LIKE sy-tabix.

*Limit deliveries to 249 lines for certain European plants

IF likp-lfart = 'NLCC'.

  CASE xlips-werks.

    WHEN: '4310' OR '4311' OR '4322' OR '4331' OR '4341'.

      DESCRIBE TABLE xlips[] LINES l_lines.

      IF l_lines > 10.

        DELETE xlips[] FROM 11 TO l_lines.
        clear ilips.

      ENDIF.

  ENDCASE.

endif.

When we copied routine 500, the program wouldn't stop at breakpoints put in the code. Now that we have put it in routine 500, we get a short dump related to ILIPS.

It seems to me that there would be a more elegant way of splitting deliveries than this.

Does anyone know of a way to do this?

Thanks in advance,

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Chris

Yes, there is something called Subsequent Outbound Delivery Split. T code VLSP.

Read about it here on the set up etc.

http://help.sap.com/erp2005_ehp_04/helpdata/EN/16/8d8afe8bbc11d3b4c6006094b9b9dd/frameset.htm

Hope this helps.

Answers (3)

Answers (3)

chris_mowl
Participant
0 Kudos

We are looking at SAP notes 546668 & 166397. The latter describes the use of field LIKP-ZUKRL as a splitting criterion.

Thank you all for your responses.

Former Member
0 Kudos

hi

i got your question.

this you can achieve through only BAPI for delivery line items split.

for eg:

there are 250 line items in the delivery you wanted to split basing on the item category.

you can use this BAPI with a different screen which will be similar to VLSP.

maintain the fields in screen exit.

and you can achieve on the same.

but it taes long time for achieveing this

regards

balajia.

Shiva_Ram
Active Contributor
0 Kudos

You many also be interested in OSS Note 103334 - Error F5 807 in GI - split deliveries that are too large. Check whether this note could help for in your scenario.

Regards,

chris_mowl
Participant
0 Kudos

Thank you both for your help.

We have implemented the OSS note and will most likely modify the code a little bit.

I will update with our test results.