cd266 update your skills to sap net-weaver 7.0

78
CD266 ABAP Development Update Your Skills to SAP NetWeaver 7.0 and Beyond Leonardo De Araujo, SAP Mentor Rich Heilman, SAP EPM RIG Ed Herrmann, SAP Mentor Thomas Jung, SAP NetWeaver Solution Management Gregor Wolf, SAP Mentor

Upload: cedric-leconte

Post on 16-May-2015

903 views

Category:

Business


5 download

TRANSCRIPT

Page 1: cd266 update your skills to sap net-weaver 7.0

CD266

ABAP DevelopmentUpdate Your Skills to SAP NetWeaver 7.0 andBeyond

Leonardo De Araujo, SAP MentorRich Heilman, SAP EPM RIGEd Herrmann, SAP MentorThomas Jung, SAP NetWeaver Solution ManagementGregor Wolf, SAP Mentor

Page 2: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 2

Disclaimer

This presentation outlines our general product direction and should not be relied on in making apurchase decision. This presentation is not subject to your license agreement or any otheragreement with SAP. SAP has no obligation to pursue any course of business outlined in thispresentation or to develop or release any functionality mentioned in this presentation. Thispresentation and SAP's strategy and possible future developments are subject to change andmay be changed by SAP at any time for any reason without notice. This document is providedwithout a warranty of any kind, either express or implied, including but not limited to, the impliedwarranties of merchantability, fitness for a particular purpose, or non-infringement. SAPassumes no responsibility for errors or omissions in this document, except if such damageswere caused by SAP intentionally or grossly negligent.

Page 3: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 3

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a) Service Providersb) Service Consumers

6. UI Layera) Web Dynpro ABAP Basicsb) POWLc) Floorplan Manager

Agenda

Page 4: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 4

Learning Objectives

As a result of this workshop, you will be able to:Build a unified set of workshop examples that demonstrate the interconnectivity of much of thenew ABAP functionalityUse new ABAP language syntax and workbench features that are part of the NetWeaver 7.02Enhancement PackageImprove your understanding of the value of Object Oriented ABAP to reduce long termdevelopment costs and to simplify the modeling of complex data and logic representationsLeverage BRF+ for reusable and user maintainable business rulesBuild a Enterprise Service Interface on top of existing functionality and consume that service –configuring both aspects using the new SOAMANAGERDesign User Interfaces for SAP’s primary UI technology in the Business Suite – Web Dynpro

Page 5: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 5

The Evolution of the SAP ERP Architecture:Powered by SAP NetWeaver — Embedded and Standalone Connections

SAP NetWeaver ’04 SAP NetWeaver 7.0

SAP R/3up to 4.6C

SAP ERPEdition 2004

SAP R/3Enterprise

SAP ERP6.0

ERPRelease

SAP Basis upto 4.6D

SAP NetWeaver ’04SAP Web AS6.20

SAP NetWeaver 7.0EmbeddedTechnologyplatform

SAP NetWeaver

PEOPLEINTEGRATION

INFORMATIONINTEGRATION

PROCESSINTEGRATION

APPLICATIONPLATFORM

Life Cycle M

gmt

Com

posi

te A

pplic

atio

ns

SAP NetWeaver

PEOPLEINTEGRATION

INFORMATIONINTEGRATION

PROCESSINTEGRATION

APPLICATIONPLATFORM

Life Cycle M

gmt

Com

posi

te A

pplic

atio

ns

SAP NetWeaver

PEOPLEINTEGRATION

INFORMATIONINTEGRATION

PROCESSINTEGRATION

APPLICATIONPLATFORM

Life Cycle M

gmt

Com

posi

te A

pplic

atio

ns

SAP NetWeaver

PEOPLEINTEGRATION

INFORMATIONINTEGRATION

PROCESSINTEGRATION

APPLICATIONPLATFORM

Life Cycle M

gmt

Com

posi

te A

pplic

atio

ns

Sta

ndal

one

SAP

Net

Wea

ver

Page 6: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 6

SAP Enhancement Package for SAP NetWeaver

