SAP ISB_OPP_AVERAGE Function Module for IS-B: Berechnung durchschnittlicher OZ
ISB_OPP_AVERAGE is a standard isb opp average SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-B: Berechnung durchschnittlicher OZ 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 isb opp average FM, simply by entering the name ISB_OPP_AVERAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: JBT6
Program Name: SAPLJBT6
Main Program: SAPLJBT6
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISB_OPP_AVERAGE 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 'ISB_OPP_AVERAGE'"IS-B: Berechnung durchschnittlicher OZ.
EXPORTING
ABTAGE = "
AJTAGE = "
BDSVOL = "
* BDSVOL_EXACT = "
BEITRAG = "
* BEITRAG_EXACT = "
IMPORTING
IZINSDUR = "
EXCEPTIONS
NO_LAST_DAYS = 1 MAX_VALUE_EXCEEDED = 2
IMPORTING Parameters details for ISB_OPP_AVERAGE
ABTAGE -
Data type: JBD11-NTAGEOptional: No
Call by Reference: No ( called with pass by value option)
AJTAGE -
Data type: JBD11-NTAGEOptional: No
Call by Reference: No ( called with pass by value option)
BDSVOL -
Data type: JBDWFF-BDSVOLOptional: No
Call by Reference: No ( called with pass by value option)
BDSVOL_EXACT -
Data type: FOptional: Yes
Call by Reference: No ( called with pass by value option)
BEITRAG -
Data type: JBDWFF-BZINBEOptional: No
Call by Reference: No ( called with pass by value option)
BEITRAG_EXACT -
Data type: FOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISB_OPP_AVERAGE
IZINSDUR -
Data type: JBDST1-IKZDUROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_LAST_DAYS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MAX_VALUE_EXCEEDED - maximum value exceeded
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISB_OPP_AVERAGE 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_abtage | TYPE JBD11-NTAGE, " | |||
| lv_izinsdur | TYPE JBDST1-IKZDUR, " | |||
| lv_no_last_days | TYPE JBDST1, " | |||
| lv_ajtage | TYPE JBD11-NTAGE, " | |||
| lv_max_value_exceeded | TYPE JBD11, " | |||
| lv_bdsvol | TYPE JBDWFF-BDSVOL, " | |||
| lv_bdsvol_exact | TYPE F, " | |||
| lv_beitrag | TYPE JBDWFF-BZINBE, " | |||
| lv_beitrag_exact | TYPE F. " |
|   CALL FUNCTION 'ISB_OPP_AVERAGE' "IS-B: Berechnung durchschnittlicher OZ |
| EXPORTING | ||
| ABTAGE | = lv_abtage | |
| AJTAGE | = lv_ajtage | |
| BDSVOL | = lv_bdsvol | |
| BDSVOL_EXACT | = lv_bdsvol_exact | |
| BEITRAG | = lv_beitrag | |
| BEITRAG_EXACT | = lv_beitrag_exact | |
| IMPORTING | ||
| IZINSDUR | = lv_izinsdur | |
| EXCEPTIONS | ||
| NO_LAST_DAYS = 1 | ||
| MAX_VALUE_EXCEEDED = 2 | ||
| . " ISB_OPP_AVERAGE | ||
ABAP code using 7.40 inline data declarations to call FM ISB_OPP_AVERAGE
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 NTAGE FROM JBD11 INTO @DATA(ld_abtage). | ||||
| "SELECT single IKZDUR FROM JBDST1 INTO @DATA(ld_izinsdur). | ||||
| "SELECT single NTAGE FROM JBD11 INTO @DATA(ld_ajtage). | ||||
| "SELECT single BDSVOL FROM JBDWFF INTO @DATA(ld_bdsvol). | ||||
| "SELECT single BZINBE FROM JBDWFF INTO @DATA(ld_beitrag). | ||||
Search for further information about these or an SAP related objects