You are previewing SAP ABAP Advanced Cookbook.
O'Reilly logo
SAP ABAP Advanced Cookbook

Book Description

Over 80 advanced recipes with excellent programming techniques that focus on the Netweaver 7.0 EHP2 and above

  • Full of illustrations, diagrams, and tips with clear step-by-step instructions and real timeBuilding application using Kinect for Windows SDK.

  • Get to grips with solving complicated problems using Regular Expressions in ABAP

  • Master the creation of common Design Patterns using ABAP Objects

  • Enhance SAP applications through the use of ABAP programming

  • Covers the newest topics of Adobe Interactive Forms

  • In Detail

    ABAP (Advanced Business Application Programming) is SAP’s proprietary 4th Generation Language (4GL). SAP core is written almost entirely in ABAP.

    ABAP is a high level programming language used in SAP for development and other customization processes.

    "SAP ABAP Advanced Cookbook” covers advanced SAP programming applications with ABAP. It teaches you to enhance SAP applications by developing custom reports and interfaces with ABAP programming.

    This cookbook has quick and advanced real world recipes for programming ABAP. It begins with the applications of ABAP Objects and ALV tips and tricks. It then covers Design Patterns and Dynamic Programming in detail.

    You will also learn the usage of quality improvement tools such as transaction SAT, SQL Trace, and the Code Inspector.

    Simple transformations and its application in Excel Downloading will also be discussed, as well as the newest topics of Adobe Interactive Forms and the consumption and creation of Web services. The book comes to an end by covering advanced usage of Web Dynpro for ABAP and the latest advancement in Floorplan Manager.

    Table of Contents

    1. SAP ABAP Advanced Cookbook
      1. Table of Contents
      2. SAP ABAP Advanced Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. ABAP Objects
        1. Introduction
        2. Creating a shared memory object
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Creating a persistent object
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Creating classes based on factory methods
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Creating classes based on singleton design pattern
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Creating classes based on adapter pattern
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      9. 2. Dynamic Programming
        1. Introduction
          1. See also
        2. Using field symbols and data references to print database table contents
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Applying dynamic Open SQL
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Dynamic program generation
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      10. 3. ALV Tricks
        1. Introduction
          1. See also
        2. Setting ALV columns as key columns and making zero amount appear as blank
          1. How to do it...
          2. How it works...
          3. See also
        3. Removing columns from display and layout
          1. How to do it...
          2. How it works...
        4. Enable Adding Layout toolbar buttons
          1. How to do it...
          2. How it works...
          3. See also
        5. Adding Hotspot to columns
          1. How to do it...
          2. How it works...
          3. See also
        6. Adding your own buttons to ALV toolbar
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Adding checkboxes to columns
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
      11. 4. Regular Expressions
        1. Introduction
          1. Regular expressions
        2. Using regex as an IF statement
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Removal of characters from a string
          1. How to do it...
          2. How it works...
          3. There's more...
        4. Converting date into internal date type
          1. How to do it...
          2. How it works...
        5. Validation of format (telephone number)
          1. How to do it...
          2. How it works...
        6. Removing repeated words from text string
          1. How to do it...
          2. How it works...
        7. Inserting commas in an amount string
          1. How to do it...
          2. How it works...
        8. Removing comments from program code
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Interpreting HTML stream
          1. How to do it...
          2. How it works...
          3. See also
      12. 5. Optimizing Programs
        1. Introduction
        2. Using transaction SAT to find problem areas
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creation of secondary indexes in database tables
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Adding hints in SELECT clause
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Secondary indexes for internal tables
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Hashed table for single read access
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Replacing for all entries constructwith Ranges
          1. Getting ready...
          2. How to do it...
          3. How it works...
          4. See also
      13. 6. Doing More with Selection Screens
        1. Introduction
          1. See also
        2. Adding tabstrips and listboxes to report selection screens
          1. How to do it...
          2. How it works...
          3. See also
        3. Adding toolbar buttons on selection screen
          1. How to do it...
          2. How it works...
          3. See also
        4. Changing screen fields on radio button selection
          1. How to do it...
          2. How it works...
        5. Taking desktop folder and filename as input
          1. How to do it...
          2. How it works...
          3. There's more...
        6. Coding search help exits for creating better F4 helps
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      14. 7. Smart Forms – Tips and Tricks
        1. Introduction
        2. Toggle on/off the Microsoft Word text editor
          1. How to do it...
          2. How it works...
          3. See also
        3. Using background pictures and print preview
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Using folder options for page protection
          1. How to do it...
          2. How it works...
        5. Printing several forms in one spool request
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        6. Converting Smart Forms to PDF output
          1. How to do it...
          2. How it works...
          3. See also
        7. Applying sorting and subtotaling to table fields
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      15. 8. Working with SQL Trace
        1. Introduction
        2. Carrying out SQL trace
          1. How to do it...
          2. How it works...
        3. Generating and interpreting the trace result
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Carrying out restricted trace
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Filtering unwanted trace result entries
          1. How to do it...
          2. How it works...
        6. Summarizing a SQL list and viewing table-related information
          1. How to do it...
          2. How it works...
        7. Quickly finding the data source of a screen field
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Finding the data source of a field's hit list
          1. Getting ready
          2. How to do it...
          3. How it works...
      16. 9. Code Inspector
        1. Introduction
        2. Carrying out quick code inspection
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Carrying out a full-fledged inspection
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Carrying out database-specific performance checks
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        5. Suppressing messages using pseudo comments
          1. How to do it...
          2. How it works...
          3. There's more...
        6. Searching for ABAP statement patterns and tokens within code
          1. How to do it...
          2. How it works...
        7. Creating your own Code Inspector checks
          1. How to do it...
          2. How it works...
          3. See also
      17. 10. Simple Transformations
        1. Introduction
          1. See also
        2. Creating simple transformations
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Creating transformations for structures and calling them in programs
          1. How to do it...
          2. How it works...
        4. Creating transformations for internal tables
          1. How to do it...
          2. How it works...
        5. Generating transformations for dictionary table types
          1. How to do it...
          2. How it works...
        6. Downloading into Excel made easy using simple transformations
          1. How to do it...
          2. How it works...
          3. See also
      18. 11. Sending E-mail Using BCS Classes
        1. Introduction
        2. Creating a simple e-mail message
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Sending e-mail to Internet e-mail addresses
          1. How to do it...
          2. How it works...
        4. Adding attachments to your message
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        5. Creating HTML e-mail
          1. How to do it...
          2. How it works...
        6. Running a program and sending its output as an e-mail
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
      19. 12. Creating and Consuming Web Services
        1. Introduction
          1. See also
        2. Creating a Web service from a function module
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Configuring the created Web service
          1. How to do it...
          2. How it works...
        4. Consuming a Web service
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        5. Creating a consumer proxy's logical port
          1. How to do it...
          2. How it works...
        6. Calling a Web service from an ABAP program
          1. Getting ready
          2. How to do it...
          3. How it works...
      20. 13. SAP Interactive Forms by Adobe
        1. Introduction
        2. Creating nested tables
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        3. Enabling duplex printing in forms
          1. How to do it...
          2. How it works...
        4. Using form elements and scripting to create interactive forms
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Working with Adobe offline infrastructure
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Parallel printing of form
          1. How to do it...
          2. How it works...
          3. See also
        7. Adding error messages for interactive forms
          1. How to do it...
          2. How it works...
          3. See also
        8. PDF object API
          1. How to do it...
          2. How it works...
          3. See also
      21. 14. Web Dynpro for ABAP
        1. Introduction
        2. Creating trees
          1. How to do it...
          2. How it works...
        3. Creating navigation lists
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Creating tabstrips
          1. How to do it...
          2. How it works...
        5. Displaying error messages
          1. How to do it...
          2. How it works...
        6. Calling dialog boxes of same component
          1. How to do it...
          2. How it works...
          3. There's more...
        7. Displaying Adobe forms in Web Dynpros
          1. How to do it...
          2. How it works...
          3. See also
      22. 15. Floorplan Manager
        1. Introduction
        2. Creating applications based on OIF Floorplan design
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Changing header and ticket area at runtime
          1. How to do it...
          2. How it works...
        4. Adding list GUIBBs to Floorplan applications
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Viewing structure of FPM applications
          1. How to do it...
          2. How it works...
          3. See also
        6. Creating GAF applications
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Creating FPM applications using Application Creation Tool
          1. How to do it...
          2. How it works...
          3. See also
      23. Index