SAP ABAP Class CL_PPH_HANA_ACCESS_MATERIAL (Get Material Master MT61D and CM61B)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   PP-MRP (Application Component) Material Requirements Planning
     PPH_ACCESS_HANA (Package) PP on HANA: Access to HANA objects
Properties
Class CL_PPH_HANA_ACCESS_MATERIAL  
Short Description Get Material Master MT61D and CM61B    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PPH_ACCESS_HANA   PP on HANA: Access to HANA objects 
Created 20120723   SAP 
Last change 20131127   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 M61X Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_PPH_HANA_ACCESS_MATERIAL has no interface implemented.
Friends
Class CL_PPH_HANA_ACCESS_MATERIAL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GR_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_PPH_HANA_ACCESS_MATERIAL Singleton 20120802
2 MT_CM61B_OUT Instance attribute Protected Type reference (TYPE) PPH_M61XCM61B_ENH_TAB Table for MRP-Area Details (Type Grp M61X -> M61X_CM61B) 20120723
3 MT_MAKT_OUT Instance attribute Protected Type reference (TYPE) PPH_MAKT_TAB Material Short Text - Table 20120802
4 MT_MAPRO_OUT Instance attribute Protected Type reference (TYPE) PPH_MAPRO_TAB View on Material Master (Forecasting) 20120816
5 MT_MARC_MMSTA_OUT Instance attribute Protected Type reference (TYPE) PPH_MARC_MMSTA_TAB Material status from MARC 20120802
6 MT_MSFCV_OUT Instance attribute Protected Type reference (TYPE) PPH_TTY_MSFCV Material Master: MRP - Table Type 20120811
7 MT_MT61D_OUT Instance attribute Protected Type reference (TYPE) PPH_MT61D_TAB Material Master: MRP - Table Type 20120723
8 MV_READ_PGZI Instance attribute Private Type reference (TYPE) KZVPL Indicator that planning data for plant should be read 20121122
Methods
# Method Level Visibility Method type Description Created on
1 FETCH_MSFCV_BY_MATNR_WERKS Instance method Public Method Fetch single MSFCV for a given MATNR/WERKS from result buffe 20120811
2 GET_CM61B_ALL Instance method Public Method Retrieve complete buffered CM61B Table 20120912
3 GET_INSTANCE Static method Public Method Singleton 20120802
4 GET_MATNR_WERKS_BERID_SEL Instance method Public Method 20130418
5 GET_MT61D_ALL Instance method Public Method Retrieve complete buffered MT61D Table 20120802
6 PREPARE_MAKT_BULK_OPENSQL Instance method Public Method Select Material in bulk for MAKT 20120802
7 PREPARE_MAPRO_BULK_OPENSQL Instance method Public Method Select Material in bulk for MAPRO 20120816
8 PREPARE_MARCMMSTA_BULK_OPENSQL Instance method Public Method Select Material in bulk for MARC, Field MMSTA only 20120802
9 PREPARE_MT61D_BULK_OPENSQL Instance method Public Method Select Material in bulk for MT61D AND CM61B 20120802
10 REFRESH_MT61D_AND_CM61B Instance method Public Method Refresh buffer (used for Unit Tests only) 20120906
11 RETRIEVE_CM61B_BY_MATNR_BERID Instance method Public Method Retrieve structure CM61B for a given MRP-Area (and MATNR) 20120807
12 RETRIEVE_MAKT_BY_MATNR Instance method Public Method Retrieve record from previously bulk-selected MAKT-records 20120802
13 RETRIEVE_MAPRO_BY_MATNR_WERKS Instance method Public Method Retrieve single MAPRO for a given MATNR/WERKS 20120816
14 RETRIEVE_MMSTA_BY_MATNR_WERKS Instance method Public Method Retrieve Material Status from prefetched table 20120802
15 RETRIEVE_MT61D_BY_MATNR_WERKS Instance method Public Method Retrieve single MT61D for a given MATNR/WERKS 20120723
16 SET_PGZI Instance method Public Method Set indicator that planning data for plant should be read 20121122
Events
Class CL_PPH_HANA_ACCESS_MATERIAL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 PPH_TTY_MSFCV Protected See coding 20120811 PPH_TTY_MSFCV TYPE SORTED TABLE OF PPH_TY_MSFCV WITH UNIQUE KEY matnr werks
2 PPH_TY_MSFCV Protected See coding 20120811 BEGIN OF PPH_TY_MSFCV, matnr TYPE matnr, werks TYPE werks_d, langu TYPE spras. INCLUDE TYPE msfcv AS msfcv. INCLUDE TYPE mtcor AS mtcor. TYPES END OF PPH_TY_MSFCV
Method Signatures