SAP enhancement packages for SAP NetWeaver contain new functionality, inaddition there will be Support packages containing only corrections. The main goal isto strictly separate maintenance from innovation and increase the quality of supportpackages.

Maintenance Innovation

Feature PackSP incl. new features

Future

Maintenance

Support Package

Innovation

Enhancement PackageMajor Release

PreviousSituation

Corrections and legal changes only Development, corrections and legal changes

Page 7: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 7

Enhancement Packages for SAP NetWeaver –Their Value for Customers

SAP enhancement packages for SAPNetWeaver – their value for customers

Reduced effort for testing and trainingwhen applying Support Packages

New features are shipped withenhancement packages and new releasesonly

Adding new functionality betweenreleases becomes predictable andcontrollable

One enhancement package per yearEnhancement package are optional

Minimal training effort when applying anenhancement package

Enhancement package add new but do notreplace existing functionality

Page 8: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 8

Introduction – Application Server ABAP

Page 9: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 9

F u n c t i o n a l i t y 6.20 6.40 7.0 7.02Web Services (Exposing)Web Services (Calling)Persistent and Query ServicesRTTS and Dynamic ProgrammingRegular ExpressionsShared Memory ObjectsBSPWeb Dynpro ABAPNew ABAP EditorNew DebuggerAdobe Document Services

Additional New Features

Legend: LimitedSupport

FullSupport

SignificantChanges/Enhancements

Page 10: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 10

Additional New Features

Functionality 6.20 6.40 7.0 7.02Web Services (Exposing)Web Services (Calling)Persistent and Query ServicesRTTS and Dynamic ProgrammingRegular ExpressionsShared Memory ObjectsBSPWeb Dynpro ABAPNew ABAP EditorNew DebuggerAdobe Document Services

Legend: LimitedSupport

FullSupport

SignificantChanges/Enhancements

CD267 andCD360

CD105, CD160,CD163, CD203

CD102, CD264

Page 11: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 11

Functionality 6.20 6.40 7.0 7.02Web Services (Exposing)Web Services (Calling)Persistent and Query ServicesRTTS and Dynamic ProgrammingRegular ExpressionsShared Memory ObjectsBSPWeb Dynpro ABAPNew ABAP EditorNew DebuggerAdobe Document Services

Additional New Features, Cont.

Legend: LimitedSupport

FullSupport

SignificantChanges/Enhancements

Page 12: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 12

Functionality 6.20 6.40 7.0 7.02Web Services (Exposing)Web Services (Calling)Persistent and Query ServicesRTTS and Dynamic ProgrammingRegular ExpressionsShared Memory ObjectsBSPWeb Dynpro ABAPNew ABAP EditorNew DebuggerAdobe Document Services

Additional New Features, Cont.

Legend: LimitedSupport

FullSupport

SignificantChanges/Enhancements

CD361

CD261

CD266

CD100 andCD263

Page 13: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 13

SAP NetWeaver – Demo ModelCheck It Out Now!

The Demo Model for SAP NetWeaver,inspired by and extending beyond theFlight Model, is based on the democompany ITelO.

The Demo Model provides packageddemo content which exists in yoursystem so you can experience variousSAP NetWeaver areas andtechnologies.

Visit www.sdn.sap.com/irj/sdn/nw-demomodel today and experience theDemo Model.Experience SAP NetWeaver!

Page 14: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 14

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a) Service Providersb) Service Consumers

6. UI Layera) Web Dynpro ABAP Basicsb) POWLc) Floorplan Manager

Agenda

Page 15: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 15

OverviewFeatures of ABAP Release 7.02

New features coverTransparent infrastructure improvementsApplication development benefits withoutfurther action

New facets of existing featuresRequire only moderate efforts by application ifto be used

New featuresRequire an active part of applicationdevelopment if to be used

Improved toolsImprove productivity at application side

CD100 – ABAP 7.02 Development Toolsin Practice: Developing, Testing, Bug-FixingCD263 – New ABAP Language Features

Page 16: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 16

Overview7.02 Feature Set – New Facets of Existing Features

New facets of existing featuresRequire only moderate efforts by application if to be used

PragmasBoxed Components12h Time FormatShared Objects ExtensionsData Declaration ExtensionsbasXML, UUIDs

