SAP CUCQ_GET_CONFIGURATION_PARAMS Function Module for NOTRANSL: Ermittlung der Konfigurationsparameter zu einem konfigurierbaren









CUCQ_GET_CONFIGURATION_PARAMS is a standard cucq get configuration params 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: Ermittlung der Konfigurationsparameter zu einem konfigurierbaren 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 cucq get configuration params FM, simply by entering the name CUCQ_GET_CONFIGURATION_PARAMS into the relevant SAP transaction such as SE37 or SE38.

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



Function CUCQ_GET_CONFIGURATION_PARAMS 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 'CUCQ_GET_CONFIGURATION_PARAMS'"NOTRANSL: Ermittlung der Konfigurationsparameter zu einem konfigurierbaren
EXPORTING
* CLASS_NUMBER = '0000000000' "Internal class number
* BUFFER_USAGE = 'X' "Buffer can be used
* BUFFER_REFRESH = ' ' "Reset buffer
* FUNCTION_CODE_BACK = 'BACK' "Function code F3
* FUNCTION_CODE_CANCEL = 'CANC' "Function code F12
* NO_MANUAL_SELECTION = ' ' "Manual selection not allowed
* INSTANCE_P = "
* ROOT_INSTANCE_P = "
* PARENT_INSTANCE_P = "
* I_WA_CUCO_ROOT = "
* ONLY_ORDER_BOM = "
* PROFILE_COUNTER = "Profile counter
* OWNER_ID = "
* IV_POSEX = "
* CLASS_TYPE = "Class type
* DATE = SY-DATUM "Date
* HEADER_PROGRAM = "Program name screen module
* HEADER_SCREEN = '0000' "Screen number screen module
OBJECT = "Object (e.g. material number, condition type)
* OBJECTID = 'MARA' "Object table (e.g. MARA )
* STATUS_FREE_REQUIRED = 'X' "Only released configuration parameters

IMPORTING
TCUCO = "Configuration parameter to the object
FUNCTION_CODE = "Function code for exit

TABLES
* TAB_CUCO = "Table of CUCO records (only if no manual sel.)

EXCEPTIONS
NOT_FOUND = 1 FALSE = 2 NO_AUTHORITY = 3
.




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_SAPLCUCQ_001 Additional Logic for Selection of Configuration Profiles in FG CUCQ

IMPORTING Parameters details for CUCQ_GET_CONFIGURATION_PARAMS

CLASS_NUMBER - Internal class number

Data type: CUCO-CLINT
Default: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUFFER_USAGE - Buffer can be used

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUFFER_REFRESH - Reset buffer

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

FUNCTION_CODE_BACK - Function code F3

Data type: SY-UCOMM
Default: 'BACK'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FUNCTION_CODE_CANCEL - Function code F12

Data type: SY-UCOMM
Default: 'CANC'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_MANUAL_SELECTION - Manual selection not allowed

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

INSTANCE_P -

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

ROOT_INSTANCE_P -

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

PARENT_INSTANCE_P -

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

I_WA_CUCO_ROOT -

Data type: CUCO
Optional: Yes
Call by Reference: Yes

ONLY_ORDER_BOM -

Data type: CUCO-STLKD
Optional: Yes
Call by Reference: Yes

PROFILE_COUNTER - Profile counter

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

OWNER_ID -

Data type: INOB-OBTAB
Optional: Yes
Call by Reference: Yes

IV_POSEX -

Data type: VBAP-POSEX
Optional: Yes
Call by Reference: Yes

CLASS_TYPE - Class type

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

DATE - Date

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

HEADER_PROGRAM - Program name screen module

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

HEADER_SCREEN - Screen number screen module

Data type: SY-DYNNR
Default: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT - Object (e.g. material number, condition type)

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

OBJECTID - Object table (e.g. MARA )

Data type: CUCO-OBTAB
Default: 'MARA'
Optional: Yes
Call by Reference: No ( called with pass by value option)

STATUS_FREE_REQUIRED - Only released configuration parameters

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CUCQ_GET_CONFIGURATION_PARAMS

TCUCO - Configuration parameter to the object

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

FUNCTION_CODE - Function code for exit

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

TABLES Parameters details for CUCQ_GET_CONFIGURATION_PARAMS

TAB_CUCO - Table of CUCO records (only if no manual sel.)

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

EXCEPTIONS details

NOT_FOUND - No active configuration parameters found

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

