cancel
Showing results for 
Search instead for 
Did you mean: 

Question on RMA Returns

Former Member
0 Kudos

Hi SAP Experts,

I have a requirement for RMA Returns.

If a return order YBRE is created, it should check the billing date of the reference document.

If the Billing date > 90 days old it should block the order.

Can you advise me if there is an standard functionality to do this?

Thanks,

Shruti

Accepted Solutions (0)

Answers (6)

Answers (6)

Lakshmipathi
Active Contributor
0 Kudos

Try with USEREXIT_CHECK_VBAK in program MV45AFZB where you need to validate the field FKDAT from VBRK table.

G. Lakshmipathi

Former Member
0 Kudos

Hi Shruti,

You'll have to have a user exit for this requirement. There is no standard solution.

Regards,

Ketan

Former Member
0 Kudos

There is no standard functionality for this.

can you also verify these requirements if valid before finalizing any development?

1. what if customer returns are done in 1 RMA but multiple billing documents

2. i assume company policy on RMA blocking is specific for this 90 day variable. What if this change in near future to be 60 or 120 days and customer specific? if yes, you may introduce a custom table to maintain these variables "day" and "customer code".

Also, please verify the downstream SAP transaction process if the returns get blocked. What happens next?

Above thoughts to ensure that requirement is solid before you modify SAP system.

former_member182378
Active Contributor
0 Kudos

Raymar,

Thank you for your quality post!

One question:

Also, please verify the downstream SAP transaction process if the returns get blocked. What happens next?

Here the requirement focuses on blocking the RE order when a certain condition is met.

How would "the downstream SAP transaction process" impact the above requirement?

Former Member
0 Kudos

I agree with you that RE order gets blocked once a certain condition is met. But once it is met, what happens next? What if it was not met?  What if there was a partial release.

If these questions are valid, what is the downstream process to address it.

former_member182378
Active Contributor
0 Kudos

Shruti,

If the requirement is NOT to create a RE order when the billing date of Invoice is greater than 90 days of creation date of RE order, then in VTAF, you would have to write the code and put it in field Copy requirement.

Former Member
0 Kudos

Hi Shruti,

Please write this code in the copy controls - Data Transfer routine.  You can use SAP standard function modules to check the date difference between Biling document date and RMA creation date. 

If the Difference is more than 90 days, then set the Billing & Delivery Block in the RMA order.  So the users cannot create a  Return Delivery/Return credit memo without authorized approval.

Hope this helps.

Regards

Raju

former_member182378
Active Contributor
0 Kudos

Krishna,

Please write this code in the copy controls - Data Transfer routine. 

Would the code be written in the field "DataTransfer"? Why?

Data transfer routine controls the way field values are copied from the original / reference document to the subsequent / target document.

Former Member
0 Kudos

TW,

Shruti's requirement is to create teh RMA order and set the Block in the RMA order.  hence we need to write this code in Data Transfer routine only.

If you want to block the order creation itself, then you need to write this in requriement routine.

Hope this clrifies.

Regards

Raju

jpfriends079
Active Contributor
0 Kudos

I don't think there is any standard config to control this.

To cater you requirement, one possible way is to do enhanement at copying control VTAF for your return sales order type YBRE and repective billing doc. With that enhgamncemnt your user will not be able create YBRE with reference billing doc with Billing date > 90 days old it should block the order.

Or else you can trigger a billing block useing relevant userexit in YBRE, return sales order, if the reference billing doc is with Billing date > 90 days old it should block the order.

Regards, JP