cancel
Showing results for 
Search instead for 
Did you mean: 

sales order user exit name to set the rejection reason code

Former Member
0 Kudos

Hi Friends,

I have a requirement where I need to set automatically via user exit code a particular reason for rejection code based on some conditions while creating the sales order. I need to know the name of the sales order user exit that will solve this problem. I have looked at these following user exits:MV45AFZZ and MV45AFZB and I am not sure which one to use.

I would appreciate if some one can guide me exactly which form to use as you know these user exits contains many forms.

Any help would be greatly appreciated.

Thanks

Suresh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Used this SAP Note 334524 to solve the issue.

Suresh

Lakshmipathi
Active Contributor
0 Kudos

Dear Rajasuresh

Try with the following Sales User exits in the program <b>MV45AFZZ</b>

<b>USEREXIT_MOVE_FIELD_TO_VBAK</b>

Use this user exit to assign values to new fields at sales document <b>header level</b>.

<b>USEREXIT_MOVE_FIELD_TO_VBAP</b>

Use this user exit to assign values to new fields at sales document <b>item level</b>

Thanks

G. Lakshmipathi

Former Member
0 Kudos

Thanks, Due to the some reasons(our unique higher and lower level combination of material line items linked using the higher level field in the sales order line item level) we are unable to use either the VBAK header form and VBAP line item form. So, I am basically looking for any other alternative user exit forms that will enable me to set the reason for rejection code.

Thanks

Br,Suresh

Lakshmipathi
Active Contributor
0 Kudos

Dear Rajasuresh

Then you can try with

User exits in the program <b>MV45AFZA</b>

<b>USEREXIT_MOVE_FIELD_TO_KOMKD</b> - Use this user exit to include or assign values to additional <b>header fields</b>

<b>USEREXIT_MOVE_FIELD_TO_KOMPD</b> - Use this user exit to include or assign values to additional <b>item fields</b>

Thanks

G. Lakshmipathi

Former Member
0 Kudos

But these are all for pricing condtion types related changes. i am not looking for pricing related changes.

-Suresh

Former Member
0 Kudos

Based on this SAP Notes #:334524 the user exit should be added in this form:FORM USEREXIT_SAVE_DOCUMENT_PREPARE

Thanks.

Suresh