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 & Objects Types

Former Member
0 Likes
939

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.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
817

Hi,

Check for demo program RSWD_DEMO_CREATE_ENVIRONMENT

a®

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
818

Hi,

Check for demo program RSWD_DEMO_CREATE_ENVIRONMENT

a®

Read only

0 Likes
817

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!

Read only

0 Likes
817

Yess you can.

Amandeep

Read only

0 Likes
817

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.

Read only

0 Likes
817

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