FAQ REPORT FORMATING AND EVENTS

What is the limit for the length of a page if the page length is not specified in the report statement.

60,000 Lines.

How can Symbols or R/3 icons be output on the screen?

WRITE symbol-name AS SYMBOL.
WRITE icon-name AS ICON.
REPORTING - GENERAL

What are reports?
and how do you set up reports?

A report program reads and analyzes data from one or more database tables without modifying the database. Usually, the result of such a report program is in the form of a list which is output to the screen or sent to a printer.
What are the different types of programs?
I Include Program
M Module Pool
F Function Modules
S External Subroutines
1 Online program


Events in Reporting ? Explain ?


The following events occur at runtime of a typical report program which uses logical databases:


INITIALIZATION

Point before the selection screen is displayed

When you start a program in which a selection screen is defined (either in the program itself or in the linked logical database program), the system normally processes this selection screen first. If you want to execute a processing block before the selection screen is processed, you can assign it to the event keyword INITIALIZATION.

AT SELECTION-SCREEN

Point after processing user
input on the selection screen while the selection screen is still active
The event keyword AT SELECTION-SCREEN provides you with several possibilities to carry out processing blocks while the system is processing the selection screen.
START-OF-SELECTION Point after processing the selection screen.


The event START-OF-SELECTION

gives you the possibility of creating a processing block after processing the selection screen and before accessing database tables using a logical database. You can use this processing block, for example, to set the values of internal fields or to write informational statements onto the output screen.

At the START-OF-SELECTION event, also all statements are processed that are not attached to an event keyword except those that are written behind a FORM-ENDFORM block.


GET table Point at which the logical database
offers a line of the database table
The most important event for report programs with an attached logical database is the moment at which the logical database program has read a line from a database table (see Accessing Data Using Logical Databases ). To start a processing block at this event, use the GET statement as follows:

Syntax

GET table [FIELDS list].
After this statement, you can work with the current line of the database table . The data is provided in the table work area list table table.
GET table LATE Point after processing all tables which
are hierarchically subordinate to the database table table tablin the structure of the logical database.

To start a processing block at the moment after the system has processed all database tables of a logical database that are hierarchically inferior to a specific database table, use the event keyword GET as follows:

Syntax

GET table table LATE [FIELDS list.
In analogy to report programs that use only SELECT statements (see table in Comparison of Access Methods ), the processing block of a GET list table table LATE statement would appear directly before the ENDSELECT statement in the SELECT loop for the database table .

END-OF-SELECTION Point after processing all lines offered
by the logical database.

To define a processing block after the system has read and processed all database tables of a logical database, use the keyword END-OF-SELECTION.
The following events occur during the processing of the output list of a report program:

TOP-OF-PAGE Point during list processing when a new page is started

END-OF-PAGE Point during list processing when a page is ended

The following events occur during the display of the output list of a report program:


AT LINE-SELECTION Point at which the user selects a line

AT USER-COMMAND Point at which the user presses a function key or enters a command in the command field.

AT PF Point at which the user presses the function key with the function code PF

With the selection screen, ABAP/4 offers an interactive element also for report programs. You can define a selection screen without having to bother about all the details required in dialog programming.

The selection screen is always processed directly after a report program is started. The user can enter field values and selection criteria on this screen.
The main purpose of the selection screen is to enable the user to control the database selections of the report program.

If a report program is started from another ABAP/4 program with the SUBMIT statement (see Calling Reports), the selection screen objects also serve as a data interface, With a selection screen defined in the report program, you can enable the user to assign values to variables with the PARAMETERS statement •determine selection criteria with the SELECT-OPTIONS statement.

RELATED POSTS

ABAP PROGRAM INTERFACE
INTERACTIVE REPORTS BASICS
ABAP REPORTS SAVING LISTS TO BACK GROUND
ABAP PROGRAMMING FOR DATA RETRIVAL
TECHNIQUES FOR LIST CREATION
CALLING ABAP PROGRAM AND PASSING DATA
FUNCTION GROUPS
USER DIALOG AND ABAP SELECTION SCREEN
USER DIALOGS AND LISTS
INTERACTIVE DIALOGS AND LISTS
INTERNAL TABLES IN BRIEF
CONTROL BLOCKS IN ABAP
CODE INSPECTOR IN ABAP
EFFECTIVE CODING IN ABAP PART 2
EFFECTIVE CODING IN ABAP PART 1
PERFORMANCE TIPS FOR ABAPER
ABAP REPORT SELECTION SCREENS
SUBROUTINES IN ABAP
INTERNAL TABLE OPERATIONS IN ABAP
ABAP STATEMENTS
ABAP DATA TYPES AND DATA OBJECTS
PERFORMANCE TIPS IN ABAP
TYPE KEY WORD IN ABAP
ABAP OPTIMIZATION
ABAP FAQ'S ON INTERACTIVE REPORTS
ABAP FAQ'S ON MODULIZATION

FAQ'S RELATED POSTS
FAQ'S ON ABAP ENHANCEMENTS
FAQ'S ON ABAP MODULE POOL
FAQ'S ON SAP SCRIPTS PART 3
FAQ'S ON SAP SCRIPTS PART 2
FAQ'S ON SAP SCRIPTS PART 1
FAQ'S ON ABAP INTERACTIVE REPORTS
ABAP FAQ'S PART 4
ABAP FAQ'S PART 3
ABAP FAQ'S PART 2
ABAP FAQ'S PART 1
FAQ'S ON INTERNAL TABLE
FAQ'S ON REPORT FORMATTING AND ABAP EVENTS
FAQ'S ON ABAP MODULIZATION
FAQ'S ON SAP BASIS LAYER
FAQ'S ON RFC
FAQ'S ON ABAP CROSS APPLICATIONS
ABAP ASSINGNMENT
ABAP REAL TIME QUESTIONS PART 1
ABAP REAL TIME QUESTIONS PART 2

0 comments:

Post a Comment

Search for SAP ABAP,CRM,ERP topics here