Method FETCH_MSFCV_BY_MATNR_WERKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_MSFCV Call by reference Type reference (TYPE) MSFCV Material Master View on Production Orders 20120811
2 Exporting ES_MTCOR Call by reference Type reference (TYPE) MTCOR Material Master View: Return Codes 20120811
3 Exporting EV_SUBRC Call by reference Type reference (TYPE) SYSUBRC Return Value of ABAP Statements 20120811
4 Importing IS_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_SEL Type for Global temporary table for selecting from HANA (PP) 20120811
5 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS Language Key of Current Text Environment 20120811

Method FETCH_MSFCV_BY_MATNR_WERKS on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method GET_CM61B_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_CM61B_OUT Value transfer Type reference (TYPE) PPH_M61XCM61B_ENH_TAB Material Master: MRP - Table Type 20120912

Method GET_CM61B_ALL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_PPH_HANA_ACCESS_MATERIAL Get Material Master MT61D and CM61B 20120802

Method GET_INSTANCE on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method GET_MATNR_WERKS_BERID_SEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DISPO Call by reference Type reference (TYPE) DISPO MRP Controller (Materials Planner) 20130418
2 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D Plant 20130418
3 Returning RT_MATNR_WERKS_BERID_SEL Value transfer Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL_TAB Global temporary table for selecting from HANA (PP) 20130418

Method GET_MATNR_WERKS_BERID_SEL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method GET_MT61D_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_MT61D_OUT Value transfer Type reference (TYPE) PPH_MT61D_TAB Material Master: MRP - Table Type 20120802

Method GET_MT61D_ALL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method PREPARE_MAKT_BULK_OPENSQL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL_TAB Global temporary table for selecting from HANA (PP) 20120802
2 Importing IV_WITHFALLBACK_LANGU Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE search for a fallback language 20120809

Method PREPARE_MAKT_BULK_OPENSQL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method PREPARE_MAPRO_BULK_OPENSQL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL_TAB Global temporary table for selecting from HANA (PP) 20120816

Method PREPARE_MAPRO_BULK_OPENSQL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method PREPARE_MARCMMSTA_BULK_OPENSQL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL_TAB Global temporary table for selecting from HANA (PP) 20120802

Method PREPARE_MARCMMSTA_BULK_OPENSQL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method PREPARE_MT61D_BULK_OPENSQL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL_TAB Global temporary table for selecting from HANA (PP) 20120802

Method PREPARE_MT61D_BULK_OPENSQL on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method REFRESH_MT61D_AND_CM61B Signature

Method REFRESH_MT61D_AND_CM61B on class CL_PPH_HANA_ACCESS_MATERIAL has no parameter.
Method REFRESH_MT61D_AND_CM61B on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method RETRIEVE_CM61B_BY_MATNR_BERID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL Type for Global temporary table for selecting from HANA (PP) 20120807
2 Returning RS_CM61B Value transfer Type reference (TYPE) M61X_CM61B Structure for MRP-Area Details (Type Grp M61X -> M61X_CM61B) 20120807

Method RETRIEVE_CM61B_BY_MATNR_BERID on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method RETRIEVE_MAKT_BY_MATNR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20120802
2 Returning RS_MAKT_REDUCED Value transfer Type reference (TYPE) MAKT Material Descriptions 20120802

Method RETRIEVE_MAKT_BY_MATNR on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method RETRIEVE_MAPRO_BY_MATNR_WERKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL Type for Global temporary table for selecting from HANA (PP) 20120816
2 Returning RS_MAPRO Value transfer Type reference (TYPE) MAPRO 20120816

Method RETRIEVE_MAPRO_BY_MATNR_WERKS on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method RETRIEVE_MMSTA_BY_MATNR_WERKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_SEL Type for Global temporary table for selecting from HANA (PP) 20120802
2 Returning RS_MARCMMSTA Value transfer Type reference (TYPE) PPH_MARC_MMSTA Material status from MARC 20120802

Method RETRIEVE_MMSTA_BY_MATNR_WERKS on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method RETRIEVE_MT61D_BY_MATNR_WERKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SELECTION Call by reference Type reference (TYPE) PPH_MATNR_WERKS_BERID_SEL Type for Global temporary table for selecting from HANA (PP) 20120723
2 Returning RS_MT61D Value transfer Type reference (TYPE) MT61D Material Master: MRP 20120723

Method RETRIEVE_MT61D_BY_MATNR_WERKS on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.

Method SET_PGZI Signature

Method SET_PGZI on class CL_PPH_HANA_ACCESS_MATERIAL has no parameter.
Method SET_PGZI on class CL_PPH_HANA_ACCESS_MATERIAL has no exception.
History
Last changed by/on SAP  20131127 
SAP Release Created in 616