BC405 Programming ABAP Reports. COURSE OUTLINE Course Version: 10 Course Duration: 5 Day(s)
SAP Copyrights and Trademarks 2014 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. Copyright. All rights reserved. iii
iv Copyright. All rights reserved.
Typographic Conventions American English is the standard used in this handbook. The following typographic conventions are also used. This information is displayed in the instructor s presentation Demonstration Procedure Warning or Caution Hint Related or Additional Information Facilitated Discussion User interface control Example text Window title Example text Copyright. All rights reserved. v
vi Copyright. All rights reserved.
Contents ix Course Overview 1 Unit 1: Introduction to Reporting 1 Lesson: Using Standard Reports 1 Lesson: Implementing a Simple List 3 Unit 2: Selection Screen 3 Lesson: Implementing a Selection Screen 3 Lesson: Implementing Multiple Selection Screens 3 Lesson: Managing Input Checks and Variants 3 Lesson: Modifying the Selection Screen at Runtime 5 Unit 3: SAP List Viewer (ALV) Creation 5 Lesson: Using SAP List Viewer (ALV) Functionality 5 Lesson: Preparing the Container Screen (ALV Grid Control) 5 Lesson: Displaying Data Using ALV Grid 7 Unit 4: SAP LIST VIEWER (ALV) Design 7 Lesson: Working with Layout Variants in the SAP List Viewer 7 Lesson: Adapting the Layout Structure of the SAP List Viewer (ALV) Control 7 Lesson: Adapting the Appearance of the SAP List Viewer 7 Lesson: Adapting the SAP List Viewer Using the Field Catalog 9 Unit 5: SAP List Viewer (ALV) - Events and Methods 9 Lesson: Handling Events of the SAP List Viewer (ALV) Grid Control 9 Lesson: Implementing a Custom Event Handler for the SAP List Viewer 9 Lesson: Implementing Further Methods in the ALV Grid Control 9 Lesson: Implementing Context Menus for the SAP List Viewer (ALV) Grid Control 11 Unit 6: Logical Databases 11 Lesson: Explaining the Functionality of Logical Databases 11 Lesson: Retrieving Data Using Logical Databases 11 Lesson: Advancing Data Retrieval with Logical Databases Copyright. All rights reserved. vii
13 Unit 7: Data Retrieval Without Logical Databases 13 Lesson: Reading Data from Multiple Database Tables 13 Lesson: Implementing Aggregate Functions and Grouping in a SELECT Statement 13 Lesson: Implementing Grouping Levels and Sorting in SELECT Statements 15 Unit 8: Call Programs with Data Transfer 15 Lesson: Calling Programs and Passing Data 17 Unit 9: Background Processing 17 Lesson: Performing Background Processing 19 Unit 10: SAP LIST VIEWER Object Model (ALV OM) 19 Lesson: Displaying Data with the SAP List Viewer Object Model (ALVOM) 19 Lesson: Adapting the SAP List Viewer Object Model ( ALVOM) Result 21 Unit 11: Classic Lists 21 Lesson: Implementing Classic List 23 Unit 12: Custom GUI Status for Interactive Lists 23 Lesson: Defining Classic List Interface viii Copyright. All rights reserved.
Course Overview TARGET AUDIENCE This course is intended for the following audiences: Technology Consultant Developer Copyright. All rights reserved. ix
x Copyright. All rights reserved.
UNIT 1 Introduction to Reporting Lesson 1: Using Standard Reports Identify reporting solutions Compare reporting solutions Compare the SAP List Viewer (ALV) grid control and classic ABAP list Explain accessibility Lesson 2: Implementing a Simple List Structure a program using includes Create lists with the WRITE statement Copyright. All rights reserved. 1
Unit 1: Introduction to Reporting 2 Copyright. All rights reserved.
UNIT 2 Selection Screen Lesson 1: Implementing a Selection Screen Explain the selection screen Create parameters on the selection screen Create selection options on the selection screen Initialize the selection screen Design the selection screen Lesson 2: Implementing Multiple Selection Screens Create additional selection screens Define tab pages on selection screens Lesson 3: Managing Input Checks and Variants Implement input checks Implement field and value help Create variants Lesson 4: Modifying the Selection Screen at Runtime Generate pushbuttons on the selection screen Change the selection screen at runtime Copyright. All rights reserved. 3
Unit 2: Selection Screen 4 Copyright. All rights reserved.
UNIT 3 SAP List Viewer (ALV) Creation Lesson 1: Using SAP List Viewer (ALV) Functionality Display data with the SAP List Viewer (ALV) Lesson 2: Preparing the Container Screen (ALV Grid Control) Explain the Control Framework (CFW) Create the container screen Program the screen flow logic for screen processing Lesson 3: Displaying Data Using ALV Grid Instantiate and link SAP List Viewer (ALV) grid control objects Display data in the ALV grid control Copyright. All rights reserved. 5
Unit 3: SAP List Viewer (ALV) Creation 6 Copyright. All rights reserved.
UNIT 4 SAP LIST VIEWER (ALV) Design Lesson 1: Working with Layout Variants in the SAP List Viewer Work with layout variants in the SAP List Viewer Lesson 2: Adapting the Layout Structure of the SAP List Viewer (ALV) Control Adapt the layout of the ALV Grid Visualize the threshold values in the ALV Grid Define the sort criteria in the ALV Grid Lesson 3: Adapting the Appearance of the SAP List Viewer Color the lines in the ALV grid control Color the cells in the ALV grid control Hide the standard functions of the ALV grid control Lesson 4: Adapting the SAP List Viewer Using the Field Catalog Explain the field catalog Format columns using the field catalog Copyright. All rights reserved. 7
Unit 4: SAP LIST VIEWER (ALV) Design 8 Copyright. All rights reserved.
UNIT 5 SAP List Viewer (ALV) - Events and Methods Lesson 1: Handling Events of the SAP List Viewer (ALV) Grid Control Understand how events fit into the Control Framework Handle events Create and register event handlers Lesson 2: Implementing a Custom Event Handler for the SAP List Viewer Implement custom functions for the ALV grid control Handle print list events for the ALV grid control Lesson 3: Implementing Further Methods in the ALV Grid Control Identify suitable methods for tasks in the ALV grid control Implement method calls for the ALV grid control Lesson 4: Implementing Context Menus for the SAP List Viewer (ALV) Grid Control Implement context menus Copyright. All rights reserved. 9
Unit 5: SAP List Viewer (ALV) - Events and Methods 10 Copyright. All rights reserved.
UNIT 6 Logical Databases Lesson 1: Explaining the Functionality of Logical Databases Explain logical databases Lesson 2: Retrieving Data Using Logical Databases List the components of logical databases Use logical database events Identify selections in logical databases Lesson 3: Advancing Data Retrieval with Logical Databases Explain the program flow of logical databases Explain the program selections of logical databases. Copyright. All rights reserved. 11
Unit 6: Logical Databases 12 Copyright. All rights reserved.
UNIT 7 Data Retrieval Without Logical Databases Lesson 1: Reading Data from Multiple Database Tables List techniques to read data from multiple database tables Read data using database views Read data using inner joins Read data using outer joins Read data using FOR ALL ENTRIES Read data using nested SELECT statements Lesson 2: Implementing Aggregate Functions and Grouping in a SELECT Statement Implement aggregate functions in SELECT statements Implement GROUP BY in SELECT statements Lesson 3: Implementing Grouping Levels and Sorting in SELECT Statements Implement HAVING in SELECT statements Implement ORDER BY in SELECT statements Copyright. All rights reserved. 13
Unit 7: Data Retrieval Without Logical Databases 14 Copyright. All rights reserved.
UNIT 8 Call Programs with Data Transfer Lesson 1: Calling Programs and Passing Data Call programs Explain memory management Pass data between programs Copyright. All rights reserved. 15
Unit 8: Call Programs with Data Transfer 16 Copyright. All rights reserved.
UNIT 9 Background Processing Lesson 1: Performing Background Processing Perform background processing Perform SAP List Viewer (ALV) background processing Copyright. All rights reserved. 17
Unit 9: Background Processing 18 Copyright. All rights reserved.
UNIT 10 SAP LIST VIEWER Object Model (ALV OM) Lesson 1: Displaying Data with the SAP List Viewer Object Model (ALVOM) Explain the SAP List Viewer Object Model (ALVOM) Implement the ALV OM Lesson 2: Adapting the SAP List Viewer Object Model ( ALVOM) Result Change the output of the ALV OM Change the content and structure of the ALV OM Copyright. All rights reserved. 19
Unit 10: SAP LIST VIEWER Object Model (ALV OM) 20 Copyright. All rights reserved.
UNIT 11 Classic Lists Lesson 1: Implementing Classic List Maintain the classic list Maintain details for the classic list Copyright. All rights reserved. 21
Unit 11: Classic Lists 22 Copyright. All rights reserved.
UNIT 12 Custom GUI Status for Interactive Lists Lesson 1: Defining Classic List Interface Explain the classic list interface Define GUI status Copyright. All rights reserved. 23