SAP CALC_FIGURES_VALUES_SCALE_BASE Function Module for NOTRANSL: Wertmaessigen Umsatz, Feld Staffelbasis setzen









CALC_FIGURES_VALUES_SCALE_BASE is a standard calc figures values scale base 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: Wertmaessigen Umsatz, Feld Staffelbasis setzen 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 calc figures values scale base FM, simply by entering the name CALC_FIGURES_VALUES_SCALE_BASE into the relevant SAP transaction such as SE37 or SE38.

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



Function CALC_FIGURES_VALUES_SCALE_BASE 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 'CALC_FIGURES_VALUES_SCALE_BASE'"NOTRANSL: Wertmaessigen Umsatz, Feld Staffelbasis setzen
EXPORTING
I_ARRANGEMENT = "Rebate Arrangements
I_REFE_BONBARE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MENGE_FO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MENGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_SCALING_COND_BASE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_KZBZG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_KRECH = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TKOMV_KSTBS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TKOMV_KONWS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TKOMV_KAWRT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_TKOMV_WAERS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_REFE_KAWRTEK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_REFE_CURR = "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
P_VARIABLE_KEY_VB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
P_CONDITION_RECORD_VB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_REFE_KAWRTEK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_REFE_CURR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_REFE_CURR_STAT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_REFE_BONBARE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
* T_VARIABLE_KEY = "Variable key
* T_CONDITION_RECORD = "Conditions (Item)

EXCEPTIONS
VARIABLE_KEY_VB_NOT_FOUND = 1 CONDITION_RECORD_NOT_FOUND = 2 OVERFLOW = 3
.



IMPORTING Parameters details for CALC_FIGURES_VALUES_SCALE_BASE

I_ARRANGEMENT - Rebate Arrangements

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

I_REFE_BONBARE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_MENGE_FO - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_MENGE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_SCALING_COND_BASE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_KZBZG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_KRECH - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_TKOMV_KSTBS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_TKOMV_KONWS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_TKOMV_KAWRT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_TKOMV_WAERS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_REFE_KAWRTEK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_REFE_CURR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for CALC_FIGURES_VALUES_SCALE_BASE

P_VARIABLE_KEY_VB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VAKE
Optional: No
Call by Reference: Yes

P_CONDITION_RECORD_VB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: KONP
Optional: No
Call by Reference: Yes

E_REFE_KAWRTEK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_REFE_CURR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_REFE_CURR_STAT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_REFE_BONBARE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for CALC_FIGURES_VALUES_SCALE_BASE

T_VARIABLE_KEY - Variable key

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

T_CONDITION_RECORD - Conditions (Item)

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

EXCEPTIONS details

VARIABLE_KEY_VB_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

CONDITION_RECORD_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

OVERFLOW - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CALC_FIGURES_VALUES_SCALE_BASE 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_arrangement  TYPE KONA, "   
lt_t_variable_key  TYPE STANDARD TABLE OF VAKE, "   
lv_p_variable_key_vb  TYPE VAKE, "   
lv_variable_key_vb_not_found  TYPE VAKE, "   
lv_i_refe_bonbare  TYPE P, "   
lv_i_menge_fo  TYPE EKPO-MENGE, "   
lv_i_menge  TYPE EKPO-MENGE, "   
lv_i_scaling_cond_base  TYPE C, "   
lv_i_kzbzg  TYPE KOMV-KZBZG, "   
lt_t_condition_record  TYPE STANDARD TABLE OF KONP, "   
lv_p_condition_record_vb  TYPE KONP, "   
lv_condition_record_not_found  TYPE KONP, "   
lv_i_krech  TYPE KOMV-KRECH, "   
lv_overflow  TYPE KOMV, "   
lv_e_refe_kawrtek  TYPE P, "   
lv_e_refe_curr  TYPE MCKONA-WAERSST, "   
lv_i_tkomv_kstbs  TYPE P, "   
lv_i_tkomv_konws  TYPE KOMV-KONWS, "   
lv_e_refe_curr_stat  TYPE MCKONA-KONWS, "   
lv_i_tkomv_kawrt  TYPE P, "   
lv_e_refe_bonbare  TYPE P, "   
lv_i_tkomv_waers  TYPE EKKO-WAERS, "   
lv_i_refe_kawrtek  TYPE P, "   
lv_i_refe_curr  TYPE KONP-KONWA. "   

  CALL FUNCTION 'CALC_FIGURES_VALUES_SCALE_BASE'  "NOTRANSL: Wertmaessigen Umsatz, Feld Staffelbasis setzen
    EXPORTING
         I_ARRANGEMENT = lv_i_arrangement
         I_REFE_BONBARE = lv_i_refe_bonbare
         I_MENGE_FO = lv_i_menge_fo
         I_MENGE = lv_i_menge
         I_SCALING_COND_BASE = lv_i_scaling_cond_base
         I_KZBZG = lv_i_kzbzg
         I_KRECH = lv_i_krech
         I_TKOMV_KSTBS = lv_i_tkomv_kstbs
         I_TKOMV_KONWS = lv_i_tkomv_konws
         I_TKOMV_KAWRT = lv_i_tkomv_kawrt
         I_TKOMV_WAERS = lv_i_tkomv_waers
         I_REFE_KAWRTEK = lv_i_refe_kawrtek
         I_REFE_CURR = lv_i_refe_curr
    IMPORTING
         P_VARIABLE_KEY_VB = lv_p_variable_key_vb
         P_CONDITION_RECORD_VB = lv_p_condition_record_vb
         E_REFE_KAWRTEK = lv_e_refe_kawrtek
         E_REFE_CURR = lv_e_refe_curr
         E_REFE_CURR_STAT = lv_e_refe_curr_stat
         E_REFE_BONBARE = lv_e_refe_bonbare
    TABLES
         T_VARIABLE_KEY = lt_t_variable_key
         T_CONDITION_RECORD = lt_t_condition_record
    EXCEPTIONS
        VARIABLE_KEY_VB_NOT_FOUND = 1
        CONDITION_RECORD_NOT_FOUND = 2
        OVERFLOW = 3
. " CALC_FIGURES_VALUES_SCALE_BASE




ABAP code using 7.40 inline data declarations to call FM CALC_FIGURES_VALUES_SCALE_BASE

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 MENGE FROM EKPO INTO @DATA(ld_i_menge_fo).
 
"SELECT single MENGE FROM EKPO INTO @DATA(ld_i_menge).
 
 
"SELECT single KZBZG FROM KOMV INTO @DATA(ld_i_kzbzg).
 
 
 
 
"SELECT single KRECH FROM KOMV INTO @DATA(ld_i_krech).
 
 
 
"SELECT single WAERSST FROM MCKONA INTO @DATA(ld_e_refe_curr).
 
 
"SELECT single KONWS FROM KOMV INTO @DATA(ld_i_tkomv_konws).
 
"SELECT single KONWS FROM MCKONA INTO @DATA(ld_e_refe_curr_stat).
 
 
 
"SELECT single WAERS FROM EKKO INTO @DATA(ld_i_tkomv_waers).
 
 
"SELECT single KONWA FROM KONP INTO @DATA(ld_i_refe_curr).
 


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!