Page 17: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 17

Overview7.02 Feature Set – New Features

New featuresRequire an active part of applicationdevelopment if to be used

Decimal Floating Point NumbersExtended ExpressionsInternal Table ExtensionsString Processing ExtensionsDatabase Access ExtensionsExceptions - Resumable Exceptions,RETRYSplitter ControlABAP Call from ST

Page 18: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 18

Overview7.02 Feature Set – Improved Tools

Improved toolsImprove productivity at application side

Class BuilderABAP EditorABAP Keyword DocumentationABAP DebuggerABAP Runtime AnalysisTest Tools

Page 19: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 19

Extended Expression HandlingExamplesv1 = a + b.v2 = c - d.v3 = meth( v2 ).IF v1 > v3....

IF a + b > meth( c – d )....

idx = lines( itab ).READ TABLE itab INDEX idx ...

READ TABLE itabINDEX lines( itab ) ...

len = strlen( txt ) - 1.DO len TIMES....

DO strlen( txt ) – 1 TIMES....

regex = oref->get_regex( ... ).FIND REGEX regex IN txt.

FIND REGEX oref->get_regex( ... )IN txt.

CONCATENATE txt1 txt2 INTO txt.CONDENSE txt. txt = condense( txt1 && txt2 ).

DATA oref TYPE REF TO c1.oref = c2=>m2( ).oref->m1( ).

c2=>m2( )->m1( ).

Page 20: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 20

Statement Chaining Example

Release 7.02

Release 7.0

Page 21: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 21

ABAP EditorCode Completion

CTRL+Space

Page 22: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 22

Strings in Database TablesUsage of Locators

Copy a LOB column

DATA: locator TYPE REF TO cl_abap_db_c_locator.

SELECT SINGLE longtext FROM lob_tableINTO locatorWHERE key = key1.

UPDATE lob_tableSET longtext = locatorWHERE key = key2.

locator->close( ).

Create locator

Access data using locator

Close locator

Page 23: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 23

Strings in Database TablesUsage of Streams

Read GIF picture from database and write to file

DATA: reader TYPE REF TO cl_abap_db_x_reader.

SELECT SINGLE picture FROM blob_tableINTO readerWHERE name = pic_name.

...

WHILE reader->data_available( ) = abap_true.TRANSFER reader->read( len ) TO pict_file.

ENDWHILE.

reader->close( ).

Create stream reader

Write data to file

Close stream reader

Page 24: cd266 update your skills to sap net-weaver 7.0

Demo

Page 25: cd266 update your skills to sap net-weaver 7.0

Exercise

Page 26: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 26

How to Log on

User:Pwd:

System: M33 client: 800Session: AUser: CD266A-## (## = group number)Pwd: teched10

Logon to Windows

Logon to SAP workshop system

Page 27: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 27

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Persistency Layer

a) Persistent Objects5. Service Layer

a) Service Providersb) Service Consumers

6. UI Layera) Web Dynpro ABAP Basicsb) POWLc) Floorplan Manager

Agenda

Page 28: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 28

Defining own Classes

CLASS zcl_cd266_xx_sorder DEFINITIONPUBLIC FINALOPEN FOR PACKAGECREATE PACKAGE .

PUBLIC SECTION....

PROTECTED SECTION....

PRIVATE SECTION....

ENDCLASS.

Global classes are defined with theClass Builder in the ABAP Workbench.Global classes are visible to any otherrepository object and usableaccording to the package concept.Besides global classes in class pools,local classes can be defined in almostall kinds of ABAP programs

Page 29: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 29

Defining own Classes – Global Classes

All components are represented as screenelements in the Form-based Class Builder!The Class Builder generates ABAP codingfrom your input.

Page 30: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 30

Defining own Classes – Class Builder Modes

As of Release 7.02 you can switch to a Source Code-Based mode of the Class Builder!

Page 31: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 31

Method Implementation in Form-based Mode

Page 32: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 32

Defining own Classes – Attributes

CLASS zcl_cd266a_xx_sorder DEFINITIONPUBLICCREATE PROTECTED .

