SAP CATS_MY_GET_TIME_DATA Function Module for NOTRANSL: Abgleich der Zeitangaben
CATS_MY_GET_TIME_DATA is a standard cats my get time data 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: Abgleich der Zeitangaben 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 cats my get time data FM, simply by entering the name CATS_MY_GET_TIME_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CATS_MY
Program Name: SAPLCATS_MY
Main Program: SAPLCATS_MY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CATS_MY_GET_TIME_DATA 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 'CATS_MY_GET_TIME_DATA'"NOTRANSL: Abgleich der Zeitangaben.
EXPORTING
IM_PROFILE = "Data Entry Profile
IM_LONGTEXTS = "CATS: Internal Table with LONGTEXT_EXT Structure
* IM_COMMIT_AND_DEQUEUE = "
IM_PERNR = "Personnel Number
IM_FROMDATE = "
* IM_TODATE = '99991231' "
IM_REFDATE = "
IM_REFTIME = "
* IM_LANGUAGE = "Language According to ISO 639
* IM_TEXT_FORMAT = 'ITF' "Text Format for Import of Long Texts
IM_CATSRECORDS = "CATS Data Format for Importing from an Offline Application
IMPORTING
EX_PROCESSEDRECORDS = "CATS Data Format of Offline Data Processed in SAP R/3
EX_MESSAGES = "Table of Messages in BAPIRET2 Format
EX_OTHERCATSRECORDS = "CATS Data Format for Exporting to Offline Application
EX_OTHERLONGTEXTS = "CATS: Internal Table with LONGTEXT_EXT Structure
EX_REFDATE = "
EX_REFTIME = "
EX_LOWEST_DATE = "
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_SAPLCATS_MY_003 Supplement Offline Time Data
EXIT_SAPLCATS_MY_004 Influence Messages from Synchronization
IMPORTING Parameters details for CATS_MY_GET_TIME_DATA
IM_PROFILE - Data Entry Profile
Data type: CATSVARIANOptional: No
Call by Reference: No ( called with pass by value option)
IM_LONGTEXTS - CATS: Internal Table with LONGTEXT_EXT Structure
Data type: LONGTEXT_EXT_TABOptional: No
Call by Reference: Yes
IM_COMMIT_AND_DEQUEUE -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_PERNR - Personnel Number
Data type: PERNR_DOptional: No
Call by Reference: No ( called with pass by value option)
IM_FROMDATE -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
IM_TODATE -
Data type: DDefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_REFDATE -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
IM_REFTIME -
Data type: TOptional: No
Call by Reference: No ( called with pass by value option)
IM_LANGUAGE - Language According to ISO 639
Data type: LAISOOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_TEXT_FORMAT - Text Format for Import of Long Texts
Data type: CATS_TEXT_FORMAT_IMPORTDefault: 'ITF'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_CATSRECORDS - CATS Data Format for Importing from an Offline Application
Data type: CATS_OFFLINE_IMPORT_TABOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CATS_MY_GET_TIME_DATA
EX_PROCESSEDRECORDS - CATS Data Format of Offline Data Processed in SAP R/3
Data type: CATS_OFFLINE_PROCESSED_TABOptional: No
Call by Reference: Yes
EX_MESSAGES - Table of Messages in BAPIRET2 Format
Data type: CATS_MESSAGES_TABOptional: No
Call by Reference: Yes
EX_OTHERCATSRECORDS - CATS Data Format for Exporting to Offline Application
Data type: CATS_OFFLINE_EXPORT_TABOptional: No
Call by Reference: Yes
EX_OTHERLONGTEXTS - CATS: Internal Table with LONGTEXT_EXT Structure
Data type: LONGTEXT_EXT_TABOptional: No
Call by Reference: Yes
EX_REFDATE -
Data type: DOptional: No
Call by Reference: Yes
EX_REFTIME -
Data type: TOptional: No
Call by Reference: Yes
EX_LOWEST_DATE -
Data type: DOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CATS_MY_GET_TIME_DATA 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_im_profile | TYPE CATSVARIAN, " | |||
| lv_ex_processedrecords | TYPE CATS_OFFLINE_PROCESSED_TAB, " | |||
| lv_im_longtexts | TYPE LONGTEXT_EXT_TAB, " | |||
| lv_im_commit_and_dequeue | TYPE XFELD, " | |||
| lv_im_pernr | TYPE PERNR_D, " | |||
| lv_ex_messages | TYPE CATS_MESSAGES_TAB, " | |||
| lv_im_fromdate | TYPE D, " | |||
| lv_ex_othercatsrecords | TYPE CATS_OFFLINE_EXPORT_TAB, " | |||
| lv_im_todate | TYPE D, " '99991231' | |||
| lv_ex_otherlongtexts | TYPE LONGTEXT_EXT_TAB, " | |||
| lv_ex_refdate | TYPE D, " | |||
| lv_im_refdate | TYPE D, " | |||
| lv_ex_reftime | TYPE T, " | |||
| lv_im_reftime | TYPE T, " | |||
| lv_im_language | TYPE LAISO, " | |||
| lv_ex_lowest_date | TYPE D, " | |||
| lv_im_text_format | TYPE CATS_TEXT_FORMAT_IMPORT, " 'ITF' | |||
| lv_im_catsrecords | TYPE CATS_OFFLINE_IMPORT_TAB. " |
|   CALL FUNCTION 'CATS_MY_GET_TIME_DATA' "NOTRANSL: Abgleich der Zeitangaben |
| EXPORTING | ||
| IM_PROFILE | = lv_im_profile | |
| IM_LONGTEXTS | = lv_im_longtexts | |
| IM_COMMIT_AND_DEQUEUE | = lv_im_commit_and_dequeue | |
| IM_PERNR | = lv_im_pernr | |
| IM_FROMDATE | = lv_im_fromdate | |
| IM_TODATE | = lv_im_todate | |
| IM_REFDATE | = lv_im_refdate | |
| IM_REFTIME | = lv_im_reftime | |
| IM_LANGUAGE | = lv_im_language | |
| IM_TEXT_FORMAT | = lv_im_text_format | |
| IM_CATSRECORDS | = lv_im_catsrecords | |
| IMPORTING | ||
| EX_PROCESSEDRECORDS | = lv_ex_processedrecords | |
| EX_MESSAGES | = lv_ex_messages | |
| EX_OTHERCATSRECORDS | = lv_ex_othercatsrecords | |
| EX_OTHERLONGTEXTS | = lv_ex_otherlongtexts | |
| EX_REFDATE | = lv_ex_refdate | |
| EX_REFTIME | = lv_ex_reftime | |
| EX_LOWEST_DATE | = lv_ex_lowest_date | |
| . " CATS_MY_GET_TIME_DATA | ||
ABAP code using 7.40 inline data declarations to call FM CATS_MY_GET_TIME_DATA
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.| DATA(ld_im_todate) | = '99991231'. | |||
| DATA(ld_im_text_format) | = 'ITF'. | |||
Search for further information about these or an SAP related objects