cancel
Showing results for 
Search instead for 
Did you mean: 

Rejection of Sales Order

Former Member
0 Kudos

Dear experts,

We are using AFS version 6.5.

We have a requirement where we need to reject all the items in an order if any of the items is placed with a rejection code. (Accept all or reject all)

Can we achieve this through any configurations in customer master or we need to write some custom code in the customer exits.

Please suggest at the earliest.

Thanks,

Naveen

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182378
Active Contributor
0 Kudos

Naveen,

As members have commented this has to be done with coding.

Please explain the business scenario, when 1 line item is rejected, then the entire order (all line items) should be rejected.

Also, when user wants to remove the reason for rejection, (this is done line item wise) then for all the line items the reason for rejection removed automatically?

TW

Former Member
0 Kudos

Hi,

In MV45AFZZ you have to write the coding to reject all the line at the time of saving.

This will reject all the sales order line item once SO is saved.

Regards

Suneet

former_member608858
Discoverer
0 Kudos

Dear Navin,

Apply Reson for rejection at header level

To Reject Sales-Order at Header-level use T. Code: VA02

Key-in your S. Ord. No. and ENTER. Press Ctrl+F10

Another window will pop-up. Select Reason for Rejection and click Ok.

This will reject your Sales Order at Header-Level (i.e. Complete Sales Order).

OR

Select All line Items --> Edit --> Fast Change --> reason for rejection.

This will apply reason for rejection to all Items.

ian_kehoe
Active Participant
0 Kudos

Dear Naveen,

I'm not sure about AFS but in the standard SAP system there is no configuration to do this. You would need to write a check in custom code. A check on the field VBAP-ABGRU perhaps in userexit_save_document_prepare in MV45AFZZ.

I hope this helps.

Regards,

Ian Kehoe