Entering content frameOverview documentation Flow Logic Keywords Locate the document in its SAP Library structure

You define the flow logic in the flow logic editor of the Screen Painter, using the following keywords:

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. You can combine this with the MODULE and SELECT keywords.

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 against a table.

VALUES

Defines allowed input values.

 

For more information about transaction programming, see the Structure link ABAP User’s Guide

Example of Flow Logic Example

The following example shows some use of screen flow logic:

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

* 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.

 

 

 

Leaving content frame