SAP MATERIALIEN_ZUM_WERK Function Module for NOTRANSL: Lesen MARC-Sätze über View MCON zu Material und Werk









MATERIALIEN_ZUM_WERK is a standard materialien zum werk 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: Lesen MARC-Sätze über View MCON zu Material und Werk 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 materialien zum werk FM, simply by entering the name MATERIALIEN_ZUM_WERK into the relevant SAP transaction such as SE37 or SE38.

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



Function MATERIALIEN_ZUM_WERK 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 'MATERIALIEN_ZUM_WERK'"NOTRANSL: Lesen MARC-Sätze über View MCON zu Material und Werk
EXPORTING
ALLE_MATERIALIEN = "Strategy selection: consumption value as %
LAGERMATERIALIEN = "Strategy selection: consumption value as %
* E_ORGANISATION = ' ' "Purchasing Organization
* V_ORGANISATION = ' ' "Sales Organization
* WAEHRUNG = ' ' "Currency Key

TABLES
MATERIALIEN = "INVCO: Range Structure for Material Number Selection
WERKE = "INVCO: Ranges Structure for SalesOrg Selection
WERTETABELLE = "Inventory Controlling: Dataset for key figures
* MATKL = "INVCO: Structure for Material Group Selection
* MTART = "INVCO: Structure for Selection of Material Type
* MAABC = "INVCO: Structure for ABC Indicator Selection
* EKGRP = "INVCO: Structure for Purchasing Group Selection
* DISMM = "INVCO: Structure for MRP Type Selection
* DISPO = "INVCO: Structure for MRP Controller

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for MATERIALIEN_ZUM_WERK

ALLE_MATERIALIEN - Strategy selection: consumption value as %

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

LAGERMATERIALIEN - Strategy selection: consumption value as %

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

E_ORGANISATION - Purchasing Organization

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

V_ORGANISATION - Sales Organization

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

WAEHRUNG - Currency Key

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

TABLES Parameters details for MATERIALIEN_ZUM_WERK

MATERIALIEN - INVCO: Range Structure for Material Number Selection

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

WERKE - INVCO: Ranges Structure for SalesOrg Selection

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

WERTETABELLE - Inventory Controlling: Dataset for key figures

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

MATKL - INVCO: Structure for Material Group Selection

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

MTART - INVCO: Structure for Selection of Material Type

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

MAABC - INVCO: Structure for ABC Indicator Selection

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

EKGRP - INVCO: Structure for Purchasing Group Selection

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

DISMM - INVCO: Structure for MRP Type Selection

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

DISPO - INVCO: Structure for MRP Controller

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

EXCEPTIONS details

NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MATERIALIEN_ZUM_WERK 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_not_found  TYPE STRING, "   
lt_materialien  TYPE STANDARD TABLE OF MCBRMAT, "   
lv_alle_materialien  TYPE RMCB0-STAB1, "   
lt_werke  TYPE STANDARD TABLE OF MCBRWRK, "   
lv_lagermaterialien  TYPE RMCB0-STAB1, "   
lt_wertetabelle  TYPE STANDARD TABLE OF BCO_WERTE, "   
lv_e_organisation  TYPE T024W-EKORG, "   SPACE
lt_matkl  TYPE STANDARD TABLE OF MCBMATKL, "   
lv_v_organisation  TYPE TVKWZ-VKORG, "   SPACE
lt_mtart  TYPE STANDARD TABLE OF MCBMTART, "   
lv_waehrung  TYPE T001-WAERS, "   SPACE
lt_maabc  TYPE STANDARD TABLE OF MCBMAABC, "   
lt_ekgrp  TYPE STANDARD TABLE OF MCBEKGRP, "   
lt_dismm  TYPE STANDARD TABLE OF MCBDISMM, "   
lt_dispo  TYPE STANDARD TABLE OF MCBDISPO. "   

  CALL FUNCTION 'MATERIALIEN_ZUM_WERK'  "NOTRANSL: Lesen MARC-Sätze über View MCON zu Material und Werk
    EXPORTING
         ALLE_MATERIALIEN = lv_alle_materialien
         LAGERMATERIALIEN = lv_lagermaterialien
         E_ORGANISATION = lv_e_organisation
         V_ORGANISATION = lv_v_organisation
         WAEHRUNG = lv_waehrung
    TABLES
         MATERIALIEN = lt_materialien
         WERKE = lt_werke
         WERTETABELLE = lt_wertetabelle
         MATKL = lt_matkl
         MTART = lt_mtart
         MAABC = lt_maabc
         EKGRP = lt_ekgrp
         DISMM = lt_dismm
         DISPO = lt_dispo
    EXCEPTIONS
        NOT_FOUND = 1
. " MATERIALIEN_ZUM_WERK




ABAP code using 7.40 inline data declarations to call FM MATERIALIEN_ZUM_WERK

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 STAB1 FROM RMCB0 INTO @DATA(ld_alle_materialien).
 
 
"SELECT single STAB1 FROM RMCB0 INTO @DATA(ld_lagermaterialien).
 
 
"SELECT single EKORG FROM T024W INTO @DATA(ld_e_organisation).
DATA(ld_e_organisation) = ' '.
 
 
"SELECT single VKORG FROM TVKWZ INTO @DATA(ld_v_organisation).
DATA(ld_v_organisation) = ' '.
 
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_waehrung).
DATA(ld_waehrung) = ' '.
 
 
 
 
 


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!