‎2006 Aug 22 1:55 PM
Hi Guys,
I am having problem copying Infotype 8. all i am trying to achive is to create a new wage types in the table control. how i am calling the function is as follows.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = wa_data-pernr
actio = 'COP'
tclas = 'A'
begda = sy-datum "wa_data-begda
endda = '99991231'
dialog_mode = '2'
luw_mode = '1'
IMPORTING
return1 = lt_return
TABLES
proposed_values = lt_values.
In Debug, lt_values[] tab has following Values.
INFTY FNAME FVAL
0008 |P0008-PERNR <00900266 <
0008 |P0008-BEGDA <20060822 <
0008 |P0008-ENDDA <99991231 <
0008 |P0008-TRFAR <01 <
0008 |P0008-TRFGB <01 <
0008 |P0008-TRFGR < <
0008 |P0008-TRFST < <
0008 |Q0008-ANSAL < <
0008 |P0008-ANCUR <CAD <
0008 |Q0008-LGART(01) <1003 <
0008 |Q0008-BETRG(01) < 3125.0000 <
0008 |Q0008-LGART(02) <9999 <
0008 |Q0008-BETRG(02) < 1000.0000 <
0008 |Q0008-LGART(03) <9998 <
0008 |Q0008-BETRG(03) < 76000.0000 <
<b>What am i missing ??</b> Help will be greatly appriciated.
Thanks
A.
‎2006 Aug 22 2:06 PM
Hi
Kindly check after commenting the following lines of the function call:
actio = 'COP'
tclas = 'A'
dialog_mode = '2'
luw_mode = '1'
Regards,
Thangesh
‎2006 Aug 22 2:12 PM
OK.. What i was doing wrong was.. Field names were wrong.. instead of
0008 |Q0008-ANSAL < <
0008 |P0008-ANCUR <CAD <
0008 |Q0008-LGART(01) <1003 <
0008 |Q0008-BETRG(01) < 3125.0000 <
0008 |Q0008-LGART(02) <9999 <
0008 |Q0008-BETRG(02) < 1000.0000 <
0008 |Q0008-LGART(03) <9998 <
0008 |Q0008-BETRG(03) < 76000.0000 <
i should have been using
0008 |P0008-ANSAL < <
0008 |P0008-ANCUR <CAD <
0008 |P0008-LGA01 <1003 <
0008 |P0008-BET01 < 3125.0000 <
0008 |P0008-LGA02 <9999 <
0008 |P0008-BET02 < 1000.0000 <
0008 |P0008-LGA03 <9998 <
0008 |P0008-BET03 < 76000.0000 <
Thanks a lot.
A.
‎2011 Oct 06 5:56 PM
Hi, I ve the same issue with this FM, and even if I use P0008-LGA01, it does'nt update my infotype.
can you help please
KR,
Karim