SAP ABAP Class CL_RSDMD_LOOKUP_MASTER_DATA (Master Data Lookup)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW-WHM-DBA (Application Component) Data Basis
     RSDMD (Package) Master Data Update
Properties
Class CL_RSDMD_LOOKUP_MASTER_DATA  
Short Description Master Data Lookup    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class RSDMD    
Program status     
Category 0   
Package RSDMD   Master Data Update 
Created 20070905   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 RS Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 RSD Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
4 RSDM Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_RSDMD_LOOKUP_MASTER_DATA has no interface implemented.
Friends
Class CL_RSDMD_LOOKUP_MASTER_DATA has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 P_CURRENT_BUFFER_SIZE Instance attribute Private Type reference (TYPE) I Current buffer size 20071126
2 P_C_KEYDEFKIND_DEFAULT Constant Public Type reference (TYPE) ABAP_KEYDEFKIND 'D' Default key 20071126
3 P_C_KEYDEFKIND_TABLELINE Constant Public Type reference (TYPE) ABAP_KEYDEFKIND 'L' Table line is key 20071126
4 P_C_KEYDEFKIND_USER Constant Public Type reference (TYPE) ABAP_KEYDEFKIND 'U' User-defined key 20071126
5 P_C_MAX_BUFFER_SIZE Constant Private Type reference (TYPE) RSADOBJ 'MD_LOOKUP_MAX_BUFFER_SIZE' Maximum buffer size 20071126
6 P_C_PREFETCH_ATTEMPTED Constant Private Type reference (TYPE) RS_BOOL 'X' Prefetch was attempted 20071126
7 P_C_PREFETCH_LOGIC Constant Private Type reference (TYPE) RSADOBJ 'MD_LOOKUP_PREFETCH_LOGIC' Prefetch logic to be used? 20071126
8 P_C_PREFETCH_NOT_ATTEMPTED Constant Private Type reference (TYPE) RS_BOOL SPACE Prefetch was not attempted 20071126
9 P_C_TABLEKIND_ANY Constant Public Type reference (TYPE) ABAP_TABLEKIND 'A' Untyped table 20071126
10 P_C_TABLEKIND_HASHED Constant Public Type reference (TYPE) ABAP_TABLEKIND 'H' Hashed table 20071126
11 P_C_TABLEKIND_INDEX Constant Public Type reference (TYPE) ABAP_TABLEKIND 'I' Indexable table 20071126
12 P_C_TABLEKIND_SORTED Constant Public Type reference (TYPE) ABAP_TABLEKIND 'O' Sorted table 20071126
13 P_C_TABLEKIND_STD Constant Public Type reference (TYPE) ABAP_TABLEKIND 'S' Standard table 20071126
14 P_DATAPACK_SIZE Instance attribute Private Type reference (TYPE) I Datapackage size 20071126
15 P_MAX_BUFFER_SIZE Instance attribute Private Type reference (TYPE) I Maximum size of prefetch buffer 20071126
16 P_TH_BUFFER Instance attribute Private Type reference (TYPE) _TH_BUFFER Buffer of prefetched data 20071126
17 P_TH_IOBJ_META Static Attribute Private Type reference (TYPE) _TH_IOBJ_META Metadata of all infoobjects read 20071126
18 P_USE_PREFETCH_LOGIC Instance attribute Private Type reference (TYPE) RSBOOL Prefetch logic to be used? 20071126
Methods
# Method Level Visibility Method type Description Created on
1 ADD_DATA_TO_BUFFER Instance method Private Method Adds data to buffer table 20071126
2 CONSTRUCTOR Instance method Public Constructor constructor 20071126
3 CREATE_BUFFER Instance method Private Method Create the buffer table 20071126
4 CREATE_KEYS_TABLE Instance method Public Method Creates internal table having reduced fieldlist for Prefetch 20121031
5 FETCH Instance method Public Method fetch data from buffer (prefetch needs to be called before) 20071126
6 FREE_PREFETCHED_DATA Instance method Private Method Free data that has been prefetched already 20071126
7 GET_AVAILABLE_BUFFER_SIZE Instance method Private Method Get available buffer size 20071126
8 GET_DATA_OBJECTS Instance method Public Method Get a structured or table dataobject based on input 20071126
9 PREFETCH Instance method Public Method Prefetch data accoding to the given conditions 20071126
10 READ_DATA Instance method Public Method read data according to given conditions 20071126
11 READ_IOBJ_META_DATA Instance method Private Method Read InfoObject meta data 20071126
12 VALIDATE_INPUT Instance method Private Method Validate Input parameters 20071126
Events
Class CL_RSDMD_LOOKUP_MASTER_DATA has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 _S_FIELDNM Public See coding 20121031 BEGIN OF _s_fieldnm, fieldnm TYPE fieldname, END OF _s_fieldnm
2 _S_MAP_SRCFIELDNM_IOBJFIELDNM Public See coding 20071126 begin of _s_map_srcfieldnm_iobjfieldnm, src_fieldnm type rsd_fieldnm, iobj_fieldnm type rsd_fieldnm, end of _s_map_srcfieldnm_iobjfieldnm
3 _T_FIELDNM Public See coding 20121031 _t_fieldnm TYPE STANDARD TABLE OF _s_fieldnm WITH NON-UNIQUE DEFAULT KEY
4 _T_MAP_SRCFIELDNM_IOBJFIELDNM Public See coding 20071126 _t_map_srcfieldnm_iobjfieldnm type standard table of _s_map_srcfieldnm_iobjfieldnm with non-unique default key
Method Signatures

