SAP EXIT_SAPLCATP_001 Function Module for Determine Target Hours









EXIT_SAPLCATP_001 is a standard exit saplcatp 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Target Hours processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for exit saplcatp 001 FM, simply by entering the name EXIT_SAPLCATP_001 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XCATP
Program Name: SAPLXCATP
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLCATP_001 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'EXIT_SAPLCATP_001'"Determine Target Hours
EXPORTING
SAP_PERNR = "
SAP_BEGDA = "
SAP_ENDDA = "
SAP_TIMETYPE = "
SAP_SUBHRTIMES = "
SAP_ADDOVERTIME = "

IMPORTING
SAP_TARGET_HOURS = "

EXCEPTIONS
NO_TARGETHOURS_DETERMINED = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
CATS_CALL_TRANSACTION_CAT4
CATS_CHECK_ATT_ABS_AUTHORITY
CATS_CHECK_AUTHORITY
CATS_CHECK_AWART
CATS_CHECK_AWART_HOURS
CATS_CHECK_EMPLOYEE_ACTIVE
CATS_CHECK_PERNR_LIST
CATS_CHECK_PROFILE_AUTHORITY
CATS_CHECK_SINGLE_PERNR
CATS_COMPUTE_HOURS
CATS_DELETE_HR_INTERFACE
CATS_FILL_ICLVA
CATS_GET_ALP_CURRENCY
CATS_GET_BASIC_INFOTYPES
CATS_GET_EMPLOYEE_NAME
CATS_GET_INFOTYPE_0001
CATS_GET_INFOTYPE_0315
CATS_GET_PAY_SCALE_TYPE_AREA
CATS_GET_PERNR_LIST_0001
CATS_GET_TARGET_HOURS
CATS_HR_ABSENCE_ATTEND_TEXT
CATS_HR_ADD_WAGE_TYPE
CATS_HR_CHECK_001
CATS_HR_CHECK_ALP
CATS_HR_CHECK_INFOTYPE_BOOKED
CATS_HR_DETERMINE_INFTY
CATS_HR_DISPLAY_DOCUMENT
CATS_HR_GLOBAL_CHECK
CATS_HR_LGART_TEXT
CATS_HR_READ_POSITION_TEXT
CATS_HR_READ_PREMIUM_TEXT
CATS_PERNR_LIST_KOSTL
CATS_PERNR_LIST_SACHZ
CATS_READ_HR_INTERFACE_NUMBER
CATS_READ_P2001_P2002
CATS_REFRESH_INFOTYPE_BUFFER
CATS_SAVE_CATSHR
HR_CHECK_COLLISION
HR_CHECK_QUOTA
HR_DETERMINE_TIMES

IMPORTING Parameters details for EXIT_SAPLCATP_001

SAP_PERNR -

Data type: P0001-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_BEGDA -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_ENDDA -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_TIMETYPE -

Data type: T555A-ZTART
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_SUBHRTIMES -

Data type: RPTXXXXX-KR_FELD7
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_ADDOVERTIME -

Data type: RPTXXXXX-KR_FELD7
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EXIT_SAPLCATP_001

SAP_TARGET_HOURS -

Data type: CATS_HOURS_PER_DAY_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_TARGETHOURS_DETERMINED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLCATP_001 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_sap_pernr  TYPE P0001-PERNR, "   
lv_sap_target_hours  TYPE CATS_HOURS_PER_DAY_TAB, "   
lv_no_targethours_determined  TYPE CATS_HOURS_PER_DAY_TAB, "   
lv_sap_begda  TYPE SY-DATUM, "   
lv_sap_endda  TYPE SY-DATUM, "   
lv_sap_timetype  TYPE T555A-ZTART, "   
lv_sap_subhrtimes  TYPE RPTXXXXX-KR_FELD7, "   
lv_sap_addovertime  TYPE RPTXXXXX-KR_FELD7. "   

  CALL FUNCTION 'EXIT_SAPLCATP_001'  "Determine Target Hours
    EXPORTING
         SAP_PERNR = lv_sap_pernr
         SAP_BEGDA = lv_sap_begda
         SAP_ENDDA = lv_sap_endda
         SAP_TIMETYPE = lv_sap_timetype
         SAP_SUBHRTIMES = lv_sap_subhrtimes
         SAP_ADDOVERTIME = lv_sap_addovertime
    IMPORTING
         SAP_TARGET_HOURS = lv_sap_target_hours
    EXCEPTIONS
        NO_TARGETHOURS_DETERMINED = 1
. " EXIT_SAPLCATP_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCATP_001

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single PERNR FROM P0001 INTO @DATA(ld_sap_pernr).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_sap_begda).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_sap_endda).
 
"SELECT single ZTART FROM T555A INTO @DATA(ld_sap_timetype).
 
"SELECT single KR_FELD7 FROM RPTXXXXX INTO @DATA(ld_sap_subhrtimes).
 
"SELECT single KR_FELD7 FROM RPTXXXXX INTO @DATA(ld_sap_addovertime).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!