cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted sales order remains in document flow

Former Member
0 Kudos

Hello!

The problem:

We had sales order with reference to a contract. We deleted the sales order (it doesn't appear in VBAK anymore), but, the sales order still appears in VBFA (if we see the document flow for the contract, the sales order still appears there as archived!!!)

I deleted the sales order in a regular way via VA02.

I heared that there is a function module or another solution to fix the document flow.

I also saw a solution for this kind of problem for delivery (SAP note 74513).

Please assist,

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Jelena
Active Contributor
0 Kudos

You can write your own correction report to delete VBFA entries or contact SAP.

This seem to be happening sporadically and no one knows why, including SAP. But check if there were any update terminations (SM13) in your system.

Also use Search - same or similar questions are posted on SDN at least bi-weekly.

Former Member
0 Kudos

Hi!

Thanks to Jelena!!!

As she wrote that in these cases OSS can solve the problem and it happens a lot, we opened an OSS and got an answer:

OSS answer:

when you delete an order the corresponding entry in VBFA is not

deleted. The system is not able to differ between archived and deleted

orders, so to ensure that the document flow is also showing archived

documents the entries in VBFA remain. This is also described in

attached note 390905. When you are sure which entries in VBFA can be

deleted you can use report SDVBFA00 to delete the entries.

What we need to do:

go to SE38 and run report SDVBFA00.

Sales document is a contract number (preceeding document)

"Delete" - put X or leave empty.

The logic is:

You put the preceeding document and leave the field "Delete" empty.

The program finds by himself all the sales orders (following documents) that are connected to this contract and are deleted.

You check that the system suggests to delete the correct sales orders

Run this report again, but this time put X in "Delete" field and the sales orders will be deleted.

Apparently there are several reports exist to solve VBFA problems SDVBFA00,SDVBFA01 etc.

Thanks!