Method ADD_DATA_TO_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_T_DATA Call by reference Type reference (TYPE) ANY TABLE Buffer table 20071126
2 Importing I_T_DATA Call by reference Type reference (TYPE) ANY TABLE Input table 20071126

Method ADD_DATA_TO_BUFFER on class CL_RSDMD_LOOKUP_MASTER_DATA has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_MAX_BUFFER_SIZE Call by reference Type reference (TYPE) I Maximum size of the buffer 20071126
2 Importing I_USE_PREFETCH_LOGIC Call by reference Type reference (TYPE) RS_BOOL Use Prefetch logic? 20071126

Method CONSTRUCTOR on class CL_RSDMD_LOOKUP_MASTER_DATA has no exception.

Method CREATE_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_S_BUFFER Call by reference Type reference (TYPE) _S_BUFFER Buffer 20071126
2 Importing I_ALL_ATTRIBUTES Call by reference Type reference (TYPE) RS_BOOL Boolean 20071126
3 Importing I_BYPASS_BUFFER Call by reference Type reference (TYPE) RS_BOOL RS_C_FALSE Boolean 20071126
4 Importing I_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20071126
5 Importing I_DATE_FIELD Call by reference Type reference (TYPE) RSD_FIELDNM 20071126
6 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJNM InfoObject 20071126
7 Importing I_T_ATTRINM Call by reference Type reference (TYPE) RSDM_T_ATTRINM List of attribute names 20071126
8 Importing I_T_MAP Call by reference Type reference (TYPE) _T_MAP_SRCFIELDNM_IOBJFIELDNM Mapping between source field names and InfoObject field name 20071126
# Exception Resumable Description Created on
1 BUFFER_CREATION_FAILED Buffer creation failed 20071126
2 NO_SUCH_ATTRIBUTE No such attribute found 20071126
3 READ_ERROR 20071126
4 WRONG_IMPORT_PARAMETERS 20071126

Method CREATE_KEYS_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_R_TABLE Value transfer Object reference (TYPE REF TO) DATA reference to table (keys) 20121031
2 Exporting E_R_WA Call by reference Object reference (TYPE REF TO) DATA reference to structure (keys) 20121031
3 Importing I_T_FIELDNM Value transfer Type reference (TYPE) _T_MAP_SRCFIELDNM_IOBJFIELDNM Reduced field list of the table for prefetch (keys) 20121031
# Exception Resumable Description Created on
1 CREATE_ERROR Error while creating dataobjects 20121031

