cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent to reuse deleted sales order

Former Member
0 Kudos

Hi Experts

I need to prevent re -use deleted sales order. Currently, user set Zero to quantity field when sales order is unnecessary. This means deleted by logically. How can I to prevent to re-use such deleted sales order?

In standard, We know that sap request to use Rejection fields when when sales order is unnecessary. But, this setting was not fit user request. In detail, VA05 and MCTE report displayed deleted sales order which set rejection.

Thanks in advance.

Jelena
Active Contributor
0 Kudos

I'm very much confused by this question as well. Kindly use the standard SAP terminology. "Deleted" means the order was physically deleted from the database. (There is Delete operation in the menu.) You seem to be confusing this with a rejection process.

It is also not clear why do you have to retain such items to begin with and why can't you just add a filter in the reports to do not show rejected items.

Accepted Solutions (0)

Answers (1)

Answers (1)

VeselinaPeykova
Active Contributor
0 Kudos

Could you, please, explain why you cannot use rejection reason, so that the forum members can suggest a workaround?

Also, what is the expectation if there are two order items, the user sets the quantity for item 2 to zero and for item 1 the quantity is reduced from 5 to 4 - is it allowed later to set again the quantity of item 2 to a different value?

The first thing, which comes to mind, is user statuses, but without knowing the reason behind this strange requirement, it is hard to suggest a suitable alternative.

Also, what have VA05 and MCTE got to do with the rejection reason (which you are not using) and the whole business process? I am confused.

Former Member
0 Kudos

Thank you for your response.

Regarding first point, the reason why you cannot use rejection is that the MCTE report are displayed the quantity of order which is set rejection. But, user want the MCTE report does not amount deleted order. So, user set zero to quantity if user want to delete order.

Regarding second point, item 2 is allowed from 5 to 4. But, item 1 is not change any more. We are investigating this item 1 are locked by system but i don't know how to realize in sap setting.

Hope the above clarifies.

sez41
Active Contributor
0 Kudos

Takashi,

Have you explored SAP note 19295 regarding reason for rejection?

Setting order quantity to zero is definitely not best practice, but if you are content to stay with this decision, you can control the old quantity (from table vbap) and new quantity (from itab vbap) of sales order item in form USEREXIT_CHECK_VBAP and prevent changing of order quantity if old quantity is 0. Have you tried this?

VeselinaPeykova
Active Contributor
0 Kudos

+1 to Kıvanç for the SAP note reference.

If you are determined to keep the current ways of working (despite that it causes more problems, than it solves), still, I would prefer to keep a workaround for the support team and explore user statuses functionality with underlying authorizations. Sometimes end users might set the wrong item to zero (this to-be process looks very unforgiving to trivial mistakes), with user statuses you could be able even to transfer the responsibility of resolving such errors to 1-2 power users per sales organization.