SAP ABAP Class CL_PLMIFO_ECN_MATERIAL_STOCKS (CL_PLMIFO_ECN_MATERIAL_STOCKS)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PLM-IFO (Application Component) Interactive Forms
     PLMIFO_ECN (Package) Interactive Forms in PLM - Change Request
Properties
Class CL_PLMIFO_ECN_MATERIAL_STOCKS  
Short Description    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class PLMIFO_ECN    
Program status P  SAP Standard Production Program 
Category 0   
Package PLMIFO_ECN   Interactive Forms in PLM - Change Request 
Created 20040113   SAP 
Last change 20040819   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_PLMIFO_ECN_MATERIAL_STOCKS has no forward declaration.
Interfaces
Class CL_PLMIFO_ECN_MATERIAL_STOCKS has no interface implemented.
Friends
Class CL_PLMIFO_ECN_MATERIAL_STOCKS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 SC_BUSTR_SCRAP Constant Public Type reference (TYPE) BUSTR 551 Posting String Reference (Inventory Mgmt) for Scrapping 20040114
2 SC_DEFAULT_MT_SCRAP Constant Public Type reference (TYPE) BWART 551 Default Movement Type (Inventory Management) for Scrapping 20040114
3 SC_FALSE Constant Public Type reference (TYPE) BOOLE_D ' ' Incorrect 20040114
4 SC_GM_CODE_GI Constant Private Type reference (TYPE) BAPI2017_GM_CODE '03' MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt 20040115
5 SC_TRUE Constant Public Type reference (TYPE) BOOLE_D 'X' True 20040114
6 SR_BADI_INSTANCE Static Attribute Private Object reference (TYPE REF TO) IF_EX_PLMIFO_ECN_MAT_STOCK BAdI Interface IF_EX_PLMIFO_ECN_MAT_STOCK 20040115
7 ST_SLOC Static Attribute Private Type reference (TYPE) TT_SLOC Table for Storage Locations 20040113
8 SV_BASE_UOM Static Attribute Private Type reference (TYPE) MEINS Base Unit of Measure 20040114
9 SV_EXIT_HDLR_CALLED Static Attribute Private Type reference (TYPE) BOOLE_D Exit Handler Was Called 20040115
10 SV_MATERIAL Static Attribute Private Type reference (TYPE) MATNR Material Number 20040114
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_AUTHORIZATION Static method Private Method Execute Authorization Check 20040113
2 CHECK_PARAMETERS Static method Private Method Check Input Parameter 20040113
3 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20040113
4 DETERMINE_ORG_UNITS Static method Private Method Determine Organizational Units 20040113
5 GET_BADI_INSTANCE Static method Private Method Returns BAdI Instance 20040115
6 GET_CURRENT_STOCK Static method Public Method Display Current Unrestricted-Use Stock 20040312
7 POST_MATERIAL_DOCUMENT Static method Private Method Post Material Document 20040114
8 PREPARE_MAT_DOC_HEADER Static method Private Method Prepare Material Document Header 20040114
9 PREPARE_MAT_DOC_ITEM Static method Private Method Prepare Material Document Item 20040114
10 SCRAP_CURRENT_STOCK Static method Public Method Display Current Unrestricted-Use Stock 20040312
11 SELECT_DATA Static method Private Method Select data 20040114
12 SUM_STOCK Static method Private Method Total Stock 20040114
Events
Class CL_PLMIFO_ECN_MATERIAL_STOCKS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TS_MAT_INFO Private See coding 20040114 BEGIN OF ts_mat_info, matnr TYPE matnr, werks TYPE werks_d, xchar TYPE xchar, meins TYPE meins, END OF ts_mat_info
2 TS_SLOC Private See coding Structure for Storage Locations 20040113 BEGIN OF ts_sloc, werks TYPE werks_d, lgort TYPE lgort_d, END OF ts_sloc
3 TT_MAT_INFO Private See coding 20040114 tt_mat_info TYPE SORTED TABLE OF ts_mat_info WITH UNIQUE KEY matnr werks
4 TT_SLOC Private See coding Table for Storage Locations 20040113 tt_sloc TYPE SORTED TABLE OF ts_sloc WITH UNIQUE KEY werks lgort
Method Signatures

Method CHECK_AUTHORIZATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040114

Method CHECK_AUTHORIZATION on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method CHECK_PARAMETERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040113
2 Importing IT_PLANT_RANGE Call by reference Type reference (TYPE) PLMIFO_TT_PLANT_RANGE Rangestabelle für Werk 20040113
3 Importing IV_COSTCENTER Call by reference Type reference (TYPE) KOSTL Kostenstelle 20040114
4 Importing IV_MATERIAL Call by reference Type reference (TYPE) MATNR Materialnummer 20040113
5 Importing IV_MOVE_TYPE Call by reference Type reference (TYPE) BWART Bewegungsart (Bestandsführung) 20040114

Method CHECK_PARAMETERS on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no parameter.
Method CLASS_CONSTRUCTOR on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method DETERMINE_ORG_UNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040115
2 Importing IT_PLANT_RANGE Call by reference Type reference (TYPE) PLMIFO_TT_PLANT_RANGE Rangestabelle für Werk 20040113

Method DETERMINE_ORG_UNITS on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method GET_BADI_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_INSTANCE Value transfer Object reference (TYPE REF TO) IF_EX_PLMIFO_ECN_MAT_STOCK BAdI-Interface IF_EX_PLMIFO_ECN_MAT_STOCK 20040115
# Exception Resumable Description Created on
1 INTERNAL_ERROR interner Fehler 20040115

