Hierarchy

⤷

⤷

IMG Activity
ID | CPRO_PRP_STRUCT_BADI | BAdI: Structural Authorization |
Transaction Code | S_CP4_60000033 | (empty) |
Created on | 20040219 | |
Customizing Attributes | CPRO_PRP_STRUCT_BADI | BAdI: Structural Authorization |
Customizing Activity | CPRO_PRP_STRUCT_BADI | BAdI: Structural Authorization |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | AUTHORITY_BADI |
This Business Add-In implements customer-specific authorization checks.
Example
In the BAdI, you can display sample implementation coding under Goto -> Display Sample Coding.
You can also view this sample coding in the Class Builder (SE24), by displaying the class CL_EXM_IM_HRBAS00_STRUAUTH and the corresponding methods.
Activities
After the customizing activity has started, the system first opens a dialog box for entering a name for the implementation.
If an implementation for this BAdI has already been created, the system opens a dialog box showing existing implementations. In this dialog box, choose Create and continue as described in step 1.
- In the Implementation field in the dialog box, enter a name for the implemenation of the BAdI and then choose Create.
The system opens up the initial screen for creating BAdI implementations.
- In the Short text for implementation field on this screen, enter a short text for the implementation.
- Then choose the Interface tab page.
On the tab page the field Name of the implementation class has been filled automatically, since the system assigns a class name on the basis of the name of your implementation.
- Save your entries and make an assignment to a development class.
- Double-click on the selected method to access method processing.
- Between the instructions
method IF_EX_AUTHORITY_BADI~<Name of Method
andendmethod
, enter the required coding.To implement the BAdI, you must process all the interface methods:
- CHECK_AUTHORITY_VIEW (Check structural authorization of an object)
- FILL_DATE_VIEW (Fill table of authorization ranges for an object)
- FILL_HYPER_VIEW (Fill table of authorization relationships )
- CHECK_AUTH_PLAN1 (Check personnel authorization)
- CHECK_AUTHORITY_SEARCH (Search function - check hit list)
- GET_PROFILES(Determine structural profile of an object)
- Save and activate your coding. Navigate back to the Change implementation screen.
- Save on the Change implementation screen.
Note: it is also possible to create an implementation for a BADI and to activate it later. In that case, you can now close the process.
- Choose activate.
When you execute the application program, the system runs the coding you saved in the method.
Further notes
You can obtain further information on implementation of BAdIs in the SAP Library under Changing the SAP Standard -> Business Add-Ins
(Path: SAP Library -> Basis Components -> ABAP Workbench -> Changing the SAP Standard).
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional 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 | 20040409 |
SAP Release Created in | 310 |