Processing SAPscript Texts as a Step in the Workflow

Use

SAPscript standard texts can be entered and displayed at runtime as part of a workflow.

Integration

The object type STD_TEXT ( SAPscript standard text) is defined in the Business Object Repository with methods for creating, editing and printing.

Activities

If you want to enter a text as a step in a workflow at runtime and this text is to be read by another employee in one of the subsequent steps, the following activities are required:

  1. Define a single-step task for entering a text. The user who executes the work item in question at runtime has to enter a text. For further information, refer to Defining the Standard Task "Create SAPscript Text".
  2. Define a single-step task for displaying the text. For further information, refer to Defining the Standard Task "Display SAPscript Text".
  3. Include both steps into a workflow definition. For further information, refer to Defining the Workflow (Section) "Process SAPscript Text".

Procedure at runtime

At runtime the recipient of the work item enters a SAPscript text in the first step. Text variables can be used to reference values from the task container of this single-step task. Knowledge of the task container is required to use this variable replacement option.

This text is displayed to the user who executes the work item in the second step.

Printing standard texts

The following methods of the object type STD_TEXT enable users to print the standard texts, and can be used in single-step tasks:

  • ReplaceAndPrintBatch (Print text with symbol replacement in background)

The printer and print attributes must be passed as parameters.

  • ReplaceAndPrint (Replace text symbols and print text)