2013 Jan 09 6:17 AM
Hi,
I'm using FM PRELIMINARY_POSTING_FB01 to park FI documents.
Is there a way to test first if PRELIMINARY_POSTING_FB01 would successfully park a document without the document actually being parked?
Rollback work does not seem to work. Do you have any suggestions? Thanks.
Regards,
Chris
Hi,
I'm using FM PRELIMINARY_POSTING_FB01 to park FI documents.
Is there a way to test first if PRELIMINARY_POSTING_FB01 would successfully park a document without the document actually being parked?
Rollback work does not seem to work. Do you have any suggestions? Thanks.
Regards,
Chris
2013 Jan 09 7:18 AM
Hi,
You can try the FM in SE37 and check these table entries
T_BKPF
T_BSEG
T_BSEC
T_BSET
T_BSEZ
T_BKORM
T_THEAD
T_SPLTTAB
T_SPLTWT
also pass
i_tcode = 'FB01'
i_xcmpl = 'X' " Completion status
Thanks.
2013 Jan 10 9:02 AM
Hi Benson,
What i'm asking for is like a simulation run for the the FM without parking documents being created for the program.
Not how to test it in SE37.
I can park using the FM already. I want to be able to simulate first before i park.
Regards
2013 Jan 10 10:22 AM
Hi Chris,
You could check or simulate first using the BAPI - BAPI_ACC_GL_POSTING_CHECK and then park the documents using the BAPI - BAPI_ACC_GL_POSTING_POST.
You could also check the FM - PRELIMINARY_POSTING_POST_CHECK first. But the above solution we have tried and works.
Hope it helps.
Thanks,
Tooshar Bendale
2013 Jan 14 2:11 AM
Hi Tooshar,
I appreciate the response. This is what i have in mind. Might as well proceed with this. Thanks again.
Regards,
Chris
2013 Jan 14 2:43 AM
Hi Tooshar,
Last time i checked, people were having issues when parking with BAPI_ACC_GL_POSTING_POST. Like when displaying in FB03.
Could you point me to a thread where BAPI_ACC_GL_POSTING_POST actually works without issues?
Would appreciate that.
Thanks.
2013 Jan 14 3:22 AM
Hi Chris,
We have faced the same issue very recently.
Sadly, we could not find a standard BAPI to park document.
But yes there is a way out.
You can use BAPI BAPI_ACC_DOCUMENT_POST.
But, there are couple of things you might want to do.
1. Create an implementaion for BADI BADI_ACC_DOCUMENT.
2. Pass a text like "PARK_DOC" or something to extension2 to parameter of the BAPI (to uniquely identify that this is for parking).
3. Inside BADI method IF_EX_ACC_DOCUMENT~CHANGE, change the value of c_acchd-status_new to "2".
This will work fine for sure.
Do let me know if this is useful and do get back to me if you need more info.
Thanks,
Sreekanth
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |