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_BUPA_ADDRESS_ADD bapi not work in HRSYNC_P

Former Member
0 Likes
655

Hi All,

Currently I trying to created BAdI for HR-BP integration.

To do that, I should switch on HRALX-HRAC in transaction OO_CENTRAL_PERSON.

But even I set 'X' switch HRALX-HRAC. Address (especially EMAIL address which is infotype 0105 subtype 0005) is not updated , so I decide implement HRSYNC_P enhancement.

After many many test, I realize Email address has prerequisite, which is 'COUNTRY' field. (in transaction BP, COUNTRY is mandatory field.

And otherwise, I have no idea about why EV_CONTAINER-BP_ADDR_FAX-FAX field is filled after input HR email address (infotype 0105 subtype 0005). I think it should be 'BP_ADDR_SMTP' instead of FAX. (I doubt standard error).

Whatever, I decide using DO_POST_PROCESS method in implemented HRSYNC_P class. and I found BAPI_BUPA_ADDRESS_ADD bapi and tested in report program. That would be perfectly works in report program (not in BAdI implementation). so I copy and paste these code to BAdI implementation.

But it never create Business partner's address even after BAPI_TRANSACTION_COMMIT. and no error message in RETURN table.

Currently I digging with valid class but hard to find. and my eyes start blind....

How can I do that? should I arise Message to SAP ?

Do you guys have any ideas?

Best regards,

Yeum

Hi All,

Currently I trying to created BAdI for HR-BP integration.

To do that, I should switch on HRALX-HRAC in transaction OO_CENTRAL_PERSON.

But even I set 'X' switch HRALX-HRAC. Address (especially EMAIL address which is infotype 0105 subtype 0005) is not updated , so I decide implement HRSYNC_P enhancement.

After many many test, I realize Email address has prerequisite, which is 'COUNTRY' field. (in transaction BP, COUNTRY is mandatory field.

And otherwise, I have no idea about why EV_CONTAINER-BP_ADDR_FAX-FAX field is filled after input HR email address (infotype 0105 subtype 0005). I think it should be 'BP_ADDR_SMTP' instead of FAX. (I doubt standard error).

Whatever, I decide using DO_POST_PROCESS method in implemented HRSYNC_P class. and I found BAPI_BUPA_ADDRESS_ADD bapi and tested in report program. That would be perfectly works in report program (not in BAdI implementation). so I copy and paste these code to BAdI implementation.

But it never create Business partner's address even after BAPI_TRANSACTION_COMMIT. and no error message in RETURN table.

Currently I digging with valid class but hard to find. and my eyes start blind....

How can I do that? should I arise Message to SAP ?

Do you guys have any ideas?

Best regards,

Yeum

2 REPLIES 2
Read only

Former Member
0 Likes
572

Hi All,

I have found root cause. Which is in SAP HR Module, Infotype 0105 - subtype 0010 has to be transfered to SMTP strucutre by default in source code.

Thanks for your attention,

Yeum

Read only

Former Member
0 Likes
572

.