Hi ,
I am trying to create an infotype 1035(hrp1035) record using RH_INSERT_INFTY.
ls_1035-plvar = '01'.
ls_1035-objid = '50367015'.
ls_1035-istat = '1'.
ls_1035-begda = '20100710'.
ls_1035-endda = '20100712'.
ls_1035-infty = '1035'.
ls_1035-ndays = '3'.
ls_1035-nhours = '22.5'.
append ls_1035 to lt_1035.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
FCODE = 'INSE'
vtask = 'V'
COMMIT_FLG = 'X'
AUTHY = space
PPPAR_IMP = ls_pppar
REPID = 'MP103500'
FORM = '%TAB_DB' ( value passed when 1035 insert happens thru pp01)
TABLES
innnn = lt_1035
ILFCODE = ILFCODE
EXCEPTIONS
NO_AUTHORIZATION = 1
ERROR_DURING_INSERT = 2
REPID_FORM_INITIAL = 3
CORR_EXIT = 4
BEGDA_GREATER_ENDDA = 5
OTHERS = 6 .
when I call the above FM programmatically , sy-subrc = 2. On debugging I found that the code expects REPID and FORM to be passed .
Any idea how to use this FM / or any other method ,to create an infotype 1035 record in R/3?
Thanks