SAP CY01_FLOW_CONTROL_CREATE_TABLE Function Module for NOTRANSL: Creates a new control table for the flow control









CY01_FLOW_CONTROL_CREATE_TABLE is a standard cy01 flow control create table 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: Creates a new control table for the flow control 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 cy01 flow control create table FM, simply by entering the name CY01_FLOW_CONTROL_CREATE_TABLE into the relevant SAP transaction such as SE37 or SE38.

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



Function CY01_FLOW_CONTROL_CREATE_TABLE 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 'CY01_FLOW_CONTROL_CREATE_TABLE'"NOTRANSL: Creates a new control table for the flow control
EXPORTING
* CONT_ID_IMP = ' ' "ID of a Flow Control
CONT_TEXT = "Text describing a flow control
* RANGE_HIGH = ' ' "ID of a Flow Control
* RANGE_LOW = ' ' "ID of a Flow Control
* STATUS_IMP = 'S' "Type of flow control

IMPORTING
CONT_ID_EXP = "ID of a Flow Control

TABLES
TCY40_IMP = "Control tables for flow control

EXCEPTIONS
ID_ALREADY_EXISTS = 1 NO_ID_WITHIN_RANGE = 2
.



IMPORTING Parameters details for CY01_FLOW_CONTROL_CREATE_TABLE

CONT_ID_IMP - ID of a Flow Control

Data type: TCY40K-CONT_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONT_TEXT - Text describing a flow control

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

RANGE_HIGH - ID of a Flow Control

Data type: TCY40K-CONT_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RANGE_LOW - ID of a Flow Control

Data type: TCY40K-CONT_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STATUS_IMP - Type of flow control

Data type: TCY40K-STATUS
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CY01_FLOW_CONTROL_CREATE_TABLE

CONT_ID_EXP - ID of a Flow Control

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

TABLES Parameters details for CY01_FLOW_CONTROL_CREATE_TABLE

TCY40_IMP - Control tables for flow control

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

EXCEPTIONS details

ID_ALREADY_EXISTS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_ID_WITHIN_RANGE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for CY01_FLOW_CONTROL_CREATE_TABLE 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_tcy40_imp  TYPE STANDARD TABLE OF TCY40, "   
lv_cont_id_exp  TYPE TCY40K-CONT_ID, "   
lv_cont_id_imp  TYPE TCY40K-CONT_ID, "   SPACE
lv_id_already_exists  TYPE TCY40K, "   
lv_cont_text  TYPE TCY40T-CONT_TEXT, "   
lv_no_id_within_range  TYPE TCY40T, "   
lv_range_high  TYPE TCY40K-CONT_ID, "   SPACE
lv_range_low  TYPE TCY40K-CONT_ID, "   SPACE
lv_status_imp  TYPE TCY40K-STATUS. "   'S'

  CALL FUNCTION 'CY01_FLOW_CONTROL_CREATE_TABLE'  "NOTRANSL: Creates a new control table for the flow control
    EXPORTING
         CONT_ID_IMP = lv_cont_id_imp
         CONT_TEXT = lv_cont_text
         RANGE_HIGH = lv_range_high
         RANGE_LOW = lv_range_low
         STATUS_IMP = lv_status_imp
    IMPORTING
         CONT_ID_EXP = lv_cont_id_exp
    TABLES
         TCY40_IMP = lt_tcy40_imp
    EXCEPTIONS
        ID_ALREADY_EXISTS = 1
        NO_ID_WITHIN_RANGE = 2
. " CY01_FLOW_CONTROL_CREATE_TABLE




ABAP code using 7.40 inline data declarations to call FM CY01_FLOW_CONTROL_CREATE_TABLE

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 CONT_ID FROM TCY40K INTO @DATA(ld_cont_id_exp).
 
"SELECT single CONT_ID FROM TCY40K INTO @DATA(ld_cont_id_imp).
DATA(ld_cont_id_imp) = ' '.
 
 
"SELECT single CONT_TEXT FROM TCY40T INTO @DATA(ld_cont_text).
 
 
"SELECT single CONT_ID FROM TCY40K INTO @DATA(ld_range_high).
DATA(ld_range_high) = ' '.
 
"SELECT single CONT_ID FROM TCY40K INTO @DATA(ld_range_low).
DATA(ld_range_low) = ' '.
 
"SELECT single STATUS FROM TCY40K INTO @DATA(ld_status_imp).
DATA(ld_status_imp) = 'S'.
 


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!