sapdev logo background
sapdev logo sapdev logo
Comments

SAP Personal absence calendar (NCALE) using transaction PC00_M08_CLPC




 

The personal absence data can be access manually be executing transaction 'PC00_M08_CLPC'.

 

This data can also be retrieved from within an ABAP program using the function module 'HR_FR_READ_NCALE':

 

TYPES : BEGIN OF pfra0_pcale,
������������ annee(4) TYPE c.
��������� INCLUDE STRUCTURE pcint.
TYPES : END OF pfra0_pcale.

DATA: it_ncale TYPESTANDARD TABLE OF pcnat INITIAL SIZE 0,
������� it_pcale TYPESTANDARD TABLE OF pfra0_pcale INITIAL SIZE 0.
 

gd_begda+4(4) = '0101'.

gd_endda+4(4) = '1231'.

CALL FUNCTION 'HR_FR_READ_NCALE'
       EXPORTING
            empnr                         = pernr-pernr
            datbeg                        = gd_begda
            datend                        = gd_endda
       TABLES
            i_ncale                       = it_ncale
            i_pcale                       = it_pcale
       EXCEPTIONS
            missing_personnel_number   = 1
            version_cluster_incomp         = 2
            OTHERS                   = 3.

 

 

Values returned within table 'IT_NCALE' will look similar to the following:




comments powered by Disqus