SAP VBWS_GET_VALUE_FROM_FACTORS Function Module for NOTRANSL: Ermitteln Wert aus Umrechnungsfaktoren Anteils-/Produkt-ME zur B









VBWS_GET_VALUE_FROM_FACTORS is a standard vbws get value from factors 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: Ermitteln Wert aus Umrechnungsfaktoren Anteils-/Produkt-ME zur B 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 get value from factors FM, simply by entering the name VBWS_GET_VALUE_FROM_FACTORS into the relevant SAP transaction such as SE37 or SE38.

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



Function VBWS_GET_VALUE_FROM_FACTORS 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_GET_VALUE_FROM_FACTORS'"NOTRANSL: Ermitteln Wert aus Umrechnungsfaktoren Anteils-/Produkt-ME zur B
EXPORTING
I_UMREN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_UMREZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSEHI = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MEINH = "Proportion/Product Unit
I_MEINS = "Base Unit of Measure

IMPORTING
OUTPUT_VALUE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_CONV_NOT_LOGICAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
CONVERSION_NOT_FOUND = 1 OUTPUT_LE_ZERO = 2 MSEHI_NOT_DEFINED = 3 MEINH_NOT_DEFINED = 4 CONVERSION_NOT_ALLOWED = 5
.



IMPORTING Parameters details for VBWS_GET_VALUE_FROM_FACTORS

I_UMREN - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_UMREZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_MSEHI - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_MEINH - Proportion/Product Unit

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

I_MEINS - Base Unit of Measure

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

EXPORTING Parameters details for VBWS_GET_VALUE_FROM_FACTORS

OUTPUT_VALUE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_CONV_NOT_LOGICAL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

CONVERSION_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OUTPUT_LE_ZERO - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MSEHI_NOT_DEFINED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MEINH_NOT_DEFINED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

CONVERSION_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_GET_VALUE_FROM_FACTORS 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_umren  TYPE STRING, "   
lv_output_value  TYPE F, "   
lv_conversion_not_found  TYPE F, "   
lv_i_umrez  TYPE F, "   
lv_output_le_zero  TYPE F, "   
lv_e_conv_not_logical  TYPE C, "   
lv_i_msehi  TYPE T006-MSEHI, "   
lv_msehi_not_defined  TYPE T006, "   
lv_i_meinh  TYPE T006-MSEHI, "   
lv_meinh_not_defined  TYPE T006, "   
lv_i_meins  TYPE T006-MSEHI, "   
lv_conversion_not_allowed  TYPE T006. "   

  CALL FUNCTION 'VBWS_GET_VALUE_FROM_FACTORS'  "NOTRANSL: Ermitteln Wert aus Umrechnungsfaktoren Anteils-/Produkt-ME zur B
    EXPORTING
         I_UMREN = lv_i_umren
         I_UMREZ = lv_i_umrez
         I_MSEHI = lv_i_msehi
         I_MEINH = lv_i_meinh
         I_MEINS = lv_i_meins
    IMPORTING
         OUTPUT_VALUE = lv_output_value
         E_CONV_NOT_LOGICAL = lv_e_conv_not_logical
    EXCEPTIONS
        CONVERSION_NOT_FOUND = 1
        OUTPUT_LE_ZERO = 2
        MSEHI_NOT_DEFINED = 3
        MEINH_NOT_DEFINED = 4
        CONVERSION_NOT_ALLOWED = 5
. " VBWS_GET_VALUE_FROM_FACTORS




ABAP code using 7.40 inline data declarations to call FM VBWS_GET_VALUE_FROM_FACTORS

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).
 
 
"SELECT single MSEHI FROM T006 INTO @DATA(ld_i_meinh).
 
 
"SELECT single MSEHI FROM T006 INTO @DATA(ld_i_meins).
 
 


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!