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 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 3 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 4 | 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 | Instance attribute | Private | Type reference (TYPE) | I | Current buffer size | 20071126 | |||
| 2 | Constant | Public | Type reference (TYPE) | ABAP_KEYDEFKIND | 'D' | Default key | 20071126 | ||
| 3 | Constant | Public | Type reference (TYPE) | ABAP_KEYDEFKIND | 'L' | Table line is key | 20071126 | ||
| 4 | Constant | Public | Type reference (TYPE) | ABAP_KEYDEFKIND | 'U' | User-defined key | 20071126 | ||
| 5 | Constant | Private | Type reference (TYPE) | RSADOBJ | 'MD_LOOKUP_MAX_BUFFER_SIZE' | Maximum buffer size | 20071126 | ||
| 6 | Constant | Private | Type reference (TYPE) | RS_BOOL | 'X' | Prefetch was attempted | 20071126 | ||
| 7 | Constant | Private | Type reference (TYPE) | RSADOBJ | 'MD_LOOKUP_PREFETCH_LOGIC' | Prefetch logic to be used? | 20071126 | ||
| 8 | Constant | Private | Type reference (TYPE) | RS_BOOL | SPACE | Prefetch was not attempted | 20071126 | ||
| 9 | Constant | Public | Type reference (TYPE) | ABAP_TABLEKIND | 'A' | Untyped table | 20071126 | ||
| 10 | Constant | Public | Type reference (TYPE) | ABAP_TABLEKIND | 'H' | Hashed table | 20071126 | ||
| 11 | Constant | Public | Type reference (TYPE) | ABAP_TABLEKIND | 'I' | Indexable table | 20071126 | ||
| 12 | Constant | Public | Type reference (TYPE) | ABAP_TABLEKIND | 'O' | Sorted table | 20071126 | ||
| 13 | Constant | Public | Type reference (TYPE) | ABAP_TABLEKIND | 'S' | Standard table | 20071126 | ||
| 14 | Instance attribute | Private | Type reference (TYPE) | I | Datapackage size | 20071126 | |||
| 15 | Instance attribute | Private | Type reference (TYPE) | I | Maximum size of prefetch buffer | 20071126 | |||
| 16 | Instance attribute | Private | Type reference (TYPE) | _TH_BUFFER | Buffer of prefetched data | 20071126 | |||
| 17 | Static Attribute | Private | Type reference (TYPE) | _TH_IOBJ_META | Metadata of all infoobjects read | 20071126 | |||
| 18 | Instance attribute | Private | Type reference (TYPE) | RSBOOL | Prefetch logic to be used? | 20071126 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Adds data to buffer table | 20071126 | |
| 2 | Instance method | Public | Constructor | constructor | 20071126 | |
| 3 | Instance method | Private | Method | Create the buffer table | 20071126 | |
| 4 | Instance method | Public | Method | Creates internal table having reduced fieldlist for Prefetch | 20121031 | |
| 5 | Instance method | Public | Method | fetch data from buffer (prefetch needs to be called before) | 20071126 | |
| 6 | Instance method | Private | Method | Free data that has been prefetched already | 20071126 | |
| 7 | Instance method | Private | Method | Get available buffer size | 20071126 | |
| 8 | Instance method | Public | Method | Get a structured or table dataobject based on input | 20071126 | |
| 9 | Instance method | Public | Method | Prefetch data accoding to the given conditions | 20071126 | |
| 10 | Instance method | Public | Method | read data according to given conditions | 20071126 | |
| 11 | Instance method | Private | Method | Read InfoObject meta data | 20071126 | |
| 12 | 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 | C_T_DATA | Call by reference | Type reference (TYPE) | ANY TABLE | Buffer table | 20071126 | |||
| 2 | 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 | I_MAX_BUFFER_SIZE | Call by reference | Type reference (TYPE) | I | Maximum size of the buffer | 20071126 | |||
| 2 | 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 | C_S_BUFFER | Call by reference | Type reference (TYPE) | _S_BUFFER | Buffer | 20071126 | |||
| 2 | I_ALL_ATTRIBUTES | Call by reference | Type reference (TYPE) | RS_BOOL | Boolean | 20071126 | |||
| 3 | I_BYPASS_BUFFER | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | Boolean | 20071126 | ||
| 4 | I_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20071126 | |||
| 5 | I_DATE_FIELD | Call by reference | Type reference (TYPE) | RSD_FIELDNM | 20071126 | ||||
| 6 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJNM | InfoObject | 20071126 | |||
| 7 | I_T_ATTRINM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | List of attribute names | 20071126 | |||
| 8 | 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 | 20071126 | ||
| 2 | No such attribute found | 20071126 | ||
| 3 | 20071126 | |||
| 4 | 20071126 |
Method CREATE_KEYS_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_R_TABLE | Value transfer | Object reference (TYPE REF TO) | DATA | reference to table (keys) | 20121031 | |||
| 2 | E_R_WA | Call by reference | Object reference (TYPE REF TO) | DATA | reference to structure (keys) | 20121031 | |||
| 3 | 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 | Error while creating dataobjects | 20121031 |
Method FETCH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_ATTRVAL | Call by reference | Type reference (TYPE) | ANY | Attribute value | 20071126 | |||
| 2 | E_S_DATA | Call by reference | Type reference (TYPE) | ANY | Data as a structure | 20071126 | |||
| 3 | I_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_S_ATTRINM | Single attribute name | 20071126 | |||
| 4 | I_DATE | Call by reference | Type reference (TYPE) | DATS | Constant date value for time-dependent attributes | 20071126 | |||
| 5 | I_DATE_FIELD | Call by reference | Type reference (TYPE) | RSD_FIELDNM | Variable date for time-dependent attributes | 20071126 | |||
| 6 | I_ID | Call by reference | Type reference (TYPE) | INT1 | 0 | Id to separate different conditions on the same Infoobject | 20130207 | ||
| 7 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJNM | InfoObject | 20071126 | |||
| 8 | I_KEY | Call by reference | Type reference (TYPE) | ANY | Single key value for which attributes are to be looked up | 20071126 | |||
| 9 | I_LOGSYS | Call by reference | Type reference (TYPE) | LOGSYS | Logical System | 20071126 | |||
| 10 | I_T_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | List of attribute names | 20071126 | |||
| 11 | 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 was found in the MD tables for the selection | 20071126 | ||
| 2 | There is no such attribute | 20071126 | ||
| 3 | Error when reading | 20071126 | ||
| 4 | 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 | 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 | 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 | E_R_TABLE | Value transfer | Object reference (TYPE REF TO) | DATA | reference to table | 20071126 | |||
| 2 | E_R_WA | Call by reference | Object reference (TYPE REF TO) | DATA | reference to workarea | 20071126 | |||
| 3 | I_ALL_ATTRIBUTES | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | All attributes | 20071126 | ||
| 4 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJNM | InfoObject name | 20071126 | |||
| 5 | I_TABLE_KIND | Call by reference | Type reference (TYPE) | ABAP_TABLEKIND | 'S' | Type of the table (STANDARD, SORTED OR HASHED) | 20071126 | ||
| 6 | I_TIME_DEP | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_TRUE | DATETO and DATEFROM needed? | 20071126 | ||
| 7 | I_T_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | Attribute list | 20071126 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error while creating dataobjects | 20071126 | ||
| 2 | No such attribute found | 20071126 | ||
| 3 | Wrong Import Parameters | 20071126 |
Method PREFETCH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ALL_ATTRIBUTES | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | All attributes to be fetched | 20071126 | ||
| 2 | I_BYPASS_BUFFER | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | Bypass buffer | 20071126 | ||
| 3 | I_DATE | Call by reference | Type reference (TYPE) | DATS | Constant DATE for time-dependent attributes | 20071126 | |||
| 4 | I_DATE_FIELD | Call by reference | Type reference (TYPE) | RSD_FIELDNM | Variable DATE for time-dependent attributes | 20071126 | |||
| 5 | I_FLG_WHOLE_TABLE | Call by reference | Type reference (TYPE) | RS_BOOL | Read the whole Master Data | 20071126 | |||
| 6 | I_ID | Call by reference | Type reference (TYPE) | INT1 | 0 | Id to separate different conditions on the same Infoobject | 20130207 | ||
| 7 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJ-IOBJNM | InfoObject | 20071126 | |||
| 8 | I_LOGSYS | Call by reference | Type reference (TYPE) | LOGSYS | Logical System | 20071126 | |||
| 9 | I_RESET_PREFETCHED_DATA | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_TRUE | Resets exisiting prefetched data | 20071126 | ||
| 10 | I_T_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | List of attributes to be prefetched - not used yet! | 20071126 | |||
| 11 | I_T_KEYS | Value transfer | Type reference (TYPE) | ANY TABLE | Keys for which attributes are to be looked up | 20071126 | |||
| 12 | 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 | The limit for buffering prefetched data has been reached | 20071126 | ||
| 2 | Characteristic Value Does Not Exist in Master Data Tabl | 20071126 | ||
| 3 | There is no such attribute | 20071126 | ||
| 4 | Error when reading | 20071126 | ||
| 5 | 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 | E_ATTRVAL | Call by reference | Type reference (TYPE) | ANY | Attribute value | 20071126 | |||
| 2 | E_S_DATA | Call by reference | Type reference (TYPE) | ANY | Data as a structure | 20071126 | |||
| 3 | E_T_DATA | Call by reference | Type reference (TYPE) | ANY TABLE | Data result table | 20071126 | |||
| 4 | I_ALL_ATTRIBUTES | Call by reference | Type reference (TYPE) | RS_BOOL | All attributes to be read | 20071126 | |||
| 5 | I_ATTRNM | Call by reference | Type reference (TYPE) | RSD_ATTRINM | Single Attribute | 20071126 | |||
| 6 | I_BYPASS_BUFFER | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | Boolean | 20071126 | ||
| 7 | I_DATE | Call by reference | Type reference (TYPE) | DATS | Constant DATE value to be used for time-dependent attributes | 20071126 | |||
| 8 | I_DATE_FIELD | Call by reference | Type reference (TYPE) | RSD_FIELDNM | Field contaning variable date value | 20071126 | |||
| 9 | I_FLG_WHOLE_TABLE | Call by reference | Type reference (TYPE) | RS_BOOL | Read the whole master data | 20071126 | |||
| 10 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJ-IOBJNM | InfoObject | 20071126 | |||
| 11 | I_KEY | Call by reference | Type reference (TYPE) | ANY | Single key value | 20071126 | |||
| 12 | I_LOGSYS | Call by reference | Type reference (TYPE) | LOGSYS | Logical System | 20071126 | |||
| 13 | I_RESET_PREFETCHED_DATA | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_TRUE | Resets exisiting prefetched data | 20071126 | ||
| 14 | I_T_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | Attribute list | 20071126 | |||
| 15 | I_T_KEYS | Call by reference | Type reference (TYPE) | ANY TABLE | List of keys | 20071126 | |||
| 16 | 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 was found in master data tables for the selection | 20071126 | ||
| 2 | There is no such attribute | 20071126 | ||
| 3 | Error when reading | 20071126 | ||
| 4 | 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 | I_IOBJNM | Call by reference | Type reference (TYPE) | RSDIOBJNM | Infoobject | 20071126 | |||
| 2 | R_S_META_DATA | Value transfer | Type reference (TYPE) | _S_IOBJ_META | Meta data of the infoobject | 20071126 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Infoobject not found | 20071126 | ||
| 2 | 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 | I_ALL_ATTRIBUTES | Call by reference | Type reference (TYPE) | RS_BOOL | All atributes to be read | 20071126 | |||
| 2 | I_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_S_ATTRINM | Single Key | 20071126 | |||
| 3 | I_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20071126 | |||
| 4 | I_DATE_FIELD | Call by reference | Type reference (TYPE) | RSD_FIELDNM | Field contaning variable date value | 20071126 | |||
| 5 | I_FLG_WHOLE_TABLE | Call by reference | Type reference (TYPE) | RS_BOOL | Boolean | 20071126 | |||
| 6 | I_KEY | Call by reference | Type reference (TYPE) | ANY | Single Key | 20071126 | |||
| 7 | I_T_ATTRNM | Call by reference | Type reference (TYPE) | RSDM_T_ATTRINM | List of attributes to be prefetched - not used yet! | 20071126 | |||
| 8 | I_T_KEYS | Call by reference | Type reference (TYPE) | ANY TABLE | List of Keys | 20071126 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Wrong import parameters | 20071126 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 720 |