FALSE -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CUCQ_GET_CONFIGURATION_PARAMS 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_tcuco  TYPE CUCO, "   
lt_tab_cuco  TYPE STANDARD TABLE OF CUCO, "   
lv_not_found  TYPE CUCO, "   
lv_class_number  TYPE CUCO-CLINT, "   '0000000000'
lv_buffer_usage  TYPE C, "   'X'
lv_buffer_refresh  TYPE C, "   SPACE
lv_function_code_back  TYPE SY-UCOMM, "   'BACK'
lv_function_code_cancel  TYPE SY-UCOMM, "   'CANC'
lv_no_manual_selection  TYPE C, "   SPACE
lv_instance_p  TYPE INOB-CUOBJ, "   
lv_root_instance_p  TYPE DDB_C02-INSTANCE, "   
lv_parent_instance_p  TYPE DDB_C02-INSTANCE, "   
lv_i_wa_cuco_root  TYPE CUCO, "   
lv_only_order_bom  TYPE CUCO-STLKD, "   
lv_false  TYPE CUCO, "   
lv_function_code  TYPE SY-UCOMM, "   
lv_profile_counter  TYPE CUCO-ZAEHL, "   
lv_owner_id  TYPE INOB-OBTAB, "   
lv_iv_posex  TYPE VBAP-POSEX, "   
lv_class_type  TYPE CUCO-KLART, "   
lv_no_authority  TYPE CUCO, "   
lv_date  TYPE RCUCO-DATUM, "   SY-DATUM
lv_header_program  TYPE SY-REPID, "   
lv_header_screen  TYPE SY-DYNNR, "   '0000'
lv_object  TYPE CUCO-OBJEK, "   
lv_objectid  TYPE CUCO-OBTAB, "   'MARA'
lv_status_free_required  TYPE C. "   'X'

  CALL FUNCTION 'CUCQ_GET_CONFIGURATION_PARAMS'  "NOTRANSL: Ermittlung der Konfigurationsparameter zu einem konfigurierbaren
    EXPORTING
         CLASS_NUMBER = lv_class_number
         BUFFER_USAGE = lv_buffer_usage
         BUFFER_REFRESH = lv_buffer_refresh
         FUNCTION_CODE_BACK = lv_function_code_back
         FUNCTION_CODE_CANCEL = lv_function_code_cancel
         NO_MANUAL_SELECTION = lv_no_manual_selection
         INSTANCE_P = lv_instance_p
         ROOT_INSTANCE_P = lv_root_instance_p
         PARENT_INSTANCE_P = lv_parent_instance_p
         I_WA_CUCO_ROOT = lv_i_wa_cuco_root
         ONLY_ORDER_BOM = lv_only_order_bom
         PROFILE_COUNTER = lv_profile_counter
         OWNER_ID = lv_owner_id
         IV_POSEX = lv_iv_posex
         CLASS_TYPE = lv_class_type
         DATE = lv_date
         HEADER_PROGRAM = lv_header_program
         HEADER_SCREEN = lv_header_screen
         OBJECT = lv_object
         OBJECTID = lv_objectid
         STATUS_FREE_REQUIRED = lv_status_free_required
    IMPORTING
         TCUCO = lv_tcuco
         FUNCTION_CODE = lv_function_code
    TABLES
         TAB_CUCO = lt_tab_cuco
    EXCEPTIONS
        NOT_FOUND = 1
        FALSE = 2
        NO_AUTHORITY = 3
. " CUCQ_GET_CONFIGURATION_PARAMS




ABAP code using 7.40 inline data declarations to call FM CUCQ_GET_CONFIGURATION_PARAMS

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 CLINT FROM CUCO INTO @DATA(ld_class_number).
DATA(ld_class_number) = '0000000000'.
 
DATA(ld_buffer_usage) = 'X'.
 
DATA(ld_buffer_refresh) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_function_code_back).
DATA(ld_function_code_back) = 'BACK'.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_function_code_cancel).
DATA(ld_function_code_cancel) = 'CANC'.
 
DATA(ld_no_manual_selection) = ' '.
 
"SELECT single CUOBJ FROM INOB INTO @DATA(ld_instance_p).
 
"SELECT single INSTANCE FROM DDB_C02 INTO @DATA(ld_root_instance_p).
 
"SELECT single INSTANCE FROM DDB_C02 INTO @DATA(ld_parent_instance_p).
 
 
"SELECT single STLKD FROM CUCO INTO @DATA(ld_only_order_bom).
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_function_code).
 
"SELECT single ZAEHL FROM CUCO INTO @DATA(ld_profile_counter).
 
"SELECT single OBTAB FROM INOB INTO @DATA(ld_owner_id).
 
"SELECT single POSEX FROM VBAP INTO @DATA(ld_iv_posex).
 
"SELECT single KLART FROM CUCO INTO @DATA(ld_class_type).
 
 
"SELECT single DATUM FROM RCUCO INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 
"SELECT single REPID FROM SY INTO @DATA(ld_header_program).
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_header_screen).
DATA(ld_header_screen) = '0000'.
 
"SELECT single OBJEK FROM CUCO INTO @DATA(ld_object).
 
"SELECT single OBTAB FROM CUCO INTO @DATA(ld_objectid).
DATA(ld_objectid) = 'MARA'.
 
DATA(ld_status_free_required) = 'X'.
 


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!