Method GET_CURRENT_STOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040312
2 Exporting EV_BASE_UOM Call by reference Type reference (TYPE) MEINS Basismengeneinheit 20040312
3 Exporting EV_CURRENT_STOCK Call by reference Type reference (TYPE) LABST Bewerteter, frei verwendbarer Bestand 20040420
4 Importing IT_PLANT_RANGE Call by reference Type reference (TYPE) PLMIFO_TT_PLANT_RANGE Rangestabelle für Werk 20040312
5 Importing IV_MATERIAL Call by reference Type reference (TYPE) MATNR Materialnummer 20040312

Method GET_CURRENT_STOCK on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method POST_MATERIAL_DOCUMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040115
2 Exporting EV_GM_HEAD_RET Call by reference Type reference (TYPE) BAPI2017_GM_HEAD_RET MMIM: Outputstruktur für allgemeinen FB Warenbewegung buchen 20040115
3 Importing IS_GM_HEADER Call by reference Type reference (TYPE) BAPI2017_GM_HEAD_01 BAPI-Kommunikationsstruktur: Materialbeleg Kopfdaten 20040115
4 Importing IT_GM_ITEM Call by reference Type reference (TYPE) BAPI2017_GM_ITEM_CREATE_T BAPI-Kommunikationsstruktur: Materialbelegposition anlegen 20040115
5 Importing IV_GM_CODE Call by reference Type reference (TYPE) BAPI2017_GM_CODE MMIM: Umschlüsselung GM_CODE auf Transaktion der BestFührung 20040115
6 Importing IV_TESTRUN Call by reference Type reference (TYPE) TESTRUN Umschalten auf Simulations-Modus bei schreibenden BAPIs 20040115

Method POST_MATERIAL_DOCUMENT on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method PREPARE_MAT_DOC_HEADER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_GM_HEADER Call by reference Type reference (TYPE) BAPI2017_GM_HEAD_01 BAPI-Kommunikationsstruktur: Materialbeleg Kopfdaten 20040115
2 Importing IV_FILTER Call by reference Type reference (TYPE) PLMIFO_TV_FILTER Filterwert 20040115
3 Importing IV_PSTNG_DATE Call by reference Type reference (TYPE) BUDAT SY-DATLO Buchungsdatum im Beleg 20040114

Method PREPARE_MAT_DOC_HEADER on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method PREPARE_MAT_DOC_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_GM_ITEM Call by reference Type reference (TYPE) BAPI2017_GM_ITEM_CREATE_T Materialbelegpositionen 20040115
2 Importing IT_STOCK_INFO Call by reference Type reference (TYPE) TT_STOCK_INFO 20040115
3 Importing IV_COSTCENTER Call by reference Type reference (TYPE) KOSTL Kostenstelle 20040115
4 Importing IV_FILTER Call by reference Type reference (TYPE) PLMIFO_TV_FILTER Filterwert 20040115
5 Importing IV_MOVE_REAS Call by reference Type reference (TYPE) MB_GRBEW Grund der Bewegung 20040115
6 Importing IV_MOVE_TYPE Call by reference Type reference (TYPE) BWART Bewegungsart (Bestandsführung) 20040115

Method PREPARE_MAT_DOC_ITEM on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method SCRAP_CURRENT_STOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Tabelle mit BAPI Return Informationen 20040312
2 Exporting EV_GM_HEAD_RET Call by reference Type reference (TYPE) BAPI2017_GM_HEAD_RET MMIM: Outputstruktur für allgemeinen FB Warenbewegung buchen 20040312
3 Importing IT_PLANT_RANGE Call by reference Type reference (TYPE) PLMIFO_TT_PLANT_RANGE Rangestabelle für Werk 20040312
4 Importing IV_COSTCENTER Call by reference Type reference (TYPE) KOSTL Kostenstelle 20040312
5 Importing IV_FILTER Call by reference Type reference (TYPE) PLMIFO_TV_FILTER Filterwert 20040312
6 Importing IV_MATERIAL Call by reference Type reference (TYPE) MATNR Materialnummer 20040312
7 Importing IV_MOVE_REAS Call by reference Type reference (TYPE) MB_GRBEW Grund der Bewegung 20040312
8 Importing IV_MOVE_TYPE Call by reference Type reference (TYPE) BWART Bewegungsart (Bestandsführung) 20040312
9 Importing IV_PSTNG_DATE Call by reference Type reference (TYPE) BUDAT Buchungsdatum im Beleg 20040312
10 Importing IV_TESTRUN Call by reference Type reference (TYPE) TESTRUN Umschalten auf Simulations-Modus bei schreibenden BAPIs 20040312

Method SCRAP_CURRENT_STOCK on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method SELECT_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_STOCK_INFO Call by reference Type reference (TYPE) TT_STOCK_INFO 20040114
2 Importing IV_BATCH_LEVEL Call by reference Type reference (TYPE) BOOLE_D Daten auf Chargenebene erforderlich? 20040114

Method SELECT_DATA on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.

Method SUM_STOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_STOCK_INFO Call by reference Type reference (TYPE) TT_STOCK_INFO 20040114
2 Returning RV_CURRENT_STOCK Value transfer Type reference (TYPE) LABST Bewerteter, frei verwendbarer Bestand 20040420

Method SUM_STOCK on class CL_PLMIFO_ECN_MATERIAL_STOCKS has no exception.
History
Last changed by/on SAP  20040819 
SAP Release Created in 500