Show TOC Entering content frame

Background documentation Flow Builder Locate the document in its SAP Library structure

Note

This is valid only for SAP ITS 6.20.

Use

To implement the flow logic for an HTML template in the Web Application Builder, you can use either the Flow Editor or the Flow Builder. In the Flow Editor, you must edit the necessary language elements of the flow logic manually, including its attributes. Conversely, the Flow Builder allows you to create the flow logic step-by-step, without you having to know the exact syntax. The system generates an initial representation, from which you create a flow logic – that is, you define a flow of states and events. The Flow Builder supports you by providing the input help and navigation functions you need.

Benefits of using the Flow Builder

§         You do not need to be familiar with the flow logic syntax.

§         The system provides input help when you enter modules, events, subsequent states, and subsequent templates. 

§         If you use BAPIs or function modules, the system provides default values for the RFC parameters.

§         A wide range of navigation options is available:

-          Tree display « double-click « maintenance in the Flow Builder « Function Builder

-          Tree display « context menu « maintenance in the Flow Builder « Function Builder

§         The correct flow syntax is entered automatically.

§         Using the check function, you can guarantee that the flow logic is internally consistent and semantically correct. (For example, you can check to see whether the subsequent state or template is available in the system).

Using the Flow Builder

To define the flow logic:

Call the Flow Builder:

1.       In the Object Navigator (transaction SE80), choose Internet Service.

2.       Select an HTML template.

3.       If the dialog logic has not been created, Choose Edit  ® Create flow logic.

4.       Choose the Flow Builder tab.

For each new HTML template, the Flow Builder provides an initial representation of the flow logic with the initial state Start and the initial event onLoad.

This graphic is explained in the accompanying text

Define the states:

1.       In the tree display, double-click the state in which you want to include a module or modules. Alternatively, choose the appropriate function from the context menu.

2.       Enter the modules (BAPIs or RFC function modules). Use the possible entries help (F4), entering an asterisk (*) as a place-holder during your search.

3.       You can also enter other attributes for the module if you wish.

This graphic is explained in the accompanying text

4.       Double-click a module name to modify its specification.

5.       If necessary, enter the mapping parameters and other attributes.

The RFC parameters are already shown, either as Target (input parameters) or Source (output parameters). The same applies to exceptions for function modules.

This graphic is explained in the accompanying text

6.       Choose This graphic is explained in the accompanying text Save to confirm your entries.

Define the events:

7.       To create a new event, double-click the initial event onLoad (in the Events node) or choose the appropriate function from the context menu.

8.       In the dialog box that appears, choose This graphic is explained in the accompanying text to insert a line.

9.       Enter the name of the state, then either the name of the next state (within the same template) or a subsequent template.

This graphic is explained in the accompanying text

10.   Choose This graphic is explained in the accompanying text to confirm your entries.

Special features when using the Flow Builder

§         Note that output is different in display mode than in change mode:

In display mode, the system shows only those elements of the module or events that have already been maintained.

§         Navigating from the Flow Editor to the Flow Builder
If you create a flow logic in the Flow Editor, it may contain syntax errors. When you switch to the Flow Builder, these errors will trigger a warning, since the Flow Builder automatically checks the flow logic using the XML parser.

See also:

Flow Logic Syntax

 

 

Leaving content frame