Thursday, November 8, 2018

ABAP FM HCM CREATE ABSENSE

Hello again fellas, heres my documentation using FM CREATE ABSENSE
 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
34
35
36
37
38
39
  DATA :
      employeenumber  TYPE  bapip2001-pernr       ,
      validitybegin   TYPE  bapip2001-begda       ,
      validityend     TYPE  bapip2001-endda       ,
      start           TYPE  bapip2001-beguz       ,
      end             TYPE  bapip2001-enduz       ,
      absencetype     TYPE  bapip2001-awart       ,
      absencehours    TYPE  bapip2001-stdaz       ,
      nocommit        TYPE  bapi_stand-no_commit  ,
      return          TYPE  bapireturn1           ,
      status_lv       TYPE  p0001-zorg,
*      EMPLOYEENUMBER  type  BAPIP2001-PERNR       ,
      subtype         TYPE  bapip2001-subty       ,
      objectid        TYPE  bapip2001-objps       ,
      lockindicator   TYPE  bapip2001-sprps       ,
*      VALIDITYBEGIN   type  BAPIP2001-BEGDA       ,
*      VALIDITYEND     type  BAPIP2001-ENDDA       ,
      recordnumber    TYPE  bapip2001-seqnr       .


  CALL FUNCTION 'BAPI_ABSENCE_CREATE'
      EXPORTING
        employeenumber = employeenumber
        validitybegin  = validitybegin
        validityend    = validityend
        start          = start
        end            = end
        absencetype    = absencetype
        absencehours   = absencehours
        nocommit       = nocommit
      IMPORTING
        return         = return
        employeenumber = employeenumber
        subtype        = subtype
        objectid       = objectid
        lockindicator  = lockindicator
        validitybegin  = validitybegin
        validityend    = validityend
        recordnumber   = recordnumber.

No comments:

Post a Comment