sap netweaver programming dylan liu 劉兆宏 sap netweaver technical consultant email&msn:...

56
SAP NetWeaver Programming Dylan Liu 劉劉劉 SAP NetWeaver Technical Consultant Email&MSN: [email protected] Dec 11 2008

Upload: arleen-griffith

Post on 27-Dec-2015

258 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

SAP NetWeaver Programming

Dylan Liu 劉兆宏

SAP NetWeaver Technical Consultant

Email&MSN: [email protected] 11 2008

Page 2: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

SAP NetWeaver Programming

ABAP Performance & Tuning

Page 3: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Graph: Performance and Cause

Page 4: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Architecture of the ABAP Application Server

Page 5: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Access Times to the Sap Buffer and the Database

Page 6: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

The Dialog Step

Page 7: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Table Buffering: Types

Page 8: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Database architecture

Page 9: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

WAS and Database Architecture

Page 10: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Open SQL Keywords and Their Functions

Keyword Function

SELECT Read data from database tables.

INSERT Insert lines into database tables.

UPDATE Change the contents of lines in database tables.

MODIFYInsert lines into database tables or change the contents of existing lines.

DELETE Delete lines from database tables.

COMMIT WORK

Confirm all changes made in a database logical unit of work (LUW*).

ROLLBACK WORK

Undo all changes in a database LUW.

Page 11: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Rule 1: Keep the Hit List Small

Page 12: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Hit List Small

Page 13: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Hit List Small

Page 14: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Hit List Small: Effects

Page 15: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Rule 2: Minimize the Amount of Transferred Data

Page 16: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data

Page 17: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data

Page 18: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data

Page 19: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data

Page 20: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data

Page 21: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Minimize the Amount of Transferred Data: Effects

Page 22: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Rule 3: Keep the Number of Round Trips Small

Page 23: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small

Page 24: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small

Page 25: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small

Page 26: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small

Page 27: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small

Page 28: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Number of Round Trips Small: Effects

Page 29: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Rule 4: Keep the Cost of the Search Down

Page 30: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down

Page 31: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Reasonable Index Design

Page 32: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down

Page 33: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down

Page 34: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down

Page 35: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down

Page 36: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Keep the Cost of the Search Down: Effects

Page 37: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Rule 5: Remove the Load From the Database

Page 38: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database

Page 39: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database

Page 40: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Statements that Bypass the Table Buffer

Page 41: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database

Page 42: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database

Page 43: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database

Page 44: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Remove the Load From the Database: Effects

Page 45: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Summary

There is just one database server

Buffers and indices

Try to stick to the presented rules:Small hit listMinimize transfersMinimize number of round tripsNarrow your searchMinimize database load

Page 46: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

SAP NetWeaver Programming

NetWeaver Programming: Java

Page 47: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

NetWeaver Programming: Java

SAP NetWeaver provides complete support for Java technology:

• Before SAP NetWeaver 7.0: J2EE 1.4

• From SAP NetWeaver CE 7.1: Java EE 5

Page 48: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

What is JCo?

SAP's Java middleware, the SAP Java Connector (JCo) allows SAP customers and partners to easily build SAP-enabled components and applications in Java.

JCo supports both inbound (Java calls ABAP) and outbound (ABAP calls Java) calls in desktop and (web) server applications

Page 49: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Jco Examples (1)

Page 50: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Jco Examples (2)

Page 51: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Fundamentals of Web Dynpro

History: Why the name “Web Dynpro”? Dynpro = ”Dynamic program” Dynpro is SAP‘s legacy technology for interactive UIs (R/2, R/3)

programming in ABAP Dynpro‘s are rendered in SAP GUI application

Web Dynpro is to combine: “high interactivity” (= dynamic GUI) and “zero installation” (= ubiquitous GUI, e.g. web browser)

Page 52: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Fundamentals of Web Dynpro

• Minimize coding, maximize design• Separate layout and logic• Support arbitrary backend system• Run on multiple platforms• Support reuse of components• 508 accessibility support

Page 53: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Web Dynpro Java: Design Time

WYSIWYG Editor

Page 54: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Web Dynpro Java: Runtime

Page 55: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

SAP NetWeaver Programming

Advice on ABAP career

Page 56: SAP NetWeaver Programming Dylan Liu 劉兆宏 SAP NetWeaver Technical Consultant Email&MSN: dylan.sap@gmail.com Dec 11 2008

Questions?