SAP ABAP Class CL_MGIR_SSTN_API (API Class for Matr. & Info recrod Sustainable Attributes)
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_API  
Short Description API Class for Matr. & Info recrod Sustainable Attributes    
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_API has no forward declaration.
Interfaces
Class CL_MGIR_SSTN_API has no interface implemented.
Friends
Class CL_MGIR_SSTN_API has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_MATNR_NR Static Attribute Public Type reference (TYPE) CHAR10 'MATNR_SST' Character Field Length = 10 20100922
2 MS_DEFAULT_DURING_CREATE Static Attribute Private Type reference (TYPE) SSTN_MGIR_ID_EXT Boolean Variable (X=True, -=False, Space=Unknown) 20101021
3 MS_NODE_DATA Instance attribute Private Type reference (TYPE) MAT_SSTN_HEADER Vendor Sustainability - Header 20101126
4 MS_SSTN_MGIR_ID_STY Static Attribute Private Type reference (TYPE) SSTN_MGIR_ID_STY Material sustainability generic attributes 20100922
5 MS_SSTN_MGIR_STY Instance attribute Private Type reference (TYPE) SSTN_MGIR_STY Used in data passing accross application 20100922
6 MT_SSTN_ATTR_AD_VAL_DAT Instance attribute Private Type reference (TYPE) TT_SSTN_MGIR Table type for SSTN_MGIR 20100922
7 MT_SSTN_MGIR_ECOLBL Instance attribute Private Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100922
8 MV_MATNR Instance attribute Private Type reference (TYPE) MATNR Material Number 20101004
9 MV_UUID Static Attribute Private Type reference (TYPE) SSTN_UUID SSTN UUID 20100922
10 OR_API_REF Static Attribute Public Object reference (TYPE REF TO) CL_MGIR_SSTN_API API Class for Matr. & Info recrod Sustainable Attributes 20100728
11 OR_DB_REF_MGIR Instance attribute Private Object reference (TYPE REF TO) CL_MGIR_SSTN_DB To access/update the db of matr/info record sustainability 20100726
Methods
# Method Level Visibility Method type Description Created on
1 ADJUST_VALIDITY_DATES Instance method Public Method ADJUST_VALIDITY_DATES 20100823
2 AUTHORITY_CHECK Instance method Private Method 20101004
3 CHECK_LIFNR_PORG_EXIST Instance method Public Method Checks Vendor Exist 20100811
4 CHECK_MATERIAL_EXIST Instance method Public Method checks vendor exist 20100810
5 CHECK_MAT_PUR_EXISTS Instance method Public Method checks material purchasing view or not 20110524
6 CHECK_MTRL_LIFNR_EXIST Instance method Public Method Checks Vendor Exist 20100811
7 CHECK_MTRL_PLANT_EXIST Instance method Public Method Checks Vendor Exist 20100811
8 CHECK_PLANT_EXIST Instance method Public Method checks vendor exist 20100810
9 CHECK_PORG_EXIST Instance method Public Method checks vendor exist 20100810
10 CHECK_RECORD_EXISTS Instance method Public Method 20101028
11 CHECK_VENDOR_EXIST Instance method Public Method checks vendor exist 20100810
12 CHK_GENERIC Instance method Public Method To check the basic errors 20100810
13 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20100819
14 DEFAULT_WHILE_CREATE Instance method Public Method Default_While_Create 20101018
15 DELETE Instance method Public Method 20101021
16 GENERATE_SSTN_ID Instance method Private Method 20100903
17 GET_COPY_DETAILS Instance method Public Method Gets the details to be copied for the uuid. 20101123
18 GET_INSTANCE Static method Public Method Returns Instance of API class 20100728
19 GET_MATERIAL_SSTN_DATES Instance method Public Method Get the all the val dates for a matnr 20101004
20 GET_VENDOR_MGIR_SSTN Instance method Public Method Get the instance attributes 20100727
21 LOCK_MATERIAL_VENDOR Instance method Public Method 20110603
22 MAP_ACTIVITY Instance method Private Method 20101004
23 MASS_SAVE_MGIR_SSTN Instance method Public Method Mass save of material sustainability records 20100922
24 MODIFY_DATA_BADI Instance method Private Method 20100907
25 PRIMARY_CHECKS Instance method Public Method Checks initial screen 20101006
26 READ_COPY_NODE Instance method Public Method Get the copy from node data 20101126
27 REFRESH_DATA Instance method Public Method Refresh / Clear Data 20100810
28 SAVE_VENDOR_MGIR_SSTN Instance method Public Method Save the instance attributes 20100727
29 SET_COPY_FROM_NODE Instance method Public Method Sets the node data. 20101126
30 UNDELETE Instance method Public Method 20101021
31 UPDATE_VENDOR_MGIR_SSTN Instance method Public Method Updates the instance attributes 20100727
Events
Class CL_MGIR_SSTN_API has no event.
Types
Class CL_MGIR_SSTN_API has no local type.
Method Signatures

Method ADJUST_VALIDITY_DATES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20100824
2 Importing IS_SSTN_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_STY Used for data passing across application 20101108
3 Importing IV_MODIFY_DB Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20100825

Method ADJUST_VALIDITY_DATES on class CL_MGIR_SSTN_API has no exception.

Method AUTHORITY_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_ACTVT Call by reference Type reference (TYPE) MAT_SSTN_AUTH Single-Character Indicator 20101004
2 Importing IM_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20101004
3 Importing IM_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20101004
4 Importing IM_VENDOR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20101004
5 Importing IM_WERKS Call by reference Type reference (TYPE) EWERK Plant Table for National (Centrally Agreed) Contracts 20101004
6 Returning RE_AUTH Value transfer Type reference (TYPE) CHAR1 Single-Character Indicator 20101004
# Exception Resumable Description Created on
1 NO_AUTHORITY 20101004

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_API 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_MARKED_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_API has no exception.

