Delete info type

Example of how to delete an info type

  DATA:
    l_return LIKE bapireturn1.
    wa_p2010 type p2010.



      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = wa_p2010-pernr
        IMPORTING
          return = l_return.


      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '2010'
          number        = wa_p2010-pernr
          subtype       = wa_p2010-subty
          validityend   = wa_p2010-endda
          validitybegin = wa_p2010-begda
          recordnumber  = wa_p2010-seqnr
          record        = wa_p2010
          operation     = 'DEL'
          nocommit      = ''
        IMPORTING
          return        = l_return.


      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = wa_p2010-pernr
        IMPORTING
         return = l_return.
Converted from CHM to HTML with chm2web Standard 2.7 (unicode)