SAP CRIF_CA_WRITE_CATSDB Function Module for NOTRANSL: Schreiben der Daten auf die Catsdb
CRIF_CA_WRITE_CATSDB is a standard crif ca write catsdb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Schreiben der Daten auf die Catsdb 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 crif ca write catsdb FM, simply by entering the name CRIF_CA_WRITE_CATSDB into the relevant SAP transaction such as SE37 or SE38.
Function Group: CAWAO_CATS
Program Name: SAPLCAWAO_CATS
Main Program: SAPLCAWAO_CATS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CRIF_CA_WRITE_CATSDB 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 'CRIF_CA_WRITE_CATSDB'"NOTRANSL: Schreiben der Daten auf die Catsdb.
EXPORTING
PROFILE = "Data Entry Profile
* NOTE = "
* ENTRYFIELDS = "CATS Worklist for Internet Service
EMPLOYEENO = "Personnel Number
HOURS = "R/2 Table
WORKDATE = "Date
* AWART = "Attendance or Absence type
* LSTAR = "Activity Type
* WAP_DATA = "Account Assignment Elements for CATS WAP Scenario
WEBAPP_DEBUG_ID = "Semantic abbreviation
TABLES
W_MSG = "Return Parameter(s)
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCAWAO_CATS_001 Textual Layout of Worklist
IMPORTING Parameters details for CRIF_CA_WRITE_CATSDB
PROFILE - Data Entry Profile
Data type: TCATS-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
NOTE -
Data type: CATS_EXT-LTXA1Optional: Yes
Call by Reference: No ( called with pass by value option)
ENTRYFIELDS - CATS Worklist for Internet Service
Data type: CAWAO_S_WORKLIST-KEYLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYEENO - Personnel Number
Data type: CATS_EXT-PERNROptional: No
Call by Reference: No ( called with pass by value option)
HOURS - R/2 Table
Data type: CAWAO_S_FIELDS-CATSHOURSOptional: No
Call by Reference: No ( called with pass by value option)
WORKDATE - Date
Data type: CAWAO_S_FIELDS-WORKDATEOptional: No
Call by Reference: No ( called with pass by value option)
AWART - Attendance or Absence type
Data type: CATS_EXT-AWARTOptional: Yes
Call by Reference: No ( called with pass by value option)
LSTAR - Activity Type
Data type: CATS_EXT-LSTAROptional: Yes
Call by Reference: No ( called with pass by value option)
WAP_DATA - Account Assignment Elements for CATS WAP Scenario
Data type: CAWAO_S_WAPDATAOptional: Yes
Call by Reference: No ( called with pass by value option)
WEBAPP_DEBUG_ID - Semantic abbreviation
Data type: T77S0-SEMIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CRIF_CA_WRITE_CATSDB
W_MSG - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CRIF_CA_WRITE_CATSDB 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: | ||||
| lt_w_msg | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_profile | TYPE TCATS-VARIANT, " | |||
| lv_note | TYPE CATS_EXT-LTXA1, " | |||
| lv_entryfields | TYPE CAWAO_S_WORKLIST-KEYLINE, " | |||
| lv_employeeno | TYPE CATS_EXT-PERNR, " | |||
| lv_hours | TYPE CAWAO_S_FIELDS-CATSHOURS, " | |||
| lv_workdate | TYPE CAWAO_S_FIELDS-WORKDATE, " | |||
| lv_awart | TYPE CATS_EXT-AWART, " | |||
| lv_lstar | TYPE CATS_EXT-LSTAR, " | |||
| lv_wap_data | TYPE CAWAO_S_WAPDATA, " | |||
| lv_webapp_debug_id | TYPE T77S0-SEMID. " |
|   CALL FUNCTION 'CRIF_CA_WRITE_CATSDB' "NOTRANSL: Schreiben der Daten auf die Catsdb |
| EXPORTING | ||
| PROFILE | = lv_profile | |
| NOTE | = lv_note | |
| ENTRYFIELDS | = lv_entryfields | |
| EMPLOYEENO | = lv_employeeno | |
| HOURS | = lv_hours | |
| WORKDATE | = lv_workdate | |
| AWART | = lv_awart | |
| LSTAR | = lv_lstar | |
| WAP_DATA | = lv_wap_data | |
| WEBAPP_DEBUG_ID | = lv_webapp_debug_id | |
| TABLES | ||
| W_MSG | = lt_w_msg | |
| . " CRIF_CA_WRITE_CATSDB | ||
ABAP code using 7.40 inline data declarations to call FM CRIF_CA_WRITE_CATSDB
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 VARIANT FROM TCATS INTO @DATA(ld_profile). | ||||
| "SELECT single LTXA1 FROM CATS_EXT INTO @DATA(ld_note). | ||||
| "SELECT single KEYLINE FROM CAWAO_S_WORKLIST INTO @DATA(ld_entryfields). | ||||
| "SELECT single PERNR FROM CATS_EXT INTO @DATA(ld_employeeno). | ||||
| "SELECT single CATSHOURS FROM CAWAO_S_FIELDS INTO @DATA(ld_hours). | ||||
| "SELECT single WORKDATE FROM CAWAO_S_FIELDS INTO @DATA(ld_workdate). | ||||
| "SELECT single AWART FROM CATS_EXT INTO @DATA(ld_awart). | ||||
| "SELECT single LSTAR FROM CATS_EXT INTO @DATA(ld_lstar). | ||||
| "SELECT single SEMID FROM T77S0 INTO @DATA(ld_webapp_debug_id). | ||||
Search for further information about these or an SAP related objects