55
CD251 ABAPᓔথˈᄺдSAP NetWeaver 7.0ᮄⶹ

CD251 ABAP Ô ¥ È : 4 SAP NetWeaver 7.0 -¹ · ¤SAP AG 2007, SAP TechEd ’07 / CD251 / 2 + â This presentation outlines our general product direction and should not be relied

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

CD251ABAP SAPNetWeaver 7.0

SAP AG 2007, SAP TechEd ’07 / CD251 / 2

This presentation outlines our general product direction and shouldnot be relied on in making a purchase decision. This presentation isnot subject to your license agreement or any other agreement withSAP. SAP has no obligation to pursue any course of businessoutlined in this presentation or to develop or release anyfunctionality mentioned in this presentation. This presentation andSAP's strategy and possible future developments are subject tochange and may be changed by SAP at any time for any reasonwithout notice. This document is provided without a warranty of anykind, either express or implied, including but not limited to, theimplied warranties of merchantability, fitness for a particularpurpose, or non-infringement. SAP assumes no responsibility forerrors or omissions in this document, except if such damages werecaused by SAP intentionally or grossly negligent.

SAP AG 2007, SAP TechEd ’07 / CD251 / 3

Rich HeilmanSoftware Engineer/Analyst, Yorktowne Cabinetry

Thomas JungSAP NetWeaver Product Management, SAP Labs, LLC.

Oliver MayerSAP NetWeaver Product Management, SAP Labs, LLC.

Peter McNultySAP NetWeaver Product Management, SAP Labs, LLC.

Peter WaltersBusiness Programming Solutions, SAP America

Guochen WeiSenior Architect, SAP Labs China

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 5

, :ABAP

Enterprise Service

ABAPSAP UI Web Dynpro

SAP AG 2007, SAP TechEd ’07 / CD251 / 6

SAP ERP :SAP NetWeaver —

SAP NetWeaver ’04 SAP NetWeaver 7.0

SAP R/34.6C

SAP ERPEdition 2004

SAP R/3Enterprise

SAP ERP6.0

ERP

SAP Basis4.6D

SAP NetWeaver ’04SAP Web AS6.20

SAP NetWeaver 7.0

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

SAP

Net

Wea

ver

SAP AG 2007, SAP TechEd ’07 / CD251 / 7

ABAP

SAP GUI

BSPWeb Dynpro

Open SQL

Data Base(AS ABAP Scheme)

Dynpro

Object Services

Native SQL

Data Base Interface

ICF

ABAP/ABAP Objects XSLT/STABAP/ABAP Objects

CFWICM

RFCInterface

SAP AG 2007, SAP TechEd ’07 / CD251 / 8

:

SAP AG 2007, SAP TechEd ’07 / CD251 / 9

(2).

:

SAP AG 2007, SAP TechEd ’07 / CD251 / 10

NetWeaver

SAP AG 2007, SAP TechEd ’07 / CD251 / 11

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 13

Services !

ABAP :

NW AS ABAP ABAP

!

SAP AG 2007, SAP TechEd ’07 / CD251 / 14

ClassBuilder

.

Class Builder

SETGET

This is the abstractsuper class withthe persistentframeworkfunctionalityprovided by SAP.You cannot changethe superclassCB_persistentThis class providesthe Abstractimplementation ofmany of the keyPersistentInterfaces.

CA_persistent(or

),CL_persistent

.

SAP AG 2007, SAP TechEd ’07 / CD251 / 15

QueryManager

.

Query ManagerABAP

interfaceIF_OS_QUERY_MANAGER .

SAP AG 2007, SAP TechEd ’07 / CD251 / 16

1

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 18

1/2

( )

,( )

,

)

SAP AG 2007, SAP TechEd ’07 / CD251 / 19

2/2

( ): short dump

Java, C++

SAP AG 2007, SAP TechEd ’07 / CD251 / 20

RAISE EXCEPTION TYPE cx_page_not_foundEXPORTING page = 'http://www.sap.com/shop/'.

DATA excp TYPE REF TO cx_page_not_found.CREATE OBJECT excp

EXPORTING page = 'http://www.sap.com/shop/'.RAISE EXCEPTION excp.

x = 1 / 0. "creates exception cx_sy_zerodivide

(runtime exception)

, : , .

SAP AG 2007, SAP TechEd ’07 / CD251 / 21

: TRY..ENDTRY

DATA excp TYPE REF TO cx_sy_file_open_mode.TRY.

CATCH cx_sy_file_open_mode INTO excp.

CATCH cx_sy_file_access_error

ENDTRY.

OPEN DATASET file FOR OUTPUT IN BINARY MODE.TRANSFER xbuffer TO file.CLOSE DATASET file.WRITE: 'Buffer successfully written'.

WRITE: 'File', excp->filename, 'is not open'.

WRITE: 'Other file IO exception occurred'.

SAP AG 2007, SAP TechEd ’07 / CD251 / 22

CATCH

‘ ’ ‘ ’

CX_ROOT

CX_PAGE_NOT_FOUND

CX_SY_ARITHMETIC_ERROR

CX_SY_ZERODIVIDE CX_SY_ARITHMETIC_OVERFLOW

SAP AG 2007, SAP TechEd ’07 / CD251 / 23

Signaturestaticallychecked

by compilerand dynamically

at runtime

Signaturechecked

only at runtime

Not insignature,

never checked

CX_ROOT

CX_DYNAMIC_CHECK CX_NO_CHECKCX_STATIC_CHECK

SAP AG 2007, SAP TechEd ’07 / CD251 / 24

2

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 26

ABAP Objects SAP Basis, Release 4.5– Classes– Interfaces– Events

ABAP Objects SAP Basis Release 4.6– Inheritance– Compound interfaces– Dynamic Invoke

SAP Web Application Server, Releases 6.10, 6.20, 6.40;SAP NetWeaver 7.0 and 7.1

– Friends– Object Services– Shared Objects

SAP AG 2007, SAP TechEd ’07 / CD251 / 27

Field

DATA:Text(20) TYPE C VALUE 'Hello world'.

FIELD-SYMBOLS:<fs> TYPE ANY.

ASSIGN Text TO <fs>.WRITE / <fs>.

Field

Field fields de-referenced

fields field run time

SAP AG 2007, SAP TechEd ’07 / CD251 / 28

field

CARRID CONNIDAA 0017LH 0400

LOOP ... INTO wa....

ENDLOOP.

wa

CARRID CONNIDAA 0017LH 0400

LOOP ... ASSIGNING <wa>....

ENDLOOP.

<wa>

0400LH 3300BA

3300BA 3300BA

SAP AG 2007, SAP TechEd ’07 / CD251 / 29

Field

field symbols

FieldField

field– 5 Field

field field

SAP AG 2007, SAP TechEd ’07 / CD251 / 30

Field

field

INTO wa: > 1000: > 100

Propertiesfield

SORT FieldUNASSIGN field

field field

READ TABLE ... ASSIGNING <fs>

SAP AG 2007, SAP TechEd ’07 / CD251 / 31

STANDARD TABLE SORTED TABLE

INDEX TABLE HASHED TABLE

ANY TABLE

C, N, X, PCSEQUENCE, XSEQUENCE, CLIKE

ANY, DATASIMPLE, NUMERIC

SAP AG 2007, SAP TechEd ’07 / CD251 / 32

3

SAP AG 2007, SAP TechEd ’07 / CD251 / 33

4

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 35

WEB SERVICES

Web Services :

SAP AG 2007, SAP TechEd ’07 / CD251 / 36

Web Services : Web Services

Web services

SAP AG 2007, SAP TechEd ’07 / CD251 / 37

Web Service

3Service

2

Service

Service

Service

Service

1

Service

WSDL/XSD

HTTP

UDDI

SAP AG 2007, SAP TechEd ’07 / CD251 / 38

SAP Web Services

Web Service

(SAP/ SAP)

Proxy

LocalIntegration Engine

Proxy Runtime

Web ServicesFramework

SOAP

“ ” Web Service

IDocsRFCs

Web Service

(SAP/ SAP)

“ ” Web Service

MappingRouting

Integration Processes

SOAP

XI Protocol

SOAP

Integration Server

SAP Web AS 6.40

SAPSystem

SAP AG 2007, SAP TechEd ’07 / CD251 / 39

Interface

SAP NetWeaver interfaces

Governance Processinterface

“ ”interface

Interface

SAP AG 2007, SAP TechEd ’07 / CD251 / 40

5

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 42

Web Dynpro ?

– MVC (“model-view-controller”)

SAP NetWeaver Developer Studio ABAP Workbench

RuntimeSAP NetWeaver Application Server

UI

SAP AG 2007, SAP TechEd ’07 / CD251 / 43

Web Dynpro

WebUI

,UI

“ Web UI”, footprint

Client-side dynamics

508 accessibility

Web DynproMetadata

Web DynproTools

Web Dynpro RuntimeJAVA ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 44

Web Dynpro

Web DynproUI

() UI

Web Dynpro

RenderingEngine

RenderingEngine

RenderingEngine

WebBrowser

SmartClient

??????

http://.....XML, delta

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

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

SAP AG 2007, SAP TechEd ’07 / CD251 / 45

MVC

Request

Response

Binding Layer.

.

. .

Model View Controller (MVC)

SAP AG 2007, SAP TechEd ’07 / CD251 / 46

Web Dynpro

Web Dynpro

– UI–

––––

––

Label

SAP AG 2007, SAP TechEd ’07 / CD251 / 47

