
Creating Web Form Tasks
Use
You need a
Web Form Task to insert an activity in a workflow that can be executed in the Web Workplace.
The following parts of the task definition characterize a Web form task:
- Extending the container definition to include the elements that are to be processed as fields on your form.
- Use of the object method
HTMLProcess
of the object type
FORM.
Procedure
Define Web Form Tasks
Choose Tools ®
Business Workflow ®
Development ®
Definition tools
®
Tasks/Task groups ® Create.
Choose the type
TS
for standard task in the
Task type field.
Choose
.

Alternatively, you can also create a new task from the Workflow Builder. Create a step of the activity type and go to the Control tab page. Here choose 
®
Create task.
Define the basic data of your task.
Enter
FORM
as the object type and
HTMLProcess
as the object method.
Extend the container definition
All of the data that is to be displayed to the form user or changed must exist as container elements in the task container.
Choose
Container to call the container editor.
The container already contains the standard
system elements. To add elements to the container, choose
.You can only transfer and display single values (not object references) using a Web form. If you want to add container elements for this purpose, therefore, you must always create them with a data type reference to a table field in the ABAP Dictionary.
Set the following indicators for every container element that is to be used on the web form:
- If the contents are to be displayed on the form, set the Import indicator.
- If the contents are to be entered for the first time on the form, set the Export indicator.
- If the contents are to be displayed and changed on the form, set both the Import and Export indicators.

If you change a container element that is used on a web form, you have to generate the web transaction again.
Further Procedure
Complete the task definition:
- Declare the
Possible Agents of the task.
Save the task definition.