SAP SALES_VALUE_READ Function Module for NOTRANSL: Ermittlung des Verkaufswertes durch Preisfindung









SALES_VALUE_READ is a standard sales value read 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: Ermittlung des Verkaufswertes durch Preisfindung 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 sales value read FM, simply by entering the name SALES_VALUE_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: WVKB
Program Name: SAPLWVKB
Main Program: SAPLWVKB
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SALES_VALUE_READ 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 'SALES_VALUE_READ'"NOTRANSL: Ermittlung des Verkaufswertes durch Preisfindung
EXPORTING
PI_I_SVR = "Import Struc.
* PI_NORMAL_PRICE_VALUATION = "New Input Values

IMPORTING
PE_I_SVR = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
* PE_T_TAXK = "

EXCEPTIONS
MATERIAL_NOT_FOUND = 1 CALCULATION_SCHEME_NOT_CORRECT = 10 OTHER_ERROR = 11 NO_BUKRS_FOUND = 2 NO_SALES_PRICE_FOUND = 3 ORG_STRUCTURE_NOT_COMPLETED = 4 PLANT_NOT_FOUND = 5 VKORG_NOT_FOUND = 6 OVERFLOW_AT_CONVERSION = 7 CONVERSION_NOT_FOUND = 8 NO_AUTHORITY = 9
.



IMPORTING Parameters details for SALES_VALUE_READ

PI_I_SVR - Import Struc.

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

PI_NORMAL_PRICE_VALUATION - New Input Values

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

EXPORTING Parameters details for SALES_VALUE_READ

PE_I_SVR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for SALES_VALUE_READ

PE_T_TAXK -

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

EXCEPTIONS details

MATERIAL_NOT_FOUND - Material does not exist

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

CALCULATION_SCHEME_NOT_CORRECT -

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

OTHER_ERROR -

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

NO_BUKRS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_SALES_PRICE_FOUND - No Sales Price Available

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

ORG_STRUCTURE_NOT_COMPLETED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

PLANT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VKORG_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OVERFLOW_AT_CONVERSION - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

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

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

NO_AUTHORITY - 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 SALES_VALUE_READ 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_pe_i_svr  TYPE PESVR, "   
lv_pi_i_svr  TYPE PISVR, "   
lt_pe_t_taxk  TYPE STANDARD TABLE OF TAXK, "   
lv_material_not_found  TYPE TAXK, "   
lv_calculation_scheme_not_correct  TYPE TAXK, "   
lv_other_error  TYPE TAXK, "   
lv_no_bukrs_found  TYPE TAXK, "   
lv_pi_normal_price_valuation  TYPE XFLAG, "   
lv_no_sales_price_found  TYPE XFLAG, "   
lv_org_structure_not_completed  TYPE XFLAG, "   
lv_plant_not_found  TYPE XFLAG, "   
lv_vkorg_not_found  TYPE XFLAG, "   
lv_overflow_at_conversion  TYPE XFLAG, "   
lv_conversion_not_found  TYPE XFLAG, "   
lv_no_authority  TYPE XFLAG. "   

  CALL FUNCTION 'SALES_VALUE_READ'  "NOTRANSL: Ermittlung des Verkaufswertes durch Preisfindung
    EXPORTING
         PI_I_SVR = lv_pi_i_svr
         PI_NORMAL_PRICE_VALUATION = lv_pi_normal_price_valuation
    IMPORTING
         PE_I_SVR = lv_pe_i_svr
    TABLES
         PE_T_TAXK = lt_pe_t_taxk
    EXCEPTIONS
        MATERIAL_NOT_FOUND = 1
        CALCULATION_SCHEME_NOT_CORRECT = 10
        OTHER_ERROR = 11
        NO_BUKRS_FOUND = 2
        NO_SALES_PRICE_FOUND = 3
        ORG_STRUCTURE_NOT_COMPLETED = 4
        PLANT_NOT_FOUND = 5
        VKORG_NOT_FOUND = 6
        OVERFLOW_AT_CONVERSION = 7
        CONVERSION_NOT_FOUND = 8
        NO_AUTHORITY = 9
. " SALES_VALUE_READ




ABAP code using 7.40 inline data declarations to call FM SALES_VALUE_READ

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!