SAP CFG_UI_CONFIGURE Function Module for Setzen des Konfigurationsdaten
CFG_UI_CONFIGURE is a standard cfg ui configure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Setzen des Konfigurationsdaten 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 cfg ui configure FM, simply by entering the name CFG_UI_CONFIGURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CFG_UI
Program Name: SAPLCFG_UI
Main Program: SAPLCFG_UI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CFG_UI_CONFIGURE 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 'CFG_UI_CONFIGURE'"Setzen des Konfigurationsdaten.
EXPORTING
* IS_CONFIGURATION = "External Configuration Interface
* IV_IPC_SCENARIO = 'CRM' "
IV_IPC_CALLER = "
* IV_IPC_CALLER_MESSAGE = "
IV_IPC_XCM_SCENARIO = "
* IV_USE_CALLBACK = "Boolean (T=True, F=False)
* IV_DOCUMENT_CURRENCY_UNIT = "Currency Unit
* IV_LOCAL_CURRENCY_UNIT = "Currency Unit
* IV_LANGUAGE = "Language Key of Description
* IV_COUNTRY = "Country key
* IV_SALES_ORGANIZATION = "Sales Organization
* IT_CONTEXT = "Context for Calling Configuration (SCE)
* IV_DISTRIBUTION_CHANNEL = "Distribution Channel
* IV_SALES_QUANTITY_UNIT = "Sales Unit
* IV_SALES_QUANTITY_VALUE = "Sales Quantity
* IV_DEPARTURE_COUNTRY = "Country key
* IV_PRICING_DATE = "Condition Pricing Date
* IV_PRICING_PROCEDURE = "Pricing Procedure for Pricing
* IV_DISPLAY = 'F' "Boolean (T=True, F=False)
* IV_IPC_CLIENT = SY-MANDT "Client
* IV_IPC_SESSION = "
* IV_IPC_HOST = "
* IT_PROPERTIES = "Context for Calling Configuration (SCE)
* IV_IPC_INSTANCE_NO = "
* IV_IPC_PORT = "
* IV_IPC_DISPATCHER = 'F' "Boolean (T = True, F = False, Blank = Unknown)
* IV_KB_NAME = "KB Name
* IV_KB_VERSION = "KB Version
* IV_KB_PROFILE = "Profile name
* IV_KB_DATE = "Date for Determining the Relevant Knowledge Base
* IV_KB_LOGSYS = "Logical System
* IV_KB_ID = "Internal identifier of a knowledge base
* IV_KB_UINAME = "User Interface Name
IV_PRODUCT_ID = "Material Number
* IV_SALES_QUANTITY_VALUE_INT = "Sales Quantity
* IV_PRICING_RELEVANT = 'X' "Carry out pricing
* IV_PRODUCT_TYPE = "Product Type
* IV_PRODUCT_LOGSYS = "Logical System
* IV_CONFIG_ID = "Configuration Identifier
* IV_DOCUMENT_GUID = "GUID in SCE
* IV_GUID = "GUID in SCE
EXCEPTIONS
DESTINATION_NOT_FOUND = 1
IMPORTING Parameters details for CFG_UI_CONFIGURE
IS_CONFIGURATION - External Configuration Interface
Data type: COMT_CFGM_CONFIGOptional: Yes
Call by Reference: Yes
IV_IPC_SCENARIO -
Data type: STRINGDefault: 'CRM'
Optional: Yes
Call by Reference: Yes
IV_IPC_CALLER -
Data type: STRINGOptional: No
Call by Reference: Yes
IV_IPC_CALLER_MESSAGE -
Data type: STRINGOptional: Yes
Call by Reference: Yes
IV_IPC_XCM_SCENARIO -
Data type: STRINGOptional: No
Call by Reference: Yes
IV_USE_CALLBACK - Boolean (T=True, F=False)
Data type: COMT_CFGM_BOOLEANOptional: Yes
Call by Reference: Yes
IV_DOCUMENT_CURRENCY_UNIT - Currency Unit
Data type: COMT_CFGE_CURRENCY_UNITOptional: Yes
Call by Reference: Yes
IV_LOCAL_CURRENCY_UNIT - Currency Unit
Data type: COMT_CFGE_CURRENCY_UNITOptional: Yes
Call by Reference: Yes
IV_LANGUAGE - Language Key of Description
Data type: COMT_CFGE_LANGUAGEOptional: Yes
Call by Reference: Yes
IV_COUNTRY - Country key
Data type: COMT_CFGE_COUNTRYOptional: Yes
Call by Reference: Yes
IV_SALES_ORGANIZATION - Sales Organization
Data type: COMT_CFGE_SALES_ORGANISATIONOptional: Yes
Call by Reference: Yes
IT_CONTEXT - Context for Calling Configuration (SCE)
Data type: COMT_CFGM_CONTEXT_IOptional: Yes
Call by Reference: Yes
IV_DISTRIBUTION_CHANNEL - Distribution Channel
Data type: COMT_CFGE_DISTRIBUTION_CHANNELOptional: Yes
Call by Reference: Yes
IV_SALES_QUANTITY_UNIT - Sales Unit
Data type: COMT_CFGE_SALES_QUANTITY_UNITOptional: Yes
Call by Reference: Yes
IV_SALES_QUANTITY_VALUE - Sales Quantity
Data type: COMT_CFGE_SALES_QUANTITY_VALUEOptional: Yes
Call by Reference: Yes
IV_DEPARTURE_COUNTRY - Country key
Data type: COMT_CFGE_COUNTRYOptional: Yes
Call by Reference: Yes
IV_PRICING_DATE - Condition Pricing Date
Data type: COMT_CFGE_PRICING_DATEOptional: Yes
Call by Reference: Yes
IV_PRICING_PROCEDURE - Pricing Procedure for Pricing
Data type: COMT_CFGE_PRICING_PROCEDUREOptional: Yes
Call by Reference: Yes
IV_DISPLAY - Boolean (T=True, F=False)
Data type: COMT_CFGM_BOOLEANDefault: 'F'
Optional: Yes
Call by Reference: Yes
IV_IPC_CLIENT - Client
Data type: MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: Yes
IV_IPC_SESSION -
Data type: COptional: Yes
Call by Reference: Yes
IV_IPC_HOST -
Data type: COptional: Yes
Call by Reference: Yes
IT_PROPERTIES - Context for Calling Configuration (SCE)
Data type: COMT_CFGM_CONTEXT_IOptional: Yes
Call by Reference: Yes
IV_IPC_INSTANCE_NO -
Data type: COptional: Yes
Call by Reference: Yes
IV_IPC_PORT -
Data type: COptional: Yes
Call by Reference: Yes
IV_IPC_DISPATCHER - Boolean (T = True, F = False, Blank = Unknown)
Data type: COMT_CFGM_BOOLEANDefault: 'F'
Optional: Yes
Call by Reference: Yes
IV_KB_NAME - KB Name
Data type: COMT_CFGD_KBNAMEOptional: Yes
Call by Reference: Yes
IV_KB_VERSION - KB Version
Data type: COMT_CFGD_KBVERSIONOptional: Yes
Call by Reference: Yes
IV_KB_PROFILE - Profile name
Data type: COMT_CFGD_PROFNAMEOptional: Yes
Call by Reference: Yes
IV_KB_DATE - Date for Determining the Relevant Knowledge Base
Data type: COMT_CFGD_KBDATEOptional: Yes
Call by Reference: Yes
IV_KB_LOGSYS - Logical System
Data type: COMT_CFGD_KBLOGSYSOptional: Yes
Call by Reference: Yes
IV_KB_ID - Internal identifier of a knowledge base
Data type: COMT_CFGD_KBIDOptional: Yes
Call by Reference: Yes
IV_KB_UINAME - User Interface Name
Data type: COMT_CFGD_UINAMEOptional: Yes
Call by Reference: Yes
IV_PRODUCT_ID - Material Number
Data type: COMT_CFGM_PRODUCT_IDOptional: No
Call by Reference: Yes
IV_SALES_QUANTITY_VALUE_INT - Sales Quantity
Data type: COMT_CFGE_SALES_QUANTITY_VALUEOptional: Yes
Call by Reference: Yes
IV_PRICING_RELEVANT - Carry out pricing
Data type: PRSFDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_PRODUCT_TYPE - Product Type
Data type: COMT_CFGM_PRODUCT_TYPEOptional: Yes
Call by Reference: Yes
IV_PRODUCT_LOGSYS - Logical System
Data type: COMT_CFGD_KBLOGSYSOptional: Yes
Call by Reference: Yes
IV_CONFIG_ID - Configuration Identifier
Data type: COMT_CFGM_CONFIG_IDOptional: Yes
Call by Reference: Yes
IV_DOCUMENT_GUID - GUID in SCE
Data type: SYSUUID_XOptional: Yes
Call by Reference: Yes
IV_GUID - GUID in SCE
Data type: SYSUUID_XOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DESTINATION_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CFG_UI_CONFIGURE 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_is_configuration | TYPE COMT_CFGM_CONFIG, " | |||
| lv_destination_not_found | TYPE COMT_CFGM_CONFIG, " | |||
| lv_iv_ipc_scenario | TYPE STRING, " 'CRM' | |||
| lv_iv_ipc_caller | TYPE STRING, " | |||
| lv_iv_ipc_caller_message | TYPE STRING, " | |||
| lv_iv_ipc_xcm_scenario | TYPE STRING, " | |||
| lv_iv_use_callback | TYPE COMT_CFGM_BOOLEAN, " | |||
| lv_iv_document_currency_unit | TYPE COMT_CFGE_CURRENCY_UNIT, " | |||
| lv_iv_local_currency_unit | TYPE COMT_CFGE_CURRENCY_UNIT, " | |||
| lv_iv_language | TYPE COMT_CFGE_LANGUAGE, " | |||
| lv_iv_country | TYPE COMT_CFGE_COUNTRY, " | |||
| lv_iv_sales_organization | TYPE COMT_CFGE_SALES_ORGANISATION, " | |||
| lv_it_context | TYPE COMT_CFGM_CONTEXT_I, " | |||
| lv_iv_distribution_channel | TYPE COMT_CFGE_DISTRIBUTION_CHANNEL, " | |||
| lv_iv_sales_quantity_unit | TYPE COMT_CFGE_SALES_QUANTITY_UNIT, " | |||
| lv_iv_sales_quantity_value | TYPE COMT_CFGE_SALES_QUANTITY_VALUE, " | |||
| lv_iv_departure_country | TYPE COMT_CFGE_COUNTRY, " | |||
| lv_iv_pricing_date | TYPE COMT_CFGE_PRICING_DATE, " | |||
| lv_iv_pricing_procedure | TYPE COMT_CFGE_PRICING_PROCEDURE, " | |||
| lv_iv_display | TYPE COMT_CFGM_BOOLEAN, " 'F' | |||
| lv_iv_ipc_client | TYPE MANDT, " SY-MANDT | |||
| lv_iv_ipc_session | TYPE C, " | |||
| lv_iv_ipc_host | TYPE C, " | |||
| lv_it_properties | TYPE COMT_CFGM_CONTEXT_I, " | |||
| lv_iv_ipc_instance_no | TYPE C, " | |||
| lv_iv_ipc_port | TYPE C, " | |||
| lv_iv_ipc_dispatcher | TYPE COMT_CFGM_BOOLEAN, " 'F' | |||
| lv_iv_kb_name | TYPE COMT_CFGD_KBNAME, " | |||
| lv_iv_kb_version | TYPE COMT_CFGD_KBVERSION, " | |||
| lv_iv_kb_profile | TYPE COMT_CFGD_PROFNAME, " | |||
| lv_iv_kb_date | TYPE COMT_CFGD_KBDATE, " | |||
| lv_iv_kb_logsys | TYPE COMT_CFGD_KBLOGSYS, " | |||
| lv_iv_kb_id | TYPE COMT_CFGD_KBID, " | |||
| lv_iv_kb_uiname | TYPE COMT_CFGD_UINAME, " | |||
| lv_iv_product_id | TYPE COMT_CFGM_PRODUCT_ID, " | |||
| lv_iv_sales_quantity_value_int | TYPE COMT_CFGE_SALES_QUANTITY_VALUE, " | |||
| lv_iv_pricing_relevant | TYPE PRSFD, " 'X' | |||
| lv_iv_product_type | TYPE COMT_CFGM_PRODUCT_TYPE, " | |||
| lv_iv_product_logsys | TYPE COMT_CFGD_KBLOGSYS, " | |||
| lv_iv_config_id | TYPE COMT_CFGM_CONFIG_ID, " | |||
| lv_iv_document_guid | TYPE SYSUUID_X, " | |||
| lv_iv_guid | TYPE SYSUUID_X. " |
|   CALL FUNCTION 'CFG_UI_CONFIGURE' "Setzen des Konfigurationsdaten |
| EXPORTING | ||
| IS_CONFIGURATION | = lv_is_configuration | |
| IV_IPC_SCENARIO | = lv_iv_ipc_scenario | |
| IV_IPC_CALLER | = lv_iv_ipc_caller | |
| IV_IPC_CALLER_MESSAGE | = lv_iv_ipc_caller_message | |
| IV_IPC_XCM_SCENARIO | = lv_iv_ipc_xcm_scenario | |
| IV_USE_CALLBACK | = lv_iv_use_callback | |
| IV_DOCUMENT_CURRENCY_UNIT | = lv_iv_document_currency_unit | |
| IV_LOCAL_CURRENCY_UNIT | = lv_iv_local_currency_unit | |
| IV_LANGUAGE | = lv_iv_language | |
| IV_COUNTRY | = lv_iv_country | |
| IV_SALES_ORGANIZATION | = lv_iv_sales_organization | |
| IT_CONTEXT | = lv_it_context | |
| IV_DISTRIBUTION_CHANNEL | = lv_iv_distribution_channel | |
| IV_SALES_QUANTITY_UNIT | = lv_iv_sales_quantity_unit | |
| IV_SALES_QUANTITY_VALUE | = lv_iv_sales_quantity_value | |
| IV_DEPARTURE_COUNTRY | = lv_iv_departure_country | |
| IV_PRICING_DATE | = lv_iv_pricing_date | |
| IV_PRICING_PROCEDURE | = lv_iv_pricing_procedure | |
| IV_DISPLAY | = lv_iv_display | |
| IV_IPC_CLIENT | = lv_iv_ipc_client | |
| IV_IPC_SESSION | = lv_iv_ipc_session | |
| IV_IPC_HOST | = lv_iv_ipc_host | |
| IT_PROPERTIES | = lv_it_properties | |
| IV_IPC_INSTANCE_NO | = lv_iv_ipc_instance_no | |
| IV_IPC_PORT | = lv_iv_ipc_port | |
| IV_IPC_DISPATCHER | = lv_iv_ipc_dispatcher | |
| IV_KB_NAME | = lv_iv_kb_name | |
| IV_KB_VERSION | = lv_iv_kb_version | |
| IV_KB_PROFILE | = lv_iv_kb_profile | |
| IV_KB_DATE | = lv_iv_kb_date | |
| IV_KB_LOGSYS | = lv_iv_kb_logsys | |
| IV_KB_ID | = lv_iv_kb_id | |
| IV_KB_UINAME | = lv_iv_kb_uiname | |
| IV_PRODUCT_ID | = lv_iv_product_id | |
| IV_SALES_QUANTITY_VALUE_INT | = lv_iv_sales_quantity_value_int | |
| IV_PRICING_RELEVANT | = lv_iv_pricing_relevant | |
| IV_PRODUCT_TYPE | = lv_iv_product_type | |
| IV_PRODUCT_LOGSYS | = lv_iv_product_logsys | |
| IV_CONFIG_ID | = lv_iv_config_id | |
| IV_DOCUMENT_GUID | = lv_iv_document_guid | |
| IV_GUID | = lv_iv_guid | |
| EXCEPTIONS | ||
| DESTINATION_NOT_FOUND = 1 | ||
| . " CFG_UI_CONFIGURE | ||
ABAP code using 7.40 inline data declarations to call FM CFG_UI_CONFIGURE
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_iv_ipc_scenario) | = 'CRM'. | |||
| DATA(ld_iv_display) | = 'F'. | |||
| DATA(ld_iv_ipc_client) | = SY-MANDT. | |||
| DATA(ld_iv_ipc_dispatcher) | = 'F'. | |||
| DATA(ld_iv_pricing_relevant) | = 'X'. | |||
Search for further information about these or an SAP related objects