SAP CATT_START_PROCESS Function Module for Start Process









CATT_START_PROCESS is a standard catt start process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start Process 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 catt start process FM, simply by entering the name CATT_START_PROCESS into the relevant SAP transaction such as SE37 or SE38.

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



Function CATT_START_PROCESS 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 'CATT_START_PROCESS'"Start Process
EXPORTING
I_ENVIRON = "CATT Test Data Memory, Environment Data for Test Procedure
* I_ID_ITEM_FROM = "Output Length
* I_ID_ITEM_TO = "Output Length
* I_MODE = 'E' "CATT mode
* I_PROT = 'M' "Log
* I_START_MODE = 'N' "
I_PROCESS = "
I_ID_ITEM = "Level Number
* I_OBJECTS = "Objects
* I_VARIANTE = "Process variants
* I_RFC = "Logical Destination (Specified when Calling Function)
* I_USER = "Logon Name of User
* I_CYCLE_FROM = "CATT Test Data Memory, Cycle Number
* I_CYCLE_TO = "CATT Test Data Memory, Cycle Number

EXCEPTIONS
ERR_INVALID_RFC_DEST = 1 ERR_INCONSISTENT_PROCESS_DATA = 2 ERR_CATT_NOT_FOUND = 3 ERR_CYCLE = 4 ERR_OBJECT_MOVE = 5 ERR_ENOUGH_OBJECTS_AVAILABLE = 6
.



IMPORTING Parameters details for CATT_START_PROCESS

I_ENVIRON - CATT Test Data Memory, Environment Data for Test Procedure

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

I_ID_ITEM_FROM - Output Length

Data type: TITEMS-ID_ITEM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ID_ITEM_TO - Output Length

Data type: TITEMS-ID_ITEM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MODE - CATT mode

Data type: TCHAINS-CUST
Default: 'E'
Optional: No
Call by Reference: No ( called with pass by value option)

I_PROT - Log

Data type: TCHAINS-CUST
Default: 'M'
Optional: No
Call by Reference: No ( called with pass by value option)

I_START_MODE -

Data type: TCHAINS-CUST
Default: 'N'
Optional: No
Call by Reference: No ( called with pass by value option)

I_PROCESS -

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

I_ID_ITEM - Level Number

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

I_OBJECTS - Objects

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

I_VARIANTE - Process variants

Data type: CATDO-VARIANTE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RFC - Logical Destination (Specified when Calling Function)

Data type: CATK-RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USER - Logon Name of User

Data type: TPROCESSES-CATTUSER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CYCLE_FROM - CATT Test Data Memory, Cycle Number

Data type: CATDO-CYCLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CYCLE_TO - CATT Test Data Memory, Cycle Number

Data type: CATDO-CYCLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERR_INVALID_RFC_DEST -

Data type:
Optional: No
Call by Reference: Yes

ERR_INCONSISTENT_PROCESS_DATA -

Data type:
Optional: No
Call by Reference: Yes

ERR_CATT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

ERR_CYCLE -

Data type:
Optional: No
Call by Reference: Yes

ERR_OBJECT_MOVE -

Data type:
Optional: No
Call by Reference: Yes

ERR_ENOUGH_OBJECTS_AVAILABLE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CATT_START_PROCESS 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_i_environ  TYPE CATDO-ENVIRON, "   
lv_err_invalid_rfc_dest  TYPE CATDO, "   
lv_i_id_item_from  TYPE TITEMS-ID_ITEM, "   
lv_i_id_item_to  TYPE TITEMS-ID_ITEM, "   
lv_i_mode  TYPE TCHAINS-CUST, "   'E'
lv_i_prot  TYPE TCHAINS-CUST, "   'M'
lv_i_start_mode  TYPE TCHAINS-CUST, "   'N'
lv_i_process  TYPE CATDO-PROCESS, "   
lv_err_inconsistent_process_data  TYPE CATDO, "   
lv_i_id_item  TYPE TITEMS-ID_ITEM, "   
lv_err_catt_not_found  TYPE TITEMS, "   
lv_err_cycle  TYPE TITEMS, "   
lv_i_objects  TYPE SY-DBCNT, "   
lv_i_variante  TYPE CATDO-VARIANTE, "   
lv_err_object_move  TYPE CATDO, "   
lv_i_rfc  TYPE CATK-RFCDEST, "   
lv_err_enough_objects_available  TYPE CATK, "   
lv_i_user  TYPE TPROCESSES-CATTUSER, "   
lv_i_cycle_from  TYPE CATDO-CYCLE, "   
lv_i_cycle_to  TYPE CATDO-CYCLE. "   

  CALL FUNCTION 'CATT_START_PROCESS'  "Start Process
    EXPORTING
         I_ENVIRON = lv_i_environ
         I_ID_ITEM_FROM = lv_i_id_item_from
         I_ID_ITEM_TO = lv_i_id_item_to
         I_MODE = lv_i_mode
         I_PROT = lv_i_prot
         I_START_MODE = lv_i_start_mode
         I_PROCESS = lv_i_process
         I_ID_ITEM = lv_i_id_item
         I_OBJECTS = lv_i_objects
         I_VARIANTE = lv_i_variante
         I_RFC = lv_i_rfc
         I_USER = lv_i_user
         I_CYCLE_FROM = lv_i_cycle_from
         I_CYCLE_TO = lv_i_cycle_to
    EXCEPTIONS
        ERR_INVALID_RFC_DEST = 1
        ERR_INCONSISTENT_PROCESS_DATA = 2
        ERR_CATT_NOT_FOUND = 3
        ERR_CYCLE = 4
        ERR_OBJECT_MOVE = 5
        ERR_ENOUGH_OBJECTS_AVAILABLE = 6
. " CATT_START_PROCESS




ABAP code using 7.40 inline data declarations to call FM CATT_START_PROCESS

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 ENVIRON FROM CATDO INTO @DATA(ld_i_environ).
 
 
"SELECT single ID_ITEM FROM TITEMS INTO @DATA(ld_i_id_item_from).
 
"SELECT single ID_ITEM FROM TITEMS INTO @DATA(ld_i_id_item_to).
 
"SELECT single CUST FROM TCHAINS INTO @DATA(ld_i_mode).
DATA(ld_i_mode) = 'E'.
 
"SELECT single CUST FROM TCHAINS INTO @DATA(ld_i_prot).
DATA(ld_i_prot) = 'M'.
 
"SELECT single CUST FROM TCHAINS INTO @DATA(ld_i_start_mode).
DATA(ld_i_start_mode) = 'N'.
 
"SELECT single PROCESS FROM CATDO INTO @DATA(ld_i_process).
 
 
"SELECT single ID_ITEM FROM TITEMS INTO @DATA(ld_i_id_item).
 
 
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_i_objects).
 
"SELECT single VARIANTE FROM CATDO INTO @DATA(ld_i_variante).
 
 
"SELECT single RFCDEST FROM CATK INTO @DATA(ld_i_rfc).
 
 
"SELECT single CATTUSER FROM TPROCESSES INTO @DATA(ld_i_user).
 
"SELECT single CYCLE FROM CATDO INTO @DATA(ld_i_cycle_from).
 
"SELECT single CYCLE FROM CATDO INTO @DATA(ld_i_cycle_to).
 


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!