Skip to Content
0
Former Member
Apr 20, 2007 at 02:41 PM

Purpose of HR_INFOTYPE_GETDETAIL

148 Views

Hi All,

Can anyone throw some light on the actual purpose of the FM HR_INFOTYPE_GETDETAIL in the context of delimiting records?

I have seen some codes where the flow goes like this:

select infotype record from pa14 (or some infotype) to work area

lock employee

  • Use the FM HR_INFOTYPE_OPERATION*

The FM returns(imports) a 'key' (say, l_pa_key) which is of the form of the structure BAPIPAKEY

This is used to delimit/insert/modify the record.

unlock employee

Check if l_pa_key is initial

If yes, call FM HR_INFOTYPE_GETDETAIL

   CALL FUNCTION 'HR_INFOTYPE_GETDETAIL'
      EXPORTING
        infty         = '0014'
        subtype       = p_lgart
        number        = l_pa_key-employeeno
        validitybegin = l_pa_key-validbegin
        validityend   = l_pa_key-validend
      IMPORTING
        return        = lw_bapireturn.

    IF NOT lw_bapireturn IS INITIAL.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

What useful purpose (regarding delimiting the record) is the FM doing?