cancel
Showing results for 
Search instead for 
Did you mean: 

limiting no. of line items in sales order

Former Member
0 Kudos

hi all SD gurus,

I have this requirement to have maximum 5 line items in the sales order. How can i achieve this?

Thx in advance.

Prashant

Accepted Solutions (1)

Accepted Solutions (1)

former_member183879
Active Contributor
0 Kudos

Hi

You only can be able to do it through the userexit

USEREXIT_SAVE_DOCUMENT_PREPARE

By functional configuration, for 5line items, it is not possible, though it is possible for just 1quantity per line item.

Reward if this helps.

Answers (3)

Answers (3)

Former Member
0 Kudos

thx vry vry much Gianluca, navaneetha and amrish.

i wanted 2 give u 10 points each. but cudnt do it.

anyways

Thx once again!

Warm Regards,

Prashant

Former Member
0 Kudos

Hi Prashant,

You can use userexit SAVE_DOCUMENT_PREPARE in sales order program MV45AFZZ.In this userexit you can write this requirement with the help of abaper.

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

What about using an user exit in program MV45AFZZ and check the number of inserted lines?

I Don't know any customizing setting in order to achieve your objective.

Gianluca.