Method CHECK_MAT_PUR_EXISTS 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_EXISTS on class CL_MGIR_SSTN_API 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_API 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_API 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_API 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_API 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 Checkbox 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_API 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_API has no exception.

Method CHK_GENERIC 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 20100810
2 Changing CT_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100810
3 Exporting ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20100810

Method CHK_GENERIC on class CL_MGIR_SSTN_API has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CREATE_PARAM Value transfer Type reference (TYPE) SSTN_MGIR_CREATE_S Create Params 20100819

Method CONSTRUCTOR on class CL_MGIR_SSTN_API has no exception.

Method DEFAULT_WHILE_CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SSTN_MGIR_CREATE_S Call by reference Type reference (TYPE) SSTN_MGIR_CREATE_S Create Params 20101021

Method DEFAULT_WHILE_CREATE on class CL_MGIR_SSTN_API has no exception.

Method DELETE Signature

Method DELETE on class CL_MGIR_SSTN_API has no parameter.
Method DELETE on class CL_MGIR_SSTN_API has no exception.

Method GENERATE_SSTN_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20100903
2 Exporting EV_SSTN_ID Call by reference Type reference (TYPE) MATNR_SUST_ID Material Sustainability ID 20100903

Method GENERATE_SSTN_ID on class CL_MGIR_SSTN_API 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 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR 20101123
3 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_MGIR_UUID 20101123

Method GET_COPY_DETAILS on class CL_MGIR_SSTN_API has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ER_API_REF Call by reference Object reference (TYPE REF TO) CL_MGIR_SSTN_API API Class for Matr. & Info recrod Sustainable Attributes 20100728
2 Importing IS_SSTN_MGIR_ID_STY Call by reference Type reference (TYPE) SSTN_MGIR_ID_STY Material sustainability generic attributes 20100819
3 Importing IV_UUID Call by reference Type reference (TYPE) SSTN_UUID SSTN UUID 20100819

Method GET_INSTANCE on class CL_MGIR_SSTN_API has no exception.

Method GET_MATERIAL_SSTN_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_SSTN_DATES on class CL_MGIR_SSTN_API has no exception.

Method GET_VENDOR_MGIR_SSTN 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_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20101021
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 IV_MODE Call by reference Type reference (TYPE) CHAR1 'D' Single-Character Indicator 20100922
# Exception Resumable Description Created on
1 NO_AUTHORITY 20101004
2 OBJECT_LOCKED 20110603

Method LOCK_MATERIAL_VENDOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20110603
2 Exporting EV_ERROR Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20110603
3 Importing IV_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20110603
4 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20110603
# Exception Resumable Description Created on
1 OBJECT_LOCKED 20110603

Method MAP_ACTIVITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ACTVT Call by reference Type reference (TYPE) MAT_SSTN_AUTH Material Sustainability Authorisation 20101004
2 Returning RE_ACTVT Value transfer Type reference (TYPE) MAT_SSTN_ACT Sustainability Activity 20101004

Method MAP_ACTIVITY on class CL_MGIR_SSTN_API has no exception.

Method MASS_SAVE_MGIR_SSTN 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) 20100922
2 Importing IT_MGIR_SSTN Call by reference Type reference (TYPE) TT_SSTN_MGIR Table type for SSTN_MGIR 20100922
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_SAVE_MGIR_SSTN on class CL_MGIR_SSTN_API has no exception.

Method MODIFY_DATA_BADI Signature

Method MODIFY_DATA_BADI on class CL_MGIR_SSTN_API has no parameter.
Method MODIFY_DATA_BADI on class CL_MGIR_SSTN_API has no exception.

Method PRIMARY_CHECKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20101006
2 Importing IS_SSTN_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_STY Used for data passing across application 20101006

Method PRIMARY_CHECKS on class CL_MGIR_SSTN_API has no exception.

Method READ_COPY_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_NODE_DATA Call by reference Type reference (TYPE) MAT_SSTN_HEADER 20101126

Method READ_COPY_NODE on class CL_MGIR_SSTN_API has no exception.

Method REFRESH_DATA Signature

Method REFRESH_DATA on class CL_MGIR_SSTN_API has no parameter.
Method REFRESH_DATA on class CL_MGIR_SSTN_API has no exception.

Method SAVE_VENDOR_MGIR_SSTN 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 Used in data passing accross application 20100727
2 Exporting ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20101013
3 Exporting ET_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100803
4 Exporting EV_FAILED Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20100727

Method SAVE_VENDOR_MGIR_SSTN on class CL_MGIR_SSTN_API has no exception.

Method SET_COPY_FROM_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_NODE_DATA Call by reference Type reference (TYPE) MAT_SSTN_HEADER 20101126

Method SET_COPY_FROM_NODE on class CL_MGIR_SSTN_API has no exception.

Method UNDELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MSG_SSTN Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES 20101103

Method UNDELETE on class CL_MGIR_SSTN_API has no exception.

Method UPDATE_VENDOR_MGIR_SSTN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_T_MESSAGES Sustainability Messages Table Type 20100727
2 Importing IS_SSTN_MGIR Call by reference Type reference (TYPE) SSTN_MGIR_STY Used in data passing accross application 20100727
3 Importing IT_SSTN_MGIR_ECOLBL Call by reference Type reference (TYPE) TT_SSTN_MGIR_ECOLBL Table type for SSTN_MGIR_ECOLBL 20100803

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