Show TOC

Step 4: Migrate the Flow LogicLocate this document in the navigation structure

Use

The actual migration of the flow logic takes place in this step. To do this, you implement the flow of the flow file in ABAP so that the calls can be executed in the integrated ITS.

Prerequisites

You have successfully performed the following steps:

1. Create an ABAP program

2. Create and adjust an Internet service

3. Create an ICF service

Procedure

Note the following points during the migration:

  • The ABAP program must contain an include for the Web Transaction API (include avwrtcxm).

  • Implement the screen control in ABAP in accordance with the flow logic.

  • Events that are triggered in the HTML page must be processed as Okcode to be handled normally in the screen programming.

  • An RFC call in a flow logic file can be executed directly in ABAP in a PBO module.

  • In the PAI module, you can read user input data from the ITS context by calling the ABAP macro FIELD-GET of the Web Transaction API.

  • The data that the RFC returns must be written to the ITS context. With the standalone ITS (6.20), this is automatically performed by the flow logic runtime. With the integrated ITS, you need to do this directly in the ABAP (in the PBO module) after the RFC call by calling the ABAP macro FIELD-SET of the Web Transaction API.

More information about the flow logic elements to be migrated and their implementation in ABAP: Flow Logic Syntax and its Equivalent in the SAP System.

More information about the macros of the Web Transaction API: Macros of the Web Transaction API.

Result

The flow logic is now executed in ABAP and the ITS templates are now adapted to the use as ICF service, as far the URL generation is concerned. More information about adjusting URL generation in the HTML templates: Migrating Existing ITS Services.

As the final migration step, you now need to activate the ABAP program and publish the Internet Service.

Example

In the SAP system you find the ITS service EXAMPLE_FLOW_M as a simple example for migrating a flow logic service. For more information, refer to the section Migration Example.