‎2014 Apr 14 12:49 PM
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.
‎2014 Apr 14 1:04 PM
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
‎2014 Apr 14 1:04 PM
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
‎2014 Apr 14 1:50 PM