SAP ABAP Advanced Cookbook

Featuring over 80 sophisticated recipes, this is a superb tutorial for ABAP developers and consultants. It teaches you advanced SAP programming using the high level language through diagrams, step-by-step instructions, and real-time examples.

SAP ABAP Advanced Cookbook

Cookbook
Rehan Zaidi

Featuring over 80 sophisticated recipes, this is a superb tutorial for ABAP developers and consultants. It teaches you advanced SAP programming using the high level language through diagrams, step-by-step instructions, and real-time examples.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free sample

Book Details

ISBN 139781849684880
Paperback316 pages

About This Book

  • Full of illustrations, diagrams, and tips with clear step-by-step instructions and real time examples
  • 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

Who This Book Is For

If you are an ABAP developer and/or consultant looking forward to building advanced SAP programming applications with ABAP, then this is the best guide for you. Basic knowledge of ABAP programming is required.

Table of Contents

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

What You Will Learn

  • Master the advanced features of Web Dynpro programming
  • Experience the latest advancements in FloorPlan Manager design
  • Learn how to use transaction SAT and secondary internal table indexes for performance improvement
  • Explore the world of Simple Transformations and how they solve problems
  • Get step-by-step instructions to create and consume Web Services
  • Optimize program code and find datasource of fields using SQL Trace
  • Get valuable tips and tricks for Smart Forms and 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.

Authors

Table of Contents

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

Book Details

ISBN 139781849684880
Paperback316 pages
Read More