Method FETCH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_ATTRVAL Call by reference Type reference (TYPE) ANY Attribute value 20071126
2 Exporting E_S_DATA Call by reference Type reference (TYPE) ANY Data as a structure 20071126
3 Importing I_ATTRNM Call by reference Type reference (TYPE) RSDM_S_ATTRINM Single attribute name 20071126
4 Importing I_DATE Call by reference Type reference (TYPE) DATS Constant date value for time-dependent attributes 20071126
5 Importing I_DATE_FIELD Call by reference Type reference (TYPE) RSD_FIELDNM Variable date for time-dependent attributes 20071126
6 Importing I_ID Call by reference Type reference (TYPE) INT1 0 Id to separate different conditions on the same Infoobject 20130207
7 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJNM InfoObject 20071126
8 Importing I_KEY Call by reference Type reference (TYPE) ANY Single key value for which attributes are to be looked up 20071126
9 Importing I_LOGSYS Call by reference Type reference (TYPE) LOGSYS Logical System 20071126
10 Importing I_T_ATTRNM Call by reference Type reference (TYPE) RSDM_T_ATTRINM List of attribute names 20071126
11 Importing I_T_MAP Call by reference Type reference (TYPE) _T_MAP_SRCFIELDNM_IOBJFIELDNM Mapping between source fields and IOBJ fields 20071126
# Exception Resumable Description Created on
1 NO_DATA_FOUND No data was found in the MD tables for the selection 20071126
2 NO_SUCH_ATTRIBUTE There is no such attribute 20071126
3 READ_ERROR Error when reading 20071126
4 WRONG_IMPORT_PARAMETERS Incorrect call-up for module 20071126

Method FREE_PREFETCHED_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_S_BUFFER Call by reference Type reference (TYPE) _S_BUFFER Buffer table 20071126

Method FREE_PREFETCHED_DATA on class CL_RSDMD_LOOKUP_MASTER_DATA has no exception.

Method GET_AVAILABLE_BUFFER_SIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_BUFFER_SIZE Value transfer Type reference (TYPE) I Available buffer size 20071126

Method GET_AVAILABLE_BUFFER_SIZE on class CL_RSDMD_LOOKUP_MASTER_DATA has no exception.

Method GET_DATA_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_R_TABLE Value transfer Object reference (TYPE REF TO) DATA reference to table 20071126
2 Exporting E_R_WA Call by reference Object reference (TYPE REF TO) DATA reference to workarea 20071126
3 Importing I_ALL_ATTRIBUTES Call by reference Type reference (TYPE) RS_BOOL RS_C_FALSE All attributes 20071126
4 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJNM InfoObject name 20071126
5 Importing I_TABLE_KIND Call by reference Type reference (TYPE) ABAP_TABLEKIND 'S' Type of the table (STANDARD, SORTED OR HASHED) 20071126
6 Importing I_TIME_DEP Call by reference Type reference (TYPE) RS_BOOL RS_C_TRUE DATETO and DATEFROM needed? 20071126
7 Importing I_T_ATTRNM Call by reference Type reference (TYPE) RSDM_T_ATTRINM Attribute list 20071126
# Exception Resumable Description Created on
1 CREATE_ERROR Error while creating dataobjects 20071126
2 NO_SUCH_ATTRIBUTE No such attribute found 20071126
3 WRONG_IMPORT_PARAMETERS Wrong Import Parameters 20071126

Method PREFETCH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ALL_ATTRIBUTES Call by reference Type reference (TYPE) RS_BOOL RS_C_FALSE All attributes to be fetched 20071126
2 Importing I_BYPASS_BUFFER Call by reference Type reference (TYPE) RS_BOOL RS_C_FALSE Bypass buffer 20071126
3 Importing I_DATE Call by reference Type reference (TYPE) DATS Constant DATE for time-dependent attributes 20071126
4 Importing I_DATE_FIELD Call by reference Type reference (TYPE) RSD_FIELDNM Variable DATE for time-dependent attributes 20071126
5 Importing I_FLG_WHOLE_TABLE Call by reference Type reference (TYPE) RS_BOOL Read the whole Master Data 20071126
6 Importing I_ID Call by reference Type reference (TYPE) INT1 0 Id to separate different conditions on the same Infoobject 20130207
7 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJ-IOBJNM InfoObject 20071126
8 Importing I_LOGSYS Call by reference Type reference (TYPE) LOGSYS Logical System 20071126
9 Importing I_RESET_PREFETCHED_DATA Call by reference Type reference (TYPE) RS_BOOL RS_C_TRUE Resets exisiting prefetched data 20071126
10 Importing I_T_ATTRNM Call by reference Type reference (TYPE) RSDM_T_ATTRINM List of attributes to be prefetched - not used yet! 20071126
11 Importing I_T_KEYS Value transfer Type reference (TYPE) ANY TABLE Keys for which attributes are to be looked up 20071126
12 Importing I_T_MAP Call by reference Type reference (TYPE) _T_MAP_SRCFIELDNM_IOBJFIELDNM Mapping between source fields and IOBJ fields 20071126
# Exception Resumable Description Created on
1 BUFFER_LIMIT_REACHED The limit for buffering prefetched data has been reached 20071126
2 NO_DATA_FOUND Characteristic Value Does Not Exist in Master Data Tabl 20071126
3 NO_SUCH_ATTRIBUTE There is no such attribute 20071126
4 READ_ERROR Error when reading 20071126
5 WRONG_IMPORT_PARAMETERS Incorrect call-up for module 20071126

