Ansicht
Dokumentation

SIMG_LTRM_USEXIT004 - Change Priority Modes

SIMG_LTRM_USEXIT004 - Change Priority Modes

RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

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.

Define one or several modes for a site.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

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.






Fill RESBD Structure from EBP Component Structure   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4536 Date: 20240523 Time: 191225     sap01-206 ( 60 ms )