BC ABAP Workbench Tutorial - ABAP Workbench Tutorial ... Lesson 5: Coding the Transaction ... experience with ABAP, though in-depth knowledge is not required

  • View
    218

  • Download
    2

Embed Size (px)

Text of BC ABAP Workbench Tutorial - ABAP Workbench Tutorial ... Lesson 5: Coding the Transaction ......

  • BC ABAP Workbench Tutorial

    HE

    LP

    .BC

    DW

    BT

    UT

    Re lease 4 .6B

  • BC ABAP Workbench Tutorial SAP AG

    BC ABAP Workbench Tutorial

    2 December 1999

    Copyright

    Copyright 2000 SAP AG. All rights reserved.

    No part of this brochure may be reproduced or transmitted in any form or for any purpose withoutthe express permission of SAP AG. The information contained herein may be changed withoutprior notice.

    Some software products marketed by SAP AG and its distributors contain proprietary softwarecomponents of other software vendors.

    Microsoft, WINDOWS, NT, EXCEL, Word and SQL Server are registered trademarks ofMicrosoft Corporation.

    IBM, DB2, OS/2, DB2/6000, Parallel Sysplex, MVS/ESA, RS/6000, AIX, S/390,AS/400, OS/390, and OS/400 are registered trademarks of IBM Corporation.

    ORACLE is a registered trademark of ORACLE Corporation, California, USA.

    INFORMIX-OnLine for SAP and Informix Dynamic ServerTM

    are registered trademarks ofInformix Software Incorporated.

    UNIX, X/Open, OSF/1, and Motif are registered trademarks of The Open Group.

    HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World WideWeb Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute ofTechnology, 545 Technology Square, Cambridge, MA 02139.

    JAVA is a registered trademark of Sun Microsystems, Inc. , 901 San Antonio Road, Palo Alto,CA 94303 USA.

    JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license fortechnology invented and implemented by Netscape.

    SAP, SAP Logo, mySAP.com, mySAP.com Marketplace, mySAP.com Workplace, mySAP.comBusiness Scenarios, mySAP.com Application Hosting, WebFlow, R/2, R/3, RIVA, ABAP, SAPBusiness Workflow, SAP EarlyWatch, SAP ArchiveLink, BAPI, SAPPHIRE, ManagementCockpit, SEM, are trademarks or registered trademarks of SAP AG in Germany and in severalother countries all over the world. All other products mentioned are trademarks or registeredtrademarks of their respective companies.

  • SAP AG BC ABAP Workbench Tutorial

    BC ABAP Workbench Tutorial

    December 1999 3

    Icons

    Icon Meaning

    Caution

    Example

    Note

    Recommendation

    Syntax

    Tip

  • BC ABAP Workbench Tutorial SAP AG

    BC ABAP Workbench Tutorial

    4 December 1999

    Contents

    BC ABAP Workbench Tutorial ...........................................................................6BC ABAP Workbench Tutorial ..................................................................................................... 7Note to the Reader......................................................................................................................... 8About the Tutorial.......................................................................................................................... 9Prerequisites ................................................................................................................................ 11Terminology ................................................................................................................................. 12A Word About Interfaces............................................................................................................. 13Choosing Names for SAP Objects............................................................................................. 14Learning More .............................................................................................................................. 15Lesson 1: Understanding the Workbench Tools...................................................................... 16Introduction to Lesson 1............................................................................................................. 17Exercise 1: Opening the Workbench ......................................................................................... 18Exercise 2: Learning the Workbench Tools.............................................................................. 19Exercise 3: Navigating an Object List ....................................................................................... 21Exercise 4: Creating a Program ................................................................................................. 22Exercise 5: Setting a Marker....................................................................................................... 24Exercise 6: Creating a Transaction............................................................................................ 25Review of Lesson 1 ..................................................................................................................... 26Lesson 2: Working with Tables.................................................................................................. 27Introduction to Lesson 2............................................................................................................. 28Exercise 1: Creating a Table Object .......................................................................................... 30Exercise 2: Specifying Table Fields........................................................................................... 31Exercise 3: Defining Data Elements and Domains................................................................... 33Exercise 4: Reusing Domains .................................................................................................... 35Exercise 5: Defining a Value List ............................................................................................... 37Exercise 6: Specifying Technical Settings................................................................................ 38Exercise 7: Activating a Table.................................................................................................... 39Review of Lesson 2 ..................................................................................................................... 40Lesson 3: Designing Screens..................................................................................................... 41Introduction to Lesson 3............................................................................................................. 42Exercise 1: Creating a Screen .................................................................................................... 43Exercise 2: Placing an Element on a Screen ............................................................................ 44Exercise 3: Refining a Screen .................................................................................................... 46Exercise 4: Checking the Screen Layout .................................................................................. 48Exercise 5: Setting the OK Field ................................................................................................ 49Review of Lesson 3 ..................................................................................................................... 50Lesson 4: Specifying a GUI Status ............................................................................................ 51Introduction to Lesson 4............................................................................................................. 52Exercise 1: Create a GUI Status ................................................................................................. 53Exercise 2: Add Menus to Your Interface.................................................................................. 54Exercise 3: Define Function Keys.............................................................................................. 55

  • SAP AG BC ABAP Workbench Tutorial

    BC ABAP Workbench Tutorial

    December 1999 5

    Exercise 4: Specify PushButtons .............................................................................................. 56Exercise 5: Finish Up .................................................................................................................. 57Review of Lesson 4 ..................................................................................................................... 58Lesson 5: Coding the Transaction............................................................................................. 59Introduction to Lesson 5............................................................................................................. 60Exercise 1: Writing Flow Logic .................................................................................................. 61Exercise 2: Creating Modules .................................................................................................... 62Exercise 3: Specifying Global Variables ................................................................................... 63Exercise 4: Coding the Modules ................................................................................................ 64Exercise 5: Creating a Message Class ...................................................................................... 66Exercise 6: Testing Your Transaction ....................................................................................... 67Exercise 7: Running the Debugger............................................................................................ 68Review of Lesson 5 ..................................................................................................................... 69Lesson 6: Working in a Team..................................................................................................... 70Introduction to Lesson 6............................................................................................................. 71Exercise 1: Creating a Development Class..............................