SAP ABAP Class CL_MGIR_SSTN_DB (To access/update the db of matr/info record sustainability)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-MD-MM (Application Component) Material Master
     MG_SSTN (Package) Material Sustainability
Properties
Class CL_MGIR_SSTN_DB  
Short Description To access/update the db of matr/info record sustainability    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MG_SSTN   Material Sustainability 
Created 20100722   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_MGIR_SSTN_DB has no forward declaration.
Interfaces
Class CL_MGIR_SSTN_DB has no interface implemented.
Friends
Class CL_MGIR_SSTN_DB has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GS_LIFNR_EKORG Instance attribute Private Type reference (TYPE) SSTN_MGIR_ID_STY Material Sustainability Generic attributes 20100811
2 GS_MATNR_LIFNR Instance attribute Private Type reference (TYPE) SSTN_MGIR_ID_STY Material Sustainability Generic attributes 20100811
3 GS_MATNR_WERKS Instance attribute Private Type reference (TYPE) SSTN_MGIR_ID_STY Material Sustainability Generic attributes 20100811
4 GS_SSTN_MGIR_STY Instance attribute Private Type reference (TYPE) SSTN_MGIR_STY Used in data passing accross application 20100812
5 GT_SSTN_MGIR_ECOLBL Instance attribute Private Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100901
6 GV_LIFNR Instance attribute Private Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20100920
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_DIRECT_ENG_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100812
2 CHECK_DIRECT_WA_GEN_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100812
3 CHECK_DIRECT_WA_USD_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100812
4 CHECK_ECOLBL_EXIST Instance method Public Method Checks Vendor Exist 20100901
5 CHECK_ECOLBL_RAT_EXIST Instance method Public Method Checks Vendor Exist 20100901
6 CHECK_GHG_SCOPE1_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100813
7 CHECK_GHG_SCOPE2_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100813
8 CHECK_GHG_SCOPE3_UNIT_EXIST Instance method Public Method Checks Vendor Exist 20100813
9 CHECK_LIFNR_PORG_EXIST Instance method Public Method Checks Vendor Exist 20100811
10 CHECK_MATERIAL_EXIST Instance method Public Method Checks Vendor Exist 20100810
11 CHECK_MAT_PUR_EXIST Instance method Public Method Check Material had purchasing view 20110524
12 CHECK_MTRL_LIFNR_EXIST Instance method Public Method Checks Vendor Exist 20100811
13 CHECK_MTRL_PLANT_EXIST Instance method Public Method Checks Vendor Exist 20100811
14 CHECK_PLANT_EXIST Instance method Public Method Checks Vendor Exist 20100810
15 CHECK_PORG_EXIST Instance method Public Method Checks Vendor Exist 20100810
16 CHECK_RECORD_EXISTS Instance method Public Method 20101028
17 CHECK_VENDOR_EXIST Instance method Public Method Checks Vendor Exist 20100810
18 DEQUEUE_E_MGSSTN Instance method Public Method To denqueue/unlock the DB table LFSSTN during edit mode 20100922
19 DEQUEUE_E_SSTNVL Instance method Public Method To Dequeue Material Vendor Combination During Create 20110603
20 ENQUEUE_E_MGSSTN Instance method Public Method To enqueue/lock the DB table LFSSTN during edit mode 20100922
21 ENQUEUE_E_SSTNVL Instance method Public Method To enqueue Material Vendor Combination during creation 20110603
22 GET_BEGRU Static method Public Method 20101004
23 GET_COPY_DETAILS Instance method Public Method 20101123
24 GET_DATA Instance method Public Method Get the data from DB 20100722
25 GET_MATERIAL_DATES Instance method Public Method To Fetch material dates from DB for a matnr 20101004
26 GET_MULTI_DATA Instance method Public Method Get the data from DB 20100922
27 MASS_MGIR_SAVE_DATA Instance method Public Method Mass save in DB 20100922
28 SAVE_DATA Instance method Public Method Set the data in DB 20100922
Events
Class CL_MGIR_SSTN_DB has no event.
Types
Class CL_MGIR_SSTN_DB has no local type.
Method Signatures

Method CHECK_DIRECT_ENG_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DEU_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100812
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100812

Method CHECK_DIRECT_ENG_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_DIRECT_WA_GEN_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DWGU_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100812
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100812

Method CHECK_DIRECT_WA_GEN_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_DIRECT_WA_USD_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DWUU_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100812
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100812

Method CHECK_DIRECT_WA_USD_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_ECOLBL_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ECOLBL_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100901
2 Importing IV_ECOLBL Call by reference Type reference (TYPE) SSTN_ECOLABEL_ID 20100901

Method CHECK_ECOLBL_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_ECOLBL_RAT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ECOLBL_RAT_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100901
2 Importing IV_ECOLBL_NAME Call by reference Type reference (TYPE) SSTN_ECOLABEL_ID Ecolabel Name 20100901
3 Importing IV_ECOLBL_RAT Call by reference Type reference (TYPE) SSTN_ECOLABEL_RATING Ecolabel Rating 20100901

Method CHECK_ECOLBL_RAT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_GHG_SCOPE1_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_GHGS1_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100813
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100813

Method CHECK_GHG_SCOPE1_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_GHG_SCOPE2_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_GHGS2_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100813
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100813

Method CHECK_GHG_SCOPE2_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_GHG_SCOPE3_UNIT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_GHGS3_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100813
2 Importing IV_MSEHI Call by reference Type reference (TYPE) T006-MSEHI Account Number of Vendor or Creditor 20100813

