Thursday, November 8, 2018

ABAP HCM FM OPERATION

hello again fellas,
here's my documentation about FM in HCM
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Data: ls_p2002 TYPE p2002. 

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
  EXPORTING
    number = lx_ztb-pernr
  IMPORTING
    return = lv_ret01.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty            = '2002'
        number           = lx_ztb-pernr
        subtype          = lx_ztb-awart
        objectid         = ' '
        lockindicator    = ' '
        validityend      = lx_ztb-begda
        validitybegin    = lx_ztb-endda
*       RECORDNUMBER     =
        record           = ls_p2002
        operation        = 'INS'
        tclas            = 'A'
        dialog_mode      = '0'
        nocommit         = 'X'
*       VIEW_IDENTIFIER  =
*       SECONDARY_RECORD =
      IMPORTING
        return           = lv_ret01
        key              = lv_bpkey.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
  EXPORTING
    number        = lx_ztb-pernr
.

No comments:

Post a Comment