Google

Thursday, July 26, 2007

Deletion of Sales Documents

Question
Is it possible to delete the sales orders, if no subsequent document is created. I have tried it, but unable to delete it. Again for the delivery document, if there is no subsequent document, then can we delete the delivery document ?

Hi Bala,
You can no doubt delete the sales order using transaction VA02, but there should not be any subsequent document is created against it. Please let me know the error message you are still getting unable to delete so.

Deletion /cancellation can only happen even if the subsequent documents are NOT created. As sudhir might have rightly said Sales Order with subsequent documents cannot be deleted. After cancelling the invoice and deleting the delivery document, we can set the reason for rejection at the Sales Order Header Level.

Steps:

1. Cancel the invoice through T code VF11
2. Reverse the Goods Issue using VL09, turn the pick quantity ‘zero’ in the delivery document
3. Delete the delivery document using VL02n.
4. Finally set the reason for rejection at the Sales Order Header Level. (So Bala, just check the SO you want to delete ever had any subsequent document? )

Note: An Invoice cannot be deleted but canceled. It can only be canceled with (VF11) only if the relevant accounting document is not generated. Generation of accounting document means the value is posted into accounts and G/L accounts are hit.
SAP FI department needs to reverse the accounting doc on a real-time scenario. Only after the accounting doc is reversed invoice can be canceled. Tax documents generated through the Invoice (Tax is maintained on a separate account) also need to be reversed but this is a part of FI so an SD consultant just needs to request the FICO guy to do the reversal.
Let me know through your valuable comment/s if the question is still left unanswered. Thanks Sudhir for your inputs.

9 comments:

Unknown said...

Hi Faraz,

The sales order is open, no further documents processed, but still if I try to delete it, system gives the message that the sales order cannot be deleted.

Also, I have come across another situation where the sales order status is completed and one of the line item is open. When I checked the changes, it is coming as deleted. Any idea on this .

Balaji

Faraz - Sapdude said...

Hi Balaji,
Will do the modification of this post considering these doubts.

Thanks for posting.

Faraz

Faraz - Sapdude said...

Can u send me the screen shot of the follwoing:
1 error message, 2. the SO status screen and 3. the document flow of this SO.

My mail id is faraz.mohsin@gmail.com

Unknown said...

Hi Guys,

Sales Order with subsequent documents cannot be deleted..
After cancelling the invoice and deleting the delivery document, we can set the reason for rejection at the Sales Order Header Level.
thanks
sudheer

Anonymous said...

Faraz,

Mailed the screen shots.

Let me know your views please.

Thanks,

Balaji

Saubhagya said...

Hi,
I beg to differ with the note section. An invoice which has been released to accounting can be cancelled. When cancelled it will automatically reverse the accopunting entry. I would recommend never to delete a document. You can make the qty to zero and save it.

Faraz - Sapdude said...

Hi Saubhagya,

Thanks for your inputs, never tried though but would definetly check and see.

Saubhagya wud u like to be a regular contributor to this blog, if u do let me know your mail id.I'll give u access, It so happens that it sometimes becomes difficult to answer all the queries but with the help of some experts we can.

cheers!

Anonymous said...

Hi All,

Can you answere my problem.
Once the invoice is cancelled with VF11 ,and the PGI is reversed with VL09,and the delivery is delted using VL02N,after this if I see the document flow,the delivery order is archived and the entry is deleted as well from LIKP.
Why this happens and can it be avoided the messing of document flow and getting arcjived without propoer archiving procedure?

Thanks

Anonymous said...

cool blog