Defining a Workflow/Task to Be Started with Webforms
Prerequisites
You are familiar with the procedure for Defining a Task or Defining a Workflow.
Procedure
You want to define the task or the workflow that is to be started by the Web form.
-
To create a workflow, Start the Workflow Builder. To create a task that is to be started as a single step task, Create a Standard Task and define the basic data.
-
Save the workflow or the task in the package that you have also used for the Namespace Maintenance.
Extend the container definition
Now extend the container to include the elements that are to be filled using the form.
-
If you create a task, choose
to call the container editor. If you create a workflow, open Workflow Container.The container already contains system elements of the Workflow or of the Task Container as standard.
-
Create a suitable container element for all of the fields you want to fill in the form. Define these elements as import elements. For more information, see Creating Container Element.
You can only transfer single values (not object references) from the form. If you want to add container elements for this purpose, therefore, you must always create them as single-line elements with a data type reference to a table field in the ABAP Dictionary.
When generating the HTML template the container element name is also used as the name of the input field.
-
Complete the workflow definition or task definition.