2007 Dec 14 3:40 PM
I'm trying to update an Infotype of an object PD through this FM, but I couldn't do it! Could anybody help me with the parameters???
I want to update, for example, infotypes 1050 & 1018... could anybody show me a piece of code??
Thanks!!!!
Miguel angel.
2007 Dec 14 4:02 PM
2007 Dec 14 4:02 PM
2007 Dec 14 4:17 PM
Hi all again!
Finally, I could to update infotype 1050 ... but what about infotype 1018?? It's possible to update via RH_INSERT_INFTY???
Thanks!
2007 Dec 14 4:27 PM
2007 Dec 14 4:31 PM
but it doesn't work fine... cause infotype 1018 are composed by two info tables: HRP1018 & HRT1018... so... could you show me how could I do it?? I show you the code that I used for infotype 1050 and it doesn't works fine for infotype 1018:
DATA: l_p1050 TYPE STANDARD TABLE OF p1050,
lwt_1050 LIKE LINE OF l_p1050.
lwt_1050-otype = '0S'.
lwt_1050-objid = '50043841'.
lwt_1050-begda = '20071214'.
lwt_1050-endda = '99991231'.
lwt_1050-infty = '1050'.
lwt_1050-istat = '1'.
lwt_1050-plvar = '01'.
lwt_1050-evpts = '12345'.
lwt_1050-evgrd = '3'.
APPEND lwt_1050 TO l_p1050.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'S'
TABLES
innnn = l_p1050
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
IF sy-subrc = 0.
CALL FUNCTION 'RH_UPDATE_DATABASE'
EXPORTING
vtask = 'S'
EXCEPTIONS
corr_exit = 1
OTHERS = 2.
ENDIF.
2007 Dec 14 4:48 PM
Never worked with this Table control Infotype. I thought there would be some standard BAPI.
Try this
HR_COSTDISTRIBUTION_SCREEN_PUT
there are more functions in FG
RHCD
A