SAP /SCMB/DM_SEL_ODM_EVALUATE Function Module for Selection Evaluation from ODM









/SCMB/DM_SEL_ODM_EVALUATE is a standard /scmb/dm sel odm evaluate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection Evaluation from ODM 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 /scmb/dm sel odm evaluate FM, simply by entering the name /SCMB/DM_SEL_ODM_EVALUATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SCMB/DM_SEL_EVAL
Program Name: /SCMB/SAPLDM_SEL_EVAL
Main Program: /SCMB/SAPLDM_SEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SCMB/DM_SEL_ODM_EVALUATE 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 '/SCMB/DM_SEL_ODM_EVALUATE'"Selection Evaluation from ODM
EXPORTING
IT_SEL_PRM = "ODM: Parameters
* IV_NO_PARTNER_ASSIGN = "X Flag
* IV_MAXROWS = "
IT_ORTYPE = "ODM: Order Document Type
* IV_VRSIOID = "GUID für Planversion
* IT_SEL_RANGE_COND = "Selektion Range Bedingung Tabellen
* IS_MATLOC = "ODM: Product and Location Combination
* IT_HDRSTATE = "ODM: Header Status (Range Table)
* IT_ITMSTATE = "ODM: Item Status (Range Table)
* IT_PRMVALRNG = "ODM: Selection Using Parameter Ranges
* IT_PARTNER_GUID = "Tabellentyp zum Typ BU_PARTNER_GUID

IMPORTING
ET_LOCPROD_CUST = "Produkt-ID und Lokations-ID-Tabelle
ET_LOCPROD_SUPP = "Produkt-ID und Lokations-ID-Tabelle
ET_LOCPROD_GR = "Produkt-ID und Lokations-ID-Tabelle
ET_SOURCE_DATA = "ODM Source data table

CHANGING
* CT_RETURN = "Table with BAPI Return Information

EXCEPTIONS
DATA_NOT_FOUND = 1
.



IMPORTING Parameters details for /SCMB/DM_SEL_ODM_EVALUATE

IT_SEL_PRM - ODM: Parameters

Data type: /SCMB/ODM_PRM_STAB
Optional: No
Call by Reference: Yes

IV_NO_PARTNER_ASSIGN - X Flag

Data type: /SCMB/MDE_XFLAG
Optional: Yes
Call by Reference: Yes

IV_MAXROWS -

Data type: I
Optional: Yes
Call by Reference: Yes

IT_ORTYPE - ODM: Order Document Type

Data type: /SCMB/ODM_ORTYPE_TAB
Optional: No
Call by Reference: Yes

IV_VRSIOID - GUID für Planversion

Data type: /SCMB/MDL_VRSIOID
Optional: Yes
Call by Reference: Yes

IT_SEL_RANGE_COND - Selektion Range Bedingung Tabellen

Data type: /SCMB/SEL_RANGE_COND_TAB
Optional: Yes
Call by Reference: Yes

IS_MATLOC - ODM: Product and Location Combination

Data type: /SCMB/ODM_MATLOC_STR
Optional: Yes
Call by Reference: Yes

IT_HDRSTATE - ODM: Header Status (Range Table)

Data type: /SCMB/ODM_HDRSTATE_RTAB
Optional: Yes
Call by Reference: Yes

IT_ITMSTATE - ODM: Item Status (Range Table)

Data type: /SCMB/ODM_ITMSTATE_RTAB
Optional: Yes
Call by Reference: Yes

IT_PRMVALRNG - ODM: Selection Using Parameter Ranges

Data type: /SCMB/ODM_PRMVALRNG_TAB
Optional: Yes
Call by Reference: Yes

IT_PARTNER_GUID - Tabellentyp zum Typ BU_PARTNER_GUID

Data type: BU_PARTNER_GUID_T
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /SCMB/DM_SEL_ODM_EVALUATE

ET_LOCPROD_CUST - Produkt-ID und Lokations-ID-Tabelle

