Custom Actions

Requirement

In YSAFETMS001, Safe TMS evaluates the transport demand and builds an action list. This list will contain steps for a safe transport.

However; according to your own requirements, you might want to define custom actions and add to this list. Some examples might be:

  • E-Mail notification to related users
  • OS script execution after transport
  • Forwarding the request to another system

For such cases, Safe TMS enables you to define and implement your own actions.

Steps

  • Create a new Z-Class, implementing the interface YIF_SAFETMS_ACTION
  • Fill the methods of the interface with your own code.
  • Register your Z-Class into the table YTSAFETMS_CUSACT
  • Implement an action user exit and ensure that your custom action will be included in the action list whenever necessary

If you are not sure how to fill the methods in your Z-Class, you can run a "Where Used List" for YIF_SAFETMS_ACTION and inspect existing classes.

Hints

Your custom actions should be in harmony with your live import scenario.