Hierarchy
⤷
⤷
IMG Activity
| ID | REFX_REBD_MEAS | Define Allowability of Measurements by Object Type |
| Transaction Code | S_AER_95000025 | (empty) |
| Created on | 20051026 | |
| Customizing Attributes | REFX_REBD_MEAS | Define Allowability of Measurements by Object Type |
| Customizing Activity | REFX_REBD_MEAS | Define Allowability of Measurements by Object Type |
Document
| Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
| Document Name | BADI_REBD_MEAS_CUST |
Use
Using this BAdI, you can change the allowed measurements that are entered in Customizing, with the change dependent on the data of the given business object.
Requirements
Standard settings
Activities
Implement the following method of the BAdI.
CHANGE_MEAS_CUST_LIST
Then activate the Business Add-In implementation.
Method description
CHANGE_MEAS_CUST_LIST
@78@ IO_OBJECT Reference to business object
@78@ IF_ONLY_ALLOWED Should only allowed measurements be returned?
@7A@ CT_LIST Measurements, and if allowed or not
Example
You want to limit the measurements that are allowed on architectural objects by using the "Function" attribute.
First check if the object is an architectural object, and then get the data of the object.
Modify or add to the measurements in CT_LIST by setting the value of the USAGEFORAO field:
' 'Attribute Is Not Allowed for Object'1'Attribute Is Allowed for Object'2'Attribute Is Default for Object'3'Attribute Is Required Entry for Object (on Screen)
If the IF_ONLY_ALLOWED indicator is set, you have to remove all measurements from the list that are not allowed.
Note the following:
- Do not directly access the database (
SELECTstatements) on tables where the data could be being processed. Use only theAPI_RE_xx_GET_DETAILfunction module for data retrieval. (Here xx stands for the English abbreviation for the object type, for instance CN for the real estate contract.) - Do not use statements that execute actions on the interface, for example,
MESSAGEwithoutRAISING,CALL SCREENand so on. Do not useCOMMIT WORKorROLLBACK WORK.
Business Attributes
| ASAP Roadmap ID | 153 | Design enhancements |
| Mandatory / Optional | 3 | Nonrequired activity |
| Critical / Non-Critical | 1 | Critical |
| Country-Dependency | A | Valid for all countries |
Maintenance Objects
| Maintenance object type | E | Business Add-In - Definition |
History
| Last changed by/on | SAP | 20070328 |
| SAP Release Created in | 700 |