SAP BAPI_CATIMESHEETMGR_INSERT Function Module for CATS: Insert data records
BAPI_CATIMESHEETMGR_INSERT is a standard bapi catimesheetmgr insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CATS: Insert data records 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 bapi catimesheetmgr insert FM, simply by entering the name BAPI_CATIMESHEETMGR_INSERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: BAPICATS
Program Name: SAPLBAPICATS
Main Program: SAPLBAPICATS
Appliation area:
Release date: 23-Mar-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_CATIMESHEETMGR_INSERT 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 'BAPI_CATIMESHEETMGR_INSERT'"CATS: Insert data records.
EXPORTING
* PROFILE = "Data Entry Profile
* TESTRUN = "Test Run
* RELEASE_DATA = "Release Data
* AGENT = "Workflow Recipient
* TEXT_FORMAT_IMP = 'ITF' "Text Format for Import of Long Texts
TABLES
CATSRECORDS_IN = "Data Import
* EXTENSIONIN = "Customer Enhancement Import
* CATSRECORDS_OUT = "Data Export
* EXTENSIONOUT = "Customer Enhancement Export
* WORKFLOW_TEXT = "Workflow Text
RETURN = "Confirmations
* LONGTEXT = "Long Text Format
* SA_EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* SA_EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
IMPORTING Parameters details for BAPI_CATIMESHEETMGR_INSERT
PROFILE - Data Entry Profile
Data type: BAPICATS6-PROFILEOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Test Run
Data type: BAPICATS6-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
RELEASE_DATA - Release Data
Data type: BAPICATS6-RELEASE_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
AGENT - Workflow Recipient
Data type: SWHACTOROptional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_FORMAT_IMP - Text Format for Import of Long Texts
Data type: BAPICATS6-TEXT_FORMAT_IMPDefault: 'ITF'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_CATIMESHEETMGR_INSERT
CATSRECORDS_IN - Data Import
Data type: BAPICATS1Optional: No
Call by Reference: No ( called with pass by value option)
EXTENSIONIN - Customer Enhancement Import
Data type: BAPICATS7Optional: Yes
Call by Reference: No ( called with pass by value option)
CATSRECORDS_OUT - Data Export
Data type: BAPICATS2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSIONOUT - Customer Enhancement Export
Data type: BAPICATS7Optional: Yes
Call by Reference: No ( called with pass by value option)
WORKFLOW_TEXT - Workflow Text
Data type: SOLISTI1Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Confirmations
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
LONGTEXT - Long Text Format
Data type: BAPICATS8Optional: Yes
Call by Reference: Yes
SA_EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPICATS7Optional: Yes
Call by Reference: Yes
SA_EXTENSION_OUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPICATS7Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_CATIMESHEETMGR_INSERT 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_profile | TYPE BAPICATS6-PROFILE, " | |||
| lt_catsrecords_in | TYPE STANDARD TABLE OF BAPICATS1, " | |||
| lv_testrun | TYPE BAPICATS6-TESTRUN, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPICATS7, " | |||
| lv_release_data | TYPE BAPICATS6-RELEASE_DATA, " | |||
| lt_catsrecords_out | TYPE STANDARD TABLE OF BAPICATS2, " | |||
| lv_agent | TYPE SWHACTOR, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPICATS7, " | |||
| lt_workflow_text | TYPE STANDARD TABLE OF SOLISTI1, " | |||
| lv_text_format_imp | TYPE BAPICATS6-TEXT_FORMAT_IMP, " 'ITF' | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_longtext | TYPE STANDARD TABLE OF BAPICATS8, " | |||
| lt_sa_extension_in | TYPE STANDARD TABLE OF BAPICATS7, " | |||
| lt_sa_extension_out | TYPE STANDARD TABLE OF BAPICATS7. " |
|   CALL FUNCTION 'BAPI_CATIMESHEETMGR_INSERT' "CATS: Insert data records |
| EXPORTING | ||
| PROFILE | = lv_profile | |
| TESTRUN | = lv_testrun | |
| RELEASE_DATA | = lv_release_data | |
| AGENT | = lv_agent | |
| TEXT_FORMAT_IMP | = lv_text_format_imp | |
| TABLES | ||
| CATSRECORDS_IN | = lt_catsrecords_in | |
| EXTENSIONIN | = lt_extensionin | |
| CATSRECORDS_OUT | = lt_catsrecords_out | |
| EXTENSIONOUT | = lt_extensionout | |
| WORKFLOW_TEXT | = lt_workflow_text | |
| RETURN | = lt_return | |
| LONGTEXT | = lt_longtext | |
| SA_EXTENSION_IN | = lt_sa_extension_in | |
| SA_EXTENSION_OUT | = lt_sa_extension_out | |
| . " BAPI_CATIMESHEETMGR_INSERT | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_CATIMESHEETMGR_INSERT
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 PROFILE FROM BAPICATS6 INTO @DATA(ld_profile). | ||||
| "SELECT single TESTRUN FROM BAPICATS6 INTO @DATA(ld_testrun). | ||||
| "SELECT single RELEASE_DATA FROM BAPICATS6 INTO @DATA(ld_release_data). | ||||
| "SELECT single TEXT_FORMAT_IMP FROM BAPICATS6 INTO @DATA(ld_text_format_imp). | ||||
| DATA(ld_text_format_imp) | = 'ITF'. | |||
Search for further information about these or an SAP related objects