cancel
Showing results for 
Search instead for 
Did you mean: 

Order reason codes - specific to sales order type

Former Member
0 Kudos

Hi SAP Gurus,

We want to have ORDER REASONS specific to Sales order type. i.e, different sales order types will have different order reason codes in the order.

Also how can we devide the reason codes into two groups?

How can we do this?

Please help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You can create Z table with sale org / order type / order reason. enter the order reasons which order type need to allow .

Write logic in user exit MV45AFZB - userexit_check_vbak, system should check the above ztable before saving, if it allowed then only it should proceed or else it should give error message order reason is not assigned to this document type.

Hope this will help.

Former Member
0 Kudos

Sales order reason are simply created then will be available to all sales order document. If your requirement is 1 is to 1 meaning 1 sales order reason per document type, you can simply create lots of variant in SHD0 then assign per document type. Another is with out use of variant but with help of user exit, you can maintain table such as doc type - code of reason.

Question of yours Also how can we devide the reason codes into two groups? is not clear.

former_member184701
Active Contributor
0 Kudos

as far as i know it is not possible in standard. regards,