Mastering SAP ABAP: A complete guide to developing fast, durable, and maintainable ABAP programs in SAP
Book information
Description
Take your SAP ABAP skills to the next level by mastering ABAP programming techniques with the help of real-world examples Key Features Become adept at building interfaces and explore ABAP tools and techniques Discover the modern functionalities available in the latest version of ABAP Learn the process of creating stunning HTML5 applications using SAPUI5Book Description Advanced Business Application Programming (ABAP) is an established and complex programming language in the IT industry. This book is designed to help you use the latest ABAP techniques and apply legacy constructions using practical examples. You'll start with a quick refresher on language and database concepts, followed by agile techniques for adding custom code to a modern ABAP system. After this, you will get up to speed with the complete ABAP toolset for importing data to and from different environments. Next, you'll learn how to print forms and work with the different ABAP tools for Extensible Markup Language (XML) manipulation. While covering further chapters, you'll gain insights into building stunning UI5 interfaces, in addition to learning how to develop simple apps using the Business Object Processing Framework (BOPF). You will also pick up the technique of handling exceptions and performing testing in ABAP. In the concluding chapters, you can look forward to grasping various techniques for optimizing the performance of programs using a variety of performance analysis tools. By the end of this book, you will have the expertise you need to confidently build maintainable programs in Systems, Applications, and Products (SAP). What you will learn Create stable and error-free ABAP programs Leverage new ABAP concepts including object-oriented programming(OOP) and Model-View-Controller (MVC) Learn to add custom code to your existing SAP program Speed up your ABAP programs by spotting bottlenecks Understand techniques such as performance tuning and optimization Develop modern and beautiful user interfaces (UIs) in an ABAP environment Build multiple classes with any nesting levelWho this book is for This book is for developers who want to learn and use ABAP skills to become an industry expert. Familiarity with object-oriented programming concepts is expected. Table of Contents Creating Custom Code The basic structures of ABAP Database access in ABAP Import and export to document formats Exposing data to print forms ABAP and XML Building user interfaces Creating stunning UI5 interfaces Business Object Processing Framework Modification and customization techniques Handling exceptions in ABAP Testing ABAP programs Advanced techniques in ABAP objects Integrating SAP with third party systems Background processing of ABAP programs Performance and optimization of ABAP code Cover Title Page Copyright and Credits Dedication About Packt Contributors Table of Contents Preface Chapter 1: Creating Custom Code Technical requirements Making changes Design thinking BDUF/LDUF Designing for quality and use Designing the UI Designing services Designing the business logic Designing the database Agile principles DevOps Continuous delivery Summary Questions Chapter 2: The Basic Structure of ABAP Technical requirements The Data Dictionary Domains Data elements Structures Search helps Table types Databases Data declaration Field symbol Summary Questions Chapter 3: Database Access in ABAP Technical requirements Starting with OpenSQL Basics Possibilities with SELECT - the first part of the SQL statement Possibilities with INTO - the third part of the SQL statement The WHERE condition How to see data selected from a database More advanced possibilities in OpenSQL WHERE conditions Dynamic SELECT in WHERE SINGLE FOR UPDATE GROUP BY ORDER BY UP TO and ROWS SELECT and ENDSELECT FOR ALL ENTRIES Subqueries Reading data from several tables Identifying and saving the changes Creating datasets Updating datasets Deleting datasets The optimization of reading big datasets The new SQL syntax Inline declaration SQL expression Using the SQL Trace tool for performance analysis Summary Questions Chapter 4: Import and Export to Document Formats Technical requirements Client-side file processing Reading files from the local PC using gui_upload Writing files to the local PC using gui_download Server-side file processing Basic transactions related to server-side files Writing files to the application server Reading files from the application server Working with Microsoft Office files Reading data from Microsoft Excel Saving a table to a Microsoft Excel file Working with Microsoft Word Using DOI to integrate Microsoft Office applications into ABAP reports Summary Questions Further reading Chapter 5: Exposing Data to Print Forms Technical requirements Introduction to printouts in SAP SAPScript - the great-grandfather of all printouts Creating our first SmartForm Adobe Forms Creating our first Adobe Form Summary Questions Further reading Chapter 6: ABAP and XML Technical requirements Using the CL_XML_DOCUMENT class for XML Reading and parsing XML files to ABAP Changing XML data Simple transformations in ABAP Serialization using ST Deserialization using ST sXML library for XML and JSON Converting XML to JSON Summary Questions Further reading Chapter 7: Building User Interfaces Technical requirements Classic DynPro Screen painter Selection screens More advanced options of the selection screen Checkbox Radiobutton Blocks in selection screens Selection screen event model ALV Basics Advanced capabilities of ALV sand screens Zebra Coloring Event of an ALV, exemplified by a button click Icons in the ALV Text fields and translations Input/output field Radiobuttons and checkbox Button Dynamic display possibilities for individual elements and groups Summary Questions Chapter 8: Creating Stunning UI5 Interfaces Technical requirements Development tools Layouts and floorplans SAP Fiori elements The analytical list page The list report The object page The overview page The worklist Layouts Floorplans The initial page floorplan The multi-instance floorplan The wizard floorplan Basic templates The SAPUI5 library Control documentation page and inheritance Contextual info Overview Constructor Properties Associations Aggregations Events Methods Inheritance Main controls Custom controls Creating our first mobile app Application and project structure index.html The standard variant The content delivery network The miscellaneous variants Component.js manifest.json Views and controllers MainView.view.xml SearchView.view.xml SearchView.controller.js i18n.properties Testing SAPUI5 apps Mock Server Unit tests Integration tests Summary Questions Further reading Chapter 9: Business Object Processing Framework Technical requirements An introduction to BOPF Transaction Nodes and entities First BOPF example Creating the object Displaying an object Summary Questions Further reading Chapter 10: Modification and Customization Techniques Technical requirements Legacy ways of changing the standard Customer Exits Using BTE to extend FI functionality Modifications FQEVENTS Appends Classical BAdl Enhancement framework and its components Enhancement sections and Enhancement points Implicit enhancements Summary Questions Further reading Chapter 11: Handling Exceptions in ABAP Technical requirements Classic exception handling Handling Raising Class-based exceptions Handling Raising Assertions Building a checkpoint group Defining assertions Using assertions Runtime errors ABAP dump analysis tool Error log System environment User View ABAP developer View BASIS developer View Summary Questions Chapter 12: Testing ABAP programs Technical requirements Testing the quality of code Static testing with Code Inspector and ABAP Test Cockpit Testing and troubleshooting ABAP Memory Inspector Advanced ABAP debugger techniques Testing with eCATT Summary Questions Further reading Chapter 13: Advanced Techniques in ABAP Objects Technical requirements Global versus local classes Creating a local class Creating a global class The static method versus the instance method Nested classes A class as an attribute of the class Inheritance Interfaces The event concept ABAP Objects design patterns Prototype - creation pattern Singleton - creation pattern Facade - structural pattern Decorator - structural pattern Observer - behavioral pattern Strategy - behavioral pattern Summary Questions Chapter 14: Integrating SAP with Third-Party Systems Technical requirements IDoc IDoc overview The construction of IDoc The EDI system ALE Differentiating ALE from EDI BAPI Implementing BAPI SAP Gateway Deployment variants Embedded Hub Hub (with development) Main tools Gateway Service Maintenance Gateway Client Error Log Gateway Service Builder The OData protocol Characteristics The service definition Developing our first OData application Design time Providing data Summary Questions Chapter 15: The Background Processing of ABAP Programs Technical requirements Background processing in SAP Background remote function call Scheduling background jobs Creating a background job Recording batch input sessions Summary Questions Chapter 16: Performance and Optimization of ABAP Code Technical requirements Ways of measuring ABAP programs performance ABAP runtime analysis ABAP trace analysis ABAP SAT transactions Best practice techniques Summary Questions Appendix A: Assessments Answers Chapter 1 - Creating Custom Code Chapter 2 - The Basic Structures of ABAP Chapter 3 - Database Access in ABAP Chapter 4 - Import and Export to Document Formats Chapter 5 - Exposing Data to Print Forms Chapter 6 - ABAP and XML Chapter 7 - Building User Interfaces Chapter 8 - Creating Stunning UI5 Interfaces Chapter 9 - Business Object Processing Framework Chapter 10 - Modification and Customization Techniques Chapter 11 - Handling Exceptions in ABAP Chapter 12 - Testing ABAP Programs Chapter 13 - Advanced Techniques in ABAP Objects Chapter 14 - Integrating SAP with Third-Party Systems Chapter 15 - Background Processing of ABAP Programs Chapter 16 - Performance and Optimization of ABAP Code Additional tutorials Creating a report from the template Uploading graphics to SE78 Another Book You May Enjoy Index
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF