cancel
Showing results for 
Search instead for 
Did you mean: 

Cancelleing reason for rejection in Sale Order

Former Member
0 Kudos

Hi All,

        Scenario:

I receive reason for rejection code from another system through ORDCHG and i have to reject the corresponding line in sale order.which has been configured and fine.this is standard and no coding has been done for this.

New Scenario;

Now the same system will send the request for cancellation of that rejection reason(bring it back to as it was) .

How do I do it using ORDCHG idoc.Now that I tried passing blank in reason for rejection code(ABGRU), but it did not work.

Has any one done this before using Idoc,if yes please help.Or using abap code is the only way???

Sorry I have posted it before but with insufficient information , which got diverted to totally different  discussion.

Correct  Text Removed

Thanks

Arun

Message was edited by: G Lakshmipathi

Please dont add such text in your post

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi TW, I do not exactly know the change but the change has been made by removing rejection in BDC recording/data.

@shashi thank you for providing the option Ji..

shashi_thakur
Contributor
0 Kudos

Hi Arun,

Try sending the Idoc with a \ (backward Slash) , if you wish to remove the Reason for Rejection. The otheroption that you suggested is also straight-forward and simple. (If the Idoc has the ABGRU- then modify , else if it does not then clear the existing ABGRU in the line item in the USer-exit.).

Thanks & Regards,

Shashi

former_member182378
Active Contributor
0 Kudos

Shashi,

Thanks!

Interesting comment - use backward slash \

This would come in IDoc and populate RFR, but if this value is not configured in SAP, then would that lead to data discrepancy? and error?

shashi_thakur
Contributor
0 Kudos

Hi TW,

It will not lead to data discrepancy or error- from what I had tested around 1.5 years back for a similar requirement-it blanked out the Reason for Rejection.

Regards,

Shashi

Former Member
0 Kudos

Hello EveryOne,

          Thank You all for your valuable sugestions and inputs on the scenerio..

I have handeled it with a minor code  change.I would be expecting it  in ORDCHG change with a blank value.

I mean if the inboud article has a reason for rejection,then remove it /remove it and change the quantity.

@Jyoti Arora  Manish Sharma  Ajit Chand  TW Typewriter Appreciate your inputs!!

former_member182378
Active Contributor
0 Kudos

Arun,

What minor code change did you do? Please elaborate how you met this requirement.

Former Member
0 Kudos

Dear Arun/ TW,

Interesting Scenario. i found the second point suggested by TW is appropriate, i would like to elaborate the same, if you are using Standard SAP RFR functionality.

use fucntional module "BAPI_SALESORDER_CHANGE" to take one of the input parameter as Reason for rejection cancellation (eg: RFRC text) to change Sales order and add in user exit USEREXIT_SAVE_DOCUMENT; Program Name: MV45AFZZ "if Reason for rejection is "RFRC" then update RFR field to blank"

Try and do revert.

Regards// mksharma1

former_member182378
Active Contributor
0 Kudos

Arun,

1. Reason for rejection (sent by the external system into SAP) would mean that reject that item. No need for the sale of that item.

So why does that system, want to remove that reason for rejection later on?

Might be better to create another line item, in the same order (if possible) and sent it across to SAP

2. Sending blank value might not work. With little coding in SAP, probably in the function module; if external system sends a changed RFR (e.g. ZZ) then that would remove the RFR (make it blank) in the sales order, for that line item. This coding (mapping ZZ to blank) can be done in R/3.

Former Member
0 Kudos

Hi Arun, TW

Very strange requirement. Why would the customer want to cancel the rejection? Try to get more details from them and then finalise the best approach.

I would also go with the first solution in TW's response.

Second alternative (Point no. 2) might create problems in reporting, and thus not advisable.

Thanks!

Former Member
0 Kudos

Hi Jyoti,

My client uses RFR to hold the order for temporary reasons like stock adjustments or when 3PLs are involved..but there is strong reason for it..Just a kind of User friendly.But its purely manual here.

I have seen the usage of BAPI_SALESORDER_CHANGE to update or modify the values through Idocs..It may help in this case.

Rgds,

ACP

former_member182378
Active Contributor
0 Kudos

Ajit,

Thanks for sharing some business scenarios!

"or when 3PLs are involved.."


Could you please elaborate this?


Could delivery block be used instead of RFR, in the 3PL case?

Former Member
0 Kudos

Thanks for sharing the scenarios but still not sure why RFR is used here.

Arun, I would suggest try this scenario using blocks instead of RFRs. Not sure if the cancellation of rejection that you want is at item level or header.

Former Member
0 Kudos

Hi TW,

Delivery block is used as part of the standard business process, where you have the interfaces working for the creation of transactions. RFR is being used by users just to hold the particular transaction from processing further..that is the reason I mentioned "Temp Reasons".

Rgds,

ACP

former_member182378
Active Contributor
0 Kudos

Ajit,

My client uses RFR to hold the order for temporary reasons like stock adjustments or when 3PLs are involved..

Could you elaborate on the reasons for holding an order when 3PLs are involved?

In these cases, is the transportation from the 3PL company not ready / arranged or...?

Side comment: Want to know the business reason (thing happening in your business) rather than focusing on RFR.

Thanks!