PUBLIC SECTION.constants:BEGIN OF E_ORDERTYPE,standard type SDEMO_TYPE_CODE value 'OR',express type SDEMO_TYPE_CODE value 'EX',

end of e_ordertype .PROTECTED SECTION.data GS_SO type SDEMO_SO .PRIVATE SECTION.

ENDCLASS.

Page 33: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 33

Defining own Classes – Encapsulation 1

Each component of a class isdeclared in one of three possiblevisibility sections defining

PublicProtectedPrivate

visibility

CLASS zcl_cd260a_xx_sorder DEFINITIONPUBLICCREATE PROTECTED .

PUBLIC SECTION.constants:BEGIN OF E_ORDERTYPE,standard type SDEMO_TYPE_CODE value 'OR',express type SDEMO_TYPE_CODE value 'EX',

end of e_ordertype .PROTECTED SECTION.data GS_SO type SDEMO_SO .PRIVATE SECTION.

ENDCLASS.

Page 34: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 34

Instantiating and Referencing Objects

DATA: oref1 TYPE REF TO class,oref2 TYPE REF TO interface.

Declaring reference variables

Creating objects

CREATE OBJECT: oref1 TYPE class,oref2 TYPE class.

Accessing attributes and methods (static / instance)

x = me->attr + oref1->attr + class=>attr.oref1->method1( ... ).oref2->method2( ... ).class=>method3( ... ).y = oref2->method4( ... ).

Class Reference Variable

Interface Reference Variable

Class of Object

-> Object ComponentSelector

=> Class ComponentSelector

oref

Page 35: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 35

Inheritance - Overview

object

CLASS c1 DEFINITION[INHERITING FROM object].

CLASS c2 DEFINITION[INHERITING FROM object].

CLASS c11 DEFINITIONINHERITING FROM c1.

CLASS c12 DEFINITIONINHERITING FROM c1.

Page 36: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 36

Inheritance - Realization

CLASS zcl_cd266a_xx_sord_express DEFINITIONPUBLICINHERITING FROM zcl_cd266a_xx_sorderFINALCREATE PUBLIC.…

ENDCLASS.

Defining a SubclassThe present class becomes a subclass of analready existing superclass.You can only specify one superclass.Subclasses contain the components of allpreceding superclasses.You can add new components in each subclass orredefine existing methods.Reference variables that have the type of asuperclass can point to subclass objects.The root node of all classes is the predefinedabstract class object.

Page 37: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 37

Inheritance - Method Redefinition

METHOD calculate_expand_amount.r_expanded_amount =super->calculate_expand_amount( )

* ‘1.05’.ENDMETHOD.

ZCL_CD266A_XX_SORD_STANDARD

ZCL_CD266A_XX_SORD_EXPRESSZCL_CD266A_XX_SORDER

METHOD calculate_expand_amount.

r_expanded_amount =me->gs_so-ttl_net_amount * ’1.10’.

ENDMETHOD.

Redefinition

METHOD calculate_expand_amount.r_expanded_amount =super->calculate_expand_amount( )

* ‘1.25’.ENDMETHOD.

Page 38: cd266 update your skills to sap net-weaver 7.0

Demo

Page 39: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 39

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a) Service Providersb) Service Consumers

6. UI Layera) Web Dynpro ABAP Basicsb) POWLc) Floorplan Manager

Agenda

Page 40: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 40

Problems with Conventional Methods

Rules inside Code

BusinessUser

BusinessExpertBusiness

Analyst

Rules as Tacit Knowledge

Rules in Documents

Rules inside Database

Sales CommissionsPremium Calculations…

Triggers StoredProcedures

Costs, archiving, backups, compliance?Agility, visibility for business, changes?

Page 41: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 41

Business Rules ManagementFlexible & agile business systems Precise & informed decision making

Faster turnaround times for changes Improved visibility for the business

Reduced cost for changes

Benefits of Using Business Rules Management

Model

Refine

Automate

Manage

Business Rules Management Benefit

Separation of business rulesand code

Agile and maintainable systems

Modeling of complex businesslogic

Automation of key businessdecisions

Central management ofbusiness rules

Consistent application ofcorporate policy andgovernment regulations

