SD Billing Documents Archiving
It may often be a requirement from business that they want to Archive documents. In many countries it is also a legal requirement to archive the old billing documents for some years. Some companies use external services to archive the documents, however it is possible archive documents in SAP. There could be many ways to do it, I have configured it in the following way and would like to share the solution with you guys.
> Use transaction NACT, select application V3
> Configure new Billing Output type ZARC. In the Sroage system view, choose Storage Mode Archive Only and keep the cursor in the Document type field and press F1 and click on the customizing icon
> Double click on Edit Document Types
System will take you to transaction OAC2 (Global document types config)
> Create new entry for ZSAPSDXX01 for ZARC message type
> Use transaction OAC3 (Links for Content Repositories)
> Create new entry for ZSAPSDXX01. This is where we tell the system the object is VBRK (as this archiving is for invoice documents so billing header) and document type is the one we have created in OCA2 in earlier step and Link is T0A01 (this is table where you can check the archived documents. There are also tables T0A02 and T0A03)
> Now go back to NACT, application V3 again enter the one which was created in NACT (place the cursor on the Document Type field and click on F4 and select the Doc. Type that was created in earlier step)
> Now create output condition record using trasaction VV31 for message type ZARC
> In the communication, I have entered a Dummy printer as I don’t need to print anything but just archiving. Enter the storage mode is 2 Archive only (if your requirement is only archiving)
> Program SD70AV3A (output from Billing (t.code VF31) would be needed to be scheduled in the background to send the invoices to achieving system.
Once the background job is ran, you can see the attachment list option is activated in the billing document and you can see the archived document by double clicking on it.
How to see the archived documents from the Archiving table
> Use transaction SE16
Enter table TOA01 (this is the table we have linked in configuration OCA3 above)
Enter VBRK in the SAP_OBJECT field
Date in the AR_DATE
Execute. You get the result, note down the ARC_DOC_ID
> Use transaction OAAD
Click on Technical Search
> Enter the copied ARC_Doc_ID in Document ID and execute F8 to get the archived documents.
Any Suggestions / corrections / other solutions are welcome