Book Image

Mastering SAP ABAP

By : Paweł Grześkowiak, Wojciech Ciesielski, Wojciech Ćwik
Book Image

Mastering SAP ABAP

By: Paweł Grześkowiak, Wojciech Ciesielski, Wojciech Ćwik

Overview of this book

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).
Table of Contents (25 chapters)
Title Page
Copyright and Credits
Dedication
About Packt
Contributors
Preface
Index

The new SQL syntax


From version 7.40, SP08 SAP introduced a few important changes in SQL:

  • Inline declaration
  • SQL expression

There are more changes, but here is the focus on the most important and most helpful in daily work.

Inline declaration

The main changes compared to the old SQL is data declaration, where we needed to declare all the necessary fields that will be selected. By using inline declaration, this is no longer needed. During select from database, a structure or table will be created. This is really helpful, as when you need to select a new field or fields, just add them to the field list.

The following are three SELECT statements. The first of these is created in the old SQL, while the second and third are created with the inline declaration. All the SELECT statement results are identical.

The first SELECT statement is also presented with the declaration of the table:

TYPES:
   BEGIN OF t_spfli,
     mandt     TYPE s_mandt,
     carrid    TYPE s_carr_id,
     connid    TYPE s_conn_id...