Method READ_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_ATTRVAL Call by reference Type reference (TYPE) ANY Attribute value 20071126
2 Exporting E_S_DATA Call by reference Type reference (TYPE) ANY Data as a structure 20071126
3 Exporting E_T_DATA Call by reference Type reference (TYPE) ANY TABLE Data result table 20071126
4 Importing I_ALL_ATTRIBUTES Call by reference Type reference (TYPE) RS_BOOL All attributes to be read 20071126
5 Importing I_ATTRNM Call by reference Type reference (TYPE) RSD_ATTRINM Single Attribute 20071126
6 Importing I_BYPASS_BUFFER Call by reference Type reference (TYPE) RS_BOOL RS_C_FALSE Boolean 20071126
7 Importing I_DATE Call by reference Type reference (TYPE) DATS Constant DATE value to be used for time-dependent attributes 20071126
8 Importing I_DATE_FIELD Call by reference Type reference (TYPE) RSD_FIELDNM Field contaning variable date value 20071126
9 Importing I_FLG_WHOLE_TABLE Call by reference Type reference (TYPE) RS_BOOL Read the whole master data 20071126
10 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJ-IOBJNM InfoObject 20071126
11 Importing I_KEY Call by reference Type reference (TYPE) ANY Single key value 20071126
12 Importing I_LOGSYS Call by reference Type reference (TYPE) LOGSYS Logical System 20071126
13 Importing I_RESET_PREFETCHED_DATA Call by reference Type reference (TYPE) RS_BOOL RS_C_TRUE Resets exisiting prefetched data 20071126
14 Importing I_T_ATTRNM Call by reference Type reference (TYPE) RSDM_T_ATTRINM Attribute list 20071126
15 Importing I_T_KEYS Call by reference Type reference (TYPE) ANY TABLE List of keys 20071126
16 Importing I_T_MAP Call by reference Type reference (TYPE) _T_MAP_SRCFIELDNM_IOBJFIELDNM Mapping between source fields and IOBJ fields 20071126
# Exception Resumable Description Created on
1 NO_DATA_FOUND No data was found in master data tables for the selection 20071126
2 NO_SUCH_ATTRIBUTE There is no such attribute 20071126
3 READ_ERROR Error when reading 20071126
4 WRONG_IMPORT_PARAMETERS Incorrect call-up for module 20071126

Method READ_IOBJ_META_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_IOBJNM Call by reference Type reference (TYPE) RSDIOBJNM Infoobject 20071126
2 Returning R_S_META_DATA Value transfer Type reference (TYPE) _S_IOBJ_META Meta data of the infoobject 20071126
# Exception Resumable Description Created on
1 IOBJ_NOT_FOUND Infoobject not found 20071126
2 READ_ERROR Error while reading infoobject meta-data 20071126

Method VALIDATE_INPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ALL_ATTRIBUTES Call by reference Type reference (TYPE) RS_BOOL All atributes to be read 20071126
2 Importing I_ATTRNM Call by reference Type reference (TYPE) RSDM_S_ATTRINM Single Key 20071126
3 Importing I_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20071126
4 Importing I_DATE_FIELD Call by reference Type reference (TYPE) RSD_FIELDNM Field contaning variable date value 20071126
5 Importing I_FLG_WHOLE_TABLE Call by reference Type reference (TYPE) RS_BOOL Boolean 20071126
6 Importing I_KEY Call by reference Type reference (TYPE) ANY Single Key 20071126
7 Importing I_T_ATTRNM Call by reference Type reference (TYPE) RSDM_T_ATTRINM List of attributes to be prefetched - not used yet! 20071126
8 Importing I_T_KEYS Call by reference Type reference (TYPE) ANY TABLE List of Keys 20071126
# Exception Resumable Description Created on
1 WRONG_IMPORT_PARAMETERS Wrong import parameters 20071126
History
Last changed by/on SAP  20110908 
SAP Release Created in 720