Business Experts can find,change and test criticalbusiness rules

Visibility, accountability anderror-free business

Page 42: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 42

Example: Insurance Pricing Scenario

Ruleset for data validationand premium calculation

Application forinsurance pricing

Error messagebecause of invalidor incomplete data

Success messagewith calculated

insurance premium

Page 43: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 43

Mode of Operation

Function

Application Code

Ruleset

Application Code calls BRFplusFunction

Only 6 lines of code needed

Context input dataResult output data

BRFplus Function processesrules from assigned ruleset(s)

Rules can evaluateconditions, change data andperform actions

Page 44: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 44

BRFplus (R)Evolution

2006 2008 2010 2012

ArchitectureverificationFirst customerand SAP pilots

Web UIMore customer and SAPusagesRestricted releaseApplicable for simple use cases

Mass adoptionUnrestricted releaseApplicable also forcomplex use cases

Migration from varioustools/engines to BRFplusCompetitive differentiatorCommunity with extensionsand best practices

Page 45: cd266 update your skills to sap net-weaver 7.0

Exercise

Page 46: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 46

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a) Service Providersb) Service Consumers

6. UI Layera) Web Dynpro ABAP Basicsb) POWLc) Floorplan Manager

Agenda

Page 47: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 47

WEB SERVICES are

SELF-CONTAINED

and SELF-DESCRIBING

APPLICATION FUNCTIONALITIES

that can be

PROCESSED

through

OPEN INTERNET STANDARDS

Web Services Overview: Definition

Page 48: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 48

Web Services Overview: The Nature of WebServices

Web servicesAct like a black-box that may require input anddeliver a resultWork on top of any communication technology stackCan be published, discovered, and invoked based onopen technology standardsWork in synchronous and asynchronous scenariosFacilitate integration within an enterprise as well asacross enterprises

Page 49: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 49

Web Service Paradigm

3ServiceExecution

2

Service Requestor

ServiceDiscovery

Service Provider

Service Directory

1

ServicePublication

WSDL/XSD

XML/SOAPXML/SOAP

HTTP

UDDI

Page 50: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 50

Inside-OutStart with (existing) implementation in the back-end systemInterface semantics are predefined and reflect implementation directly(virtual Interfaces allow some view-like mappings)

Outside-InCentral design of interfaces that make business sensewithin the SAP NetWeaver Enterprise Service RepositoryUsing global data typesReference to Governance ProcessGeneration of proxies from abstractly modeled interfaceImplementation of “glue code” between proxy and business functionImplementation can be changed without changes ininterface

Different Ways for Interface Development

Page 51: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 51

SOAManager - Introduction

SOAMANAGERis an ABAP transaction, starting a Web Dynpro ABAP application

starts the tool SOAMANAGER to configure ABAP Web Services

is available from ABAP code line 7.0 SP14

replaces transaction WSADMIN, WSCONFIG and LPCONFIG

Page 52: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 52

SOAManager Entry Screen

Intended for Technical Administrators

Intended for Business Administrators

Page 53: cd266 update your skills to sap net-weaver 7.0

Demo

Page 54: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 54

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a)Service Providersb)Service Consumers

6. UI Layera)Web Dynpro ABAP Basicsb)POWLc) Floorplan Manager

Agenda

Page 55: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 55

SmartClient

WebBrowser

Motivation Web Dynpro

Web DynproUI definition independent ofclient technologyAs much abstract declaration as possibleDifferent rendering engines for different(future) UI technologies without adaptingapplication coding

Web Dynpro

RenderingEngine

RenderingEngine

RenderingEngine

other?

??????

http://.....XBCML, delta

http://.....HTML, JS

Meta Data<xml><wd:xxx></xml>

Page 56: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 56

Web Dynpro Development in ABAP

Development completelyintegrated into ABAPWorkbench

Graphical View Layout designDeclarative UI developmentABAP editor with forwardnavigationABAP dictionary data typesdirectly availableSimple remote debuggingFunctionality and services ofthe ABAP environment directlyusable

ABAP lifecycle managementTransportTranslationEnhancements

CD160: Developing User Interfaces with WebCD160: Developing User Interfaces with WebDynproDynpro for ABAPfor ABAP

