Show TOC

 Flow Logic KeywordsLocate this document in the navigation structure

Use

You use flow logic keywords to define the flow logic of a screen in the Screen Painter.

Features

You can use the following keywords to define the flow logic of your screen:

Keyword Description

CALL

Calls a subscreen

CHAIN

Starts a processing chain

ENDCHAIN

Ends a processing chain

ENDLOOP

Ends loop processing

FIELD

Refers to a field. Can be combined with the keywords MODULE and SELECT

LOOP

Starts loop processing

MODIFY

Modifies a table

MODULE

Identifies a processing module

ON

Used with FIELD assignments

PROCESS

Defines a processing event

SELECT

Checks an entry in a table

SWITCH

Connects to a switch in the Switch Framework. If the addition SWITCH is specified, the dialog module mod is called only if the switch specified by switch has the state on.

Note

The addition SWITCH is only allowed in a MODULE statement, but not in a FIELD statement.

VALUES

Defines allowed input values

Note

For more information about screen programming, see ABAP Programming .

Example

The following example illustrates the use of screen flow logic:

Note

*------------------------------------------------

* Sample Code

*------------------------------------------------

* Processing Before Screen Output

PROCESS BEFORE OUTPUT.

MODULE INIT_FIELDS.

* Self-programmed F1 Help

PROCESS ON HELP-REQUEST.

FIELD GSSG-BUKRG MODULE V-BUKRG.

* Processing after user input

PROCESS AFTER INPUT.

* Lock customer master record

CHAIN.

FIELD GSSG-KTNRG

MODULE ENQUEUE_CUSTOMER_MASTER.

* Read customer master record

MODULE READ_CUSTOMER_MASTER.

* Read business area

MODULE READ_GSSG.

ENDCHAIN.

* Process function code

FIELD OK-CODE MODULE OKCODE ON INPUT.