
You can submit the data from a form using the SMTP communication channel. In this case data is sent to a specified mail inbox.
To implement this scenario, you must have:
To enable the processor of the form to return data to the system, you include a button and specify the following parameters in the form:
%com.sap.caf.gp.if.PostProcessorUrl.mailto.prefix%
The server-side information that determines the mail server address is retrieved when the form is generated from the form template. At runtime, when the user submits the form back to the system, the above URL string is replaced by the relevant server-side information. The user who submits the form can choose the mail client that he or she would like to use. The form is then sent as an attachment to the e-mail address entered by the user.
As an example, we can use a process for time-off request approval or rejection.
An employee uses a standalone form to fill in the data for the time-off request. The form is configured to initiate a process upon completion. The employee fills in the data and sends the form by e-mail to the responsible manager.
The manager's inbox is configured to consume mails with form attachments automatically. As a result, an approval process is triggered in Guided Procedures. The form is rendered as an input parameter of type Structure Template in the first action of the process. The manager can then open the form to see the entered data and approve or reject the request.