cancel
Showing results for 
Search instead for 
Did you mean: 

Close a document when subsequent document is archived.

Azeemquadri
Contributor
0 Kudos

Hello experts,

Sales order is shown as open although invoice is complete and archived.

To close out the order , line can be rejected. But when rejection reason is tried message shows that cancellation not possible down payment request already created.

To cancel the down payment request is not possible because it is already archived.

Is there a way to closeout the sales order in this case.

I appreciate any help . Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Azeem

You will no longer be able to set the status as completed in a dialog transaction because the standard checks consider reference documents and one of your reference documents is no longer in the database. Correcting a status in a document could usually be done by report SDVBUK00 but that

uses the document flow entries (VBFA) to determine the VBUP and VBUK statuses, so won't work for you here. If you want to complete this order for archiving you will have to set the statuses that are open in the VBUP and VBUK tables to 'C' manually. You can do that with the debugger in SE16 or

by creating a small ABAP program to set the field values in the DB tables.

Kind regards

Brian

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Have you deleted the entries in table VBFA? Please, see note 131051 - Archiving: VBFA records remain in the system for further details.

I hope this helps you

Regards

Eduardo

moazzam_ali
Active Contributor
0 Kudos

Hhello Azeem

Could you please share what is order quantity and invoices quantity? First you need to check why order status is open when it is invoices. May be there is some open quantity to deliver in order. If possible paste screen shot of order header status tab.

And what do you mean by invoice has already been archived? How do you do that?

Thank$