Application Development 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: 

How to update HR infotypes?

Former Member
0 Kudos

Hi All,

Is there any FM or BAPI for updating following infotypes?

0000 – Action

0001 – Organizational Data

0002 – Personal Data

0006 – Address

0008 – Basic Pay

0041 – Date specifications

0105 - Communication

0315 – Cats.

Thanks in advance

Jaison.

8 REPLIES 8

Former Member
0 Kudos

check <b>HR_INFOTYPE_OPERATION</b>

Regards

Prabhu

Former Member
0 Kudos

Hi jaison,

1. this is the full coding.

2. just copy paste in new program.

3. U can change the pernr and amount values, and corresponding infotype as per requirement.

4.

Report abc.

*----


Data

DATA : P0015 LIKE P0015.

DATA : RETURN LIKE BAPIRETURN1.

DATA : KEY LIKE BAPIPAKEY.

DATA : RETURNE LIKE BAPIRETURN1 .

*----


Values (Change as per Requirement)

P0015-PERNR = '1'.

P0015-BEGDA = '2061101'.

P0015-ENDDA = '2061101'.

P0015-LGART = '3075'.

P0015-PREAS = '01'.

P0015-WAERS = 'INR'.

P0015-BETRG = '2500'.

*----- First Enqu

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

NUMBER = p0015-pernr

IMPORTING

RETURN = RETURNE.

*----


Update

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0015'

NUMBER = P0015-PERNR

SUBTYPE = P0015-SUBTY

OBJECTID = P0015-OBJPS

LOCKINDICATOR = P0015-SPRPS

VALIDITYEND = P0015-ENDDA

VALIDITYBEGIN = P0015-BEGDA

RECORDNUMBER = P0015-SEQNR

RECORD = P0015

OPERATION = 'INS'

TCLAS = 'A'

DIALOG_MODE = '0'

IMPORTING

RETURN = RETURN

KEY = KEY.

IF RETURN IS NOT INITIAL.

WRITE 😕 'Error Occurred'.

ENDIF.

*----


Dequeue

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

NUMBER = P0015-PERNR

.

regards,

amit m.

bryan_cain
Contributor
0 Kudos

0000 - HR_MAINTAIN_MASTERDATA

0001 - HR_INFOTYPE_OPERATION

0002 - BAPI_PERSDATA_CREATE / BAPI_PERSDATA_CHANGE

0006 - BAPI_ADDRESSEMP_CREATE / BAPI_ADDRESSEMP_CHANGE

0008 - BAPI_BASICPAY_CREATE / BAPI_BASICPAY_CHANGE

0105 - BAPI_EMPLCOMM_CREATE / BAPI_EMPLCOMM_CHANGE

0315 - HR_INFOTYPE_OPERATION

0041 - Not sure, but if you can't find anything in t-code BAPI, you can always use HR_INFOTYPE_OPERATION

0 Kudos

Hi any body,

Pls tell me how to upedate customised table which is having all fields of all infotypes from 0000 to 9999.

Actaully for every changes in any infotype i need to update my customised table.

How it possible.

Advace thanks.

ponts will be rewarded

0 Kudos

Hi any body,

Pls tell me how to upedate customised table which is having all fields of all infotypes from 0000 to 9999.

Actaully for every changes in any infotype i need to update my customised table.

How it possible.

Advace thanks.

ponts will be rewarded

0 Kudos

Hi Hari

Use t code PM01 which is used for updating and enhancing infotype.

for infotype 0000 and 0001 u can use dynamic actions to enchance them

regards

AJ

0 Kudos

Hi AJ,

Can you please explain me how i can update by dynamic actions.

If you have any example pls forward me.

harim81@gmail.com

Thanks,

Hari

anupam_srivastava2
Participant
0 Kudos

Hi Jaison

for updating infotype use tcode PM01 and for infotypes 0000 and 0001 use dynamic actions or bapis

cheers

AJ