04-04-2006 3:27 PM
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
04-04-2006 3:46 PM
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
04-04-2006 3:45 PM
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
04-04-2006 3:46 PM
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
04-04-2006 4:24 PM
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
04-06-2006 8:10 AM
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..!
04-06-2006 2:18 PM
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.
04-06-2006 2:23 PM
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..!