cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid duplication of material number in Sales Order.

Former Member
0 Kudos

Hi all

I want to restrict the user for entering the duplicate Material number while creation of Sales Order . I have done the changes in Program MV45AFZZ IN FORM USEREXIT_SAVE_DOCUMENT_PREPARE, but was able give warning message for duplicate material no.

If I set these message to error , the user has to come out of the sales order ,as it doesnot even allow to save.

Can any body guide for proper steps to follow to avoid the duplication of the material while creating the Sales Order

AVS

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for yr suggestion , the logic of tracing the duplication is done in above said form of user exit and working as desired.

AVS

Former Member
0 Kudos

Hi,

Use userexit USEREXIT_MOVE_FIELD_TO_VBAP instead and check entries in internal table XVBAP.

Thanks,

Utsah Garg

Former Member
0 Kudos

If your ABAPer has written the User Exit, then he can as well do what you want. Ask him to do it, it should be a small code.

Happy SAPing.

Venkat - Hyd