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

BAPI

rashmi_purohit2
Explorer
0 Likes
488

Hi Experts,

I am using a program to upload the G/L balances relating to the intercompany data via transaction FB01.

Now the bapi BAPI_ACC_DOCUMENT_POST is used for posting this data.

The requirement is to add trading partner field to the flat file and upload it.The document type is SA for which the inter-company posting is activated in OBA7.

We have attached a Function Module in BTE (Buisness Event Tranasction) which includes certain validation for the Trading partner. This FM is triggered on the event 00001020 i.e final checks before posting a document.

Now our requirement is that this FM should be triggered when the data is getting uploaded through this BAPI so that these validation also run for the records in the flat file and the transaction should be stopped if any error occurs.

So is there way that the FM can be triggered when we are trying to post the documents using BAPI.

Thanks,

Rashmi.

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
355

Try creating a implicit enhancement in begining of routine document_post of include LACC9F20

then try calling the function there.

Hope it works.