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 with multiple subtypes

oneal_portillo
Explorer
0 Likes
1,408

I'm using HR_MAINTAIN_MASTERDATA FM and I'm having problems to create an employee's infotypes with multiple subtypes. For example infotype 0006 or 0022.

I have been searching information about proposed_values table and the seqnr field on it but until now I can't create multiple records. The FM takes the last assigned infotype value.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

mangesh_parihar
Explorer
874

Hi,

Have you tried adding subtype field in the proposed values table?

wa_proposed_values-infty = '0006'.    
wa_proposed_values-fname = 'P0006-SUBTY'.    
wa_proposed_values-fval = '1'.    
append wa_proposed_values to proposed_values.

Hope it works.

Regards,

Mangesh

2 REPLIES 2
Read only

mangesh_parihar
Explorer
875

Hi,

Have you tried adding subtype field in the proposed values table?

wa_proposed_values-infty = '0006'.    
wa_proposed_values-fname = 'P0006-SUBTY'.    
wa_proposed_values-fval = '1'.    
append wa_proposed_values to proposed_values.

Hope it works.

Regards,

Mangesh

Read only

0 Likes
874

Thanks Mangesh! It works, I have used the subtype value and the seqnr field of the structure for multiple values.