SAP MARC_BSTRF Function Module for NOTRANSL: Prüfung Bestellmengenrundungswert









MARC_BSTRF is a standard marc bstrf 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: Prüfung Bestellmengenrundungswert 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 marc bstrf FM, simply by entering the name MARC_BSTRF into the relevant SAP transaction such as SE37 or SE38.

Function Group: MG10
Program Name: SAPLMG10
Main Program: SAPLMG10
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MARC_BSTRF 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 'MARC_BSTRF'"NOTRANSL: Prüfung Bestellmengenrundungswert
EXPORTING
P_BSTRF = "
P_RDPRF = "
P_BSTFE = "Fixed Lot Size
P_BSTMA = "
P_BSTMI = "
P_DISPR = "Material: MRP profile
P_DISLS = "
P_WERKS = "
* P_KZ_NO_WARN = ' ' "

IMPORTING
P_BSTMA = "
P_BSTMI = "
P_BSTRF = "
P_RDPRF = "

EXCEPTIONS
P_ERR_MARC_BSTRF = 1 P_ERR_MARC_RDPRF = 2 ERR_T439A = 3
.



IMPORTING Parameters details for MARC_BSTRF

P_BSTRF -

Data type: MARC-BSTRF
Optional: No
Call by Reference: No ( called with pass by value option)

P_RDPRF -

Data type: MARC-RDPRF
Optional: No
Call by Reference: No ( called with pass by value option)

P_BSTFE - Fixed Lot Size

Data type: MARC-BSTFE
Optional: No
Call by Reference: No ( called with pass by value option)

P_BSTMA -

Data type: MARC-BSTMA
Optional: No
Call by Reference: No ( called with pass by value option)

P_BSTMI -

Data type: MARC-BSTMI
Optional: No
Call by Reference: No ( called with pass by value option)

P_DISPR - Material: MRP profile

Data type: MARC-DISPR
Optional: No
Call by Reference: No ( called with pass by value option)

P_DISLS -

Data type: MARC-DISLS
Optional: No
Call by Reference: No ( called with pass by value option)

P_WERKS -

Data type: RM03M-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

P_KZ_NO_WARN -

Data type: RMMG08_012-MSGTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MARC_BSTRF

P_BSTMA -

Data type: MARC-BSTMA
Optional: No
Call by Reference: No ( called with pass by value option)

P_BSTMI -

Data type: MARC-BSTMI
Optional: No
Call by Reference: No ( called with pass by value option)

P_BSTRF -

Data type: MARC-BSTRF
Optional: No
Call by Reference: No ( called with pass by value option)

P_RDPRF -

Data type: MARC-RDPRF
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

P_ERR_MARC_BSTRF - Check Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

P_ERR_MARC_RDPRF -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERR_T439A -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MARC_BSTRF 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_p_bstma  TYPE MARC-BSTMA, "   
lv_p_bstrf  TYPE MARC-BSTRF, "   
lv_p_err_marc_bstrf  TYPE MARC, "   
lv_p_bstmi  TYPE MARC-BSTMI, "   
lv_p_rdprf  TYPE MARC-RDPRF, "   
lv_p_err_marc_rdprf  TYPE MARC, "   
lv_p_bstfe  TYPE MARC-BSTFE, "   
lv_p_bstrf  TYPE MARC-BSTRF, "   
lv_err_t439a  TYPE MARC, "   
lv_p_bstma  TYPE MARC-BSTMA, "   
lv_p_rdprf  TYPE MARC-RDPRF, "   
lv_p_bstmi  TYPE MARC-BSTMI, "   
lv_p_dispr  TYPE MARC-DISPR, "   
lv_p_disls  TYPE MARC-DISLS, "   
lv_p_werks  TYPE RM03M-WERKS, "   
lv_p_kz_no_warn  TYPE RMMG08_012-MSGTYP. "   SPACE

  CALL FUNCTION 'MARC_BSTRF'  "NOTRANSL: Prüfung Bestellmengenrundungswert
    EXPORTING
         P_BSTRF = lv_p_bstrf
         P_RDPRF = lv_p_rdprf
         P_BSTFE = lv_p_bstfe
         P_BSTMA = lv_p_bstma
         P_BSTMI = lv_p_bstmi
         P_DISPR = lv_p_dispr
         P_DISLS = lv_p_disls
         P_WERKS = lv_p_werks
         P_KZ_NO_WARN = lv_p_kz_no_warn
    IMPORTING
         P_BSTMA = lv_p_bstma
         P_BSTMI = lv_p_bstmi
         P_BSTRF = lv_p_bstrf
         P_RDPRF = lv_p_rdprf
    EXCEPTIONS
        P_ERR_MARC_BSTRF = 1
        P_ERR_MARC_RDPRF = 2
        ERR_T439A = 3
. " MARC_BSTRF




ABAP code using 7.40 inline data declarations to call FM MARC_BSTRF

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 BSTMA FROM MARC INTO @DATA(ld_p_bstma).
 
"SELECT single BSTRF FROM MARC INTO @DATA(ld_p_bstrf).
 
 
"SELECT single BSTMI FROM MARC INTO @DATA(ld_p_bstmi).
 
"SELECT single RDPRF FROM MARC INTO @DATA(ld_p_rdprf).
 
 
"SELECT single BSTFE FROM MARC INTO @DATA(ld_p_bstfe).
 
"SELECT single BSTRF FROM MARC INTO @DATA(ld_p_bstrf).
 
 
"SELECT single BSTMA FROM MARC INTO @DATA(ld_p_bstma).
 
"SELECT single RDPRF FROM MARC INTO @DATA(ld_p_rdprf).
 
"SELECT single BSTMI FROM MARC INTO @DATA(ld_p_bstmi).
 
"SELECT single DISPR FROM MARC INTO @DATA(ld_p_dispr).
 
"SELECT single DISLS FROM MARC INTO @DATA(ld_p_disls).
 
"SELECT single WERKS FROM RM03M INTO @DATA(ld_p_werks).
 
"SELECT single MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_kz_no_warn).
DATA(ld_p_kz_no_warn) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!