Application Development 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: 

BAPI_ACC_GL_POSTING_POST trading partner

Former Member
0 Kudos

Hello,

I am using BAPI_ACC_GL_POSTING_POST in a program to post GL accounts for a company we recently acquired.

We are using trading partners and partner profit centers to post any inter-company transactions. But I do not see a trading partner field anywhere in this BAPI.

Can you please advise, if there is an alternative field that I can use?

Thanks.

Pranav

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Hello,

It seems, there isn't any field for Trading partner in BAPI_ACC_GL_POSTING_POST.

So, try BAPI_ACC_DOCUMENT_POST. It has both fields related to trading partners.

Regards,

Naimesh

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

Hi Pranav,

See if the fields ar of any use to you.

ACCOUNTGL-REF_KEY_1 Business partner reference key

ACCOUNTGL-REF_KEY_2 Business partner reference key

ACCOUNTGL-PART_PRCTR Partner profit center

Regards,

Ravi

naimesh_patel
Active Contributor
0 Kudos

Hello,

It seems, there isn't any field for Trading partner in BAPI_ACC_GL_POSTING_POST.

So, try BAPI_ACC_DOCUMENT_POST. It has both fields related to trading partners.

Regards,

Naimesh

0 Kudos

BAPI_ACC_DOCUMENT_POST, seems to have many more options I guess. Is trade_id the field you are pointing out? Do you have an example to elaborate?

Thanks. I appreciate your help.

Pranav

0 Kudos

Hello Pranav,

Below listed fields are only available fields in BSEG related to trading partner.

TRADE_ID - Company ID of trading partner

TR_PART_BA - Trading partner's business area

And both are available in BAPI_ACC_DOCUMENT_POST.

One more tip : if you want to find out corresponding BAPI field of any field on the screen, they try to see the "Default component name" in Data element of that field which is on the screen. Most of the cases we can find out corresponding BAPI field name from here.

Regards,

Naimesh

PS : Reward points, if you find useful..!

0 Kudos

Thanks a lot Naimesh.

I tried using trade_id and it worked, only thing I had to add in the header table was BUS_ACT = RFBU, and it posted the document. I think I had to add this because I had not specified the trading partner business area.

Do you have any idea what the BUS_ACT field does. Just curious.

Thanks once again.

0 Kudos

Hello Pranav,

Thanks for rewarding

Have look at the defination given by SAP on

Business transaction

Definition The data from the different SAP application areas is

Sbdivided into transactions according to business views.

If an application calls up direct posting in accounting, data is transferred with an appropriate transaction. Depending on the transaction, you can process this transferred data in different ways (for example, with ledger selection, field movement).

Regards,

Naimesh

Reward points, if it is useful..!