2013 Aug 09 9:25 AM
I have some doubt about how to use BAPI to replace the BDC program for Financial Posting.
1、I know some BAPI like BAPI_ACC_DOCUMENT_POST and BAPI_ACC_GL_POSTING_POST but I don't in what circumstance that I can use this BAPI for Finalcial Posting. Such as I have to write a BDC program for F-60 posting, but I don't know which BAPI should I use or there are no bapi for F-60.
2、When I see a program using BAPI 'BAPI_ACC_DOCUMENT_POST' for financial posting , how do I know what is this financial posting ? to use what t-code ?
3、Is there anyone collect the all BAPI for financial posting?
Thank you for your sincere answer.
2013 Aug 09 3:50 PM
hello,
Well F-60 is transaction to update a View and I guess there is no FM or BAPI to do that. To answer your question though how to find a BAPI or FM for a particular transaction in FI you need to check note 306504.
Note 306504 - Collective note: BAPIs
for the AC interface
best regards,
swanand
2013 Aug 09 3:25 PM
2013 Aug 09 3:26 PM
2013 Aug 09 3:50 PM
hello,
Well F-60 is transaction to update a View and I guess there is no FM or BAPI to do that. To answer your question though how to find a BAPI or FM for a particular transaction in FI you need to check note 306504.
Note 306504 - Collective note: BAPIs
for the AC interface
best regards,
swanand
2013 Aug 12 11:28 AM
Thank you for your sincere answer. But as I know this two BAPI BAPI_ACC_DOCUMENT_POST and BAPI_ACC_GL_POSTING_POST are used more.
2013 Aug 12 11:59 AM
Hi
In the BAPI_ACC_DOCUMENT_POST you can do the posting for the account Receivable, Accounts payable and GL account posting. You'll notice that there is a tables parameter for all the different postings within FI.
Hope this helps
Regards
Vic
2013 Aug 12 1:05 PM
so can I understand like this, this BAPI BAPI BAPI_ACC_DOCUMENT_POST and BAPI_ACC_GL_POSTING_POST can do the different postings with FI, when using the different tables parameter.
Is this right?
So if I want to use BAPI for replacing the BDC for posting , I have to know the function of this BAPI very well.
2013 Aug 12 2:05 PM
Hi
The BAPI_ACC_GL_POST is only used for GL Postings.
Where as the BAPI_ACC_DOCUMENT_POST can be used for AR, AP, and GL.
Dependent on your requirement I'd use the BAPI_ACC_DOCUMENT_POST.
You can use the same criteria as what is used in your BDC Program to determine which tables needs to be filled. In my case I used the "KOART" Field. ie.
CASE <fs_doc>-koart.
WHEN 'D' "Customer Posting (AR-Structure)
* Fill the AR Table
WHEN 'K' "Vendor Posting (AP-Structure)
* Fill the AP Table
WHEN 'S' "G/L Posting (GL-Structure)
* Fill the GL Table
ENDCASE.
So depending on your specific requirements I'd say that the BAPI_ACC_DOCUMENT_POST
Is your best bet. Remember that your Amounts table has to be filled no matter which table/posting you do.
All error, warning and success messages are returned in the return table.
Hope this helps.
Regards
Vic