SAP SD_MBDAT_DETERMINE Function Module for NOTRANSL: Bestimmung des kleinsten Mat.bereitstellungsdatums eines Auftrag
SD_MBDAT_DETERMINE is a standard sd mbdat determine 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: Bestimmung des kleinsten Mat.bereitstellungsdatums eines Auftrag 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 sd mbdat determine FM, simply by entering the name SD_MBDAT_DETERMINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V45A
Program Name: SAPLV45A
Main Program: SAPLV45A
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_MBDAT_DETERMINE 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 'SD_MBDAT_DETERMINE'"NOTRANSL: Bestimmung des kleinsten Mat.bereitstellungsdatums eines Auftrag.
EXPORTING
* FVBAK = "Order Header
IMPORTING
FMBDAT = "Material Staging/Availability Date
TABLES
* FXVBUK = "Header Status
* FXVBUP = "Item Status
* FXVBAP = "Document Item
FXVBEP = "Schd. Line
IMPORTING Parameters details for SD_MBDAT_DETERMINE
FVBAK - Order Header
Data type: VBAKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_MBDAT_DETERMINE
FMBDAT - Material Staging/Availability Date
Data type: VBAK-FMBDATOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_MBDAT_DETERMINE
FXVBUK - Header Status
Data type: VBUKOptional: Yes
Call by Reference: No ( called with pass by value option)
FXVBUP - Item Status
Data type: VBUPOptional: Yes
Call by Reference: No ( called with pass by value option)
FXVBAP - Document Item
Data type: VBAPOptional: Yes
Call by Reference: No ( called with pass by value option)
FXVBEP - Schd. Line
Data type: VBEPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for SD_MBDAT_DETERMINE 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_fvbak | TYPE VBAK, " | |||
| lv_fmbdat | TYPE VBAK-FMBDAT, " | |||
| lt_fxvbuk | TYPE STANDARD TABLE OF VBUK, " | |||
| lt_fxvbup | TYPE STANDARD TABLE OF VBUP, " | |||
| lt_fxvbap | TYPE STANDARD TABLE OF VBAP, " | |||
| lt_fxvbep | TYPE STANDARD TABLE OF VBEP. " |
|   CALL FUNCTION 'SD_MBDAT_DETERMINE' "NOTRANSL: Bestimmung des kleinsten Mat.bereitstellungsdatums eines Auftrag |
| EXPORTING | ||
| FVBAK | = lv_fvbak | |
| IMPORTING | ||
| FMBDAT | = lv_fmbdat | |
| TABLES | ||
| FXVBUK | = lt_fxvbuk | |
| FXVBUP | = lt_fxvbup | |
| FXVBAP | = lt_fxvbap | |
| FXVBEP | = lt_fxvbep | |
| . " SD_MBDAT_DETERMINE | ||
ABAP code using 7.40 inline data declarations to call FM SD_MBDAT_DETERMINE
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 FMBDAT FROM VBAK INTO @DATA(ld_fmbdat). | ||||
Search for further information about these or an SAP related objects