Page 57: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 57

Web Dynpro Components

Web Dynpro Component containsWindowsViews

UI elementsLayout

ControllersContext DataEventingMethodsAttributes

Component InterfaceInterface Contr.Interface View

Label

ComponentController

Component

WindowViewController

View

ViewController

View

Page 58: cd266 update your skills to sap net-weaver 7.0

Demo

Page 59: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 59

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a)Service Providersb)Service Consumers

6. UI Layera)Web Dynpro ABAP Basicsb)POWLc) Floorplan Manager

Agenda

Page 60: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 60

POWER Lists – A Quick Introduction

Selection criteria

Generic Web dynpro ALV Meta data of ALV,

Data fed by Application

POWL framework – A Generic Web DynproComponent

Date Selection criteria

Page 61: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 61

POWER Lists – A Quick Introduction

CL_POWL_DEMO_SFLIGHT

Methods

GET_OBJECT_DEFINITION

GET_SEL_CRITERIA

GET_OBJECTS

GET_FIELD_CATALOG

GET_ACTIONS

HANDLE_ACTION

GET_ACTION_CONF

GET_DETAIL_COMP

IF_POWL_FEEDER

ApplicationLogic and

DataSelection is

DevelopedVia a Feeder

Class

Page 62: cd266 update your skills to sap net-weaver 7.0

Exercise

Page 63: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 63

1. Introduction2. Language and Tooling Enhancements3. Object Oriented Concepts4. Business Rules Framework (BRF+)5. Service Layer

a)Service Providersb)Service Consumers

6. UI Layera)Web Dynpro ABAP Basicsb)POWLc)Floorplan Manager

Agenda

Page 64: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 64

Using FPM For Building Web Dynpro ABAP UIs

What is Floorplan Manager (FPM)?A pattern-based UI Framework on top ofWeb Dynpro ABAP using SAP definedFloorplans and Building Blocks

Wide usage within SAP Busines Suite 7Mandatory for new UIs created as of SAPBusines Suite 7 innovations 2010> 1000 FPM based applications within theBusiness Suite

Ideal for industry, partner and customerdevelopment

Easy adaptation of existing Uis including end-user personalizationNew development of customer UisFull integration in standard SAP LifecycleManagement

Floorplan Manager Basics

Source: Dr. Dirk Becker, SAP AG, “Using Floorplan Manager for navigation, messaging and personalizing SAP HCMtransactions” (Content Area: Human Capital Management) ASUG October 2010, Orlando

Page 65: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 65

Using FPM For Building Web Dynpro ABAP UIs

Application compositionConfiguration of floorplansAssembly of UI Building BlocksIntegration into FPM Event LoopSupport of Business Object Layer (BOL)

Screen DefinitionConfiguration of GUIBBsWYSIWYG Editor of Screen Layout„Code-free UI“

Application provides Business LogicFPM provides UI & Event Loop

FPM Configuration

Page 66: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 66

Using FPM For Building Web Dynpro ABAP UIs

Floorplans are …… design templates for applications… accomplishing certain activities… highly configurable

What Floorplans Are

Floorplan Description Available with …Object InstanceFloorplan (OIF)

Designed for Object MaintenanceAlso available: QAF (Quick Activity Floorplan)

SAP NetWeaver7.0 EhP1

Overview PageFloorplan (OV)

Part of new SAP UI Design Guideline 2.0Designed for Object Overview and MaintenanceHighly personalizable

New in SAPNetWeaver 7.0EhP2

Guided ActivityFloorplan (GAF)

Designed for step-by-step processesRoadmap based

SAP NetWeaver7.0 EhP1

Page 67: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 67

Using FPM For Building Web Dynpro ABAP UIsObject Instance Floorplan (OIF)

Identification Region (IDR) and toolbar

Viewswitches (Tabs) and subviews

Variant concept (depending on parameters)

Page 68: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 68

Using FPM For Building Web Dynpro ABAP UIsOverview Page Floorplan (OVP)

Stackable panels: collapsible and moveable

Sections and various layout variants

Edit pages (optional)

Page 69: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 69

