+ All Categories
Home > Documents > BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material)...

BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material)...

Date post: 08-Jan-2018
Category:
Upload: valerie-nichols
View: 217 times
Download: 0 times
Share this document with a friend
Description:
BAPIs 7-Bapis.2 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to other employees of PricewaterhouseCoopers. Visual Basic Java Internet Intranet Visual J++ External ApplicationsDB Server R/3 D a t a App Server Business Object Repository Business Object BAPIsBAPIs The Business Application Programming Interfaces
16
BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to other employees of PricewaterhouseCoopers. The Fun Functionality of
Transcript
Page 1: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

The Fun Functionality of

Page 2: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.2 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Visual Basic

Java

InternetIntranet

Visual J++

External ApplicationsDB Server

R/3Data

App Server

Business ObjectRepository

Business ObjectBAPIs

The Business Application Programming Interfaces

Page 3: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.3 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

It's an RFC-enabledfunction module!

It's a method ofa business object!

What is a BAPI?

Page 4: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.4 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

What Makes a BAPI Special?

• RFC-enabled

• Parameters must be Data Dictionary types

• Called synchronously

• No exceptions

Page 5: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.5 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Business Objects

Application Area 2

Customer Object 3a1 (subtype)SAP Object 3a (subtype)

SAP Object 3 (supertype)Customer Object 2SAP Object 1

Page 6: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.6 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Object Type Definition

Interfaces

Key fields

Attributes

Methods

Events

Object type (supertype/parent)

Basic data

Page 7: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.8 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

• SAP application– Invoice– Requisition– Delivery note– Material– Customer master

• Non-SAP application– Archived documents– EDI messages (IDocs)

• PC documents– Word processing documents– Spreadsheets

Examples of Object Types

SAP

documents

Master Master datadata

Page 8: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.9 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Business Object Repository

Page 9: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.10 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Business Object Display

Page 10: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.11 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

The BAPI Explorer

Page 11: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.13 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

"Standard" BAPIs

• GetList

• GetDetail

• CreateFromData

Page 12: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.14 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Calling a BAPIFrom within the R/3 system

report zwes_test_bapi.

parameters order like bapivbeln-vbeln.data: return like bapireturn, statusinfo like standard table of bapisdstat initial size 0.

call function 'BAPI_SALESORDER_GETSTATUS' exporting salesdocument = order importing return = return tables statusinfo = statusinfo.

if return-type = 'S'.* Process the returned informationelse. write: 'Error:', return-message.endif.

Must check the RETURNparameter for errors!

Page 13: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.15 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

report zwes_test_bapi.

parameters order like bapivbeln-vbeln.data: return like bapireturn, statusinfo like standard table of bapisdstat initial size 0.

call function 'BAPI_SALESORDER_GETSTATUS' destination 'HP2' exporting salesdocument = order importing return = return tables statusinfo = statusinfo.

if return-type = 'S'.* Process the returned informationelse. write: 'Error:', return-message.endif.

Calling a BAPIFrom a different R/3 system

DESTINATION indicatesa different R/3 system

Page 14: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.16 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Calling a BAPIFrom a non-R/3 system

Dim CompanyCode As Object

Set CompanyCode = BapiControl.GetSAPObject(ObjectName, _ "1234", "COMP_CODE"))

CompanyCode.ZCCGetDetail Return:=Result, CompanyList:=Detail

Page 15: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.17 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

BAPIs and Transactional Integrity

Logon to R/3 system

Call BAPI_1

Call BAPI_2

Call BAPI_TRANSACTION_COMMIT

Logoff R/3 system

Databaseupdates

updates

COMMIT WORK

Page 16: BAPIs 7-Bapis.1 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease.

BAPIs7-Bapis.18 This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only. You may not rent, lease or distribute the Material to clients or other third parties, but you may transfer the Material to

other employees of PricewaterhouseCoopers.

Business Component 2Business Component 1

local?

BAPI invocation by ALE

no

yes

BAPI BAPI error?

yes

no

BAPI to IDocconversion

ALEout-

bound

ALE Links

IDoc

ALE Error Handling

ALEinbound

IDoc to BAPIconversion

Query distribution model

Integration of BAPIs and ALE


Recommended