SAP VBWS_SET_VALUE_FOR_UOM Function Module for NOTRANSL: Anteils-/Produktmengeneinheiten: Wertzuweisung zum Merkmal









VBWS_SET_VALUE_FOR_UOM is a standard vbws set value for uom SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Anteils-/Produktmengeneinheiten: Wertzuweisung zum Merkmal 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 vbws set value for uom FM, simply by entering the name VBWS_SET_VALUE_FOR_UOM into the relevant SAP transaction such as SE37 or SE38.

Function Group: MWSC
Program Name: SAPLMWSC
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VBWS_SET_VALUE_FOR_UOM 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 'VBWS_SET_VALUE_FOR_UOM'"NOTRANSL: Anteils-/Produktmengeneinheiten: Wertzuweisung zum Merkmal
EXPORTING
I_ATWRT = "Plan Value
I_ATINN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_ATNAM = "Characteristic Name

TABLES
I_MWS_CHAR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* E_VALUE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
FORMAT_CHECK = 1 PATTERN_CHECK = 2 UNIT_CHECK = 3 INTERVAL_NOT_ALLOWED = 4 ONLY_ONE_VALUE_ALLOWED = 5 VALUE_NOT_ALLOWED = 6
.



IMPORTING Parameters details for VBWS_SET_VALUE_FOR_UOM

I_ATWRT - Plan Value

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

I_ATINN - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_ATNAM - Characteristic Name

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

TABLES Parameters details for VBWS_SET_VALUE_FOR_UOM

I_MWS_CHAR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_VALUE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

FORMAT_CHECK - Value is not numeric

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

PATTERN_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

UNIT_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INTERVAL_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ONLY_ONE_VALUE_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VALUE_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for VBWS_SET_VALUE_FOR_UOM 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_i_atwrt  TYPE SMEINH_WS-ATWRT, "   
lt_i_mws_char  TYPE STANDARD TABLE OF MWS_CHAR, "   
lv_format_check  TYPE MWS_CHAR, "   
lt_e_value  TYPE STANDARD TABLE OF API_VALUE, "   
lv_i_atinn  TYPE SMEINH_WS-ATINN, "   
lv_pattern_check  TYPE SMEINH_WS, "   
lv_i_atnam  TYPE SMEINH_WS-ATNAM, "   
lv_unit_check  TYPE SMEINH_WS, "   
lv_interval_not_allowed  TYPE SMEINH_WS, "   
lv_only_one_value_allowed  TYPE SMEINH_WS, "   
lv_value_not_allowed  TYPE SMEINH_WS. "   

  CALL FUNCTION 'VBWS_SET_VALUE_FOR_UOM'  "NOTRANSL: Anteils-/Produktmengeneinheiten: Wertzuweisung zum Merkmal
    EXPORTING
         I_ATWRT = lv_i_atwrt
         I_ATINN = lv_i_atinn
         I_ATNAM = lv_i_atnam
    TABLES
         I_MWS_CHAR = lt_i_mws_char
         E_VALUE = lt_e_value
    EXCEPTIONS
        FORMAT_CHECK = 1
        PATTERN_CHECK = 2
        UNIT_CHECK = 3
        INTERVAL_NOT_ALLOWED = 4
        ONLY_ONE_VALUE_ALLOWED = 5
        VALUE_NOT_ALLOWED = 6
. " VBWS_SET_VALUE_FOR_UOM




ABAP code using 7.40 inline data declarations to call FM VBWS_SET_VALUE_FOR_UOM

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 ATWRT FROM SMEINH_WS INTO @DATA(ld_i_atwrt).
 
 
 
 
"SELECT single ATINN FROM SMEINH_WS INTO @DATA(ld_i_atinn).
 
 
"SELECT single ATNAM FROM SMEINH_WS INTO @DATA(ld_i_atnam).
 
 
 
 
 


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!