01 - ABAP Workbench Environment & Tools

  • View
    15

  • Download
    3

Embed Size (px)

DESCRIPTION

ABAP Workbench Environment & Tools

Transcript

  • ABAP Workbench Environment & Tools

  • Course Objectives

    In this Course, the participant will learn: ABAP Workbench Environment and Tools An Introduction to ABAP Programming Advanced techniques in ABAP Programming BDCs and Interfacing in the SAP Environment Enhancements & Modifications to SAP R/3 Designing and Using SAP Forms (SAP Script) Dialog Programming

  • Course Objectives

    In this Course, the participant will learn: ABAP Workbench Environment and Tools An Introduction to ABAP Programming Advanced techniques in ABAP Programming BDCs and Interfacing in the SAP Environment Enhancements & Modifications to SAP R/3 Designing and Using SAP Forms (SAP Script) Dialog Programming

    ABAP Workbench Environment and Tools

  • Topic Objectives

    In this Topic, the participant will learn: An Introduction to the ABAP Workbench

    Environment and Tools ABAP Editor and its functions ABAP Dictionary and its uses Using the Screen Painter Using the Menu Painter Other Important Tools in the ABAP Workbench

  • Topic Objectives

    In this Topic, the participant will learn: An Introduction to the ABAP Workbench ABAP Editor and its functions ABAP Dictionary and its uses Using the Screen Painter Using the Menu Painter Other Important Tools in the ABAP Workbench

    An Introduction to the ABAP Workbench

  • In this section, we will

    Learn the basics of the ABAP Workbench

    Introduce the Tools available in the Workbench

    Explain the Standard Menus in the ABAP Workbench

  • ABAP Workbench Environment

  • What is the Workbench?

    Graphical programming environment Use it to create ABAP Applications Enhance and change existing SAP Applications

    Use it to to do the following: Write ABAP Code Design dialogs or Screens Create Menus with the Menu Painter Maintain Database objects Debug an Application Do performance Analyses Manage Conflicts and Versions

  • Workbench Menus Layout

    Overview menu Development Test menu Utilities menu

  • Workbench Tools

    Object Browser SE80

    ABAP/4 Editor SE38

    Data Dictionary (DDIC) SE11

    Function Builder SE37

    Screen Painter SE51

    Menu Painter SE41

    Performance Trace ST05

    Runtime Analysis SE30

    ABAP Debugger

    Class builder SE24

  • Workbench Tools (contd.)

    Navigate to the Workbench Tools from the main menu as follows:SAP menu Tools Development ABAP Dictionary(or)Type in the transaction code in the Command Field.

    Navigate to the Workbench Tools from the main menu as follows:SAP menu Tools Development ABAP Dictionary(or)Type in the transaction code in the Command Field.

  • Topic Objectives

    In this Topic, the participant will learn: An Introduction to the ABAP Workbench ABAP Editor and its functions ABAP Dictionary and its uses Using the Screen Painter Using the Menu Painter Other Important Tools in the ABAP Workbench

    ABAP Editor and its functions

  • In this section, we will

    Introduce navigation to the ABAP Editor

    Explain how to create programs in the Editor

    Describe the Attributes of an ABAP Program

    Learn how to Check syntax of programs

    Explain how to Activate ABAP Programs

  • Navigation to the ABAP Editor

    Navigate through SAP menu:

    SAP menu Tools ABAP Workbench Development ABAP Editor

    Type Transaction code SE38 in command field

    Double-click on a program name from any other workbench tool

  • Creating Programs Step 1 of 5Initial Screen

    Enter Program Name here. Begin with Z or Y.

    Enter Program Name here. Begin with Z or Y.

    Push this ButtonPush this Button

  • Creating Programs Step 2 of 5Program Attributes

    Give the title, program type,status, application (SD, MM etc) then press Save button.

  • Creating Programs Step 3 of 5Program Attributes(contd.)

    As soon as we press save button it will automatically ask for development class.Give the name of development class and press save button.

  • Creating Programs Step 4 of 5Program Attributes(contd.)

    The next dialog asks for the transport request. Give the name of transport request (or create own request with create button) and click on enter button.

  • Creating Programs Step 5 of 5Edit, Check and Activate

    Write ABAP Code in the ABAP Editor, Check Syntax, correct errors if there are any and Activate the program. A Program needs to be activated to be Executed.

  • Topic Objectives

    In this Topic, the participant will learn: An Introduction to the ABAP Workbench ABAP Editor and its functions ABAP Dictionary and its uses Using the Screen Painter Using the Menu Painter Other Important Tools in the ABAP Workbench

    ABAP Dictionary and its uses

  • In this section, we will

    Describe the use of the Data Dictionary (DDIC) Explain the different components of the DDIC Explain how to navigate to the DDIC or one of its components Define DDIC Objects such as Tables, Structures and Views Define Table Types,Data Elements &Domains and their interrelationship

    Define Search Helps Define Lock objects

  • What is the Data Dictionary?The Data Dictionary: is a system-independent

    interface to a database is a virtual database

    containing metadata (data about data)

    provides tools for data manipulation and data processing

    is also called DDIC or ABAP Dictionary

  • Necessity of Data Dictionary

    The DDIC facilitates the development of platform independent applications

    The DDIC eliminates the need for programmers to be concerned about specific storage locations, drive and directory names, etc.

    ABAP Program X

    ABAP Program X

    ABAP Dictionary ABAP Dictionary

    SAP Database(Oracle) WindowsNT

    SAP Database(MS SQL Server)Unix

  • ABAP Dictionary Functionality

    ABAP Dictionary Repository Info system

    Documentation

    ABAP Dict objects.

    Where used list

    RelationshipModification

    Analysis

    Analysis Activation

    Administration

    Integration

    ABAP Dict objects Time

    Stamp Validation

    Entries in DB catalogue

    RecordsStorage

  • ABAP Dictionary Transactions

    SE80 - Repository Browser SE15 - Repository Information System SE16 - Data Browser SE17 - General Table Display SM30 - Maintain Table Views SM31 - Table Maintenance

  • ABAP Dictionary Objects

    Data base table Data Element Domain Structure View Search Help Lock Object

    DDIC, Initial ScreenDDIC, Initial Screen

  • Domains

    Table A

    Data elements

    Domain

    A Domain describes the technical structure of a field that is its size and its data types.Domains are attached to Data Elements

  • Characteristics of Domains

    Table A

    Data elements

    Domain

    Fields (or Columns)

  • Allowed Values

    Domain Domain

    Value tableJanuary

    February...December

  • Creating a Domain

    Enter a description (short text)

    Enter data type and length

  • Creating a domain (contd.)

    Enter fixed value and description.

    Value table may be entered

  • Two-Level Domain Concept

    S_CITY

    S_TO_CITYS_FROM_CIT

    DepartureCity

    DestinationCity

    Domain

    Dataelement

    City

  • Data Elements

    Table A Table B

    Data element 1

    A data element gives the description of the field of the Table.

  • Pre-Defined Data Elements

  • Data Element Documentation

    Definition

    Use

    What to do

  • Creating a Data Element

    Enter a description (short text)

    Enter domain name

  • Creating a Data Element

    Maintain field labels and column headers.

  • Difference between Domain &Data Element

    DomainDefines Technical Attributes such as data type,length,allowed values,etc.A domain can be part of several data elementsUsed to define data elements,restrict values (using value range, value table, etc)

    Data ElementDefines semantic attributes such as display length ,short text, long text,etc.A Data Element can point to only one domainUsed to define fields of tables and screens.

  • Objects of the ABAP Dictionary

    Table A Table B Table C

    Data element Data element

    Domain

  • Tables: Basic Concepts

    Table KNA1(Customers)

    Table:KNA1

    MANDT KUNNR NAME 1 ORT 02

    Tables are containers which stores data in the form of record They are a central component of the SAP R/3 Application One or more fields form a data record (also known as tupel) A number of data records of the same type form a table

  • Tables

    Table SCARR

    Carrier ID

    AADLLHUA...

    Carrier Name

    American AirlinesDeltaLufthansaUnited Airlines...

    TABLEAirline Carriers

    Rows (tuples)

    Primary key (Field) values

  • Tables: Concept of Foreign Key

    Primary Key

    PLANETYPE SEATSMAX

    747-200 200 20000A310-200 211 24000757-300 301 17000

    CARGOMAXCheckTable

    Table 1: Airplane Details Table SAPLANE

    FLDATECARRID PRICECONNID

    AA 1234 03/22/1999 500 747-200 125 UA 5678 01/06/1999 600 A310-200 90

    ForeignKeyTable

    Table 2: Flight Table SFLIGHT

    PLANETYPE SEATSOCC

    Primary Key Foreign Key

  • Tables: Indexes for Fields

    DBDB

    S1 S2 ... F1 F2 ... F2 S1 S2

    T1_KT1_KT1T1

    S1 S2 ... F1 F2 ...T1T1 T1_KT1_K

    Identific.UniqueDesc