Defining a Task to be Executed as a Web Form 

Prerequisites

You have defined a workflow and now want to add a single-step task that can be processed with a Web form.

The part of the task definition that is relevant to forms essentially entails

Procedure

Defining the Form Task

  1. To create the tasks, choose Tools ® Business Workflow ® Development ® Definition tools ® Tasks/ Task groups ® Create.
  2. Enter the type TS for standard task in the Task type field.
  3. Then choose Task ® Create.

  4. Define the basic data of your task.
  5. Enter FORM as the object type and HTMLProcess as the object method.

  6. Select the Executable on the Internet field in the task properties.
  7. Extending the Container Definition

    You can add other container elements to a container as form-specific extensions. The contents of these elements can then be displayed and edited in the fields on the form. All of the data that is to be displayed to the form user must exist as container elements in the task container.

  8. To launch the container editor, choose Goto ® Container.
  9. The container already contains the standard system elements. To add elements to the container, choose Edit ® Create.
  10. 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 with a data type reference to a table field in the dictionary.

  11. For each field

When generating the HTML template in the SAP@WebStudio the container element name is also used as the name of the display-/input field.

It is therefore recommended that you choose "meaningful" names (although the HTML templates can of course be processed at any time).

Note that when later changes are made to the name of container elements, the web transaction must be regenerated.

Further Procedure

Complete the task definition:

  1. Declare the possible agents that are allowed to start the task by filling out and submitting the form.
  2. Save your task definition in the development class that you entered in the Customizing activity for maintaining the namespace.