Using FPM For Building Web Dynpro ABAP UIsGuided Activity Floorplan (GAF)

Clickable roadmap with optional subroadmap

Toolbar with fixed buttons and step-specific buttons

Page 70: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 70

Using FPM For Building Web Dynpro ABAP UIsFloorplan Manager Basics

FPM Frame-work supportsconfigurationand assemblyfor all appli-cation UI parts(1) Header Area

(2) Lists

(3) Forms

(4) Trees

(5) Searches

(6) Freestyle UI

(7) Page Layout

1

2

3

4

Page 71: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 71

Using FPM For Building Web Dynpro ABAP UIsGeneric UI Building Blocks

AvailableGeneric UIBuildingBlocks:(1) Form

(2) Tree

(3) Search

(4) List

(5) Launchpad

Page 72: cd266 update your skills to sap net-weaver 7.0

Demo

Page 73: cd266 update your skills to sap net-weaver 7.0

Exercise

Page 74: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 74

Further Information

SAP Public Web:SAP Developer Network (SDN): www.sdn.sap.comBusiness Process Expert (BPX) Community: www.bpx.sap.com

SAP BusinessObjects Community (BOC): boc.sap.comWeb Dynpro ABAP: http://www.sdn.sap.com/irj/sdn/nw-wdabapNWBC: http://www.sdn.sap.com/irj/sdn/nw-businessclientIslands: http://www.sdn.sap.com/irj/sdn/adobe-flash-islandsFPM: http://www.sdn.sap.com/irj/sdn/nw-wdabap?rid=/webcontent/uuid/00b4312a-ac72-2b10-e0ad-e0219cfeb78e

Related SAP Education and Certification Opportunitieshttp://www.sap.com/education/

NET310: 5-day introductory classroom training on Web Dynpro ABAPNET311: 3-day classroom training on advanced Web Dynpro ABAPNET312: 3-day classroom training on UI elementsNET313: new 2-day classroom training on Floorplan Manager

Page 75: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 75

Further Information

Related Workshops/Lectures at SAP TechEd 2010CD100, ABAP 7.02 Development Tools in Practice: Developing, Testing, Bug-Fixing, Lecture (1 hour)CD105, What’s New in Web Dynpro ABAP 7.01 and 7.02, Lecture (2 hour)CD160, Developing User Interfaces with Web Dynpro ABAP, Hands-On (4 hours)CD163, Creating Mashup User Interfaces with the New Web Dynpro ABAP PageBuilder, Hands-On (2 hour)CD203, New ABAP Language Features, Hands-On (4 hours)CD263, Creating Mashup User Interfaces with the New Web Dynpro ABAP PageBuilder, Hands-On (2 hour)CD360, Providing and Consuming an ABAP Web Service, Hands-On (4 hour)PMC103, Business Rules Management with SAP (Overview of BRFplus and SAPNetWeaver BRM), Lecture (1 hour)PMC163, Own Your Business Logic With Business Rules Framework plus,Hands-On (2 hour)

Page 76: cd266 update your skills to sap net-weaver 7.0

Q&A

Page 77: cd266 update your skills to sap net-weaver 7.0

ContactFeedback

Please complete your session evaluation.

Be courteous — deposit your trash,and do not take the handouts for the following session.

Page 78: cd266 update your skills to sap net-weaver 7.0

© 2010 SAP AG. All rights reserved. / Page 78

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.Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries,eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+,POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex,MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or othercountries.Oracle is a registered trademark of Oracle Corporation.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.HTML, XML, XHTML and W3C 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, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer and other SAP products and services mentioned herein as well as their respectivelogos are trademarks or registered trademarks of SAP AG in Germany and other countries.Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products andservices mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. in the United States and in othercountries.All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only.National product specifications may vary.The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without theexpress prior written permission of SAP AG.This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies,developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/ordevelopment. Please note that this document is subject to change and may be changed by SAP at any time without notice.SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or otheritems contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties ofmerchantability, fitness for a particular purpose, or non-infringement.SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of thesematerials. This limitation shall not apply in cases of intent or gross negligence.The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot linkscontained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.

© 2010 SAP AG. All Rights Reserved