‎2007 Feb 05 7:02 AM
I'm trying to create a new infotype 1028 for one of the object of the structure.
Unfortunatly I cannot use the function module RH_INSERT_INFTY... Is there any other function modules to be used?
data : lit_1028 type standard table of hrp1028,
lwt_1028 like line of lit_1028.
lwt_1028-begda = c_begda.
lwt_1028-endda = c_endda.
lwt_1028-stras = c_stras.
lwt_1028-hausn = c_hausn.
lwt_1028-pstlz = c_pstlz.
lwt_1028-ort01 = c_ort01.
lwt_1028-land1 = c_land1.
lwt_1028-infty = '1028'.
append lwt_1028 to lit_1028.
call function 'RH_INSERT_INFTY'
exporting
* FCODE = 'INSE'
vtask = 'S'
* ORDER_FLG = 'X'
* COMMIT_FLG = 'X'
AUTHY = space
* PPPAR_IMP =
* OLD_TABNR = ' '
* REPID = ' '
* FORM = ' '
* KEEP_LUPD =
* WORKF_ACTV = 'X'
tables
innnn = lit_1028
exceptions
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
others = 6.
‎2007 Feb 05 7:30 AM
‎2007 Feb 05 7:48 AM
‎2007 Feb 05 5:33 PM
I works but doesn't seems to be the optimal option...
But thanks for try...
‎2007 Feb 05 6:02 PM
HI GOOD
go through this link,which might help you to solve your problem.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PE/PE.pdf
thanks
mrutyun^
‎2012 Jul 12 9:10 AM
Hi,
The problem is that you're using the wrong structure. You have to use the P1028 instead of HRP1028
data : lit_1028 type standard table of P1028
lwt_1028 like line of lit_1028.
Bye
N.