SAP FMCY_GEN_COMB_COUNT_HANA Function Module for Generate the combination structure
FMCY_GEN_COMB_COUNT_HANA is a standard fmcy gen comb count hana SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate the combination structure 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 fmcy gen comb count hana FM, simply by entering the name FMCY_GEN_COMB_COUNT_HANA into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCY_BLOCK_BUILDER
Program Name: SAPLFMCY_BLOCK_BUILDER
Main Program: SAPLFMCY_BLOCK_BUILDER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCY_GEN_COMB_COUNT_HANA 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 'FMCY_GEN_COMB_COUNT_HANA'"Generate the combination structure.
EXPORTING
IM_S_COMBINATION = "Use for block builder
IM_TABLE_NAME = "Table Name
IM_FM_AREA = "Financial Management Area
IM_DIMSELTABS = "Select options for dimensions
* IM_F_CRITERIA = "Generic key part
* IM_PLDNR = "Posting Ledger Number
* IM_BLDNR = "Budget Ledger Number (Budget Category)
IM_DBCON = "Logical name for a database connection
IMPORTING
RE_NUMBER = "
IMPORTING Parameters details for FMCY_GEN_COMB_COUNT_HANA
IM_S_COMBINATION - Use for block builder
Data type: FMCY_S_COMBINATIONOptional: No
Call by Reference: Yes
IM_TABLE_NAME - Table Name
Data type: TABLE_NAMEOptional: No
Call by Reference: Yes
IM_FM_AREA - Financial Management Area
Data type: FIKRSOptional: No
Call by Reference: Yes
IM_DIMSELTABS - Select options for dimensions
Data type: FMBS_S_DIMSELTABSOptional: No
Call by Reference: Yes
IM_F_CRITERIA - Generic key part
Data type: BUKU_S_GENKEYPARTOptional: Yes
Call by Reference: Yes
IM_PLDNR - Posting Ledger Number
Data type: BUBAS_PLDNROptional: Yes
Call by Reference: Yes
IM_BLDNR - Budget Ledger Number (Budget Category)
Data type: BUBAS_BLDNROptional: Yes
Call by Reference: Yes
IM_DBCON - Logical name for a database connection
Data type: DBCON_NAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FMCY_GEN_COMB_COUNT_HANA
RE_NUMBER -
Data type: IOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMCY_GEN_COMB_COUNT_HANA 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_re_number | TYPE I, " | |||
| lv_im_s_combination | TYPE FMCY_S_COMBINATION, " | |||
| lv_im_table_name | TYPE TABLE_NAME, " | |||
| lv_im_fm_area | TYPE FIKRS, " | |||
| lv_im_dimseltabs | TYPE FMBS_S_DIMSELTABS, " | |||
| lv_im_f_criteria | TYPE BUKU_S_GENKEYPART, " | |||
| lv_im_pldnr | TYPE BUBAS_PLDNR, " | |||
| lv_im_bldnr | TYPE BUBAS_BLDNR, " | |||
| lv_im_dbcon | TYPE DBCON_NAME. " |
|   CALL FUNCTION 'FMCY_GEN_COMB_COUNT_HANA' "Generate the combination structure |
| EXPORTING | ||
| IM_S_COMBINATION | = lv_im_s_combination | |
| IM_TABLE_NAME | = lv_im_table_name | |
| IM_FM_AREA | = lv_im_fm_area | |
| IM_DIMSELTABS | = lv_im_dimseltabs | |
| IM_F_CRITERIA | = lv_im_f_criteria | |
| IM_PLDNR | = lv_im_pldnr | |
| IM_BLDNR | = lv_im_bldnr | |
| IM_DBCON | = lv_im_dbcon | |
| IMPORTING | ||
| RE_NUMBER | = lv_re_number | |
| . " FMCY_GEN_COMB_COUNT_HANA | ||
ABAP code using 7.40 inline data declarations to call FM FMCY_GEN_COMB_COUNT_HANA
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.Search for further information about these or an SAP related objects