cancel
Showing results for 
Search instead for 
Did you mean: 

No BP entry in HRP1001

Former Member
0 Kudos

Hi,

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?

Reply asap

Sudha

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try using these two function modules after you call the FM BAPI_BUPA_CREATE_FROM_DATA.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

commit work AND WAIT.

CALL FUNCTION 'DEQUEUE_ALL'

EXPORTING

_SYNCHRON = 'X'.

Hope this helps!

Regards,

Rashmi

jan_krohn
Active Participant
0 Kudos

Hi Rashmi,

Thanks for the reply. Actually, I'm using IDocs, so there's no chance to issue any commit after BAPI call. (It should be done automatically by IDoc management anyway...)

Best regards,

Jan

jan_krohn
Active Participant
0 Kudos

Dear Sudha,

I realise your question is very old... But I'm facing the very same problem now. Did you find anything out then?

Best regards,

Jan

jan_krohn
Active Participant
0 Kudos

Dear Sudha,

I realise your question is very old... But I'm facing the very same problem now. Did you find anything out then?

Best regards,

Jan