Hierarchy

⤷

⤷

IMG Activity
ID | /MRSS/SGU_ASSGN | BAdI: Determine Graphical Element for Assignments |
Transaction Code | /MRSS/92000173 | (empty) |
Created on | 20090811 | |
Customizing Attributes | /MRSS/SGU_ASSGN | BAdI: Determine Graphical Element for Assignments |
Customizing Activity | /MRSS/SGU_ASSGN | BAdI: Determine Graphical Element for Assignments |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | /MRSS/SGU_ASSGN_ELEM |
Use
You can use this Business Add-In (BAdI) to change the display of assignments and travel times in the planning board.
- GRAPH_ELEMENT_ASSIGNMENT: With this method, you can redetermine the graphical element defined in Customizing. The value determined in the BAdI is returned in parameter CV_GRAPH_ELEMENT.
- GRAPH_ELEMENT_TRAVEL: With this method, you can redetermine the graphical elements for arrivals and departures. The values determined in the BAdI are returned in the following parameters:
- CV_LAYER_TRV_TO: Graphical element for the arrival
- CV_LAYER_TRV_FROM: Graphical element for the departure
- GRAPH_ELEMENT_TIMESPEC: With this method, you can recalculate the graphical element defined in Customizing. The new value that is calculated by the BAdI is returned in parameter CV_GRAPH_ELEMENT.
Standard settings
SAP provides the following fallback class:
- /MRSS/CL_DEF_IM_SGU_ASSGN_ELE
The default implementation reads the status group Customizing to determine the graphical element. Status groups for assignments are defined in Customizing under Set Up Scheduler Workplace --> Workplace Profiles --> Define User Interface Profiles.
If you want to implement your own logic, you can create your own implementation. Once you have activated your implementation, the standard logic is no longer used.
Activities
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:
- In the dialog box, enter a name for the implementation of the Add-In and choose Create.
The system displays the initial screen for creating Business Add-In implementations. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - Save and activate your code. Navigate back to the Change Implementation screen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: - Choose Activate.
When the application program is executed, the code you created is run through.
See also
BAdI method documentation:
Business Attributes
ASAP Roadmap ID | 152 | Design data acquisition |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20090903 |
SAP Release Created in | 700 |