Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RH_INSERT_INFTY

Former Member
0 Likes
981

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.

5 REPLIES 5
Read only

Former Member
0 Likes
786

anybody can help on me ?

Read only

Former Member
0 Likes
786

can not u try for BDC for transaction PP01?

Read only

0 Likes
786

I works but doesn't seems to be the optimal option...

But thanks for try...

Read only

Former Member
0 Likes
786

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^

Read only

Former Member
0 Likes
786

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.