I have a requirement to create a BP and assign it to a role. I used the function module 'BAPI_BUPA_CREATE_FROM_DATA' for creating the business partner and the method 'BAPI_BUPA_ROLE_ADD' for adding role of 'Employee' to it. I used 'BAPI_TRANSACTION_COMMIT' after each of them. Though the BP was created there was no entry found in HRP1001.
When I create a BP using the transaction 'BP' the entry is getting created in HRP1001, I couldnt figure out why no entry is getting created when I use the above function modules.
Do I have to call another function module for the entry to be created in HRP1001?