cancel
Showing results for 
Search instead for 
Did you mean: 

How to cancel/delete SO which has a PO, but the PO has archive

Former Member
0 Kudos

Dear,

I have a SO with PO. I want to cancel the SO. The PO has been archived ,but I still can't delete the SO.

From the document flow, The PO is exist although PO is been archived.

How to reslove the question, thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Pleaes breif the scenario...

Have u created subsequent del. or billing document for the same.

If yes then start cancelling from the last document.....

and if no then put a resaon for Rejection in the Header of the order......it will not proceed further

Answers (7)

Answers (7)

Varun_GTS
Explorer
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

andrea_olivieri
Contributor
0 Kudos

Hello,

Are you sure that the purchasing document was archived?

In order to check if sales documents can be archived you Could use the program S3VBAKPTS (Preprocessing step for the archiving object SD_VBAK)

In the selection screen specify as selection parameters the sales document, the tick all the checkboxes.

I had a look at the source code of the ABAP program S3VBAKPTS in routine that performs the archiving check of the sales documents vs. purchasing documents.

If a purchase order exists in the sales document flow, then the program checks if it exists in the database table EKKO . If itu2019s true, you cannot archive the sales order.

Thus, if the purchase order was archived, it should not exist in the database and then the sales document might be archivedu2026

Maybe you only launched the pre-processing program for the archiving object MM_EKKO, which sets the deletion flag only, but doesnu2019t delete the purchasing document from the database.

Please could you verify?

Regards,

Andrea

Former Member
0 Kudos

Hi Fang Hua!

Did you get a solution for your problem?

I think I am in the same situation. I have a SO which only subsequent document is a PO. The PO has been archived, and (possible) therefore, the items in the PO are cancelled (I guess the PO items are cancelled by archiving, since I cannot see any log for cancellation at PO menu->Enviroment->Item changes, and I know the PO is archived).

Dispite of this, if I try to reject the SO item I get the message that I first must cancelled the PO item! Even if I, as said, I can see the PO item cancelled!

Any idea?

Thanks!

Javier

Former Member
0 Kudos

Hi,

You cannot delete the Sales order unless & until the subseuqent documents are cancelled.

First check if the subsequent documents i.e delivery & billing are cancelled.

Then try to delete the sales order.

Regds.......

Sumit

Former Member
0 Kudos

See note 210470. There is no way to delete a TAB/TAS item if a purchase order is already created! Imagine for example that later the item is created again, as a TAB item. Then one would get easily two purchase orders reffering to the same sales order. The problem becomes even more complicated since the deletion flag on a PO can be reset easily u2013 deads becoming alive. Thus, SD could not even allow the deletion of an item if the status of the PO is 'Flagged for Deletion'. It is recommended to reject the item instead.

Former Member
0 Kudos

Reject every item on the sales order, and put a Billing block at the header. I think that's the best you can "simply" do.

former_member315051
Active Contributor
0 Kudos

Hi ,

My under standing

if sales order is having subsequent documents you can not delete Sales order , first need to cancel all subsequent document then try to delete the SO.

Hope it helps you.