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