Hierarchy

⤷

⤷

IMG Activity
ID | SIMG_LTRM_USEXIT004 | Change Priority Modes |
Transaction Code | S_DTR_07000039 | IMG Activity: SIMG_LTRM_USEXIT004 |
Created on | 20010403 | |
Customizing Attributes | SIMG_LTRM_USEXIT004 | Switch priority modes |
Customizing Activity | SIMG_LTRM_USEXIT004 | Switch priority modes |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | LTRM_MODE_SET |
Use
This Business Add-In (Add-In) is used in the Task and Resource Management (LE-TRM) component.
This Add-In enables you to dynamically change the mode in your site. Modes are defined to suit specific requirements of your site. For instance, you could use them to quicken the execution of tasks if the due dates require it. Accordingly, you can adapt the execution pace to the workload in your site.
The Add-In is called from the sub-routine BADI_MODE_SET which is used both in LTSK_TASK_CREATE and LTSK_TASK_SELECT. You need to change the variable EV_NEW_MODE to switch to a different mode.
In addition you may determine the route strategy during task creation, which will affect the destination of the created task. There are 4 possible values for the variable EV _ROUTE_STRATEGY:
1 - Direct route to final destination only.
2 - Best route option (P&D or final destination).
3 - P&D routes only.
' ' (Default value) - Direct route to the final destination and, if not found, P & D route.
Definition of a mandatory route overrules all of the above options.
The following parameters are relevant:
- Current location (IV_LOCAT)
- Current mode (IV_MODE)
- Selected tasks in case of task selection (IT_SELECTED_TASKS)
- Request items in case of task creation (IT_REQUEST_ITEMS)
- New mode (EV_NEW_MODE)
- Route strategy (EV _ROUTE_STRATEGY)
In addition, you can define your own table that supports changing the mode dynamically for certain periods of time.
Example
Requirements
Define one or several modes for a site. For more information, see the SAP Library for TRM.
Standard settings
Recommendation
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.
Further notes
This Add-In is called from the function LTRM_MODE_SET_GET, which does the following:
- Gets the current mode from the table LLOCT
- Updates mode in the table LLOCT and switches to the mode defined in this Add-In
If the variable LV_MODE_UPDATE is not initial, the function updates the respective field in the table. If the variable is initial, the function selects the current mode.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired 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 | 20020428 |
SAP Release Created in | 100 |