Application Development 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: 

HR Data Load with FM HR_MAINTAIN_MASTERDATA for IT 0000, 0001, 0002...

Former Member
0 Kudos
301

Hello All!

I am trying to load Infotypes 0000, 0001 and 0002. I will have to load some others too, but I am already having trouble to fill this ones that are the main Infotypes.

I´m using the parameter DIALOG_MODE = '1' so I can see the error. and I can see that some fields that I have Filled on the table

"proposed_values" are not going to the screen. In fact, just the filds of structure P0002 are going. But I have to fill some other filds like Q0002-ANREX, Q0002-FATXT and P0625-RACE.

It is possible to fill this others fields? or should I forget this FM and try BDC/ Batch Input?

This is a sample code that I am testing:


t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-NACHN'.
t_pprop-FVAL  = 'Colgate'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-VORNA'.
t_pprop-FVAL  = 'Márcio'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-GBDAT'.
t_pprop-FVAL  = '19690609'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-GBDEP'.
t_pprop-FVAL  = 'BA'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-GBORT'.
t_pprop-FVAL  = 'Feira de Santana'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-GBLND'.
t_pprop-FVAL  = 'BR'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'P0002-NATIO'.
t_pprop-FVAL  = 'BR'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'Q0002-ANREX'.
t_pprop-FVAL  = 'Sr.'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'Q0002-GESC1'.
t_pprop-FVAL  = 'X'.
APPEND t_pprop.
t_pprop-INFTY = '0002'.
t_pprop-FNAME = 'Q0002-FATXT'.
t_pprop-FVAL  = 'Solt'.
APPEND t_pprop.
t_pprop-INFTY = '0625'.
t_pprop-FNAME = 'P0625-RACE'.
t_pprop-FVAL  = '0'.
APPEND t_pprop.
v_pernr = s_0002-pernr.
   CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
     EXPORTING
       PERNR                    = v_pernr
       ACTIO                    = 'INSS'
       TCLAS                    = 'B'
        BEGDA                    = sy-datum
        DIALOG_MODE              = '1'
       NO_EXISTENCE_CHECK       = 'X'
     IMPORTING
       RETURN                   = s_return
       RETURN1                  = s_return1
      TABLES
        proposed_values          = t_pprop.
    CLEAR s_return1.
    CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
      EXPORTING
        number        = v_pernr
      IMPORTING
        RETURN        = s_return1.

Thanks in Advance.

Jonas

3 REPLIES 3

former_member434229
Active Participant
0 Kudos
123

Hi,

First try to load Infotypes 0000, 0001 and 0002 only, remove other fields from the Proposed Values internal table as that seems to be creating problem.

Once the FM execute without any error, then try to insert values for other tables.

Regards,

Nitin Gaikwad

0 Kudos
123

Hi Nitin!

Yes, I tried that, but it always returns error because some of these fields that I can´t fill are Obligatory...

Anyway, thanks for your reply!

Jonas

0 Kudos
123

Hi Jonas,

I hope you know that in the function module you need to take table structure into internal table proposed values.

BTW, any particular reason you are not able fill mandatory/Key fields?

Regards,

Nitin Gaikwad