cancel
Showing results for 
Search instead for 
Did you mean: 

check for Sale order

Former Member
0 Kudos

Hi experts

Our client has a rquirement such that when ever he creates new sale order & inputs material code,the system should check whether that particular material code has BOM & routing,

If it doesnt have it should not allow sale Order To save.

Are there any user exits for this.

Regards

Sandeep patil

Accepted Solutions (1)

Accepted Solutions (1)

arpit_shah
Contributor
0 Kudos

pls check,

following user exit,

User-Exit Patterns:

MV45* - Sales

MV50* - Delivery

RV60* - Billing

Check include MV45AFZZ.

USEREXIT_SAVE_DOCUMENT.

USEREXIT_SAVE_DOCUMENT_PREPARE.

and put check if bom & routing is not created then it is not updated in table.

or check the costing status in so, if it contains ant error then dont save.

Regards,

Arpit

Answers (1)

Answers (1)

Former Member
0 Kudos

there is no std function which you can think of in std SAP, but you can activate the user exit befire saving the sales oder.

Check in SPRO>Sales and Distribution>Sales and Distribution>User Exits>User Exits in Sales

one which my be suitabke is User Exits In Sales Document Processing...or selcet which is approppriate one.

Former Member
0 Kudos

Dear Rajesh

I checked User Exits In Sales Document Processing

Under that i found user Exit

USEREXIT_SAVE_DOCUMENT_PREPAREUse this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.

The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.

Regards

sandeep patil

Former Member
0 Kudos

yes, I hope you can use this, if BOM is not found for the material in MAST table, then donot save the sale order.