BIT611 SAP Business Workflow Programming With ABAP OO

download BIT611 SAP Business Workflow Programming With ABAP OO

of 141

  • date post

    28-Oct-2014
  • Category

    Documents

  • view

    1.156
  • download

    56

Embed Size (px)

Transcript of BIT611 SAP Business Workflow Programming With ABAP OO

BIT611SAP Business Workflow Advanced Programming with ABAP OOSAP NetWeaver

Date Training Center Instructors Education Website

Participant HandbookCourse Version: 62 Course Duration: 1 Day Material Number: 50087408

An SAP course - use it to learn, reference it for work

CopyrightCopyright 2008 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Trademarks Microsoft, WINDOWS, NT, EXCEL, Word, PowerPoint and SQL Server are registered trademarks of Microsoft 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. INFORMIX-OnLine for SAP and INFORMIX Dynamic ServerTM are registered trademarks of Informix Software Incorporated. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, the Citrix logo, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, MultiWin and other Citrix product names referenced herein are trademarks of Citrix Systems, Inc. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. JAVA is a registered trademark of Sun Microsystems, Inc. JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other products mentioned are trademarks or registered trademarks of their respective companies.

DisclaimerTHESE MATERIALS ARE PROVIDED BY SAP ON AN "AS IS" BASIS, AND SAP EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR APPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THESE MATERIALS AND THE SERVICE, INFORMATION, TEXT, GRAPHICS, LINKS, OR ANY OTHER MATERIALS AND PRODUCTS CONTAINED HEREIN. IN NO EVENT SHALL SAP BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES OF ANY KIND WHATSOEVER, INCLUDING WITHOUT LIMITATION LOST REVENUES OR LOST PROFITS, WHICH MAY RESULT FROM THE USE OF THESE MATERIALS OR INCLUDED SOFTWARE COMPONENTS.

g2008022104036

About This HandbookThis handbook is intended to complement the instructor-led presentation of this course, and serve as a source of reference. It is not suitable for self-study.

Typographic ConventionsAmerican English is the standard used in this handbook. The following typographic conventions are also used. Type Style Example text Description Words or characters that appear on the screen. These include field names, screen titles, pushbuttons as well as menu names, paths, and options. Also used for cross-references to other documentation both internal (in this documentation) and external (in other locations, such as SAPNet). Example text EXAMPLE TEXT Emphasized words or phrases in body text, titles of graphics, and tables Names of elements in the system. These include report names, program names, transaction codes, table names, and individual key words of a programming language, when surrounded by body text, for example SELECT and INCLUDE. Screen output. This includes file and directory names and their paths, messages, names of variables and parameters, and passages of the source text of a program. Exact user entry. These are words and characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Pointed brackets indicate that you replace these words and characters with appropriate entries.

Example text

Example text

2008

2008 SAP AG. All rights reserved.

iii

About This Handbook

BIT611

Icons in Body TextThe following icons are used in this handbook. Icon Meaning For more information, tips, or background Note or further explanation of previous point Exception or caution Procedures

Indicates that the item is displayed in the instructor's presentation.

iv

2008 SAP AG. All rights reserved.

2008

ContentsCourse Overview ......................................................... viiCourse Goals ...........................................................vii Course Objectives .....................................................vii

Unit 1: Introduction........................................................ 1From BOR Objects to ABAP Classes ................................2 Technical View and Business Example ..............................8

Unit 2: ABAP Classes Definition and Implementation .......... 15Underlying Concepts of ABAP Object Classes in SAP Business Workflow............................................................ 17 Class Definition - Instance Handling and Key Fields ............. 29 Class Definition - Attributes and Methods ......................... 53

Unit 3: Use Classes in Workflow Architecture .................... 91Exceptions, Events and API Functions ............................ 92 Using Classes in Workflow Architecture .......................... 110

2008

2008 SAP AG. All rights reserved.

v

Contents

BIT611

vi

2008 SAP AG. All rights reserved.

2008

Course OverviewThis course covers customer adaptations and enhancements to workflows that require programming. You will learn how to program workflow interfaces at the ABAP class level. This includes attributes, methods and events. The course also provides information on developing functional methods with the new Container Parameter Interface , including check function modules, and so on.

Target AudienceThis course is intended for the following audiences: Workflow developers (with ABAP and ABAP OO knowledge) Workflow consultants (with ABAP and ABAP OO knowledge)

Course PrerequisitesRequired Knowledge SAPTec BIT601 BIT610 BC400 and BC401 or equivalent knowledge

Recommended Knowledge BIT600 DBITWF

Course GoalsThis course will prepare you to: Perform workflow programming at all levels Use ABAP classes in SAP Business Workflow

Course ObjectivesAfter completing this course, you will be able to: Identify all points in the workflow system at which programming is possible or necessary Create your own classes and use them in the workflow architecture

2008

2008 SAP AG. All rights reserved.

vii

Course Overview

BIT611

Use Container Parameter Interface as the new application programming interface (API) for workflow related functions (check, receiver type, and so on)

SAP Software Component InformationThe information in this course pertains to the following SAP Software Components and releases: SAP Web Application Server 6.20

viii

2008 SAP AG. All rights reserved.

2008

Unit 1IntroductionUnit OverviewThis unit covers a brief overview of the uses and tasks of a workflow management system. It explains the definition architecture and the places within it that can be programmed. This unit also introduces the example that will be used in the course exercises.

Unit ObjectivesAfter completing this unit, you will be able to: Repeat the main points of SAP Business Workflow architecture. Recognize the components of SAP Business Workflow that enable or require programming by the user. Compare and contrast ABAP classes and business object types used in workflow development. Identify the main technical aspects of ABAP Classes and BOR Analyze the Business Process Compare the business object components (available) with the ABAP class components needed

Unit ContentsLesson: From BOR Objects to ABAP Classes.................................2 Lesson: Technical View and Business Example ...............................8

2008

2008 SAP AG. All rights reserved.

1

Unit 1: Introduction

BIT611

Lesson: From BOR Objects to ABAP ClassesLesson OverviewThis lesson repeats the underlying architecture and terminology of the workflow engine. It also compares and contrasts ABAP Classes and SAP Business Objects used in workflow development.

Lesson ObjectivesAfter completing this lesson, you will be able to: Repeat the main points of SAP Business Workflow architecture. Recognize the components of SAP Business Workflow that enable or require programming by the user. Compare and contrast ABAP classes and business object types used in workflow development.

Business ExampleYour company have implemented some new business functions as Add On to the SAP ERP system. These functions are developed with ABAP Objects and your developers have many experience in this part of programming technique. To gain advantage of these resources, the existing business functions should used in workflow architecture to model the important business processes in this Add On.

Workflow Management StructureThere are some important declarations, you have to discuss, to describe a workflow management system: A system that delivers work: In the correct sequence With all the necessary information At the correct time To the responsible people

Workflow Management is used to link work steps automatically. It enables the control of connected activities across transactions and across different applicat