Report is the key word used in sap abap programming and here we are going to learn about the way it is used in writing the code for programming this abap language.
Effect
Introduces the report. You can choose any name you like up to 8 characters long.
Example
REPORT ZREPNAME.
Only standard SAP reports should begin with 'R'.
Addition 1
... NO STANDARD PAGE HEADING
Effect
Suppresses output of the standard page header (see NEWPAGE ).
Addition 2
... LINE-SIZE col
Effect
Creates a report with col columns per line. The maximum line length permitted is 255 characters.
If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SYLINSZ contains the current line size for generating reports (see NEW-PAGE ... LINE-SIZE ).
The specified LINE-SIZE must not appear in quotation marks.
· If the you want the report list (i.e. the output) to be printable, do not define a LINE-SIZE with a value greater than 132 because most printers cannot handle wider lists.
Example
REPORT ZREPNAME LINE-SIZE 132.
Addition 3
... LINE-COUNT lin(n)
Effect
Creates a report with lin lines per page, of which n lines are reserved for the END-OF-PAGE processing. If you omit the " (n) ", the default value 0 applies. The system field SY-LINCT contains the current number of lines per page for generating reports.
If the LINE-COUNT specification is missing, the number of lines per page is calculated dynamically from the number of lines actually output on this page. Here, a page break no longer occurs automatically, but must be specified explicitly with NEW-PAGE , and the system field SY-LINCT is set to 0. (NEW-PAGE ... LINE-COUNT )
The LINE-COUNT must not be enclosed in quotation marks.
Further information about using LINE-COUNT .
Examples
REPORT ZREPNAME LINE-COUNT 65.
The page has 65 lines.
REPORT ZREPNAME LINE-COUNT 65(8).
The page has 65 lines, of which the last 8 are only defined by
END-OF-PAGE .
Addition 4
... MESSAGE-ID xx
Effect
Takes the messages output by MESSAGE under the specified 2- character ID xx from table T100 .
Example
REPORT RSTEST00 MESSAGE-ID SY.
Addition 5
... DEFINING DATABASE ...
Effect
All the database programs must specify in the REPORT statement the three-character name of the logical database to which they belong.
This addition is generated automatically (in the REPORT statement) when you create a logical database by selecting Utilities -> Development/test -> Logical databases .
This ID must not be enclosed in quotation marks.
Example
REPORT SAPDBKDF DEFINING DATABASE KDF.
The previous post deals with sap abap syntax of refresh .
Related Posts:
My sapcrm customers and consumer segmentation
Organizational challenges in crm and mysap solutions
Business View and Mysap.com
What is SAP R/3 introduction to mysap.comFICO sap abap reporting
Effect
Introduces the report. You can choose any name you like up to 8 characters long.
Example
REPORT ZREPNAME.
Only standard SAP reports should begin with 'R'.
Addition 1
... NO STANDARD PAGE HEADING
Effect
Suppresses output of the standard page header (see NEWPAGE ).
Addition 2
... LINE-SIZE col
Effect
Creates a report with col columns per line. The maximum line length permitted is 255 characters.
If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SYLINSZ contains the current line size for generating reports (see NEW-PAGE ... LINE-SIZE ).
The specified LINE-SIZE must not appear in quotation marks.
· If the you want the report list (i.e. the output) to be printable, do not define a LINE-SIZE with a value greater than 132 because most printers cannot handle wider lists.
Example
REPORT ZREPNAME LINE-SIZE 132.
Addition 3
... LINE-COUNT lin(n)
Effect
Creates a report with lin lines per page, of which n lines are reserved for the END-OF-PAGE processing. If you omit the " (n) ", the default value 0 applies. The system field SY-LINCT contains the current number of lines per page for generating reports.
If the LINE-COUNT specification is missing, the number of lines per page is calculated dynamically from the number of lines actually output on this page. Here, a page break no longer occurs automatically, but must be specified explicitly with NEW-PAGE , and the system field SY-LINCT is set to 0. (NEW-PAGE ... LINE-COUNT )
The LINE-COUNT must not be enclosed in quotation marks.
Further information about using LINE-COUNT .
Examples
REPORT ZREPNAME LINE-COUNT 65.
The page has 65 lines.
REPORT ZREPNAME LINE-COUNT 65(8).
The page has 65 lines, of which the last 8 are only defined by
END-OF-PAGE .
Addition 4
... MESSAGE-ID xx
Effect
Takes the messages output by MESSAGE under the specified 2- character ID xx from table T100 .
Example
REPORT RSTEST00 MESSAGE-ID SY.
Addition 5
... DEFINING DATABASE ...
Effect
All the database programs must specify in the REPORT statement the three-character name of the logical database to which they belong.
This addition is generated automatically (in the REPORT statement) when you create a logical database by selecting Utilities -> Development/test -> Logical databases .
This ID must not be enclosed in quotation marks.
Example
REPORT SAPDBKDF DEFINING DATABASE KDF.
The previous post deals with sap abap syntax of refresh .
Related Posts:
My sapcrm customers and consumer segmentation
Organizational challenges in crm and mysap solutions
Business View and Mysap.com
What is SAP R/3 introduction to mysap.comFICO sap abap reporting
No comments:
Post a Comment