Book description
"SAP ABAP (Advanced Business Application Programming) elucidates the numerous features of the core programming platform, which is used for development for the entire SAP software suite. SAP ABAP uses numerous hands on business oriented use cases and a valuable dedicated e-resource to demonstrate the underlying advanced concepts of the OO ABAP environment and the SAP UI. SAP ABAP covers the latest version (NetWeaver 7.3 and SAP application programming release 6.0) of the platform for demonstrating the customization and implementation phases of the SAP software implementation.
Shorn of weighty theoretical treatment and preoccupation with language syntax, SAP ABAP is a comprehensive, practical one stop solution,which demonstrates and conveys the language’s commands and features through hands on examples. The accompanying e-resource is a take off point to the book.
SAP ABAP works in tandem with the accompanying e-resource to create an interactive learning environment where the book provides a brief description and an overview of a specified feature/command followed by the user switching over to the accompanying e-resource, where a step-by-step guide to creating and running the feature’s object is available.
The presentation of the features is scenario oriented, i.e. most of the features are demonstrated in terms of small business scenarios. The e-resource contains the scenario descriptions, screen shots, detailed screen cams and ABAP program source to enable the reader to create all objects related to the scenario and run/execute them.
The underlying concepts of a feature/command are conveyed through execution of these hands-on programs. Further exercises to be performed independently by the reader are also proposed. The demonstration/illustration objects including the programs rely on some of the SAP application tables being populated, for example an IDES system which is now a de facto system for all SAP training related activities.
"Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: ERP and SAP Overview
-
Chapter 2: ABAP Dictionary/Data Dictionary/DDIC – 1
- ABAP Dictionary: Initial Screen
- View Table Structure Definitions of the SAP Delivered VBRK and VBRP Tables
- DDIC Attributes
- Data Types in the DDIC
- DDIC Object Domain
- DDIC Object Data Element
- Domain and Data Element Relationship
- DDIC Object Table
- Transparent Tables
- Scenario for Hands-on Exercise on Domain, Data Element, and Table
- Creation of Domains, Data Elements, and Tables
- Create Data in Tables
- Foreign Key Relationship Dialog Box Again
- Text Tables
- Chapter 3: ABAP Dictionary/Data Dictionary/DDIC – 2
-
Chapter 4: ABAP Language Basics
- Introduction
- ABAP Data Types
- Data Objects in ABAP Programs
- ABAP Program Components
- ABAP Editors
- ABAP Program Structure
- ABAP Statement Structure
- First ABAP Program
- ABAP Program – Output a Few System Fields
- Internal Data Objects (Elementary) Declarations
- Elementary Data Objects - Assigning Values or Data Movement
-
Structured Data Objects, Own Data Types
- Structured Data Object–ABAP Program: Access Individual Fields
- Structured Data Object: Access Complete Structure
- Structured Data Object in an ABAP Program: User Defined Type in ABAP Program, Access Complete Structure
- User Defined Type in DDIC
- Structured Data Object in an ABAP Program Referring to DDIC Type Group
- Structured Data Objects: MOVE Statement – Source, Destination Not Identical
- Date, Time Arithmetic
- Arithmetic - Numerical Operations
-
String Operations
- An ABAP Program Demonstrating TRANSLATE. UPPER CASE/LOWER CASE is Coded
- An ABAP Program Demonstrating CONCATENATE is Coded
- An ABAP Program Demonstrating SPLIT, the Reverse of CONCATENATE is Coded
- An ABAP Program Demonstrating the Function STRLEN( ) is Coded
- An ABAP Program Demonstrating the Statement CONDENSE is Coded
- Program Internal Flow Control
- Determine Attributes of Data Objects
- Conclusion
-
Chapter 5: WRITE Statement (Classical Reporting)
- WRITE Statement
- WRITE Statement: Hands-on Exercise - A Simple Customer List
- WRITE Statement: Hands-on Exercise - A Simple Customer List with Standard Page Header or List Headers
- An Introduction to Events in ABAP Programs
- WRITE Statement: Hands-on Exercise - Simple Customer List with the Nonstandard Page Header
- WRITE Statement: Hands-on Exercise - Simple Customer List with the NonStandard Page Header, Footer
- WRITE Statement: Hands-on Exercise - Simple Customer List Using COLOR Options
- WRITE Statement: Hands-on Exercise - Simple Customer List with Fields Enclosed in Boxes
- WRITE Statement: Hands-on Exercise - List of Billing Documents of a Specified Company Code
- WRITE Statement: Hands-on Exercise - Getting Part of Output on a Single Page, Not Splitting between Pages
- WRITE Statement: Hands-on Exercise - Freeze Columns on the Left: SET LEFT SCROLL-BOUNDARY
- WRITE Statement: Miscellaneous Features, Statements
- Conclusion
-
Chapter 6: Internal Tables
- DDIC Object: Structure
- Internal Tables Declarations
- Hands-On Exercise: List of Billing Documents of a Specified Company Code
- Hands-On Exercise: Customer Code Wise List of Billing Documents of a Specified Company Code with Totals for Every Customer and a Grand Total
- Internal Table Declarations – Continued
- Hands-On Exercise: Split a String, Get Output in Nonstructured Internal Table
- SORT Statement
- APPEND Statement
- Hands-On Exercise: Internal Table Text Sort (Use APPEND to Populate Internal Table)
- Hands-On Exercise: Customer Wise Sales Summary of a Specified Company Code Using the COLLECT Internal Table Statement on a Standard Table
- Hands-On Exercise: Customer Wise Sales of a Specified Company Code Using COLLECT Internal Table Statement on a Sorted Table
- Hands-On Exercise: READ with Index (Retrieve a Row Given a Row Number)
- Hands-On Exercise: READ...WITHKEY... (Retrieve a Row Given Key Field Values)
- Hands-On Exercise: INSERT...INDEX... (Insert a Row at a Specified Row Position)
- Non-Index INSERT Statement
- Delete Data from Internal Tables
- Hands-On Exercise: Delete Adjacent Duplicates
- MODIFY Statement – Update/Change Existing Rows in Internal Tables
- Hands-On Exercise: MODIFY Single Row
- Hands-On Exercise: MODIFY Multiple Rows
- Hands-On Exercise: DESCRIBE TABLE Statement, Function: LINES( )
- Hands-On Exercise: Produce Multilevel Summary Using Internal Table Control Level Processing
- Hands-On Exercise: Initialize Internal Tables Rows or Complete Data
- MOVE, Assign, Copy, Internal Tables
- Conclusion
-
Chapter 7: Modularization
- Introduction
- Hands-On Exercise: Modify Chapter 44 Program on DESCRIBE FIELD – Use Macro and Subroutine to Make It an Efficient Program
- Hands-On Exercise: Modify Chapter 44 Program on DESCRIBE FIELD – Use Subroutine Only
- Hands-On Exercise: Subroutine with an Internal Table as Parameter
- Hands-On Exercise: Subroutine with a Structure as Parameter
- Hands-On Exercise: List of Icons in SAP GUI Environment – Fields Enclosed in Boxes Using Macro and Subroutine
- Messages Maintenance and Issuing in ABAP Workbench
- Function Modules, INCLUDE Programs
- Hands-On Exercise: CALL Function Module SPELL_AMOUNT
- Link, Relationship between Function Group & Function Module Source Code (Examine/View Function Module SPELL_AMOUNT – Continued)
- Hands-On Exercise: Create a Function Module to Split a String without breaking a Word
- Special Function Modules - Conversion Routines
- Conversion Routine – Hands-On Exercise: 1
- Conversion Routine – Hands-On Exercise: 2 and 3
- INCLUDE Programs
- Function Modules Tidbits
- List of a Few Function Modules
- Conclusion
-
Chapter 8: Open SQL Data Retrieval
- Introduction
- Open SQL SELECT Statement
- Hands-On Exercise – INTO TABLE… PACKAGE SIZE…
- Hands-On Exercise – APPENDING TABLE… PACKAGE SIZE…
- Hands-On Exercise – SELECT DISTINCT…
- Hands-On Exercise – Aggregate Functions
- SELECT Statement Using More Than One Table or View – Joins
- Hands-On Exercise – Inner Join
- Hands-On Exercise – Outer Join
- Hands-On Exercise – Subquery
- Tabular WHERE Condition
-
ABAP FIELD-SYMBOLS
- Field Symbol Declarations
- Field Symbol Static Assignments
- Field Symbol Hands-On Exercise
- Field Symbol Dynamic Assignments, UNASSIGN, Check If Assigned
- Specify the <source> In Open SQL SELECT Statement at Runtime
- Create Dynamic Data Objects
- Run Time <source> Specification in SELECT Statement – Hands-on
- Specify in the Open SQL SELECT Statement Run Time <result>, <where condition>, and <order by>
- BYPASSING BUFFER, CLIENT SPECIFIED, CURSORS
- A Brief on ABAP Debugger
- Conclusion
-
Chapter 9: SELECTION-SCREENS
- Recapitulation – PARAMETERS Statement
-
Selection Screen: Layout and Positioning of Screen Elements
- Generate Blank Lines
- Multiple Elements on a Single Line
- Create Label or Text
- Input Field
- Create a Push Button with Icon and Text
- Generate a blank line through the already covered statement
- Selection Screen Block, BEGIN OF BLOCK
- Selection screen radio buttons
- Two Push Buttons on a Line
- Generate a blank line through the already covered statement
- END OF BLOCK
- AT SELECTION-SCREEN event
- Event INITIALIZATION, Selection Screen Event – AT SELECTION-SCREEN OUTPUT
- Changing Screen Properties Using Event AT SELECTION-SCREEN OUTPUT (A Simple Payment Mode Scenario)
- Selection Screen Event – AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
- Selection Screen Event – AT SELECTION-SCREEN ON HELP REQUEST FOR <field>
- Selection Screen Event – AT SELECTION-SCREEN ON <field>
- Selection Screen Event – AT SELECTION-SCREEN ON BLOCK <block name>
- SELECTION-SCREEN Complex and Multiple Selections – SELECT-OPTIONS
- ABAP Program Variants
- SELECT-OPTIONS – Additions NO INTERVALS, NO-EXTENSION
- Coding an ABAP Program to Be Able to Run It in Background
- SELECT-OPTIONS - Miscellanea
- SELECT-OPTIONS with DEFAULT Addition
- Selection Texts
- SELECTION-SCREEN - Miscellanea
- Conclusion
-
Chapter 10: Interactive Lists
- Multiple Lists Generation by an ABAP Program
- Interactive Lists: Events and Considerations
- Hands-on Exercise to Highlight Event AT LINE-SELECTION and the Operation of the System Field SY-LSIND
- Hands-on Exercise: Produce Two Level Sales Report Using the AT LINE-SELECTION Event (1 Primary and 1 Secondary)
- Hands-on Exercise: Produce Three Level Sales Report Using the AT LINE-SELECTION Event (1 Primary and 2 Secondary)
- Hands-on Exercise: Produce Three Level Sales Reports Using the AT USER-COMMAND Event (1 Primary and 2 Secondary)
- Hands-on Exercise: Output Data of Runtime Specified Fields of a Runtime Specified Database Table or View with Column Heading from Corresponding Data Elements
- Hands-on Exercise: Demonstration of SET USER-COMMAND and Lists in Dialogue Boxes
- Interactive Lists Tid Bits
- Conclusion
-
Chapter 11: ABAP OOP
- Introduction
- Local Class Syntaxes: Definition, Implementation, Declaration of Methods, Calling Methods
- Interface Declaration
- Hands-on Exercise: Define and Implement a Simple Local Class
- Hands-on Exercise: Define and Implement a Simple Global Class
- Hands-on Exercise: Global Class (Method to Split a String without Breaking a Word)
- Hands-on Exercise: Define Local Interface, Implement Interface Method in Local Classes (Method to Fetch Business Partner Name & Address)
- Hands-on Exercise: Use Methods of SAP Delivered Class ‘CL_GUI_FRONTEND_SERVICES’
- Hands-on Exercise: Context Menus - Use Method of SAP Supplied Class CL_CTMENU
- Class Based Exceptions in ABAP
- A Brief on the ABAP RTTS (Runtime Type Services)
- Hands-on Exercise to Demonstrate RTTC & RTTI
- Conclusion
-
Chapter 12: ABAP List Viewer Outputs—Part 1
- ALV Output Architecture
- Screen Programming Basics
- The Classes CL_GUI_CUSTOM_CONTAINER and CL_GUI_ALV_GRID
- ALV Miscellaneous Topics
- Hands-on Exercise: Customer-wise Sales Summary of a Specified Company Code as ALV Output: Use Class CL_GUI_ALV_GRID
- Hands-on Exercise: Customer-wise Sales Summary of a Specified Company Code as ALV Output, Version 2: Use Class CL_GUI_ALV_GRID
- Save and Manage ALV Output Layouts
- Hands-on Exercise: Customer-wise Sales Summary and Detail of a Specified Company Code as ALV Output: Use Class CL_GUI_ALV_GRID
- Conclusion
-
Chapter 13: ABAP List Viewer Output—Part 2
- ALV Output Using the Class CL_SALV_TABLE
- Hands-on Exercise: Customer-wise Sales Summary of a Specified Company Code as ALV Output: Use Class CL_SALV_TABLE
- Hands-on Exercise: Customer-wise Sales Summary and Detail of a Specified Company Code as ALV Output: Use Class CL_SALV_TABLE
- A Note on Problems with the Class CL_SALV_TABLE
- Create Data Browsers Using the Classes CL_GUI_ALV_GRID and CL_SALV_TABLE
- Hands-on Exercise: Output Specific Selected Fields of a Specific Database Table or View in ALV: Use Class CL_GUI_ALV_GRID
- Hands-on Exercise: Output Specific Selected Fields of a Specific Database Table or View in ALV: Use Class CL_SALV_TABLE
- Conclusion
-
Chapter 14: Screen Programming
- Basics of Screen Painter
- Hands-on Exercise. Operate on the Data of a Copy of Table ‘T005T’
- Hands-on Exercise. Demonstrate Search Help Import Parameters, Screen Event PROCESS ON VALUE-REQUEST – POV, etc
- Hands-on Exercise. Simulate Tab Strip Element Using Sub Screen Area, Sub Screens and Application Tool Bar Buttons
- Hands-on Exercise. Tab Strip Element
- Hands-on Exercise. Use Table Element
- Miscellanea
-
Maintenance Views and Table Maintenance Dialogs
- Overview. Maintenance Views, Table Maintenance Generator, and Table Maintenance Dialogs
- Hands-on Exercise. Create and Operate Table Maintenance Dialog for the Custom Database Table YCL_CH02_BILLI
- Hands-on Exercise. Modify Generated Table Maintenance Dialog
- Maintenance View, Table Maintenance Dialog, Miscellanea
- Conclusion
-
Appendix A: Description of the SAP-Delivered Tables Used in the Hands-On Exercises
- SAP-Delivered Tables Used in the Hands-On Exercises of the Book – Categories and Subcategories
- “T” Series - Universal Data Tables
- “T” Series - Configuring Data Tables
- ‘T’ Series - Cross Client Tables
- Master Data Tables - Customers
- Master Data Tables - Vendors
- Master Data Tables – Material
- Transaction Data Tables - Sales
- Tables of Sales Functionality - ER Diagram
- Transaction Data Tables - Purchase
- ER Diagram of Tables of Purchase Functionality
- X. Cross client (Client independent) tables
- Non-categorized Table
- Conclusion
- Index
Product information
- Title: SAP ABAP: Hands-On Test Projects with Business Scenarios
- Author(s):
- Release date: November 2014
- Publisher(s): Apress
- ISBN: 9781430248040
You might also like
book
Manage Your SAP Projects With SAP Activate
Explore and use the agile techniques of SAP Activate Framework in your SAP Projects. About This …
book
Asset Accounting Configuration in SAP ERP: A Step-by-Step Guide
In this book, noted expert Andrew Okungbowa explains SAP Asset Accounting (FI-AA) in SAP-ERP, including its …
book
SAP Business Intelligence Quick Start Guide
Designing and deploying solutions using the SAP BusinessObjects Business Intelligence platform 4.2. Key Features Get up …
book
SAP Project Management Pitfalls: How to Avoid the Most Common Pitfalls of an SAP Solution
Master the SAP product ecosystem, the client environment, and the feasibility of implementing critical business process …