Skip to Content
0
Apr 04, 2015 at 06:26 AM

How to update last name , email , phone etc of an employee using BAPI in SAP HCM?

176 Views

Hi SAP Community,

I am trying to update last name, email , phone etc of an employee using the BAPI (BAPI_PERSDATA_CHANGE). But this Bapi is asking for some mandatory value

like 1) Employee number - I am providing a valid value

2) SUBTYPE - What can be the possible value for this? I am giving 002

3) OBJECTID - What can be the possible value for this? I am giving O

4) LOCKINDICATOR - What can be the possible value for this? I am giving X

I am not aware what value I need to provide in these arguments, So i am getting an exception "009No data stroed for 002 in the selected period".

I dont want to update employee record using Transaction PA30. I only want to use BAPI.

The reason to use BAPI is , I want to call the same from JAVA code to update records.

Any help is highly appreciated.

Thanks

Riju Bhasker