Skip to Content
0
Former Member
Jun 02, 2009 at 10:08 AM

Error In Uploading the data( HR_MAINTAIN_MASTERDATA)

85 Views

Dear Friends,

I am trying to upload the HR master data in infotype with this FM(HR_MAINTAIN_MASTERDATA).But it's give the error when it's moving to the IT0001 infotype it's gives the error Please enter a valid combination of personnel area and subarea.But when am doing the same thing in pa30 it's save successfully.Kindly guide me am mentioning my code also .

Loop at it_employee into wa_employee.

refresh :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.

Move:wa_employee-infty TO wa_infty-infty,

'P0000-MASSN' TO wa_infty-fname,

wa_employee-MASSN TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0001-BTRTL' TO wa_infty-fname,

wa_employee-BTRTL TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0001-KOSTL' TO wa_infty-fname,

wa_employee-KOSTL TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0001-GSBER' TO wa_infty-fname,

wa_employee-GSBER TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0001-ABKRS' TO wa_infty-fname,

wa_employee-ABKRS TO wa_infty-fval.

append wa_infty to lt_infty.

Move:wa_employee-infty TO wa_infty-infty,

'P0001-PLANS' TO wa_infty-fname,

wa_employee-PLANS 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

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