I have one custom program which will create Parking document using 'PRELIMINARY_POSTING_FB01' FM. This is working fine but I need to give an option to 'Simulate' the Parking document without creating the Parking document. I could not find any FM to do this, Please let me know if there is one.
You can use BAPI_ACC_DOCUMENT_CHECK to for simulation like check if all okay and then use BAPI_ACC_DOCUMENT_POST for parking the same.
Please note that you need to set the field DOC_STATUS as 3 in DOCUMENTHEADER ( you will find it in import parameter ).