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

Subtype problem in HR_MAINTAIN_MASTERDATA

Former Member
0 Likes
1,029

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.
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
717

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

3 REPLIES 3
Read only

Former Member
0 Likes
717

Check this Note : 1913529 - Function module HR_MAINTAIN_MASTERDATA does not work as expected when hiring an employee

Regard's

Smruti

Read only

Former Member
0 Likes
718

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

Read only

Former Member
0 Likes
717

Thanks for valuable answers....