SlideShare a Scribd company logo
Lecture 8 Reporting – Formatting Output BCO5647 Applications Programming Techniques (ABAP)
Readings & Objectives Readings Matzke   Chapter 7 Section 7.3 Pages 401 - 410    Objectives This lecture will Introduce formatting options for ABAP report programs Examine color output options and how they can be applied Examine Icon, Symbol and Line options and how they can be applied Examine Line Size and Line Count options and how they can be applied  Examine Page and Columns Headers how they can be applied
Formatting Output - Color ABAP allows you to use 7 colors in your output lists. You can activate these colors by specifying a number or a symbolic name. To display the colors and their corresponding symbolic names, use transaction  LIBS  and select  Demo: All Colors .
Formatting Output - Color
Generating Icons, Symbols and Lines
Setting the list format
Page and Column Headers
Header using TOP-OF-PAGE Event
Formatting Output - Solid Lines The SY-ULINE system field generates a horizontal line, SY-VLINE a vertical line. report lec702. data: square type i,   line_size type i value 40. uline. format color col_heading. write: / sy-vline,   ‘Numbers and their squares’,   at line_size sy-vline. format color off. uline. do 10 times.   square = sy-index ** 2.   write: / sy-vline,   sy-index color col_key,   sy-vline,  square,  at line_size sy-vline. enddo. uline.

More Related Content

DOCX
Report painter in SAP
PPT
Lecture06 abap on line
PPT
0100 welcome
PPT
Lecture16 abap on line
PPT
Lecture04 abap on line
PPT
Lecture09 abap on line
PPT
Lecture05 abap on line
PPT
Lecture12 abap on line
Report painter in SAP
Lecture06 abap on line
0100 welcome
Lecture16 abap on line
Lecture04 abap on line
Lecture09 abap on line
Lecture05 abap on line
Lecture12 abap on line

Viewers also liked (20)

PPT
Lecture13 abap on line
PDF
control techniques
PPT
Chapter 04 sap script - output program
PPT
Lecture14 abap on line
PDF
Abap slide lockenqueuedataclustersauthchecks
PPT
0103 navigation
PDF
Abap slide exceptionshandling
PPT
Abap slide class3
PDF
Abap slides set1
PDF
Abap slide lock Enqueue data clusters auth checks
PPT
0106 debugging
PPT
Lecture11 abap on line
PDF
Abap slide class4 unicode-plusfiles
PPT
Chapter 08 abap dictionary objects views1
PDF
Abap slides user defined data types and data
PPT
Ab1011 module pool programming
DOCX
Using folder options for page protection
PPT
SAP ABAP Lock concept and enqueue
PPT
0105 abap programming_overview
PDF
Dialog programming ABAP
Lecture13 abap on line
control techniques
Chapter 04 sap script - output program
Lecture14 abap on line
Abap slide lockenqueuedataclustersauthchecks
0103 navigation
Abap slide exceptionshandling
Abap slide class3
Abap slides set1
Abap slide lock Enqueue data clusters auth checks
0106 debugging
Lecture11 abap on line
Abap slide class4 unicode-plusfiles
Chapter 08 abap dictionary objects views1
Abap slides user defined data types and data
Ab1011 module pool programming
Using folder options for page protection
SAP ABAP Lock concept and enqueue
0105 abap programming_overview
Dialog programming ABAP
Ad

More from Milind Patil (14)

PDF
Step by step abap_input help or lov
PDF
Step bystep abap_fieldhelpordocumentation
PDF
Step bystep abap_field help or documentation
PDF
Step bystep abap_changinga_singlerecord
PDF
Step bystep abap_changinga_singlerecord
PDF
Abap reports
PPT
Lecture10 abap on line
PPT
Lecture07 abap on line
PPT
Lecture03 abap on line
PPT
Lecture02 abap on line
PPT
Lecture01 abap on line
PPT
Lecture15 abap on line
PPTX
Abap course chapter 6 specialities for erp software
PPTX
Abap course chapter 5 dynamic programs
Step by step abap_input help or lov
Step bystep abap_fieldhelpordocumentation
Step bystep abap_field help or documentation
Step bystep abap_changinga_singlerecord
Step bystep abap_changinga_singlerecord
Abap reports
Lecture10 abap on line
Lecture07 abap on line
Lecture03 abap on line
Lecture02 abap on line
Lecture01 abap on line
Lecture15 abap on line
Abap course chapter 6 specialities for erp software
Abap course chapter 5 dynamic programs
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
sap open course for s4hana steps from ECC to s4
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx

Lecture08 abap on line

  • 1. Lecture 8 Reporting – Formatting Output BCO5647 Applications Programming Techniques (ABAP)
  • 2. Readings & Objectives Readings Matzke Chapter 7 Section 7.3 Pages 401 - 410 Objectives This lecture will Introduce formatting options for ABAP report programs Examine color output options and how they can be applied Examine Icon, Symbol and Line options and how they can be applied Examine Line Size and Line Count options and how they can be applied Examine Page and Columns Headers how they can be applied
  • 3. Formatting Output - Color ABAP allows you to use 7 colors in your output lists. You can activate these colors by specifying a number or a symbolic name. To display the colors and their corresponding symbolic names, use transaction LIBS and select Demo: All Colors .
  • 7. Page and Column Headers
  • 9. Formatting Output - Solid Lines The SY-ULINE system field generates a horizontal line, SY-VLINE a vertical line. report lec702. data: square type i, line_size type i value 40. uline. format color col_heading. write: / sy-vline, ‘Numbers and their squares’, at line_size sy-vline. format color off. uline. do 10 times. square = sy-index ** 2. write: / sy-vline, sy-index color col_key, sy-vline, square, at line_size sy-vline. enddo. uline.

Editor's Notes

  • #5: You can use any of the following FORMAT options: COLOR <n> [ON|OFF] Colors the line background INTENSIFIED[ON|OFF] Intensify colors YES|NO INVERSE [ON|OFF] Inverse: Background/text color HOTSPOT [ON|OFF] Display mouse pointer as hand and single click with mouse button (used with AT LINE-SELECTION ) RESET Resets all formats to their default values The formats set with FORMAT take effect with the next WRITE statement. You can use all FORMAT options with the WRITE statement, but the options will affect only the one field in which they appear. FORMAT options in a WRITE statement change the global formatting instructions (set with a FORMAT statement) for the field.
  • #6: You can use the AS SYMBOL option of the WRITE statement to include symbols in lists. The symbolic names of these characters are defined in include program <symbol> . You can also insert icons into the list with WRITE <f> AS ICON . To do this, you have to link the include program <icon> in your program. You can link the include program <list> to use both symbols and icons in the list. You can find an overview of available symbols and icons in the online documentation or in the statement examples for WRITE . To generate a horizontal line, use the ULINE statement, system field sy-uline in a WRITE statement. To generate a vertical line, use system field sy-vline in a WRITE statement
  • #7: Use the additions LINE-SIZE <s> and LINE-COUNT <m> with the REPORT statement to create global definitions for column and line length for all list levels. The different list levels are created during interactive reporting. Within a list level, you can use NEW-PAGE LINE-COUNT <s> to change the number of lines on a page - this value overrides the definition in the REPORT statement. The width of a list can only be changed by creating a new list level. If you want to use the default values, then set <s> and/or <m> to zero. You cannot use variables for <s> or <m>. An optional addition in the REPORT statement, n, reserves a line for the footer. To create a footer, you have to program the END-OF-PAGE event.
  • #8: You can maintain a list header (page header) and up to four column headers for a list. If you have not maintained a list title, the system uses the program name as a default (system field SY-TITLE ). The addition NO STANDARD PAGE HEADING in the REPORT statement suppresses the output of list/column headers. Alternatively the TOP-OF-PAGE event can be used to generate page headers. TOP-OF-PAGE is especially useful when you want to output variables in the headers. TOP-OF-PAGE is triggered whenever a new page is created ( WRITE , ULINE , and so on). If you do not suppress the standard list headers, they appear above the lines generated by TOP-OF-PAGE . Lines generated by TOP-OF-PAGE remain in the window during vertical scrolling.
  • #9: Note the use of the START-OF-SELECTION event to separate the TOP-OF-PAGE event. START-OF-SELECTION is the default event if your program does not have an event entry.
  • #10: Formatting Output - Solid Lines SY-ULINE & SY-VLINE allow you to frame a list, and separate headings by horizontal lines and columns by vertical lines. Explain how program works in reference to producing the output below: