Video Lesson 7.4: SAP Implementing A Subroutine Call

Learn ABAP

Video Lesson 7.4: SAP Implementing A Subroutine Call

This lesson will show you how to implement a subroutine call in your ABAP program.

  • You can have the PERFORM statement for calling a subroutine generated into your source code.
  • First, define the subroutine and then save your main program.
  • The newly-defined subroutine appears in the navigation area.
  • Move it to the required call point in your program by means of drag & drop.
  • Alternatively, the call generation can also be implemented using the “Pattern” pushbutton in the ABAP editor.

 




Video Lesson 5.1: Read SAP Database Tables

Learn ABAP

Video Lesson 5.1: Read SAP Database Tables

In this lesson you will learn how to retrieve information on database tables and how to read data from them. An overview of techniques that allow you to access multiple database tables will also be covered.

  • SQL is the abbreviation of Structured Query Language, a language that enables define, change, and read access to database tables.
  • Every relational database system has a native SQL, which is unfortunately database-specific.
  • In contrast Open SQL is an SAP-defined, database-independent SQL standard for the ABAP language.

You use the Open SQL statement SELECT to program database read access.

The SELECT statement contains a series of clauses, each of which has a different task:

  • Amongst other things, the SELECT clause describes which fields of the table are to be read.
  • The FROM clause names the source (database table or view) from which the data is to be selected.
  • The INTO clause determines the target variable into which the selected data is to be placed.
  • The WHERE clause specifies the columns of the table that are to be selected.

For information about other clauses, refer to the keyword documentation for the SELECT statement.


Video Lesson 2.1: SAP Object Navigator and Repository

Learn ABAP

Video Lesson 2.1: SAP Object Navigator and Repository

 

This lesson gives a short description of the Repository and a brief overview of
the most important components of the ABAP Workbench. It presents the Object
Navigator as a central development tool.

Introduction to the Repository

  • The Repository consists of all system development objects - programs, function modules, definitions of database tables, and so on.
  • In the Repository, you have objects delivered by SAP as well as objects defined by the customer.
  • The Repository is in the database
  • The Repository is subdivided according to application components. (Commonly known as ‘modules’)
  • Within a module (e.g., MM) there are several packages containing relevant objects for a more detailed logical subdivision.
  • Whenever a Repository object is created, it must be assigned to a package.

Working with the Object Navigator

  • The ABAP Workbench includes all tools required for creating and editing Repository objects.
  • These tools cover the entire software development cycle.

The most important tools are:

  • The ABAP Editor for editing source code
  • The ABAP Dictionary for editing database table definitions, central data types, and so on
  • The Screen Painter for configuring screens (screens together with functions for user dialogs)
  • The Menu Painter for designing user interfaces (menu bar, standard toolbar, application toolbar, function key settings)
  • The Function Builder for maintaining function modules
  • The Class Builder for maintaining global classes and interfaces