SAP Testing - Screen Flow


Advertisements

Screen flow logic in SAP Testing is like an ABAP code and it is used to contain the processing blocks. It contains the procedural part of the screen. It is created in screen painter and this screen painter is similar to an ABAP editor.

Screen flow logic involves no external data declaration and each processing block is defined with a prefix ‘PROCESS’. For example,

  • PROCESS AFTER INPUT
  • PROCESS BEFORE OUTPUT
  • PROCESS ON HELP-REQUEST
  • PROCESS ON VALUE-REQUEST

Each screen flow logic should contain PROCESS AFTER INPUT and PROCESS BEFORE OUTPUT keywords.

In an event block, you can use keywords like MODULE, FIELD, ON, VALUES, CALL, etc.

S.No. Screen Flow Logic Keyword & Description
1

MODULE

Calls a dialog module in an ABAP program

2

FIELD

Specifies the point at which the contents of a screen field should be transported

3

ON

Used in conjuction with FIELD

4

VALUES

Used in conjunction with FIELD

5

CHAIN

Starts a processing chain.

6

ENDCHAIN

Ends a processing chain.

7

CALL

Calls a subscreen.

8

LOOP

Starts processing a screen table.

9

ENDLOOP

Ends processing a screen table.

Creating Screen Flow

In the Repository browser, double-click on the name of a screen and it will display the flow logic of the screen.

The Flow Logic Editor of the Screen Painter will open and you edit the screen flow logic. You can use any of the available ABAP source code editors to define the flow logic.

You can use the following keywords to create the screen flow logic −

S.No. keywords & Description
1

CALL

Calls a subscreen.

2

CHAIN

Starts a processing chain.

3

ENDCHAIN

Ends a processing chain.

4

ENDLOOP

Ends loop processing.

5

FIELD

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

6

LOOP

Starts loop processing.

7

MODIFY

Modifies a table.

8

MODULE

Identifies a processing module.

9

ON

Used with FIELD assignments.

10

PROCESS

Defines a processing event.

11

SELECT

Checks an entry in a table.

Testing Screens

Testing screens are used to test the appearance of a screen as it will appear at runtime. If you have already programmed the flow logic, you can choose whether to simulate the screen with or without it.

To perform Screen test, follow the steps given below −

  • Select Screen → Test.
  • The system will display a dialog box for the runtime simulation.
  • You can change the window coordinates, if it is required.
  • Next, define the scope of simulation.
  • To include the flow logic, click 'choose complete flow logic'.
  • Click Continue and the screen simulation will appear.
Advertisements