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

About Function module

Former Member
0 Likes
353

Hi all,

I want ot update Infotype 0017 , which fm can be used for this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
334

Pavan,

Updating any info types we can use<b> 'HR_INFOTYPE_OPERATION'</b> Function Module.

See an example below.

  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
      infty         = '0015'
      number        = p_p_pernr
      subtype       = '9955'
      validityend   = '99991231'
      validitybegin = p_start_date
      record        = lit_add_payments
      operation     = 'INS'
      nocommit      = p_commit
    IMPORTING
      return        = wa_bapireturn.

Hope I could help you.

~thomas

2 REPLIES 2
Read only

Former Member
0 Likes
335

Pavan,

Updating any info types we can use<b> 'HR_INFOTYPE_OPERATION'</b> Function Module.

See an example below.

  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
      infty         = '0015'
      number        = p_p_pernr
      subtype       = '9955'
      validityend   = '99991231'
      validitybegin = p_start_date
      record        = lit_add_payments
      operation     = 'INS'
      nocommit      = p_commit
    IMPORTING
      return        = wa_bapireturn.

Hope I could help you.

~thomas

Read only

Former Member
0 Likes
334

Ya Thaxs Thomas it's working.....