SAP UPC_CREATE_CHA_COMBIS Function Module for Generating characteristic combinations
UPC_CREATE_CHA_COMBIS is a standard upc create cha combis SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generating characteristic combinations 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 upc create cha combis FM, simply by entering the name UPC_CREATE_CHA_COMBIS into the relevant SAP transaction such as SE37 or SE38.
Function Group: UPC_SERVICES
Program Name: SAPLUPC_SERVICES
Main Program: SAPLUPC_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UPC_CREATE_CHA_COMBIS 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 'UPC_CREATE_CHA_COMBIS'"Generating characteristic combinations.
EXPORTING
I_AREA = "Planning Area
ITO_CHA = "Characteristics
ITO_CHASEL = "Characteristic Selection
* ITO_CHA_FILTER = "Characteristics in filter combinations
* ITH_CHAS_FILTER = "Filter combinations
* I_SILENT = ' ' "Flag: X No Progress Indicator
IMPORTING
ETH_CHAS = "Combinations
ET_MESG = "Messages
EXCEPTIONS
FAILED = 1
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_SAPLUPC_SERVICES_001 Enhancement for checking characteristic value combinations
EXIT_SAPLUPC_SERVICES_002 Enhancement for characteristic derivation
IMPORTING Parameters details for UPC_CREATE_CHA_COMBIS
I_AREA - Planning Area
Data type: UPC_Y_AREAOptional: No
Call by Reference: No ( called with pass by value option)
ITO_CHA - Characteristics
Data type: UPC_YTO_CHAOptional: No
Call by Reference: Yes
ITO_CHASEL - Characteristic Selection
Data type: UPC_YTO_CHASELOptional: No
Call by Reference: Yes
ITO_CHA_FILTER - Characteristics in filter combinations
Data type: UPC_YTO_CHAOptional: Yes
Call by Reference: Yes
ITH_CHAS_FILTER - Filter combinations
Data type: HASHED TABLEOptional: Yes
Call by Reference: Yes
I_SILENT - Flag: X No Progress Indicator
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for UPC_CREATE_CHA_COMBIS
ETH_CHAS - Combinations
Data type: HASHED TABLEOptional: No
Call by Reference: Yes
ET_MESG - Messages
Data type: UPC_YT_MESGOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED - Combination generation has failed
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for UPC_CREATE_CHA_COMBIS 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_failed | TYPE STRING, " | |||
| lv_i_area | TYPE UPC_Y_AREA, " | |||
| lv_eth_chas | TYPE HASHED TABLE, " | |||
| lv_et_mesg | TYPE UPC_YT_MESG, " | |||
| lv_ito_cha | TYPE UPC_YTO_CHA, " | |||
| lv_ito_chasel | TYPE UPC_YTO_CHASEL, " | |||
| lv_ito_cha_filter | TYPE UPC_YTO_CHA, " | |||
| lv_ith_chas_filter | TYPE HASHED TABLE, " | |||
| lv_i_silent | TYPE CHAR1. " SPACE |
|   CALL FUNCTION 'UPC_CREATE_CHA_COMBIS' "Generating characteristic combinations |
| EXPORTING | ||
| I_AREA | = lv_i_area | |
| ITO_CHA | = lv_ito_cha | |
| ITO_CHASEL | = lv_ito_chasel | |
| ITO_CHA_FILTER | = lv_ito_cha_filter | |
| ITH_CHAS_FILTER | = lv_ith_chas_filter | |
| I_SILENT | = lv_i_silent | |
| IMPORTING | ||
| ETH_CHAS | = lv_eth_chas | |
| ET_MESG | = lv_et_mesg | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| . " UPC_CREATE_CHA_COMBIS | ||
ABAP code using 7.40 inline data declarations to call FM UPC_CREATE_CHA_COMBIS
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_i_silent) | = ' '. | |||
Search for further information about these or an SAP related objects