08 - Module Pool Programming
08 - Module Pool Programming
1) Tabs of a Screen :
a) PBO( Process Before output) - This event called before displaying a particular
screen.
b) PAI( Process after Input) - This event called after performing some action on a
particular screen.
c) POV( Process on Value Request) - This event called when we click F4 on a field
of a screen.
d) POH( Process on Help Request) - This event called when we click F1( Technical
information) on a field of a screen.
F4 Help -> It tells us what are the various possible values for any Input field.
F1 Help -> It gives us the technical information of any field/column.
Menu Bar
Function Keys
Title Bar
Application Toolbar
4) Table control :
5) SUB Screen :
7) Tab Strip :
8) AT EXIT-COMMAND ->
a) The MODULE ... AT EXIT-COMMAND statement is normally used to leave the current
screen without the automatic input checks taking place.
b) Take the Function Type of the Button = 'E'( Exit).
Syntax : CHAIN.
FIELD : ( Field1 , Field2 ----) Module ( Module name).
ENDCHAIN.
Usually in Input screen, whenever the user gives an input and their is no record
present, User input is restricted by an error message.
This error message disables the input screen & now the user cannot provide correct
values in the input field as it is disabled by the message.
To over rule this issue, Chain And EndChain Statement comes into the Flow Logic of
the screen where the input fields are validated and remain enabled after the
error message.
LOOP at SCREEN.
IF ( condition).
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
We can change the other properties like - Invisible, Required,output etc for the
fields by using the above logic.
CALL SCREEN screen number -> Will add the screen to the stack.
LEAVE TO SCREEN screen number-> Replace last stacked screen via the new screen.
LEAVE TO SCREEN 0 -> Go to the previous stacked screen.
Important Links :