cancel
Showing results for 
Search instead for 
Did you mean: 

same line items

Former Member
0 Kudos

Hi,

While creating a sales order ,my requirement is that the system should not accept same line item two or more times.

Eg., Line item 10 xyz material 10 units

Line item 20 xyz material 20 units

In the above scenario system should not accept the second line item and should propose that a line item already exists.

Regards,

Phani Prasad.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Phani,

There is no such Condition available at Customization Level. But you can do the same in Userexit.

In Program: MV45AFZZ --> In USEREXIT_SAVE_DOCUMENT_PREPARE, you can specify the Condition that if Material already exists in Sales Order, then system should give an error.

Regards,

Vishal

Former Member
0 Kudos

Thank You all for your suggestions.

Regards,

Phani Prasad

Edited by: phanip on Jul 22, 2009 5:26 PM

Former Member
0 Kudos

Thank You all for your suggestions.

Regards,

Phani Prasad

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Prasad,

We similar requirement to our client in a sales order material repeat system should save the document. Or through error message

In Program: MV45AFZZ --> In USEREXIT_SAVE_DOCUMENT_PREPARE, you can specify the Condition that if Material already exists in Sales Order, then system should give an error. you can maintain the same in the User Exit MV45AFZZ with POSNR & MATNR

Regards

Adi

Former Member
0 Kudos

Hi Phani

Your requirement is not possible through standard customization,need to work it up with user exit, try MV45AFZZ

Regards

Chandra

Former Member
0 Kudos

But its not a good Habit as while creating a Sales Order , sometimes User put / use the Same material in different Line Items with different Quantity as you would have different Batch with the Same Material.

Otherwise , you can maintain the same in the User Exit MV45AFZZ with POSNR & MATNR as reference fields as the system will throw an error if it checks the Same material Code in different Line Items.

Best Regards,

Ankur