cancel
Showing results for 
Search instead for 
Did you mean: 

restricting line items in delivery

Former Member
0 Kudos

Hi,

How to restrict the line items in delivery(ex. 6 line items for every delivery) from customizing point of view.

Regards,

GD

Accepted Solutions (1)

Accepted Solutions (1)

mandar_shete
Active Participant
0 Kudos

Hi,

I guess there is no such a standard thing available in SAP. What max you can do is create a Copy Routine in VOFM coping routine 101 (e.g. 901) and for each line of Sales Order item you need to keep a count if it is exceeding no. 6 or not. If it is then make the bc_subrc = 4 so that the line will not get copied in Delivery.

Thanks,

Mandar

Answers (1)

Answers (1)

Former Member
0 Kudos

You could use option of User Exit SAVE_DOCUMENT_PREPARE which is called before you save a delivery order.

You could use this to check the number of items and hence reject the save if the number of items is greater that 6.

Discuss with your ABAP consultant and Please report back if it works.