SAP CM_EXTRACT_ADMIN_DATA Function Module for
CM_EXTRACT_ADMIN_DATA is a standard cm extract admin data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 cm extract admin data FM, simply by entering the name CM_EXTRACT_ADMIN_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCM_EXTRACT_LEVEL3
Program Name: SAPLSCM_EXTRACT_LEVEL3
Main Program: SAPLSCM_EXTRACT_LEVEL3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CM_EXTRACT_ADMIN_DATA 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 'CM_EXTRACT_ADMIN_DATA'".
EXPORTING
I_REPORT = "
I_SELVAR = "
I_USPEC = "
IMPORTING
E_DATE = "
E_TIME = "
E_LINES = "
E_ERROR_CODE = "
E_CUT_OFF = "
E_SHUFFLER = "
IMPORTING Parameters details for CM_EXTRACT_ADMIN_DATA
I_REPORT -
Data type: CMLTEX-REPORTOptional: No
Call by Reference: No ( called with pass by value option)
I_SELVAR -
Data type: CMLTEX-VRNTOptional: No
Call by Reference: No ( called with pass by value option)
I_USPEC -
Data type: CMEXTRDUM-USPECOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CM_EXTRACT_ADMIN_DATA
E_DATE -
Data type: CMEXTRDUM-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
E_TIME -
Data type: CMEXTRDUM-TIMEOptional: No
Call by Reference: No ( called with pass by value option)
E_LINES -
Data type: CMEXTRDUM-LINESOptional: No
Call by Reference: No ( called with pass by value option)
E_ERROR_CODE -
Data type: CMEXTRDUM-ERROR_CODEOptional: No
Call by Reference: No ( called with pass by value option)
E_CUT_OFF -
Data type: CMEXTRDUM-CUT_OFFOptional: No
Call by Reference: No ( called with pass by value option)
E_SHUFFLER -
Data type: CMEXTRDUM-SHUFFLEROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CM_EXTRACT_ADMIN_DATA 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_e_date | TYPE CMEXTRDUM-DATUM, " | |||
| lv_i_report | TYPE CMLTEX-REPORT, " | |||
| lv_e_time | TYPE CMEXTRDUM-TIME, " | |||
| lv_i_selvar | TYPE CMLTEX-VRNT, " | |||
| lv_e_lines | TYPE CMEXTRDUM-LINES, " | |||
| lv_i_uspec | TYPE CMEXTRDUM-USPEC, " | |||
| lv_e_error_code | TYPE CMEXTRDUM-ERROR_CODE, " | |||
| lv_e_cut_off | TYPE CMEXTRDUM-CUT_OFF, " | |||
| lv_e_shuffler | TYPE CMEXTRDUM-SHUFFLER. " |
|   CALL FUNCTION 'CM_EXTRACT_ADMIN_DATA' " |
| EXPORTING | ||
| I_REPORT | = lv_i_report | |
| I_SELVAR | = lv_i_selvar | |
| I_USPEC | = lv_i_uspec | |
| IMPORTING | ||
| E_DATE | = lv_e_date | |
| E_TIME | = lv_e_time | |
| E_LINES | = lv_e_lines | |
| E_ERROR_CODE | = lv_e_error_code | |
| E_CUT_OFF | = lv_e_cut_off | |
| E_SHUFFLER | = lv_e_shuffler | |
| . " CM_EXTRACT_ADMIN_DATA | ||
ABAP code using 7.40 inline data declarations to call FM CM_EXTRACT_ADMIN_DATA
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 DATUM FROM CMEXTRDUM INTO @DATA(ld_e_date). | ||||
| "SELECT single REPORT FROM CMLTEX INTO @DATA(ld_i_report). | ||||
| "SELECT single TIME FROM CMEXTRDUM INTO @DATA(ld_e_time). | ||||
| "SELECT single VRNT FROM CMLTEX INTO @DATA(ld_i_selvar). | ||||
| "SELECT single LINES FROM CMEXTRDUM INTO @DATA(ld_e_lines). | ||||
| "SELECT single USPEC FROM CMEXTRDUM INTO @DATA(ld_i_uspec). | ||||
| "SELECT single ERROR_CODE FROM CMEXTRDUM INTO @DATA(ld_e_error_code). | ||||
| "SELECT single CUT_OFF FROM CMEXTRDUM INTO @DATA(ld_e_cut_off). | ||||
| "SELECT single SHUFFLER FROM CMEXTRDUM INTO @DATA(ld_e_shuffler). | ||||
Search for further information about these or an SAP related objects