SAP REQUIREMENTS_EXPLAIN_PROB Function Module for NOTRANSL: Alternativer Baustein Wahrscheinlichkeitsberechnung
REQUIREMENTS_EXPLAIN_PROB is a standard requirements explain prob 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: Alternativer Baustein Wahrscheinlichkeitsberechnung 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 requirements explain prob FM, simply by entering the name REQUIREMENTS_EXPLAIN_PROB into the relevant SAP transaction such as SE37 or SE38.
Function Group: M60P
Program Name: SAPLM60P
Main Program: SAPLM60P
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function REQUIREMENTS_EXPLAIN_PROB 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 'REQUIREMENTS_EXPLAIN_PROB'"NOTRANSL: Alternativer Baustein Wahrscheinlichkeitsberechnung.
EXPORTING
* IN_DATE = SY-DATUM "ABAP System Field: Current Date of Application Server
* IN_MDSP = "View of BOM items and material master for gross reqmts plng
IN_CUOBJ = "Configuration (internal object number)
* IN_ROOT_MATNR = "Material Number
* IN_PARENT_MATNR = "Material Number
* IN_STLTY = "BOM category
* IN_STLNR = "Bill of material
* IN_STLKN = "BOM item node number
* IN_STPOZ = "Internal counter
* IN_EDGNO = "Internal number for edge of object dependencies tree
IMPORTING
OUT_PROBA = "Predefined Type
EXCEPTIONS
NO_BOM_ITEM = 1 OBJ_DEP_NOT_INTERPRETED = 2 OVER_MAX_SIZE_OF_OB_DEP = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLM60P_001 User Exit: Interpretation of Object Dependencies for Characteristics Plng
EXIT_SAPLM60P_002 User Exit: Explanation Component for Actions and Complexes.Obj.Dependency
EXIT_SAPLM60P_003 Creation of Superior Instance
IMPORTING Parameters details for REQUIREMENTS_EXPLAIN_PROB
IN_DATE - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
IN_MDSP - View of BOM items and material master for gross reqmts plng
Data type: MDSPOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_CUOBJ - Configuration (internal object number)
Data type: INOB-CUOBJOptional: No
Call by Reference: No ( called with pass by value option)
IN_ROOT_MATNR - Material Number
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
IN_PARENT_MATNR - Material Number
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
IN_STLTY - BOM category
Data type: STPO-STLTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_STLNR - Bill of material
Data type: STPO-STLNROptional: Yes
Call by Reference: No ( called with pass by value option)
IN_STLKN - BOM item node number
Data type: STPO-STLKNOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_STPOZ - Internal counter
Data type: STPO-STPOZOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_EDGNO - Internal number for edge of object dependencies tree
Data type: M60I-EDGNOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for REQUIREMENTS_EXPLAIN_PROB
OUT_PROBA - Predefined Type
Data type: FOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_BOM_ITEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJ_DEP_NOT_INTERPRETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OVER_MAX_SIZE_OF_OB_DEP -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for REQUIREMENTS_EXPLAIN_PROB 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_in_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_out_proba | TYPE F, " | |||
| lv_no_bom_item | TYPE F, " | |||
| lv_in_mdsp | TYPE MDSP, " | |||
| lv_in_cuobj | TYPE INOB-CUOBJ, " | |||
| lv_obj_dep_not_interpreted | TYPE INOB, " | |||
| lv_in_root_matnr | TYPE MARA-MATNR, " | |||
| lv_over_max_size_of_ob_dep | TYPE MARA, " | |||
| lv_in_parent_matnr | TYPE MARA-MATNR, " | |||
| lv_in_stlty | TYPE STPO-STLTY, " | |||
| lv_in_stlnr | TYPE STPO-STLNR, " | |||
| lv_in_stlkn | TYPE STPO-STLKN, " | |||
| lv_in_stpoz | TYPE STPO-STPOZ, " | |||
| lv_in_edgno | TYPE M60I-EDGNO. " |
|   CALL FUNCTION 'REQUIREMENTS_EXPLAIN_PROB' "NOTRANSL: Alternativer Baustein Wahrscheinlichkeitsberechnung |
| EXPORTING | ||
| IN_DATE | = lv_in_date | |
| IN_MDSP | = lv_in_mdsp | |
| IN_CUOBJ | = lv_in_cuobj | |
| IN_ROOT_MATNR | = lv_in_root_matnr | |
| IN_PARENT_MATNR | = lv_in_parent_matnr | |
| IN_STLTY | = lv_in_stlty | |
| IN_STLNR | = lv_in_stlnr | |
| IN_STLKN | = lv_in_stlkn | |
| IN_STPOZ | = lv_in_stpoz | |
| IN_EDGNO | = lv_in_edgno | |
| IMPORTING | ||
| OUT_PROBA | = lv_out_proba | |
| EXCEPTIONS | ||
| NO_BOM_ITEM = 1 | ||
| OBJ_DEP_NOT_INTERPRETED = 2 | ||
| OVER_MAX_SIZE_OF_OB_DEP = 3 | ||
| . " REQUIREMENTS_EXPLAIN_PROB | ||
ABAP code using 7.40 inline data declarations to call FM REQUIREMENTS_EXPLAIN_PROB
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 DATUM FROM SY INTO @DATA(ld_in_date). | ||||
| DATA(ld_in_date) | = SY-DATUM. | |||
| "SELECT single CUOBJ FROM INOB INTO @DATA(ld_in_cuobj). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_in_root_matnr). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_in_parent_matnr). | ||||
| "SELECT single STLTY FROM STPO INTO @DATA(ld_in_stlty). | ||||
| "SELECT single STLNR FROM STPO INTO @DATA(ld_in_stlnr). | ||||
| "SELECT single STLKN FROM STPO INTO @DATA(ld_in_stlkn). | ||||
| "SELECT single STPOZ FROM STPO INTO @DATA(ld_in_stpoz). | ||||
| "SELECT single EDGNO FROM M60I INTO @DATA(ld_in_edgno). | ||||
Search for further information about these or an SAP related objects