SAP CM_EXTRACT_DNR_SAVE Function Module for









CM_EXTRACT_DNR_SAVE is a standard cm extract dnr save 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 dnr save FM, simply by entering the name CM_EXTRACT_DNR_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCM_EXTRACT_LEVEL2
Program Name: SAPLSCM_EXTRACT_LEVEL2
Main Program: SAPLSCM_EXTRACT_LEVEL2
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CM_EXTRACT_DNR_SAVE 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_DNR_SAVE'"
EXPORTING
I_REPORT = "
I_OBJ_KEYFIELD = "
I_VARIANT = "
* I_USER = ' ' "
I_STRUCNAME = "
* I_CUT_OFF = ' ' "
I_CLICK_FIELD = "
I_LINK_FIELD = "
I_OBJNAME = "
I_OBJTYPE = "

TABLES
IT_TABLE = "
.



IMPORTING Parameters details for CM_EXTRACT_DNR_SAVE

I_REPORT -

Data type: CMDISEXTR-REPORT
Optional: No
Call by Reference: No ( called with pass by value option)

I_OBJ_KEYFIELD -

Data type: CMEXTRDUM-CLCKFLD
Optional: No
Call by Reference: Yes

I_VARIANT -

Data type: CMDISEXTR-VRNT
Optional: No
Call by Reference: No ( called with pass by value option)

I_USER -

Data type: CMDISEXTR-USERNAME
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_STRUCNAME -

Data type: CMEXTRDUM-TABNAME
Optional: No
Call by Reference: Yes

I_CUT_OFF -

Data type: CMEXTRDUM-CUT_OFF
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CLICK_FIELD -

Data type: CMEXTRDUM-CLCKFLD
Optional: No
Call by Reference: Yes

I_LINK_FIELD -

Data type: CMEXTRDUM-LINKFLD
Optional: No
Call by Reference: Yes

I_OBJNAME -

Data type: SPRTL0-OBJECT
Optional: No
Call by Reference: Yes

I_OBJTYPE -

Data type: SPRTL0-OBJECTNAME
Optional: No
Call by Reference: Yes

TABLES Parameters details for CM_EXTRACT_DNR_SAVE

IT_TABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CM_EXTRACT_DNR_SAVE 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:
lt_it_table  TYPE STANDARD TABLE OF STRING, "   
lv_i_report  TYPE CMDISEXTR-REPORT, "   
lv_i_obj_keyfield  TYPE CMEXTRDUM-CLCKFLD, "   
lv_i_variant  TYPE CMDISEXTR-VRNT, "   
lv_i_user  TYPE CMDISEXTR-USERNAME, "   SPACE
lv_i_strucname  TYPE CMEXTRDUM-TABNAME, "   
lv_i_cut_off  TYPE CMEXTRDUM-CUT_OFF, "   SPACE
lv_i_click_field  TYPE CMEXTRDUM-CLCKFLD, "   
lv_i_link_field  TYPE CMEXTRDUM-LINKFLD, "   
lv_i_objname  TYPE SPRTL0-OBJECT, "   
lv_i_objtype  TYPE SPRTL0-OBJECTNAME. "   

  CALL FUNCTION 'CM_EXTRACT_DNR_SAVE'  "
    EXPORTING
         I_REPORT = lv_i_report
         I_OBJ_KEYFIELD = lv_i_obj_keyfield
         I_VARIANT = lv_i_variant
         I_USER = lv_i_user
         I_STRUCNAME = lv_i_strucname
         I_CUT_OFF = lv_i_cut_off
         I_CLICK_FIELD = lv_i_click_field
         I_LINK_FIELD = lv_i_link_field
         I_OBJNAME = lv_i_objname
         I_OBJTYPE = lv_i_objtype
    TABLES
         IT_TABLE = lt_it_table
. " CM_EXTRACT_DNR_SAVE




ABAP code using 7.40 inline data declarations to call FM CM_EXTRACT_DNR_SAVE

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 REPORT FROM CMDISEXTR INTO @DATA(ld_i_report).
 
"SELECT single CLCKFLD FROM CMEXTRDUM INTO @DATA(ld_i_obj_keyfield).
 
"SELECT single VRNT FROM CMDISEXTR INTO @DATA(ld_i_variant).
 
"SELECT single USERNAME FROM CMDISEXTR INTO @DATA(ld_i_user).
DATA(ld_i_user) = ' '.
 
"SELECT single TABNAME FROM CMEXTRDUM INTO @DATA(ld_i_strucname).
 
"SELECT single CUT_OFF FROM CMEXTRDUM INTO @DATA(ld_i_cut_off).
DATA(ld_i_cut_off) = ' '.
 
"SELECT single CLCKFLD FROM CMEXTRDUM INTO @DATA(ld_i_click_field).
 
"SELECT single LINKFLD FROM CMEXTRDUM INTO @DATA(ld_i_link_field).
 
"SELECT single OBJECT FROM SPRTL0 INTO @DATA(ld_i_objname).
 
"SELECT single OBJECTNAME FROM SPRTL0 INTO @DATA(ld_i_objtype).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!