SAP MURC_ALL_BATCH_FACTORS_NEW Function Module for NOTRANSL: Neuer Baustein zum Lesen aller Chargenfaktoren









MURC_ALL_BATCH_FACTORS_NEW is a standard murc all batch factors new 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: Neuer Baustein zum Lesen aller Chargenfaktoren 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 murc all batch factors new FM, simply by entering the name MURC_ALL_BATCH_FACTORS_NEW into the relevant SAP transaction such as SE37 or SE38.

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



Function MURC_ALL_BATCH_FACTORS_NEW 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 'MURC_ALL_BATCH_FACTORS_NEW'"NOTRANSL: Neuer Baustein zum Lesen aller Chargenfaktoren
EXPORTING
IF_MATNR = "Material Number
* IF_KZDCH = "Indicator: Definition of Batch Management Level
* IF_KZDWS = "Definition: Used for proportion/product units
* IF_MEINS = "Base Unit of Measure
IF_MEINH = "Alternative Unit of Measure for Stockkeeping Unit

TABLES
IT_SEL_CHARG = "Transfer Batch Selection Criteria to Read MCHP
IT_SEL_WERKS = "Transfer Batch Selection Criteria to Read MCHP
* IT_MCHA_OBJEK = "
* IT_MCH1_OBJEK = "
* IT_OBJEK = "
ET_CONV_TAB = "Structure for conversion of units of measure (at btch level)

EXCEPTIONS
NOT_FOUND = 1 NO_BATCH_CONVERSION = 2
.



IMPORTING Parameters details for MURC_ALL_BATCH_FACTORS_NEW

IF_MATNR - Material Number

Data type: MATNR
Optional: No
Call by Reference: Yes

IF_KZDCH - Indicator: Definition of Batch Management Level

Data type: KZDCH
Optional: Yes
Call by Reference: Yes

IF_KZDWS - Definition: Used for proportion/product units

Data type: KZDWS
Optional: Yes
Call by Reference: Yes

IF_MEINS - Base Unit of Measure

Data type: MARA-MEINS
Optional: Yes
Call by Reference: Yes

IF_MEINH - Alternative Unit of Measure for Stockkeeping Unit

Data type: MARM-MEINH
Optional: No
Call by Reference: Yes

TABLES Parameters details for MURC_ALL_BATCH_FACTORS_NEW

IT_SEL_CHARG - Transfer Batch Selection Criteria to Read MCHP

Data type: SEL_CHARG
Optional: No
Call by Reference: Yes

IT_SEL_WERKS - Transfer Batch Selection Criteria to Read MCHP

Data type: SEL_WERKS
Optional: No
Call by Reference: Yes

IT_MCHA_OBJEK -

Data type:
Optional: Yes
Call by Reference: Yes

IT_MCH1_OBJEK -

Data type:
Optional: Yes
Call by Reference: Yes

IT_OBJEK -

Data type:
Optional: Yes
Call by Reference: Yes

ET_CONV_TAB - Structure for conversion of units of measure (at btch level)

Data type: RMMME2
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_BATCH_CONVERSION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MURC_ALL_BATCH_FACTORS_NEW 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_if_matnr  TYPE MATNR, "   
lv_not_found  TYPE MATNR, "   
lt_it_sel_charg  TYPE STANDARD TABLE OF SEL_CHARG, "   
lv_if_kzdch  TYPE KZDCH, "   
lt_it_sel_werks  TYPE STANDARD TABLE OF SEL_WERKS, "   
lv_no_batch_conversion  TYPE SEL_WERKS, "   
lv_if_kzdws  TYPE KZDWS, "   
lt_it_mcha_objek  TYPE STANDARD TABLE OF KZDWS, "   
lv_if_meins  TYPE MARA-MEINS, "   
lt_it_mch1_objek  TYPE STANDARD TABLE OF MARA, "   
lv_if_meinh  TYPE MARM-MEINH, "   
lt_it_objek  TYPE STANDARD TABLE OF MARM, "   
lt_et_conv_tab  TYPE STANDARD TABLE OF RMMME2. "   

  CALL FUNCTION 'MURC_ALL_BATCH_FACTORS_NEW'  "NOTRANSL: Neuer Baustein zum Lesen aller Chargenfaktoren
    EXPORTING
         IF_MATNR = lv_if_matnr
         IF_KZDCH = lv_if_kzdch
         IF_KZDWS = lv_if_kzdws
         IF_MEINS = lv_if_meins
         IF_MEINH = lv_if_meinh
    TABLES
         IT_SEL_CHARG = lt_it_sel_charg
         IT_SEL_WERKS = lt_it_sel_werks
         IT_MCHA_OBJEK = lt_it_mcha_objek
         IT_MCH1_OBJEK = lt_it_mch1_objek
         IT_OBJEK = lt_it_objek
         ET_CONV_TAB = lt_et_conv_tab
    EXCEPTIONS
        NOT_FOUND = 1
        NO_BATCH_CONVERSION = 2
. " MURC_ALL_BATCH_FACTORS_NEW




ABAP code using 7.40 inline data declarations to call FM MURC_ALL_BATCH_FACTORS_NEW

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 MEINS FROM MARA INTO @DATA(ld_if_meins).
 
 
"SELECT single MEINH FROM MARM INTO @DATA(ld_if_meinh).
 
 
 


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!