‎2009 Oct 26 6:06 AM
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.
‎2009 Oct 26 6:14 AM
Try creating a implicit enhancement in begining of routine document_post of include LACC9F20
then try calling the function there.
Hope it works.