SAP MB_PROPOSE_RECEIPT_QUANTITY Function Module for NOTRANSL: Bestimmen der Vorschlagsmenge beim Wareneingang zur Bestellung
MB_PROPOSE_RECEIPT_QUANTITY is a standard mb propose receipt quantity 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: Bestimmen der Vorschlagsmenge beim Wareneingang zur Bestellung 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 mb propose receipt quantity FM, simply by entering the name MB_PROPOSE_RECEIPT_QUANTITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: MBMV
Program Name: SAPLMBMV
Main Program: SAPLMBMV
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MB_PROPOSE_RECEIPT_QUANTITY 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 'MB_PROPOSE_RECEIPT_QUANTITY'"NOTRANSL: Bestimmen der Vorschlagsmenge beim Wareneingang zur Bestellung.
EXPORTING
SHKZG = "
LWSBS = "
ETENS = "
BSAKZ = "
WEMNG = "
WAMNG = "
XSELP = "
BSMNG = "
BPWEM = "
WEBRE = "GR-Based Invoice Verification
WESBB = "Valuated Goods Receipt Blocked Stock in Order Unit
RETPO = "
BPWEB = "Quantity in Valuated GR Blocked Stock in Order Price Unit
LWSBB = "Val. GR Blocked Stock in Order Unit per Shipping Notif. Item
KZWES = "
WESBS = "
BPWES = "
LFBNR = "
VLIEF = "
LAMNG = "
LWMNG = "
IMPORTING
MBLMG = "
MBLBM = "
ERFMG = "
BPMNG = "
IMPORTING Parameters details for MB_PROPOSE_RECEIPT_QUANTITY
SHKZG -
Data type: MSEG-SHKZGOptional: No
Call by Reference: No ( called with pass by value option)
LWSBS -
Data type: EBEFU-LWSBSOptional: No
Call by Reference: No ( called with pass by value option)
ETENS -
Data type: EBEFU-ETENSOptional: No
Call by Reference: No ( called with pass by value option)
BSAKZ -
Data type: KBEFU-BSAKZOptional: No
Call by Reference: No ( called with pass by value option)
WEMNG -
Data type: EBEFU-WEMNGOptional: No
Call by Reference: No ( called with pass by value option)
WAMNG -
Data type: EBEFU-WAMNGOptional: No
Call by Reference: No ( called with pass by value option)
XSELP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BSMNG -
Data type: EBEFU-BSMNGOptional: No
Call by Reference: No ( called with pass by value option)
BPWEM -
Data type: EBEFU-BPWEMOptional: No
Call by Reference: No ( called with pass by value option)
WEBRE - GR-Based Invoice Verification
Data type: EBEFU-WEBREOptional: No
Call by Reference: No ( called with pass by value option)
WESBB - Valuated Goods Receipt Blocked Stock in Order Unit
Data type: EBEFU-WESBBOptional: No
Call by Reference: No ( called with pass by value option)
RETPO -
Data type: VM07M-RETPOOptional: No
Call by Reference: No ( called with pass by value option)
BPWEB - Quantity in Valuated GR Blocked Stock in Order Price Unit
Data type: EBEFU-BPWEBOptional: No
Call by Reference: No ( called with pass by value option)
LWSBB - Val. GR Blocked Stock in Order Unit per Shipping Notif. Item
Data type: EBEFU-LWSBBOptional: No
Call by Reference: No ( called with pass by value option)
KZWES -
Data type: VM07M-KZWESOptional: No
Call by Reference: No ( called with pass by value option)
WESBS -
Data type: EBEFU-WESBSOptional: No
Call by Reference: No ( called with pass by value option)
BPWES -
Data type: EBEFU-BPWESOptional: No
Call by Reference: No ( called with pass by value option)
LFBNR -
Data type: MSEG-LFBNROptional: No
Call by Reference: No ( called with pass by value option)
VLIEF -
Data type: RM07M-VLIEFOptional: No
Call by Reference: No ( called with pass by value option)
LAMNG -
Data type: EBEFU-LAMNGOptional: No
Call by Reference: No ( called with pass by value option)
LWMNG -
Data type: EBEFU-LWMNGOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MB_PROPOSE_RECEIPT_QUANTITY
MBLMG -
Data type: DM07M-MBLMGOptional: No
Call by Reference: No ( called with pass by value option)
MBLBM -
Data type: DM07M-MBLBMOptional: No
Call by Reference: No ( called with pass by value option)
ERFMG -
Data type: MSEG-ERFMGOptional: No
Call by Reference: No ( called with pass by value option)
BPMNG -
Data type: MSEG-BPMNGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MB_PROPOSE_RECEIPT_QUANTITY 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_mblmg | TYPE DM07M-MBLMG, " | |||
| lv_shkzg | TYPE MSEG-SHKZG, " | |||
| lv_lwsbs | TYPE EBEFU-LWSBS, " | |||
| lv_etens | TYPE EBEFU-ETENS, " | |||
| lv_bsakz | TYPE KBEFU-BSAKZ, " | |||
| lv_wemng | TYPE EBEFU-WEMNG, " | |||
| lv_wamng | TYPE EBEFU-WAMNG, " | |||
| lv_xselp | TYPE EBEFU, " | |||
| lv_bsmng | TYPE EBEFU-BSMNG, " | |||
| lv_bpwem | TYPE EBEFU-BPWEM, " | |||
| lv_webre | TYPE EBEFU-WEBRE, " | |||
| lv_wesbb | TYPE EBEFU-WESBB, " | |||
| lv_mblbm | TYPE DM07M-MBLBM, " | |||
| lv_retpo | TYPE VM07M-RETPO, " | |||
| lv_bpweb | TYPE EBEFU-BPWEB, " | |||
| lv_lwsbb | TYPE EBEFU-LWSBB, " | |||
| lv_erfmg | TYPE MSEG-ERFMG, " | |||
| lv_kzwes | TYPE VM07M-KZWES, " | |||
| lv_bpmng | TYPE MSEG-BPMNG, " | |||
| lv_wesbs | TYPE EBEFU-WESBS, " | |||
| lv_bpwes | TYPE EBEFU-BPWES, " | |||
| lv_lfbnr | TYPE MSEG-LFBNR, " | |||
| lv_vlief | TYPE RM07M-VLIEF, " | |||
| lv_lamng | TYPE EBEFU-LAMNG, " | |||
| lv_lwmng | TYPE EBEFU-LWMNG. " |
|   CALL FUNCTION 'MB_PROPOSE_RECEIPT_QUANTITY' "NOTRANSL: Bestimmen der Vorschlagsmenge beim Wareneingang zur Bestellung |
| EXPORTING | ||
| SHKZG | = lv_shkzg | |
| LWSBS | = lv_lwsbs | |
| ETENS | = lv_etens | |
| BSAKZ | = lv_bsakz | |
| WEMNG | = lv_wemng | |
| WAMNG | = lv_wamng | |
| XSELP | = lv_xselp | |
| BSMNG | = lv_bsmng | |
| BPWEM | = lv_bpwem | |
| WEBRE | = lv_webre | |
| WESBB | = lv_wesbb | |
| RETPO | = lv_retpo | |
| BPWEB | = lv_bpweb | |
| LWSBB | = lv_lwsbb | |
| KZWES | = lv_kzwes | |
| WESBS | = lv_wesbs | |
| BPWES | = lv_bpwes | |
| LFBNR | = lv_lfbnr | |
| VLIEF | = lv_vlief | |
| LAMNG | = lv_lamng | |
| LWMNG | = lv_lwmng | |
| IMPORTING | ||
| MBLMG | = lv_mblmg | |
| MBLBM | = lv_mblbm | |
| ERFMG | = lv_erfmg | |
| BPMNG | = lv_bpmng | |
| . " MB_PROPOSE_RECEIPT_QUANTITY | ||
ABAP code using 7.40 inline data declarations to call FM MB_PROPOSE_RECEIPT_QUANTITY
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 MBLMG FROM DM07M INTO @DATA(ld_mblmg). | ||||
| "SELECT single SHKZG FROM MSEG INTO @DATA(ld_shkzg). | ||||
| "SELECT single LWSBS FROM EBEFU INTO @DATA(ld_lwsbs). | ||||
| "SELECT single ETENS FROM EBEFU INTO @DATA(ld_etens). | ||||
| "SELECT single BSAKZ FROM KBEFU INTO @DATA(ld_bsakz). | ||||
| "SELECT single WEMNG FROM EBEFU INTO @DATA(ld_wemng). | ||||
| "SELECT single WAMNG FROM EBEFU INTO @DATA(ld_wamng). | ||||
| "SELECT single BSMNG FROM EBEFU INTO @DATA(ld_bsmng). | ||||
| "SELECT single BPWEM FROM EBEFU INTO @DATA(ld_bpwem). | ||||
| "SELECT single WEBRE FROM EBEFU INTO @DATA(ld_webre). | ||||
| "SELECT single WESBB FROM EBEFU INTO @DATA(ld_wesbb). | ||||
| "SELECT single MBLBM FROM DM07M INTO @DATA(ld_mblbm). | ||||
| "SELECT single RETPO FROM VM07M INTO @DATA(ld_retpo). | ||||
| "SELECT single BPWEB FROM EBEFU INTO @DATA(ld_bpweb). | ||||
| "SELECT single LWSBB FROM EBEFU INTO @DATA(ld_lwsbb). | ||||
| "SELECT single ERFMG FROM MSEG INTO @DATA(ld_erfmg). | ||||
| "SELECT single KZWES FROM VM07M INTO @DATA(ld_kzwes). | ||||
| "SELECT single BPMNG FROM MSEG INTO @DATA(ld_bpmng). | ||||
| "SELECT single WESBS FROM EBEFU INTO @DATA(ld_wesbs). | ||||
| "SELECT single BPWES FROM EBEFU INTO @DATA(ld_bpwes). | ||||
| "SELECT single LFBNR FROM MSEG INTO @DATA(ld_lfbnr). | ||||
| "SELECT single VLIEF FROM RM07M INTO @DATA(ld_vlief). | ||||
| "SELECT single LAMNG FROM EBEFU INTO @DATA(ld_lamng). | ||||
| "SELECT single LWMNG FROM EBEFU INTO @DATA(ld_lwmng). | ||||
Search for further information about these or an SAP related objects