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

HR_MAINTAIN_MASTERDATA data upload

Former Member
0 Likes
844

Hi all,

I am uploading master data through HR_MAINTAIN_MASTERDATA.

What I am facing is how to populate data in the table PROPOSED_VALUES?

I am new to HR abap.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

Proposed value is nothing but infotype data. You have to define work area with type pnnnn (nnnn is infotype number). Structure will be same as PAnnnn with one additional field as infotype. Just move infotype number which you want to update.

You can also Check this Reprot for the Usage - RPLAPL00

Sample Code

Please check standard program RPLAPL00 for sample code on how to use FM HR_MAINTAIN_MASTERDATA.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = NUMBER(personal Number)

ACTIO = OPERATION (INS or COP or DEL)

TCLAS = TCLAS ('B')

BEGDA = VALIDITYBEGIN (Begin Date)

ENDDA = VALIDITYEND (End date)

DIALOG_MODE = DIALOG_MODE (1 or 0-foreground or Background)

NO_ENQUEUE = 'X'

IMPORTING

RETURN1 = RETURN

TABLES

PROPOSED_VALUES = PROPOSED_VALUES (p0006 Structure value-Nothing But IT 6 record)

EXCEPTIONS

OTHERS = 0.

Regards,

Jigar Thakkar

2 REPLIES 2
Read only

Former Member
0 Likes
739

Proposed value is nothing but infotype data. You have to define work area with type pnnnn (nnnn is infotype number). Structure will be same as PAnnnn with one additional field as infotype. Just move infotype number which you want to update.

You can also Check this Reprot for the Usage - RPLAPL00

Sample Code

Please check standard program RPLAPL00 for sample code on how to use FM HR_MAINTAIN_MASTERDATA.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = NUMBER(personal Number)

ACTIO = OPERATION (INS or COP or DEL)

TCLAS = TCLAS ('B')

BEGDA = VALIDITYBEGIN (Begin Date)

ENDDA = VALIDITYEND (End date)

DIALOG_MODE = DIALOG_MODE (1 or 0-foreground or Background)

NO_ENQUEUE = 'X'

IMPORTING

RETURN1 = RETURN

TABLES

PROPOSED_VALUES = PROPOSED_VALUES (p0006 Structure value-Nothing But IT 6 record)

EXCEPTIONS

OTHERS = 0.

Regards,

Jigar Thakkar

Read only

0 Likes
738

Thank you Jigar..

Tha program was a huge help for me.