cancel
Showing results for 
Search instead for 
Did you mean: 

BAPIs to Update Infotypes

Former Member
0 Kudos

Hi All,

Are there any BAPIs Which can update more than one infotype?

I mean the same bapi should update different infotypes depending on input(will be passed) infotype. Is it feasible to do this?

Is there any way that BAPIs can be used to update infotypes individually?

Thanks in Advance

Lakshmi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Lakshmi,

1. First of all there is no standard single bapi

to which we can pass the data

and it will update.

2. Moreover, if there is, it will update

only one at a time.

3. there is on FM

HR_INFOTYPE_OPERATION.

Regards,

Amit M.

Former Member
0 Kudos

Hi Amit,

We knew about that FM

Anyway, Thank you for the information

Lakshmi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please try the BAPIs

HR_EFI_UPDATE_INFOTYPES

HR_FBN_UPDATE_NI_INFOTYPE

HRPY_AU_UPD_PYSUM_INFOTYPE

HRPY_AU_UPD_PYSUM_INFOTYPE_00

HRBR_UPDATE_INFOTYPE_2001

HR_ZFA_INFOTYPE_UPDATE

HR_SPA_INFOTYPE_UPDATE

HR_SPA_UPDATE_INFOTYPES

HR_SPA_EE_INFOTYPE_UPDATE

HR_TMW_DB_UPDATE_INFOTYPE

Hope it helps...

Lokesh

Pls. reward appropriate points

Former Member
0 Kudos

Try with HR_INFOTYPE_OPERATION.

It will return the values after updation.

CALL FUNCTION 'ENQUEUE_EPPRELE'

EXPORTING

pernr = l_wa_p0015-pernr

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

IF sy-subrc = 0.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = c_0015

NUMBER = l_wa_p0015-pernr

SUBTYPE = l_wa_p0015-subty

  • OBJECTID =

  • LOCKINDICATOR =

VALIDITYEND = l_wa_p0015-begda

VALIDITYBEGIN = l_wa_p0015-endda

  • RECORDNUMBER =

RECORD = l_wa_p0015

OPERATION = c_ins1

TCLAS = c_a

DIALOG_MODE = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = l_i_return .

  • KEY =

.

  • To dequeue the selected employee

CALL FUNCTION 'DEQUEUE_EPPRELE'

EXPORTING

pernr = l_wa_p0015-pernr.

IF l_i_return IS NOT INITIAL.

l_wa_errorlog-msgtyp = l_i_return-type.

l_wa_errorlog-msgid = l_i_return-id.

l_wa_errorlog-msgnr = l_i_return-number.

l_wa_errorlog-msgv1 = l_i_return-message(100).

l_wa_errorlog-msgv2 = l_i_return-message+100(100).

l_wa_errorlog-msgv3 = l_i_return-message+200(20).

l_wa_errorlog-msgv4 = l_i_return-message_v4.

APPEND l_wa_errorlog TO l_i_errormsg.

CLEAR l_wa_errorlog.

ELSE.

l_wa_errorlog-msgtyp = c_s.

l_wa_errorlog-msgid = c_pg.

l_wa_errorlog-msgnr = c_102.

l_wa_errorlog-msgv1 = text-014.

APPEND l_wa_errorlog TO l_i_errormsg.

CLEAR l_wa_errorlog.

ENDIF.

ELSE.

l_wa_errorlog-msgtyp = c_e.

l_wa_errorlog-msgid = c_pg.

l_wa_errorlog-msgnr = c_184.

l_wa_errorlog-msgv1 = text-015.

APPEND l_wa_errorlog TO l_i_errormsg.

CLEAR l_wa_errorlog.

ENDIF.