SAP SD_CHECK_MEASURES Function Module for









SD_CHECK_MEASURES is a standard sd check measures 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 sd check measures FM, simply by entering the name SD_CHECK_MEASURES into the relevant SAP transaction such as SE37 or SE38.

Function Group: 0VTR
Program Name: SAPL0VTR
Main Program: SAPL0VTR
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_CHECK_MEASURES 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 'SD_CHECK_MEASURES'"
EXPORTING
* I_MSEHI_LEN = "
* OPT_IGNORE_LEN_ERR = 'X' "
* OPT_FLAG_CHANGE = ' ' "

IMPORTING
E_RETCODE = "

CHANGING
* C_MSEHI_LEN_SI = "
C_SUM_MEAS = "

TABLES
I_ITM_MEAS = "

EXCEPTIONS
NO_ITEMS_AVAILABLE = 1 LEN_UNIT_CONVERSION_ERROR = 2 SI_UNIT_ERROR = 3
.



IMPORTING Parameters details for SD_CHECK_MEASURES

I_MSEHI_LEN -

Data type: T006-MSEHI
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPT_IGNORE_LEN_ERR -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPT_FLAG_CHANGE -

Data type: RV56A-SELKZ
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SD_CHECK_MEASURES

E_RETCODE -

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

CHANGING Parameters details for SD_CHECK_MEASURES

C_MSEHI_LEN_SI -

Data type: T006-MSEHI
Optional: Yes
Call by Reference: No ( called with pass by value option)

C_SUM_MEAS -

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

TABLES Parameters details for SD_CHECK_MEASURES

I_ITM_MEAS -

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

EXCEPTIONS details

NO_ITEMS_AVAILABLE -

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

LEN_UNIT_CONVERSION_ERROR -

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

SI_UNIT_ERROR -

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

Copy and paste ABAP code example for SD_CHECK_MEASURES 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_retcode  TYPE I, "   
lt_i_itm_meas  TYPE STANDARD TABLE OF VTMEAS, "   
lv_i_msehi_len  TYPE T006-MSEHI, "   
lv_c_msehi_len_si  TYPE T006-MSEHI, "   
lv_no_items_available  TYPE T006, "   
lv_c_sum_meas  TYPE VTMEAS, "   
lv_opt_ignore_len_err  TYPE RV56A-SELKZ, "   'X'
lv_len_unit_conversion_error  TYPE RV56A, "   
lv_si_unit_error  TYPE RV56A, "   
lv_opt_flag_change  TYPE RV56A-SELKZ. "   ' '

  CALL FUNCTION 'SD_CHECK_MEASURES'  "
    EXPORTING
         I_MSEHI_LEN = lv_i_msehi_len
         OPT_IGNORE_LEN_ERR = lv_opt_ignore_len_err
         OPT_FLAG_CHANGE = lv_opt_flag_change
    IMPORTING
         E_RETCODE = lv_e_retcode
    CHANGING
         C_MSEHI_LEN_SI = lv_c_msehi_len_si
         C_SUM_MEAS = lv_c_sum_meas
    TABLES
         I_ITM_MEAS = lt_i_itm_meas
    EXCEPTIONS
        NO_ITEMS_AVAILABLE = 1
        LEN_UNIT_CONVERSION_ERROR = 2
        SI_UNIT_ERROR = 3
. " SD_CHECK_MEASURES




ABAP code using 7.40 inline data declarations to call FM SD_CHECK_MEASURES

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 MSEHI FROM T006 INTO @DATA(ld_i_msehi_len).
 
"SELECT single MSEHI FROM T006 INTO @DATA(ld_c_msehi_len_si).
 
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_ignore_len_err).
DATA(ld_opt_ignore_len_err) = 'X'.
 
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_flag_change).
DATA(ld_opt_flag_change) = ' '.
 


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!