Method CHECK_GHG_SCOPE3_UNIT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_LIFNR_PORG_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LIFNR_EKORG_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100811
2 Importing IV_EKORG Call by reference Type reference (TYPE) EKORG Plant Table for National (Centrally Agreed) Contracts 20100811
3 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20100811

Method CHECK_LIFNR_PORG_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_MATERIAL_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MATNR_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100810
2 Exporting EV_MATNR_MARK_FOR_DEL Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100920
3 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Account Number of Vendor or Creditor 20100810

Method CHECK_MATERIAL_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_MAT_PUR_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_EXISTS Call by reference Type reference (TYPE) XFELD Checkbox 20110524
2 Importing IV_MAT Call by reference Type reference (TYPE) MATNR Material Number 20110524

Method CHECK_MAT_PUR_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_MTRL_LIFNR_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MATNR_LIFNR_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100811
2 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR Plant Table for National (Centrally Agreed) Contracts 20100811
3 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Account Number of Vendor or Creditor 20100811

Method CHECK_MTRL_LIFNR_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_MTRL_PLANT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MATNR_WERKS_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100811
2 Importing IV_MATNR Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY-MATNR Material 20100811
3 Importing IV_WERKS Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY-WERKS Plant 20100811

Method CHECK_MTRL_PLANT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_PLANT_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_WERKS_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100810
2 Importing IV_WERKS Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY-WERKS Plant 20100810

Method CHECK_PLANT_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_PORG_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_EKORG_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100810
2 Importing IV_EKORG Call by reference Type reference (TYPE) EKORG Account Number of Vendor or Creditor 20100810

Method CHECK_PORG_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_RECORD_EXISTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FAILED Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20101028
2 Importing IV_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20101213
3 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20101028
4 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20101028
5 Importing IV_WERKS Call by reference Type reference (TYPE) EWERK Plant Table for National (Centrally Agreed) Contracts 20101213

Method CHECK_RECORD_EXISTS on class CL_MGIR_SSTN_DB has no exception.

Method CHECK_VENDOR_EXIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LIFNR_EXIST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100810
2 Exporting EV_LIFNR_MARKED_FOR_DEL Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100920
3 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20100810

Method CHECK_VENDOR_EXIST on class CL_MGIR_SSTN_DB has no exception.

Method DEQUEUE_E_MGSSTN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_UUID Table type for Vendor Master Sustainability Fields 20100922

Method DEQUEUE_E_MGSSTN on class CL_MGIR_SSTN_DB has no exception.

Method DEQUEUE_E_SSTNVL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LIFNR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20110603
2 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20110603

Method DEQUEUE_E_SSTNVL on class CL_MGIR_SSTN_DB has no exception.

Method ENQUEUE_E_MGSSTN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ERROR Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20100922
2 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_UUID Table type for Vendor Master Sustainability Fields 20100922

Method ENQUEUE_E_MGSSTN on class CL_MGIR_SSTN_DB has no exception.

Method ENQUEUE_E_SSTNVL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ERROR Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20110603
2 Importing IV_LIFNR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20110603
3 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20110603

Method ENQUEUE_E_SSTNVL on class CL_MGIR_SSTN_DB has no exception.

Method GET_BEGRU Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20101004
2 Returning RE_BRGRU Value transfer Type reference (TYPE) BEGRU Authorization Group 20101004

Method GET_BEGRU on class CL_MGIR_SSTN_DB has no exception.

Method GET_COPY_DETAILS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_DATA Call by reference Type reference (TYPE) TT_SSTN_MGIR 20101123
2 Exporting ET_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL 20101123
3 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR 20101123
4 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_MGIR_UUID 20101123

Method GET_COPY_DETAILS on class CL_MGIR_SSTN_DB has no exception.

Method GET_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_SSTN_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_STY Table type for SSTN_MGIR 20100922
2 Exporting ET_MG_SSTN_CERT Call by reference Type reference (TYPE) TT_MG_SSTN_CERT 20101111
3 Exporting ET_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100803
4 Importing IS_SSTN_MGIR_ID_STY Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY Material Sustainability Generic attributes 20100809
5 Importing IV_LATEST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100824
6 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_UUID SSTN UUID 20100729

Method GET_DATA on class CL_MGIR_SSTN_DB has no exception.

Method GET_MATERIAL_DATES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SSTN_DATES Call by reference Type reference (TYPE) MTT_SSTN_DATES 20101004
2 Importing IV_EKORG Call by reference Type reference (TYPE) EKORG 20101102
3 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR 20101005
4 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR 20101004
5 Importing IV_WERKS Call by reference Type reference (TYPE) EWERK Plant 20101102

Method GET_MATERIAL_DATES on class CL_MGIR_SSTN_DB has no exception.

Method GET_MULTI_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SSTN_MGIR Call by reference Type reference (TYPE) TT_SSTN_MGIR Table type for SSTN_MGIR 20100922
2 Exporting ET_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100922
3 Importing IS_SSTN_MGIR_ID_STY Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY Material Sustainability Generic attributes 20100922
4 Importing IV_LATEST Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100922
5 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_UUID SSTN UUID 20100922

Method GET_MULTI_DATA on class CL_MGIR_SSTN_DB has no exception.

Method MASS_MGIR_SAVE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FAILED Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100923
2 Importing IT_MGIR_SSTN Call by reference Type reference (TYPE) TT_SSTN_MGIR Table type for SSTN_MGIR 20100923
3 Importing IT_MGIR_SSTN_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20101019

Method MASS_MGIR_SAVE_DATA on class CL_MGIR_SSTN_DB has no exception.

Method SAVE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_SSTN_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_STY Used in data passing accross application 20100922
2 Changing CT_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100922
3 Exporting EV_FAILED Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20100922

Method SAVE_DATA on class CL_MGIR_SSTN_DB has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 606