‎2013 Oct 06 3:51 PM
Hi Experts,
I am using HR_MAINTAIN_MASTERDATA to hire a employee. When I am passing 105 infotype information for subtype 1 the record is holding the value. But for subtype 0010(email) the value is not passing when I run the Fm in dialog mode 1.
How to pass subtype in that Fm ? The code which i am using as,
| IT_LOAD-INFTY = '0105'. | |
| IT_LOAD-FNAME = 'P0105-USRTY'. | |
| IT_LOAD-FVAL = '0001'. |
| APPEND IT_LOAD. |
| IT_LOAD-INFTY = '0105'. | |
| IT_LOAD-FNAME = 'P0105-USRID'. | |
| IT_LOAD-FVAL = ITAB-USRID. |
| APPEND IT_LOAD. |
| IT_LOAD-INFTY = '0105'. | |
| IT_LOAD-FNAME = 'P0105-USRTY'. | |
| IT_LOAD-FVAL = '0010'. |
| APPEND IT_LOAD. |
| IT_LOAD-INFTY = '0105'. | |
| IT_LOAD-FNAME = 'P0105-USRID_LONG'. | |
| IT_LOAD-FVAL = ITAB-USRID_LONG. |
| APPEND IT_LOAD. |
‎2013 Oct 07 4:48 AM
Hi Ravi,
As mentioned by Smruti, FM HR_MAINTAIN_MASTERDATA is not released for customer use by SAP. As a solution kindly use FM HR_PAD_HIRE_EMPLOYEE.
For sample code have a look at method GENERATE_EMPLOYEE defined in class CL_HRPAD00_C_EMPLO. The method is called in program HRPAD00_C_EMPLOYEES_FOR_USERS.
Hope this will reolve your problem.
Thanks,
Anju
‎2013 Oct 07 4:29 AM
Check this Note : 1913529 - Function module HR_MAINTAIN_MASTERDATA does not work as expected when hiring an employee
Regard's
Smruti
‎2013 Oct 07 4:48 AM
Hi Ravi,
As mentioned by Smruti, FM HR_MAINTAIN_MASTERDATA is not released for customer use by SAP. As a solution kindly use FM HR_PAD_HIRE_EMPLOYEE.
For sample code have a look at method GENERATE_EMPLOYEE defined in class CL_HRPAD00_C_EMPLO. The method is called in program HRPAD00_C_EMPLOYEES_FOR_USERS.
Hope this will reolve your problem.
Thanks,
Anju
‎2013 Oct 07 5:27 AM