SAP FVIA_COMPUTE_UMSATZSTAFFELN Function Module for
FVIA_COMPUTE_UMSATZSTAFFELN is a standard fvia compute umsatzstaffeln 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 fvia compute umsatzstaffeln FM, simply by entering the name FVIA_COMPUTE_UMSATZSTAFFELN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVIA
Program Name: SAPLFVIA
Main Program: SAPLFVIA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVIA_COMPUTE_UMSATZSTAFFELN 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 'FVIA_COMPUTE_UMSATZSTAFFELN'".
EXPORTING
I_INTRENO = "
I_DANPASS = "
I_SKOART = "
I_INDEX_NEW = "
I_INDEX_OLD = "New Index Level
* I_BROUND = 0 "Rounding Parameters
* I_FACTOR = 100 "
IMPORTING
E_DGUELTIG = "
TABLES
E_TAB_VIMIUH = "
E_TAB_VIMIUI = "
EXCEPTIONS
HEADER_NOT_FOUND = 1
IMPORTING Parameters details for FVIA_COMPUTE_UMSATZSTAFFELN
I_INTRENO -
Data type: VIMIMV-INTRENOOptional: No
Call by Reference: No ( called with pass by value option)
I_DANPASS -
Data type: VIMI16-DANPASSOptional: No
Call by Reference: No ( called with pass by value option)
I_SKOART -
Data type: VIMI16-SKOARTOptional: No
Call by Reference: No ( called with pass by value option)
I_INDEX_NEW -
Data type: VIMI16-BINDPKTOptional: No
Call by Reference: No ( called with pass by value option)
I_INDEX_OLD - New Index Level
Data type: VIMI16-BINDALTOptional: No
Call by Reference: No ( called with pass by value option)
I_BROUND - Rounding Parameters
Data type: TIPAR-BROUNDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FACTOR -
Data type: VIMI16-PERHPROZDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVIA_COMPUTE_UMSATZSTAFFELN
E_DGUELTIG -
Data type: VIMIUH-DGUELTIGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FVIA_COMPUTE_UMSATZSTAFFELN
E_TAB_VIMIUH -
Data type: AVIMIUHOptional: No
Call by Reference: No ( called with pass by value option)
E_TAB_VIMIUI -
Data type: AVIMIUIOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
HEADER_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVIA_COMPUTE_UMSATZSTAFFELN 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_intreno | TYPE VIMIMV-INTRENO, " | |||
| lv_e_dgueltig | TYPE VIMIUH-DGUELTIG, " | |||
| lt_e_tab_vimiuh | TYPE STANDARD TABLE OF AVIMIUH, " | |||
| lv_header_not_found | TYPE AVIMIUH, " | |||
| lv_i_danpass | TYPE VIMI16-DANPASS, " | |||
| lt_e_tab_vimiui | TYPE STANDARD TABLE OF AVIMIUI, " | |||
| lv_i_skoart | TYPE VIMI16-SKOART, " | |||
| lv_i_index_new | TYPE VIMI16-BINDPKT, " | |||
| lv_i_index_old | TYPE VIMI16-BINDALT, " | |||
| lv_i_bround | TYPE TIPAR-BROUND, " 0 | |||
| lv_i_factor | TYPE VIMI16-PERHPROZ. " 100 |
|   CALL FUNCTION 'FVIA_COMPUTE_UMSATZSTAFFELN' " |
| EXPORTING | ||
| I_INTRENO | = lv_i_intreno | |
| I_DANPASS | = lv_i_danpass | |
| I_SKOART | = lv_i_skoart | |
| I_INDEX_NEW | = lv_i_index_new | |
| I_INDEX_OLD | = lv_i_index_old | |
| I_BROUND | = lv_i_bround | |
| I_FACTOR | = lv_i_factor | |
| IMPORTING | ||
| E_DGUELTIG | = lv_e_dgueltig | |
| TABLES | ||
| E_TAB_VIMIUH | = lt_e_tab_vimiuh | |
| E_TAB_VIMIUI | = lt_e_tab_vimiui | |
| EXCEPTIONS | ||
| HEADER_NOT_FOUND = 1 | ||
| . " FVIA_COMPUTE_UMSATZSTAFFELN | ||
ABAP code using 7.40 inline data declarations to call FM FVIA_COMPUTE_UMSATZSTAFFELN
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 INTRENO FROM VIMIMV INTO @DATA(ld_i_intreno). | ||||
| "SELECT single DGUELTIG FROM VIMIUH INTO @DATA(ld_e_dgueltig). | ||||
| "SELECT single DANPASS FROM VIMI16 INTO @DATA(ld_i_danpass). | ||||
| "SELECT single SKOART FROM VIMI16 INTO @DATA(ld_i_skoart). | ||||
| "SELECT single BINDPKT FROM VIMI16 INTO @DATA(ld_i_index_new). | ||||
| "SELECT single BINDALT FROM VIMI16 INTO @DATA(ld_i_index_old). | ||||
| "SELECT single BROUND FROM TIPAR INTO @DATA(ld_i_bround). | ||||
| "SELECT single PERHPROZ FROM VIMI16 INTO @DATA(ld_i_factor). | ||||
| DATA(ld_i_factor) | = 100. | |||
Search for further information about these or an SAP related objects