09-02-2008 6:24 AM
Can anybody explain the steps to upload the data into 0041 infotype.
Thanks in advance.
09-02-2008 6:49 AM
Hi pavan,
You can use BDC recording (Tcode:-SHDB)to upload data into the infotype 0041.
You can also use the FM:-
HR_INFOTYPE_OPERATION . in this use the operation as:-
"INS" --> insert data
"MOD --> modify data
"DEL" --> delete data.
Do not forget to use HR_EMPLOYEE_ENQUEUE (before) & HR_EMPLOYEE_DEQUEUE (after) along with the above FM.
Luck,
Bhumika
09-02-2008 6:51 AM
hello
you can use FM
data: proposed_values like PPROP occurs 0 with header line.
*break-point.
data propval type INFTY value '0014'.
PROPOSED_VALUES-INFTY = propval.
PROPOSED_VALUES-FNAME = 'p0014-BETRG'.
PROPOSED_VALUES-FVAL = 'M351'.
APPEND PROPOSED_VALUES.
data empno like p0001-pernr value 00000005.
data return type BAPIRETURN.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = empno
MASSN =
ACTIO = 'INS'
TCLAS = 'A'
BEGDA = SY-DATUM
ENDDA = sy-datum
OBJPS = ' '
SEQNR =
SPRPS =
SUBTY = 'MP10'
WERKS =
PERSG =
PERSK =
PLANS =
DIALOG_MODE = '0'
LUW_MODE = '1'
NO_EXISTENCE_CHECK = ' '
NO_ENQUEUE = ' '
IMPORTING
RETURN = return
RETURN1 =
HR_RETURN =
TABLES
proposed_values = proposed_values
MODIFIED_KEYS =
.
~hitesh
09-02-2008 6:58 AM
hi,
most of the times the data in IT 0041 will be filled automatically on running some actions on the employee.
for manual entry in IT 0041 you can use transaction PA30. and for mass upload you can create a BDC for that transaction.