Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC and BAPI for Financial Posting

former_member189009
Active Participant
0 Likes
1,616

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,279

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

7 REPLIES 7
Read only

palash_mazumder
Participant
0 Likes
1,279

This message was moderated.

Read only

palash_mazumder
Participant
0 Likes
1,279

BAPI_ACC_DOCUMENT_POST is the financial postig bapi

Read only

Former Member
0 Likes
1,280

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

Read only

0 Likes
1,279

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.

Read only

0 Likes
1,279

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

Read only

0 Likes
1,279

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.

Read only

0 Likes
1,279

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