My requirement is like this I'm getting data from an external system and i am mapping that data in the SAP format. I am calling a Function module to update the required tables. In that function module two bapi's are being called for updating two table BP1012 & BP3100.
This functionality is inside a loop and the updation happens for each record.
First BP3100 bapi will be called and then BAPI_TRANSACTION_COMMIT and then BP1012 and BAPI_TRANSACTION_COMMIT.
For BP3100 data is getting updated as expected and for BP1012 COMMIT is not working for multiple iterations or multiple entries.
So i have thought of using BAPI_TRANSACTION_COMMIT outside the loop so that both tables will get updated at a time.
I am not sure whether this works or not. So, i need your help for achieving this and also wanted to know how the BAPI BUFFER will work in general and during this situation.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!