Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HR_INFOTYPE_OPERATION Insert

Hi,

I am using HR_INFOTYPE_OPERATION in 'IN_UPDATE' of BADI. Even after passing right parameters, it is not creating a record in infotype 2006. The return parameter return no error.

Please let me know.

            CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
                    EXPORTING
                      number = wa_2006-pernr
                    IMPORTING
                      return = l_bapireturn.

                  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                    EXPORTING
                      infty                  = '2006'
                      number                 = ipspar-pernr
                      subtype                = i2006-subty
                      objectid               = i2006-objps
*                   LOCKINDICATOR          =
                      validityend            = i2006-endda
                      validitybegin          = i2006-begda
*                  RECORDNUMBER           =
                      record                 = i2006
                      operation              = 'INS'
                  TCLAS                  = 'A'
*                  DIALOG_MODE            = '0'
*                  NOCOMMIT               =
*                  VIEW_IDENTIFIER        =
*                  SECONDARY_RECORD       =
                IMPORTING
                  return                 = wt_return
                  key                    = wl_key.


                  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
                    EXPORTING
                      number = ipspar-pernr
                    IMPORTING
                      return = l_bapireturn.

Former Member
Not what you were looking for? View more on this topic or Ask a question