6

OO ABAPServiceWeb Dynpro ABAP

SAP AG 2007, SAP TechEd ’07 / CD251 / 49

ABAP ,–

(SOA)

ABAP (ListProcessing, Classic Dynpro, direct SQL access) .

SAP AG 2007, SAP TechEd ’07 / CD251 / 50

SAP Public Web:SAP Developer Network (SDN):https://www.sdn.sap.com/irj/sdn/abap

Related Workshops/Lectures at SAP TechEd 2007CD200, News in ABAP – Concepts to Further Increase the Power of

ABAP Development, 2 hour lectureCD214, Web Dynpro for ABAP Overview, 2 hour lectureCD253, ABAP Workbench Power Usage, 2 hour hands-onCD255, Developing User Interfaces with Web Dynpro for ABAP, 4

hour hands-onCD350, Advanced ABAP Programming, 4 hour hands-on

Related SAP Education and Certification Opportunitieshttp://www.sap.com/services/education/catalog/netweaver/abap.epx

SAP AG 2007, SAP TechEd ’07 / CD251 / 51

SDN Subscriptions Program

The SDN Subscriptions Program introduces the SAP NetWeaver,Development Subscription for individual developers. Available for purchasein Germany and the United States.

Subscription gives you one year access to …SAP NetWeaver platform software, patches, and updatesDevelopment license for SAP NetWeaver to evaluate, develop and testStandard software maintenanceOnline sessions from SAP TechEdAccess to SAP Enterprise Services Workplace for testingPremium presence in forums

Purchase the SAP NetWeaver, Development Subscription todayat the SAP Community Clubhouse, or online athttps://www.sdn.sap.com/irj/sdn/devsubVisit us at the Community Clubhouse, show us you are asubscriber, and get a gift!

SAP AG 2007, SAP TechEd ’07 / CD251 / 52

– –

Q & A

SAP AG 2007, SAP TechEd ’07 / CD251 / 53

.

!

SAP AG 2007, SAP TechEd ’07 / CD251 / 54

SAP Certifications Related to SAP TechEd Topics

Topic Exam Level Certificate Title Solution BasisABAP Professional SAP Certified Development Professional - ABAP System Interfaces with

SAP NetWeaver 7.0SAP NetWeaver 7.0

ABAP Professional SAP Certified Development Professional - ABAP System Interfaces withSAP NetWeaver 7.0

SAP NetWeaver 7.0

ABAP Associate SAP Certified Development Consultant – ABAP Dev with NetWeaver 2004 SAP NetWeaver 2004

ABAP Associate SAP Certified Development Associate – ABAP with SAP NetWeaver 7.0 SAP NetWeaver 7.0

ADM Professional SAP Certified Technology Professional – NetWeaver 7.0 Platform SAP NetWeaver 7.0

ADM Professional SAP Certified Technology Professional – NetWeaver 7.0 Security SAP NetWeaver 7.0

ADM Associate SAP Certified Technology Associate – SAP Web AS Platform with Oracle SAP NetWeaver 2004

ADM Associate SAP Certified Technology Consultant – NetWeaver 7.0 SysAd with Oracle SAP NetWeaver 7.0

BI Associate Solution Consultant SAP NetWeaver ’04s – SAP BI SAP NetWeaver 7.0

E2E Associate SAP Certified E2E Application Management Expert – Change Control Mgmt SAP NetWeaver 7.0

E2E Associate SAP Certified E2E Application Management Expert – Root Cause Analysis SAP NetWeaver 7.0

Java Professional SAP Certified Development Professional – JAVA with NetWeaver 7.0 SAP NetWeaver 7.0

Java Associate SAP Certified Development Associate – JAVA with NetWeaver 7.0 SAP NetWeaver 7.0

MDM Associate SAP Certified Application Associate – Master Data Management 5.5 (SP04) SAP NetWeaver 2004

SM Associate Solution Consultant SAP Solution Manager 4.0 – Implementation Tools SAP NetWeaver 7.0

SOA Associate SAP Certified Associate Enterprise Architect Enterprise SOA

XI Associate Certification Development Consultant SAP NetWeaver 2004s SAP NetWeaver 7.0

For a complete listing of certifications, please go towww.sap.com/services/education/certification

SAP AG 2007, SAP TechEd ’07 / CD251 / 55

Copyright 2007 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 bechanged 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, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, System i, System i5, System p,System p5, System x, System z, System z9, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, POWER5+, OpenPower and PowerPC aretrademarks or registered trademarks of IBM Corporation.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

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.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registeredtrademarks of SAP AG in Germany and in several other countries all over the world. 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 the express priorwritten 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/or development. Please note that thisdocument 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 other itemscontained 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 of merchantability,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 these materials. Thislimitation 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 links contained inthese materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.