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

Problem in HR_MAINTAIN_MASTERDATA

Former Member
0 Likes
316

Dear Friends,

I write the customize program for uploading the hr master data for hiring process using this FM HR_MAINTAIN_MASTERDATA.But it's give's the error Invalid combination of action type ZA/action reason but when am doing the manually with only those values it working . Kindly guide me what's the problem.

Loop at it_employee into wa_employee.

refresh :lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'MASSG' TO wa_infty-fname,

wa_employee-massg TO wa_infty-fval.

append wa_infty to lt_infty.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = wa_employee-PERNR

MASSN = wa_employee-MASSN

ACTIO = 'INS'

TCLAS = 'A'

BEGDA = wa_employee-BEGDA

ENDDA = wa_employee-ENDDA

  • OBJPS =

  • SEQNR =

  • SPRPS =

  • SUBTY =

WERKS = wa_employee-WERKS

PERSG = wa_employee-PERSG

PERSK = wa_employee-PERSK

  • PLANS = wa_employee-PLANS

DIALOG_MODE = '1'

LUW_MODE = '1'

NO_EXISTENCE_CHECK = 'X '

NO_ENQUEUE = 'X'

IMPORTING

RETURN = t_return

  • RETURN1 = t_return1

  • HR_RETURN =

TABLES

proposed_values = lt_infty.

  • MODIFIED_KEYS = modified_keys.

write : / t_return.

clear:wa_employee.

Endloop.

thanks

sandeep

1 REPLY 1
Read only

Former Member
0 Likes
277

Did you populate P0000-MASSN? i can't see from ur code if wa_employee-massn is populated. try the following (those in bold is what i've added/changed):

Loop at it_employee into wa_employee.

refresh :lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0000-MASSN' TO wa_infty-fname,

'ZA' TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0000-MASSG' TO wa_infty-fname,

wa_employee-massg TO wa_infty-fval.

append wa_infty to lt_infty.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = wa_employee-PERNR

MASSN = wa_employee-MASSN

ACTIO = 'INS'

TCLAS = 'A'

BEGDA = wa_employee-BEGDA

ENDDA = wa_employee-ENDDA

  • OBJPS =

  • SEQNR =

  • SPRPS =

  • SUBTY =

WERKS = wa_employee-WERKS

PERSG = wa_employee-PERSG

PERSK = wa_employee-PERSK

  • PLANS = wa_employee-PLANS

DIALOG_MODE = '1'

LUW_MODE = '1'

NO_EXISTENCE_CHECK = 'X '

NO_ENQUEUE = 'X'

IMPORTING

RETURN = t_return

  • RETURN1 = t_return1

  • HR_RETURN =

TABLES

proposed_values = lt_infty.

  • MODIFIED_KEYS = modified_keys.

write : / t_return.

clear:wa_employee.

Endloop.