FAQ about parked document for ABAPer
Q: What is the parked document and difference compared with the Hold document
A: SAP help provides the official definition. Please check this article with screenshots and a more friendly explanation.
Q: Where is the Parked document been stored?
A: Parked documents are stored in VBKPF and VBSEG* tables; VBSEGS is a particular case of parked documents on G/L accounts. A parked document will be stored in VBKPF and BKPF (with document status BSTAT equal to ‘V’). It will be stored in one or numerous VBSEG* tables. It will come to BSEG after the posting and consequently be deleted from VBKPF and VBSEG*.
- VBSEG Document Parking Document Segment – General Structure
- VBSEGA Document Segment for Document Parking – Asset Database
- VBSEGD Document Segment for Customer Document Parking
- VBSEGK Document Segment for Vendor Document Parking
- VBSEGS Document Segment for Document Parking – G/L Account Database
Q: Function modules to create/change/post parked documents?
- PRELIMINARY_POSTING_FB01 for Creation Details&Code example
- BAPI_ACC_GL_POSTING_POST for creation Details&Code example
- PRELIMINARY_POSTING_DOC_READ for fetch data Details&Code example
- PRELIMINARY_POSTING_DOC_WRITE for Change data Details&Code example
- BAPI_ACC_DOCUMENT_POST for Posting Blog& Code example
Some discussion about dump when change the parked document using ‘PP_CHANGE_DOCUMENT_ENJ’ at this. Btw, PRELIMINARY_POSTING_POST_ALL is working for me without any issue with posting.
You may aware that updating by ‘PRELIMINARY_POSTING_DOC_WRITE’ will left no changelog accordingly in the system. Maybe this is system design cause changes don’t matter a lot as a Parked document has not been posted yet. Please correct me if wrong : )
Besides, Document parking with accounting BAPIs could only be achieved using a custom enhancement (BTE or BAdI implementation). With note 2092366 SAP now officially supports the functionality of parking documents using the accounting BAPI, but only under the restrictions listed in notes 2092366 and 2021422 With this scenario, no manipulation of TCODE is allowed and only for object type BKPFF. (Check this blog for more)
Q: How to create/update the Notes of parked document
A: using Function module ‘CREATE_TEXT’ and ‘SAVE_TEXT’ with text object ‘DOC_ITEM’ and text id ‘0001’. Text name = company code+document number+fiscal year+item no.
Is it possible to post an Accounting Document which is parked using BAPI_ACC_DOCUMENT_POST. If yes then it would be helpful to know which specific parameters to transfer.