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

IT Update

Former Member
0 Likes
535

Hi

Iam looking to update 1001 infotype and i found FM RH_UPD_INFTY.

I dont know the reason why its not updating table HRP1001..

Can anyone help me on this??

Main thing is i need to update PO10 tcode and i figured out its updating HRP1001 table at backend.

Thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
491

Hi,

Use the Fm

CALL FUNCTION 'RH_PNNNN_MAINTAIN'
    EXPORTING
      act_fcode             = p_fcode
      act_plvar             = p_plvar
      act_otype             = p_otype
      act_objid             = p_objid
      act_infty             = p_infty
      act_subty             = p_subty
      act_pnnnn             = p_pnnnn
      act_gdate             = sy-datum
      suppress_dialog       = '2'
      act_vtask             = 'D'
      act_commit_flg        = l_commit_flg
      clear_buffer_plog_tab = ''
    IMPORTING
      act_mess_info         = l_hrrhad_msg
    EXCEPTIONS
      infty_not_valid       = 1
      no_plvar              = 2
      object_not_defined    = 3
      otype_not_valid       = 4
      no_authority          = 5
      action_rejected       = 6
      no_gdate              = 7
      fcode_not_supported   = 8
      OTHERS                = 9.
CALL FUNCTION 'RH_UPDATE_DATABASE'
    EXPORTING
      vtask      = 'D'
      buffer_upd = space
    EXCEPTIONS
      corr_exit  = 1
      OTHERS     = 2.

Read only

0 Likes
491

Hi Avinash,

I tried this,but throwing error.

What should i pass in PNNN?

can you suggest anythign else?

Thanks

Read only

0 Likes
491

Hi,

This will Definately help you to move further

http://sap.ittoolbox.com/groups/technical-functional/sap-hr/function-modules-to-update-om-outside-ba...

It talks about Function Moule RH_RELATION_MAINTAIN and program RHINTE00.

By the way you can also check code for RHINTE00 to unerstand how it works.

Pls let me know how it goes.

Regards

Shital