Creating Web Form Tasks

Prerequisites

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

  1. Choose Start of the navigation pathTools Next navigation step Business Workflow Next navigation step Development Next navigation step Definition Tools Next navigation step Tasks/Task Groups Next navigation step CreateEnd of the navigation path.

  2. Choose the type TS for standard task in the Task type field.

  3. Choose .

  4. Define the basic data of your task.

  5. 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.

  1. Choose Container to call the container editor.

  2. 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.

  3. 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.

Further Procedure

Complete the task definition:

  1. Declare the Possible Agents of the task.

  2. Save the task definition.