Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Lecture09 abap on line


Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Lecture09 abap on line

  1. 1. Lecture 9 Reporting – Interactive (A) BCO5647 Applications Programming Techniques (ABAP)
  2. 2. Readings & Objectives <ul><li>Readings </li></ul><ul><li>Keller & Keller Chapter 7 Section 7.3.6 & 7.3.7 </li></ul><ul><li>Objectives This lecture will </li></ul><ul><li>Introduce basic concepts of interactive reporting </li></ul><ul><li>Introduce interactive event statements </li></ul><ul><li>Examine AT LINE-SELECTION event statement in reference to interactive reports </li></ul><ul><li>Introduce the HIDE command and examine how it is used in interactive reports </li></ul><ul><li>Examine techniques to ensure valid line selection in interactive reports </li></ul>
  3. 3. Interactive Reporting: Overview <ul><li>A simple list can have an interactive or “drill-down” capability added where more detail can be displayed related to a line on the original list. </li></ul><ul><li>LH 0012 BERLIN NEW YORK </li></ul><ul><li>LH 0023 LONDON BERLIN </li></ul><ul><li>Flights Dates Available </li></ul><ul><li>for LH 0023 </li></ul><ul><li>29.10.2006 </li></ul><ul><li>12.11.2006 </li></ul><ul><li>11.12.2006 </li></ul><ul><li>12 SEATS AVAILABLE </li></ul><ul><li>for LH 0023 on 12.11.2006 </li></ul>Drill-Down Drill-Down
  4. 4. Interactive Reporting: Overview <ul><li>Interactive reporting allows you to create secondary lists and windows. To display these on the screen you use function keys, pushbuttons and double-clicks. </li></ul><ul><li>Using function keys the user can also branch to a transaction or another report program. </li></ul>
  5. 5. Events <ul><li>ABAP is an event-driven programming language. </li></ul><ul><li>Event statements are markers in your program code that define when the code associated with an event should run. </li></ul>New Event statement LOAD-OF-PROGRAM
  6. 6. Using the AT LINE-SELECTION event <ul><li>Simple Example: report lec701a. start-of-selection. write: / ‘basic list’. write: / sy-lsind. at line-selection. write: / ‘secondary list after double-click’. write: / sy-lsind color 4. </li></ul>
  7. 7. Using the AT LINE-SELECTION event
  8. 8. Example: Interactive Report
  9. 9. Using the AT LINE-SELECTION event
  10. 10. The HIDE area <ul><li>The Hide statement allows you to store the field contents for a particular list line in a special memory area. </li></ul><ul><li>For each field in the Hide statement, the system stores the field name and value. </li></ul>
  11. 11. Using the AT LINE-SELECTION event <ul><li>As soon as the user selects a line by double-clicking, the system passes the values stored for this line in the HIDE area back into the original fields. </li></ul>
  12. 12. Valid Line Selection <ul><li>In the example above, one field (spfli-carrid) whose contents is stored in the Hide area is set to the initial value. </li></ul><ul><li>When the user selects an invalid line, the system cannot find a corresponding value in the Hide area. </li></ul><ul><li>When the CHECK statement produces a negative result, the system leaves the current processing block without producing a secondary list. </li></ul>