cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open sales order since sales office is deleted from configuration

Former Member
0 Kudos

Hi All,

We are facing a peculiar issue in our production system. The issue is we have created a sales order in 2009 and now we want to delete the sales order to close a WBS. When the sales order was created the sales office entered for that order is "ABC1",

In 2010 the sales office "ABC1" is deleted from config and the transport is moved to production.

Now when we try to open the sales order in VA02 or VA03 system is throwing an error message "sales Office "ABC1" is not defined". Is it sap standard behaviour?. My concern is why is sap refering to the config for a transaction which is already created and saved. If it is doing the validation for a new order it makes sense.

Could any one throw some light on whether this is SAP standard behaviour and is there any way to fix issue.I thought of bypassing the check in debug mode but due to SOX complance we can not do that in produciton system.

Any inputs in this regard is highly appriciated.

Thanks,

Srini

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You are deleted sales office but the deleted sales office is refereed in sales order.

Remember do not delete anything which you already used in any document, even rather deleting just remove assignments that also fine.

Now if you want to delete that order

Then access SE16N in edit mode go to VBAK/VBAP table

put sales order and execute and then remove sales office and save

Then delete sales order

Answers (1)

Answers (1)

sarthak_mohantysd
Active Contributor
0 Kudos

Hello Srini,

Please try using the Function module " BAPI_SALESORDER_CHANGE" for deleting the related Sales Order for which the Sales Office does not exist in the configuration.

After following these suggestions, kindly update the forum so that this issue can be resolved !!

Regards,

Sarthak

Former Member
0 Kudos

Hi Sardhak and Kapil,

Thanq so much for your suggessions. Changing the table values in SE16N is not a feasible option as our audit requirements and SOX compliance wont allow us doing that.

Regarding using the BAPI_SALESORDER_CHANGE you mean to run it in SE37? if yes even this option is also not suffice as we wont have authorization to transaction SE37.

If you have any other thoughts please do share with me.

Thanks,

Srini

sarthak_mohantysd
Active Contributor
0 Kudos

Hello Srini,

if yes even this option is also not suffice as we wont 
have authorization to transaction SE37

If the access to Transaction code SE37 is restricted for you guys then try out using "SHDB" to delete the Sales Order and post your feedback.

[Transaction Recording |http://help.sap.com/saphelp_erp2005/helpdata/en/61/04683ce9e7572ae10000000a11405a/frameset.htm]

Or

You can get in touch with technical consultant and ask them to prepare a Program which will inturn call the Function module BAPI Sales order change and perform the required action...

Regards,

Sarthak

Edited by: sarthak mohanty on Jun 7, 2011 7:24 PM