Posts

Showing posts from February, 2016

SAP ERP ABAP DEBUGGING

Image
Module Objectives •Define debugging •Describe branching to debugging mode •Define key debugging concepts and functions •Explain the debugging mode •Describe examining/changing variables •Debugging in ADT •Identify breakpoints and watchpoints •Debug internal tables What is Debugging? •Tool used to identify and eliminate errors in ABAP programs •Allows the verification of program logic in a step-by-step manner by examining the results of individual statements Branching to Debugging Mode ABAP Debugging Key Debugging Concepts •Debugger modes •Examining the value of variables •Changing the value of variables •Setting breakpoints •Setting watchpoints •Viewing contents of internal tables Classic Debugging Display Below is the screen shot of how the debugger looks like. Classic Debugging Display Important Debugging Functions Single Step   -Processes the next program line Execute        -Allows the change of data contents during debugging Continue      -Processing continues until the next break

SAP ABAP SELECT STATEMENT

Image
Module Objectives •Explain database Tables / data browser •Use the SELECT statement and the WHERE clause •Describe the SELECT SINGLE statement •Explain the ORDER BY addition •Describe retrieving individual columns •Exclude duplicate records during selection •Describe the SELECT statement syntax •Define aggregate expressions •Familiarization with ABAP 7.40 select statement new features •Discuss performance and best practices •SQL Console SELECT Statement - Basic Form the select statement is very simple in ABAP, we just use Keyword SELECT the we specified all columns of the table which we want to get we use * to show all columns with FROM keyword we specified the table. then we use a variable which will hold the result of the table and, in the end, we use ENDSELECT  to end the select query. Select Query Selecting specific fields from database table Selecting specific fields from database table Inline Declaration after INTO for ABAP 7.40 instead of defining all the fields in ABAP 7.40 w

Online Classes of SAP ABAP INTERNAL TABLES

Image
INTERNAL TABLES •Review on Structures •Describe Internal Tables •Define Internal Table Types •Declaring an Internal Table •Manually Filling an Internal Table •Use Standard Table Operations Review on Structures To declare a table internal table first, we need to define the structure and we can define the type as you can see in the example below, then we declare a variable for an internal table to hold the values. Internal Table Structure Data Types in ABAP The internal table is the subtype of Structured (Multi-column) data type. Data types in ABAP Internal Table Types and Keys in Internal tables, we have 3 types  Standard  Sorted  Hashed please view the example below to have proper idea Internal Table types and Keys Declaring an Internal Table Standard Table: in order to define a standard table we need to follow following steps, 1- create a type structure with all the fields you want table to hold 2- declare the table name, table type and row structure. Standard table Sorted Table: The

Online Classes SAP ERP ABAP DICTIONARY

Image
ABAP DICTIONARY •Define a table and table concepts including:    –Foreign key and primary key    –SAP table types    –Indexes    –Buffering •Describe the basic functionality of the Data Dictionary, its objects and related transactions •Define domain and data element and how they are related •Define structures and views •Define search help •Describe the data browser What is a Data Dictionary? •A data dictionary is a system-independent interface to a database. •A data dictionary is a “virtual database” containing metadata (data about data). •A data dictionary provides tools for data manipulation and data processing. Data Dictionary Why Data Dictionary? using data Dictionary we don't have to worry about the server and database we can use any database or we can even change the database without doing any change in application, that the biggest advantage of using data Dictionary in SAP. Data Dictionary Structure ABAP Dictionary Functionality ABAP Dictionary Functionality Navigating the A

Online Classes SAP ERP ABAP MESSAGE Statement

Image
MESSAGE Statement •Messages can be stored in message classes or message IDs. The main purpose of this message class is reusability and readability. •To use a message in a specific message class, the message ID should be defined in the REPORT statement. Message Statement Adding Messages MESSAGE Statement •The message statement can have following variants:     •MESSAGE ‘Enter text here’ TYPE T.     •MESSAGE Tnnn.     •MESSAGE Tnnn WITH <f1>. Where T is a single character message type, nnn is the 3 digit message number in the specified message ID, <f1> is a variable in the program to replace ‘&’ in the message created in the message ID. Message Report the below example will show how can we show the message into ABAP report. Message Example the below example show how can we show the use parameters Message and show in ABAP report. Parameters Message Example Qualifying an Online Message Qualifying on online message