SAP /SDF/CMO_GET_ENH_OBJECTS Function Module for Get Enhanced Objects
/SDF/CMO_GET_ENH_OBJECTS is a standard /sdf/cmo get enh objects SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Enhanced Objects 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 /sdf/cmo get enh objects FM, simply by entering the name /SDF/CMO_GET_ENH_OBJECTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SDF/CMO_COMP_REPOS
Program Name: /SDF/SAPLCMO_COMP_REPOS
Main Program: /SDF/SAPLCMO_COMP_REPOS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SDF/CMO_GET_ENH_OBJECTS 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 '/SDF/CMO_GET_ENH_OBJECTS'"Get Enhanced Objects.
EXPORTING
* IV_APPEND = 'X' "Single-character flag
* IV_SCREEN_EXITS = ' ' "Single-character flag
* IV_KEYWORDS = ' ' "Single-character flag
* IV_USER_EXITS = ' ' "Single-character flag
* IV_SUBSTS = ' ' "Single-character flag
* IV_CUSTOMER_EXIT = 'X' "Single-character flag
* IV_BAPI = 'X' "Single-character flag
* IV_CLASSIC_BADI = 'X' "Single-character flag
* IV_IM_EX_ENHANCEMENT = 'X' "Single-character flag
* IV_NEW_BADI = ' ' "Single-character flag
* IV_CI_INCLUDES = ' ' "Single-character flag
* IV_FIELD_EXITS = ' ' "Single-character flag
* IV_MENU_EXIT = ' ' "Single-character flag
TABLES
* ET_ENHANCEMENTS = "CCMC Service: Enhancement
* TT_NAME' ' = "CMO Service: Short namespace info(SAP/PART/CUST)
IMPORTING Parameters details for /SDF/CMO_GET_ENH_OBJECTS
IV_APPEND - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SCREEN_EXITS - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_KEYWORDS - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_USER_EXITS - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SUBSTS - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CUSTOMER_EXIT - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_BAPI - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CLASSIC_BADI - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_IM_EX_ENHANCEMENT - Single-character flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_BADI - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CI_INCLUDES - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_FIELD_EXITS - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_MENU_EXIT - Single-character flag
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SDF/CMO_GET_ENH_OBJECTS
ET_ENHANCEMENTS - CCMC Service: Enhancement
Data type: /SDF/CMO_ENHANCEMENTOptional: Yes
Call by Reference: Yes
TT_NAMESPACE - CMO Service: Short namespace info(SAP/PART/CUST)
Data type: /SDF/CMO_NAMESPACE_SHORTOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SDF/CMO_GET_ENH_OBJECTS 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_iv_append | TYPE CHAR1, " 'X' | |||
| lt_et_enhancements | TYPE STANDARD TABLE OF /SDF/CMO_ENHANCEMENT, " | |||
| lv_iv_screen_exits | TYPE CHAR1, " ' ' | |||
| lv_iv_keywords | TYPE CHAR1, " ' ' | |||
| lv_iv_user_exits | TYPE CHAR1, " ' ' | |||
| lv_iv_substs | TYPE CHAR1, " ' ' | |||
| lt_tt_namespace | TYPE STANDARD TABLE OF /SDF/CMO_NAMESPACE_SHORT, " | |||
| lv_iv_customer_exit | TYPE CHAR1, " 'X' | |||
| lv_iv_bapi | TYPE CHAR1, " 'X' | |||
| lv_iv_classic_badi | TYPE CHAR1, " 'X' | |||
| lv_iv_im_ex_enhancement | TYPE CHAR1, " 'X' | |||
| lv_iv_new_badi | TYPE CHAR1, " ' ' | |||
| lv_iv_ci_includes | TYPE CHAR1, " ' ' | |||
| lv_iv_field_exits | TYPE CHAR1, " ' ' | |||
| lv_iv_menu_exit | TYPE CHAR1. " ' ' |
|   CALL FUNCTION '/SDF/CMO_GET_ENH_OBJECTS' "Get Enhanced Objects |
| EXPORTING | ||
| IV_APPEND | = lv_iv_append | |
| IV_SCREEN_EXITS | = lv_iv_screen_exits | |
| IV_KEYWORDS | = lv_iv_keywords | |
| IV_USER_EXITS | = lv_iv_user_exits | |
| IV_SUBSTS | = lv_iv_substs | |
| IV_CUSTOMER_EXIT | = lv_iv_customer_exit | |
| IV_BAPI | = lv_iv_bapi | |
| IV_CLASSIC_BADI | = lv_iv_classic_badi | |
| IV_IM_EX_ENHANCEMENT | = lv_iv_im_ex_enhancement | |
| IV_NEW_BADI | = lv_iv_new_badi | |
| IV_CI_INCLUDES | = lv_iv_ci_includes | |
| IV_FIELD_EXITS | = lv_iv_field_exits | |
| IV_MENU_EXIT | = lv_iv_menu_exit | |
| TABLES | ||
| ET_ENHANCEMENTS | = lt_et_enhancements | |
| TT_NAMESPACE | = lt_tt_namespace | |
| . " /SDF/CMO_GET_ENH_OBJECTS | ||
ABAP code using 7.40 inline data declarations to call FM /SDF/CMO_GET_ENH_OBJECTS
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_append) | = 'X'. | |||
| DATA(ld_iv_screen_exits) | = ' '. | |||
| DATA(ld_iv_keywords) | = ' '. | |||
| DATA(ld_iv_user_exits) | = ' '. | |||
| DATA(ld_iv_substs) | = ' '. | |||
| DATA(ld_iv_customer_exit) | = 'X'. | |||
| DATA(ld_iv_bapi) | = 'X'. | |||
| DATA(ld_iv_classic_badi) | = 'X'. | |||
| DATA(ld_iv_im_ex_enhancement) | = 'X'. | |||
| DATA(ld_iv_new_badi) | = ' '. | |||
| DATA(ld_iv_ci_includes) | = ' '. | |||
| DATA(ld_iv_field_exits) | = ' '. | |||
| DATA(ld_iv_menu_exit) | = ' '. | |||
Search for further information about these or an SAP related objects