Data type: /SCMB/MDE_MATIDLOCID_TAB
Optional: No
Call by Reference: Yes

ET_LOCPROD_SUPP - Produkt-ID und Lokations-ID-Tabelle

Data type: /SCMB/MDE_MATIDLOCID_TAB
Optional: No
Call by Reference: Yes

ET_LOCPROD_GR - Produkt-ID und Lokations-ID-Tabelle

Data type: /SCMB/MDE_MATIDLOCID_TAB
Optional: No
Call by Reference: Yes

ET_SOURCE_DATA - ODM Source data table

Data type: /SCMB/DM_SEL_SOURCE_DATA_TAB
Optional: No
Call by Reference: Yes

CHANGING Parameters details for /SCMB/DM_SEL_ODM_EVALUATE

CT_RETURN - Table with BAPI Return Information

Data type: BAPIRETTAB
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DATA_NOT_FOUND - No data found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SCMB/DM_SEL_ODM_EVALUATE 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_ct_return  TYPE BAPIRETTAB, "   
lv_it_sel_prm  TYPE /SCMB/ODM_PRM_STAB, "   
lv_data_not_found  TYPE /SCMB/ODM_PRM_STAB, "   
lv_et_locprod_cust  TYPE /SCMB/MDE_MATIDLOCID_TAB, "   
lv_iv_no_partner_assign  TYPE /SCMB/MDE_XFLAG, "   
lv_iv_maxrows  TYPE I, "   
lv_it_ortype  TYPE /SCMB/ODM_ORTYPE_TAB, "   
lv_et_locprod_supp  TYPE /SCMB/MDE_MATIDLOCID_TAB, "   
lv_iv_vrsioid  TYPE /SCMB/MDL_VRSIOID, "   
lv_et_locprod_gr  TYPE /SCMB/MDE_MATIDLOCID_TAB, "   
lv_et_source_data  TYPE /SCMB/DM_SEL_SOURCE_DATA_TAB, "   
lv_it_sel_range_cond  TYPE /SCMB/SEL_RANGE_COND_TAB, "   
lv_is_matloc  TYPE /SCMB/ODM_MATLOC_STR, "   
lv_it_hdrstate  TYPE /SCMB/ODM_HDRSTATE_RTAB, "   
lv_it_itmstate  TYPE /SCMB/ODM_ITMSTATE_RTAB, "   
lv_it_prmvalrng  TYPE /SCMB/ODM_PRMVALRNG_TAB, "   
lv_it_partner_guid  TYPE BU_PARTNER_GUID_T. "   

  CALL FUNCTION '/SCMB/DM_SEL_ODM_EVALUATE'  "Selection Evaluation from ODM
    EXPORTING
         IT_SEL_PRM = lv_it_sel_prm
         IV_NO_PARTNER_ASSIGN = lv_iv_no_partner_assign
         IV_MAXROWS = lv_iv_maxrows
         IT_ORTYPE = lv_it_ortype
         IV_VRSIOID = lv_iv_vrsioid
         IT_SEL_RANGE_COND = lv_it_sel_range_cond
         IS_MATLOC = lv_is_matloc
         IT_HDRSTATE = lv_it_hdrstate
         IT_ITMSTATE = lv_it_itmstate
         IT_PRMVALRNG = lv_it_prmvalrng
         IT_PARTNER_GUID = lv_it_partner_guid
    IMPORTING
         ET_LOCPROD_CUST = lv_et_locprod_cust
         ET_LOCPROD_SUPP = lv_et_locprod_supp
         ET_LOCPROD_GR = lv_et_locprod_gr
         ET_SOURCE_DATA = lv_et_source_data
    CHANGING
         CT_RETURN = lv_ct_return
    EXCEPTIONS
        DATA_NOT_FOUND = 1
. " /SCMB/DM_SEL_ODM_EVALUATE




ABAP code using 7.40 inline data declarations to call FM /SCMB/DM_SEL_ODM_EVALUATE

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



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!