ABAP Cookbook
Practical Recipes for Modern Programming
Información
- Editorial: SAP PRESS
- Autores: Fabian Lupa, Sven Treutler
- Año: 2026
- Edición: 1
- Páginas: 444
- Idioma: Inglés
Descripción
Ready to get cooking with ABAP? Discover shortcuts and solutions for all of your regular ABAP tasks in this practical guide. Walk step by step through important programming techniques and tools, from table management to extension implementation, following "recipes" for each task along the way. Make the most of new models and frameworks with examples built around ABAP Cloud and the ABAP RESTful application programming model. Get all the solutions you need for the most common problems in ABAP development!
- Walk through practical tutorials using modern ABAP tools and techniques
- Get solutions for simple and complex programming tasks
- Work with the ABAP RESTful application programming model, ABAP Cloud, business configuration maintenance objects, and more
Aspectos Destacados
- System fields and runtime information
- Customer data browser
- Application log
- Change documents
- Lock objects
- Number range objects
- File upload
- Background processing
- Parallelization
- Email
- Documentation
Aprenderás sobre
- Everyday Programming Recipes:
Find premade recipes that solve common ABAP development problems, from maintaining application logs and change documents to working with APIs. Follow code examples and screenshots for each tutorial.
- Modern ABAP Solutions:
Stay up to date with ABAP! Work with solutions built on the ABAP RESTful application programming model and ABAP Cloud, and understand how programming in a modern ABAP landscape differs from classic ABAP.
- Practical Examples:
Follow along with the book’s sample data model throughout each chapter. See the components of this example application in action, and then adapt them to your own projects.
Tabla de Contenidos
- 1 Introduction to Modern ABAP Development
- 1.1 The Role of ABAP in SAP Development
- 1.2 The New Development Model for ABAP
- 1.3 The ABAP Language Version
- 1.4 APIs Released via Release Contracts
- 1.5 Development Environment
- 1.6 Programming Model
- 1.7 Usage Scenarios for ABAP Cloud
- 1.8 ABAP Releases On-Premise and in the Cloud
- 1.9 Restrictions Depending on the Release and Runtime Environment
- 1.10 Summary
- 2 The Application Scenario
- 2.1 Concept of the Sample Application
- 2.2 Creating Dictionary Objects
- 2.3 Generating an ABAP RESTful Application Programming Model Application
- 2.3.1 Generating an OData Service and a Virtual Data Model
- 2.3.2 Generated CDS Entities of the ABAP RESTful Application Programming Model Application
- 2.3.3 Publishing the OData Service
- 2.3.4 Testing the Application
- 2.4 Creating Associations
- 2.5 Application Scenario from a User’s Perspective
- 2.6 Summary
- 3 Handling System Fields and Runtime Information
- 3.1 System Fields in ABAP Cloud
- 3.2 Overview of the Available APIs
- 3.3 Access to Time Information
- 3.4 Accessing User Data
- 3.5 Access to Technical Information on the Current Program Execution
- 3.6 Accessing Messages
- 3.7 Accessing System Data
- 3.8 Summary
- 4 Table Analysis
- 4.1 Table Analysis Using the Customer Data Browser
- 4.2 Table Analysis Using ABAP Development Tools
- 4.3 Summary
- 5 Table Maintenance Using Business Configuration Maintenance Objects
- 5.1 Overview of the New Table Maintenance Concept
- 5.2 Creating Customizing Tables
- 5.3 Generating the Business Configuration App
- 5.4 Assigning Authorizations
- 5.5 Configuration from a User’s Perspective
- 5.6 Settings in the Business Configuration Maintenance Object
- 5.7 Lifecycle Management with Deprecation
- 5.8 Documenting Business Configuration Maintenance Objects
- 5.9 Summary
- 6 Application Logs
- 6.1 Application Log for the Sample Application
- 6.2 Maintaining Application Log Objects and Subobjects
- 6.3 The BALI API
- 6.4 Creating a Log
- 6.4.1 Adding Free Text Messages
- 6.4.2 Adding Messages from Message Classes
- 6.4.3 Adding Messages from Exception Classes
- 6.5 Saving a Log
- 6.6 Displaying Logs
- 6.7 Summary
- 7 Change Documents
- 7.1 Maintaining Change Document Objects in the ABAP Development Tools
- 7.2 Calling the Logging Function via the Generated Class
- 7.3 Change Document Update Using the ABAP RESTful Application Programming Model
- 7.4 Displaying Change Documents
- 7.5 Summary
- 8 Lock Objects
- 8.1 Lock Mechanisms in the Database Environment
- 8.2 Locks on the ABAP Platform
- 8.3 Using Lock Objects
- 8.4 API for Lock Objects
- 8.5 Integration into the Sample Application
- 8.6 Summary
- 9 Number Range Objects
- 9.1 Number Ranges in SAP Systems
- 9.2 Maintaining a Number Range
- 9.3 API for Number Range Objects
- 9.4 Numbering in the ABAP RESTful Application Programming Model
- 9.4.1 Unmanaged Early Numbering
- 9.4.2 External Early Numbering
- 9.4.3 Managed Early Numbering
- 9.5 Summary
- 10 Background Processing
- 10.1 Developing an Execution Logic
- 10.2 Creating Application Jobs
- 10.2.1 Creating an Application Job Catalog Entry
- 10.2.2 Creating an Application Job Template
- 10.2.3 Creating an Application Job
- 10.3 Checks
- 10.4 Logging
- 10.5 Summary
- 11 Email Dispatch
- 11.1 Configuring and Monitoring the Email Dispatch
- 11.2 ABAP Cloud API for the Email Dispatch
- 11.3 Integrating the Newsletter Dispatch into the Recipe Portal
- 11.3.1 Creating an Application Job
- 11.3.2 Email with Error Message
- 11.4 Summary
- 12 Parallelizing Application Logic
- 12.1 Parallelization on the ABAP Platform
- 12.2 The CL_ABAP_PARALLEL Class
- 12.3 Refactoring the Sample Application
- 12.3.1 Implementing the IF_ABAP_PARALLEL Interface
- 12.3.2 Sequence and Debugging of Parallel Processes
- 12.4 Summary
- 13 File Upload
- 13.1 Extending the Sample Application to Include a File Upload Option
- 13.2 Summary
- 14 Using Excel Files
- 14.1 Creating an Excel File
- 14.1.1 Creating the Action
- 14.1.2 Creating the Excel Document
- 14.1.3 Creating the Workbook
- 14.1.4 Writing the Recipe Data to the Worksheet
- 14.1.5 Addition to the Header
- 14.1.6 Adding Another Worksheet
- 14.1.7 Saving the Excel File
- 14.1.8 Testing the Application
- 14.2 Reading an Excel File
- 14.2.1 Creating the Action
- 14.2.2 Creating the Document Object
- 14.2.3 Reading a Worksheet
- 14.2.4 Reading the Header
- 14.2.5 Reading Data into an Internal Table
- 14.2.6 Executing the Mass Change
- 14.2.7 Testing the Application
- 14.3 Summary
- 15 Documenting Development Objects
- 15.1 ABAP Doc
- 15.2 Knowledge Transfer Document
- 15.2.1 Creating a Knowledge Transfer Document
- 15.2.2 Linking a Knowledge Transfer Document to a Development Object
- 15.3 Summary
- 16 Authorizations
- 16.1 Authorization Checks for Read Operations
- 16.2 Authorization Checks for Change Operations
- 16.2.1 Global Authorizations
- 16.2.2 Instance-Dependent Authorizations
- 16.2.3 Authorization Precheck
- 16.3 Summary
- 17 Using APIs
- 17.1 Finding the Right APIs
- 17.1.1 Successor Objects
- 17.1.2 Searching via CDS Entity I_APIsForCloudDevelopment
- 17.1.3 Searching via the Open ABAP Development Object Dialog Box
- 17.1.4 Searching via ABAP Object Search
- 17.1.5 Grouping and Filtering in Project Explorer
- 17.1.6 External Search Options
- 17.2 Calling APIs Based on the ABAP RESTful Application Programming Model via EML
- 17.3 Summary
- 18 Extensions in ABAP Cloud
- 18.1 Key User Extensibility
- 18.1.1 Setting Up the Adaptation Transport Organizer
- 18.1.2 Custom Fields
- 18.1.3 Custom Logic
- 18.1.4 Transporting Key User Extensions
- 18.1.5 Custom CDS Views
- 18.2 Developer Extensibility
- 18.2.1 Extending Database Tables
- 18.2.2 Extending CDS Entities
- 18.2.3 Implementing Custom Logic
- 18.3 Summary
- A Installing the Sample Application
- B Naming Conventions for the Sample Application
- C Installing the ABAP Development Tools for Eclipse
Descargo de responsabilidad
SAP, otros productos SAP y servicios mencionados aquí así como sus respectivos logos son marca registrada de SAP SE (o una compañía afiliada de SAP) en Alemania y otros países. Nuestra compañía no está afiliada con SAP SE ni con ninguna de sus compañías afiliadas incluyendo pero no limitada a: Sybase, Business Objects, Hybris, Ariba y SuccessFactors. Todos los otros nombres, marcas, logos, etc. son marcas o servicios registrados de sus respectivos propietarios.