 |
Send Emails from portal application POWL - Approval of trips
An alternative approval application to the UWL (Universal Worklist) via SAP-Workflow is the POWL (Personal Object Worklist). In this case you don't need to implement a workflow. Using the POWL you can approve or reject travel requests or expenses or send an Email to the traveler. The generated Emails use standard text templates. How to adjust these standard texts sent from POWL:
You will find the standard texts in Client 000. Make a comparison against client 000 to upload the standard texts into your table. Go to transaction SO10 and choose Utilities > Compare Clients. Now enter for Text ID „FITV“, for Source Client choose “000”, choose your language and press “Execute“.
The following standard texts will be uploaded:
- FITV_POWL_APPROVE_TEMPLATE – Email when trip has been approved
- FITV_POWL_MAIL_TEMPLATE - Email for comments or questions concerning the trip
- FITV_POWL_REJECT_TEMPLATE - Email when trip has been rejected.
You can now adjust those text templates in transaction SO10. If you need more variables in the text (e.g. destination of the trip) you need to enhance the Enhancement Spot PTRM_POWL_MAIL. Go to transaction SE18 and choose button „Display“. First choose the example class CL_FITV_POWL_COMPOSE_MAIL and after the method GET_MAIL_CONTENT. Create an implicit enhancement at the end of the method. Fill more variables and call again function module FITV_POWL_GET_MAIL_CONTENT dependent from the action (Approve, Reject, Email) and overwrite the parameter E_CONTENT.
Don’t forget to transfer the SAPschrip texts to a correction/repair via report RSTXTRAN.
|
|