Beruflich Dokumente
Kultur Dokumente
SAP-ABAP supports two types of Programs - Report Programs & Dialog Programs.
Report Programs are used when large amounts of data needs to be displayed
Selection Screen
Logical Databases
They are used when data from a number of tables have to be selected and
processed before presenting
Used when the report has to be downloaded from SAP to an Excel sheet to
be distributed across.
The line size for a particular report can be set by using the addition line-size
<size>.
The line count for a particular page can be set by using the addition line-
count n(n1). N is the number of lines for the page and N1 is the number of
lines reserved for the page footer.
line-size <size>
line-count <n(n1)>
Selection Screen
"Selection screen" is the screen where one specifies the input values for which the
program should run.
1. Parameters
2. Select-Options
Syntax
Parameters help one to do dynamic selection. They can accommodate only one
value for one cycle of execution of the program.
Syntax
Select Options
Syntax
Load-of-program
Also runs the associated processing block once and once only for each
program and internal session.
Initialization.
You can assign different values other than the values defaulted on the
selection screen .
You can fill your selection screen with some values at runtime.
At Selection-Screen.
The event is processed when the selection screen has been processed (at
the end of PAI ).
Start-of-Selection.
End-of-selection.
After all the data has been selected this event writes the data to the screen.
Interactive Events
Used for interactive reporting. It is used to create a detailed list from a basic
list.
Syntax
Format Color n
Please note that there are other additions along with format as well
FORMAT COLOR OFF INTENSIFIED OFF INVERSE OFF HOTSPOT OFF INPUT OFF
The secondary list may either completely overlay the first screen or one can
display it in a new screen
Hide
This command helps you to store the field names based on which one will be doing
further processing to get a detailed list. It is written directly after the WRITE
statement for a field. When a row is selected the values get automatically filled in the
variables for further use.
Logical Databases
Instead of using "Select" queries you can use logical database to retrieve data
for a program.
The data is selected by another program and one can access the data using
GET <table-name> command which places the data in the work area <table-
name>.
1. It offers check conditions to see whether the input is correct, complete and
plausible