Information Models for Master Data and Lookup
-
Master Data of a Field
Field master data defines the values permitted for a field like InfoObjects and data elements. For InfoObjects, you can also define hierarchies on top to structure the permitted values further for calculation and reporting.
-
Master Data of a Business Entity
Business entity master data defines a table or a set of a tables used to define records with combinations of characteristic and key figure values according to the business requirements, like product master data, financial instrument master data and so on. Business entity master data is rarely changed and is reused by many functions to control calculation (for example, how the funds transfer price of a retail loan is calculated).
Business entity master data can reside in any model function.
Both kinds of master data are supported by SAP Profitability and Performance Management and can be used for lookup.
Usage and Lookup
- The respective model functions needs to be registered on the Lookup tab. These model functions then contain the master data. To use the master data for further processing, a lookup ID has to be defined.
- The lookup of data can then be included in a formula. The format for lookup consists of the lookup ID followed by the field to be looked up and then square brackets, in which the selections are defined.
If multiple records fulfill the lookup criteria, the default aggregation is used to return exactly one value.
Example
The following master data is available under lookup ID MY_DATA.
| COST_CENTER | COST_ELEMENT | AMOUNT | QUANTITY |
|---|---|---|---|
| Cost Center 1 | Cost Element 1 | 100 | 1 |
| Cost Center 2 | Cost Element 2 | 200 | 2 |
| Cost Center 3 | Cost Element 3 | 300 | 3 |
| Cost Center 4 | Cost Element 4 | 400 | 4 |
| Cost Center 5 | Cost Element 5 | 500 | 5 |
| Cost Center 1 | Cost Element 6 | 600 | 6 |
| Cost Center 2 | Cost Element 7 | 700 | 7 |
| Cost Center 3 | Cost Element 8 | 800 | 8 |
| Cost Center 4 | Cost Element 9 | 900 | 9 |
| Cost Center 5 | Cost Element 10 | 1000 | 10 |
-
The lookup statement MY_DATA.AMOUNT[COST_ELEMENT=’Cost Element 1’] would return the amount “100”.
-
The lookup statement MY_DATA.QUANTITY[COST_ELEMENT=’Cost Element 1’] would return the quantity “1”.
-
The lookup statement MY_DATA.COST_ELEMENT[AMOUNT=500] would return the cost element “Cost Element 5”.
-
If the default aggregation for the field Amount is summation, the lookup statement MY_DATA.AMOUNT[COST_CENTER=’Cost Center 1’] would return the amount “700”, because the value “Cost Center 1” is not unique and the amount is therefore added up to 100+600 => 700 automatically.
-
If the default aggregation for the field Cost Element is maximum, the lookup statement MY_DATA.COST_ELEMENT[COST_CENTER=’Cost Center 2’] would return the cost element “Cost Element 7”, because the value “Cost Center 2” is not unique and the cost element maximum (which is “Cost Element 7”) is therefore taken automatically.
-
The lookup statement MY_DATA.AMOUNT[COST_ELEMENT=’ABC’] would return the amount “0”, which is the initial value of the field Amount, because there is no cost element “ABC” in the master data.
-
The lookup statement MY_DATA.COST_CENTER[COST_ELEMENT=’ABC’] would return the cost center " ", which is the initial value of the field Cost Element, because there is no cost element “ABC” in the master data.
Related Information
For more information about SAP Profitability and Performance Management functions, see Functions.