SAP RM_MD_COMMODITY_READ_SEQUENCE Function Module for Interpolate Commodity Prices from Scenario Flow
RM_MD_COMMODITY_READ_SEQUENCE is a standard rm md commodity read sequence SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Interpolate Commodity Prices from Scenario Flow 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 rm md commodity read sequence FM, simply by entering the name RM_MD_COMMODITY_READ_SEQUENCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMMD
Program Name: SAPLRMMD
Main Program: SAPLRMMD
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_MD_COMMODITY_READ_SEQUENCE 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 'RM_MD_COMMODITY_READ_SEQUENCE'"Interpolate Commodity Prices from Scenario Flow.
EXPORTING
AKTDATUM = "
KONDDAT = "
COMM_ID = "Commodity ID
QUOT_TYPE = "Commodity quotation type
* WKTAGE = "
SEQUENCE = "
IMPORTING
QUOT_PRICE = "for commodity price
QUOT_CURR = "CURRENCY KEY FOR COMMODITY PRICE
QUOT_PRUN = "Price unit of quotation
QUOT_UOM = "Unit of Measure of Quotation
EXCEPTIONS
INVALID_DATES = 1 NO_RATES = 2
IMPORTING Parameters details for RM_MD_COMMODITY_READ_SEQUENCE
AKTDATUM -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
KONDDAT -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
COMM_ID - Commodity ID
Data type: TRCO_COMM_IDOptional: No
Call by Reference: No ( called with pass by value option)
QUOT_TYPE - Commodity quotation type
Data type: TCR_CTY_QUOTTYPEOptional: No
Call by Reference: No ( called with pass by value option)
WKTAGE -
Data type: ATSYC-WKTAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
SEQUENCE -
Data type: VTVSZVERL-SZVERLAUFOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RM_MD_COMMODITY_READ_SEQUENCE
QUOT_PRICE - for commodity price
Data type: TCR_CTY_PRICEQUOTOptional: No
Call by Reference: No ( called with pass by value option)
QUOT_CURR - CURRENCY KEY FOR COMMODITY PRICE
Data type: TCR_CTY_QUOTCURROptional: No
Call by Reference: No ( called with pass by value option)
QUOT_PRUN - Price unit of quotation
Data type: TCR_CTY_QUOT_PRUNOptional: No
Call by Reference: No ( called with pass by value option)
QUOT_UOM - Unit of Measure of Quotation
Data type: TCR_CTY_QUOT_UOMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_DATES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RATES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_MD_COMMODITY_READ_SEQUENCE 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_aktdatum | TYPE D, " | |||
| lv_quot_price | TYPE TCR_CTY_PRICEQUOT, " | |||
| lv_invalid_dates | TYPE TCR_CTY_PRICEQUOT, " | |||
| lv_konddat | TYPE D, " | |||
| lv_no_rates | TYPE D, " | |||
| lv_quot_curr | TYPE TCR_CTY_QUOTCURR, " | |||
| lv_comm_id | TYPE TRCO_COMM_ID, " | |||
| lv_quot_prun | TYPE TCR_CTY_QUOT_PRUN, " | |||
| lv_quot_uom | TYPE TCR_CTY_QUOT_UOM, " | |||
| lv_quot_type | TYPE TCR_CTY_QUOTTYPE, " | |||
| lv_wktage | TYPE ATSYC-WKTAGE, " | |||
| lv_sequence | TYPE VTVSZVERL-SZVERLAUF. " |
|   CALL FUNCTION 'RM_MD_COMMODITY_READ_SEQUENCE' "Interpolate Commodity Prices from Scenario Flow |
| EXPORTING | ||
| AKTDATUM | = lv_aktdatum | |
| KONDDAT | = lv_konddat | |
| COMM_ID | = lv_comm_id | |
| QUOT_TYPE | = lv_quot_type | |
| WKTAGE | = lv_wktage | |
| SEQUENCE | = lv_sequence | |
| IMPORTING | ||
| QUOT_PRICE | = lv_quot_price | |
| QUOT_CURR | = lv_quot_curr | |
| QUOT_PRUN | = lv_quot_prun | |
| QUOT_UOM | = lv_quot_uom | |
| EXCEPTIONS | ||
| INVALID_DATES = 1 | ||
| NO_RATES = 2 | ||
| . " RM_MD_COMMODITY_READ_SEQUENCE | ||
ABAP code using 7.40 inline data declarations to call FM RM_MD_COMMODITY_READ_SEQUENCE
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 WKTAGE FROM ATSYC INTO @DATA(ld_wktage). | ||||
| "SELECT single SZVERLAUF FROM VTVSZVERL INTO @DATA(ld_sequence). | ||||
Search for further information about these or an SAP related objects