You are previewing Introduction to ABAP™ Programming for SAP®, Third Edition.
O'Reilly logo
Introduction to ABAP™ Programming for SAP®, Third Edition

Book Description

In this thoroughly updated third edition of INTRODUCTION TO ABAP/4 PROGRAMMING FOR SAP, you'll find real-world examples that will help you master ABAP, the main language used for building solid-state business applications in the SAP runtime environment. This book contains a learn-by-doing tutorial with real-world business examples for programming in today's most powerful client-server environment. From the basics of tables, displays, loops, and conditional operators to tuning and troubleshooting techniques to web service calls, object orientation, or enhancing system performance, this tutorial is a must for anyone developing in the SAP environment. Whether you've already spent thousands on official training or learned SAP on your own, this book offers comprehensive technical knowledge on reports, interfaces, data extracts, and testing. Take control with INTRODUCTION TO ABAP/4 PROGRAMMING FOR SAP, THIRD EDITION.

Table of Contents

  1. Title Page
  2. Copyright Page
  3. Dedication
  7. Introduction
    1. Chapter 1 Data Types and Definitions
      1. In This Chapter
      2. Building ABAP/4 Statements
      3. Using Variables
      4. Assigning Values to Variables
      5. Summary
    2. Chapter 2 Displaying and Printing Data
      1. In This Chapter
      2. Setting Up the Page (REPORT)
      3. General Features of the WRITE Statement
      4. Formatting the Output
      5. Using Text Elements
      6. Advanced Features of the WRITE Statement
      7. Displaying Messages (MESSAGE)
      8. Using the FORMAT Command
      9. Summary
    3. Chapter 3 Manipulating Data
      1. In This Chapter
      2. Working with Numeric Data
      3. Manipulating Character Data
      4. Using Other Text-Processing Commands
      5. Working with Date Variables
      6. Using Time Variables
      7. Manipulating Field Symbols
      8. Summary
    4. Chapter 4 Using Conditional Operators
      1. In This Chapter
      2. Using the CASE Statement
      3. Using IF with Logical Operators
      4. Using Comparison Operators
      5. Comparing Non-Numeric Values
      6. Using Equal/Not Equal Operators
      7. Determining Whether Values Have Changed (IS INITIAL)
      8. Determining Whether a Value Is Included in a Range (IS BETWEEN)
      9. Using the NOT Operator
      10. Comparing Character Fields (CO, CA, CS, and CP)
      11. Nesting Statements
      12. Summary
    5. Chapter 5 Using the Looping Commands
      1. In This Chapter
      2. Using the DO Loop Command
      3. Using the WHILE Loop
      4. Using the LOOP Statement
      5. Summary
    6. Chapter 6 Working with Internal Tables
      1. In This Chapter
      2. Understanding the Structure of an Internal Table
      3. Defining a Table
      4. Manipulating Data in Tables
      5. Refreshing a Table (REFRESH)
      6. Using Other Table Commands
      7. Summary
    7. Chapter 7 Working with the Data Dictionary
      1. In This Chapter
      2. Data and Structure Definitions
      3. Organizing Your Data
      4. Data Dictionary Tools
      5. Summary
    1. Chapter 8 Using SAP SQL to Access Database Tables
      1. In This Chapter
      2. Using SQL to Access Tables and Views
      3. Using SQL with Transactions
      4. Reading Data from the Database (SELECT)
      5. Options for the SELECT Command
      6. Updating Tables (UPDATE)
      7. Inserting Data (INSERT)
      8. Deleting Rows (DELETE)
      9. Learning Advanced Techniques
      10. Summary
    2. Chapter 9 Working with External Files
      1. In This Chapter
      2. Data Mapping
      3. Establishing the Path and File Name
      4. Opening the File (OPEN DATASET)
      5. Adding a System Message (MESSAGE)
      6. Sending a Command to the Server (FILTER)
      7. Writing the Data to the Server (TRANSFER)
      8. Reading the Data from the Data File (READ)
      9. Closing the File (CLOSE DATASET)
      10. Summary
    3. Chapter 10 Advanced Data Outputs
      1. In This Chapter
      2. Processing Events in ABAP/4
      3. Using Field Groups as an Alternative to Internal Tables
      4. Summary
    4. Chapter 11 Adding Subroutines to Your Program
      1. In This Chapter
      2. Executing Subroutines (PERFORM)
      3. Defining Subroutines (FORM)
      4. Understanding the Scope of Local and Global Variables
      5. Looking at Form Examples
      6. Summary
    5. Chapter 12 Using Function Modules and BAPIs
      1. In This Chapter
      2. Using the Function Modules Screen
      3. Creating a Custom Function Module
      4. Using Function Modules in ABAP Code
      5. Summary
    6. Chapter 13 Working with Logical Databases
      1. In This Chapter
      2. Advantages of Logical Databases
      3. Using the GET Event to Retrieve Data
      4. Limiting Data with Logical Database Parameters
      5. Summary
    1. Chapter 14 Writing a Report
      1. In This Chapter
      2. Determining the Functional Specifications
      3. Selecting Data
      4. Creating Organized Output
      5. Printing the Report
      6. Viewing the Complete Program
      7. Summary
    2. Chapter 15 Web Dynpro
      1. In This Chapter
      2. Architecture of Web Dynpro
      3. Building a Simple Application
      4. Testing Your Web Dynpro Component
      5. Summary
    3. Chapter 16 Writing a Data Extract
      1. In This Chapter
      2. Steps in a Data Extract
      3. Example Extracts
      4. Summary
    4. Chapter 17 Writing a BDC Program
      1. In This Chapter
      2. Understanding the Steps in a BDC
      3. Example BDC Sessions
      4. Summary
    5. Chapter 18 Working with SAP Security and Authorizations
      1. In This Chapter
      2. The SAP Security Model
      3. Creating Authorization Objects
      4. Using the AUTHORITY-CHECK Command
      5. Summary
    1. Chapter 19 ABAP Workbench (Debugger)
      1. In This Chapter
      2. The ABAP Debugger
      3. Defining the Debugger’s Screen
      4. Tips and Techniques for Debugging
      5. Summary
    2. Chapter 20 Performance Analysis and Tuning
      1. In This Chapter
      2. Using SELECT *
      3. Using the Primary Key
      4. Using CHECK Statements
      5. Using Tables
      6. Using the MOVE Statement
      7. Looping
      8. Choosing Internal Tables versus Field Groups
      9. Working with Logical Databases
      10. Using Batching versus Online Programs
      11. Summary
    3. Chapter 21 Web Services
      1. In This Chapter
      2. Creating and Publishing a Web Service in SAP
      3. Creating a REST Web Service
      4. Summary
    4. Chapter 22 BADIs and User Exits
      1. In This Chapter
      2. Understanding BADIs
      3. Finding a BADI
      4. Useful BADIs
      5. Understanding User Exits
      6. Summary
    5. Chapter 23 Object Oriented ABAP
      1. In This Chapter
      2. Object Oriented ABAP Basics
      3. Visibility Concepts
      4. Handling ABAP Objects
      5. SAP Tools Example: Creating a Sample Class and Method
      6. Sample ABAP Program Using Object Oriented Concepts
      7. Summary
    6. Chapter 24 One Order Model for CRM ABAP Programming
      1. In This Chapter
      2. Introduction to Table Structure in CRM
      3. Understanding the One Order Framework
      4. Understanding GUID
      5. Looking at Some Example Transactions
      6. Function Modules Used
      7. Debugging and Finding the Data You Need
      8. Using BADIs
      9. Summary
    1. Appendix A Using the ABAP Editor
      1. Getting to Know the Editor
      2. Editing Programs
    2. Appendix B SAP System Fields
    3. Appendix C ABAP ERP and CRM Tables
  13. Index