Beruflich Dokumente
Kultur Dokumente
What is SAP?
ABAP
HR
FICO
SD
Video
Payroll
Quiz
Java
Testing
Answers
SAP-ABAP supports two types of Programs - Report Programs & Dialog Programs. Report Programs are used when
large amounts of data needs to be displayed
They are used when data from a number of tables have to be selected and processed before presenting
Used when reports demand a special format
Used when the report has to be downloaded from SAP to an Excel sheet to be distributed across.
Used when the report has to be mailed to a particular person.
www.saptraininghub.com/all-about-abap-report-programming/ 1/6
3/18/13 All About ABAP Report Programming
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
Parameters helps one to do dynamic selection. They can accommodate only one value for one cycle of execution of the
program.
Syntax
www.saptraininghub.com/all-about-abap-report-programming/ 2/6
3/18/13 All About ABAP Report Programming
Select Options
Syntax
Load-of-program
Triggers the associated event in an internal session after loading a program of type 1, M, F, or S.
Also runs the associated processing block once and once only for each program and internal session.
The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1,
M, F or S as a constructor has for classes in ABAP Objects
Initialization.
At Selection-Screen.
www.saptraininghub.com/all-about-abap-report-programming/ 3/6
3/18/13 All About ABAP Report Programming
The event is processed when the selection screen has been processed (at the end of PAI ).
Validation & Checks of inputted values happen here
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
Interactive Programming
Using Interactive Programming users can actively control the data retrieval and display of data
Used to create a detailed list from a very basic list
The detailed data is written on a secondary list.
The secondary list may either completely overlay the first screen or one can display it in a new screen
The secondary lists can be themselves interactive.
The first list may also call a transaction.
There are different events associated with interactive programming.
Hotspot
If one drags the mouse over the data displayed in the repor the cursor changes to a Hand with an Outstretched Index
finger. An hotspot can be achieved using the FORMAT statement.
www.saptraininghub.com/all-about-abap-report-programming/ 4/6
3/18/13 All About ABAP Report Programming
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.
Logical databases are created by transaction SE36
The name of a logical database can be up to 20 characters long. It may begin with a namespace prefix.
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
2. It contains central authorization checks for database access
3. Enhancements such as improvement in performance immediately apply to all reports which use logical database.
Note: Due to the complexities involved, logical databases are not used in most of the cases
How to trace if an Accounting Key How To Create How to become SAP LSMW Data
OSS Note is Credit Memo consultant Migration - Step by
deployed in your Step
landscape
Recommended by
Search
FAQ
www.saptraininghub.com/all-about-abap-report-programming/ 5/6