Sunteți pe pagina 1din 16

The Fun Functionality of

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.

BAPIs

The Business Application Programming Interfaces


Business Object Repository Java
R/3 D a t a Business Object B A P I s Visual Basic

Internet Intranet
Visual J++

DB Server

App Server

External Applications

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.

BAPIs

What is a BAPI?
It's an RFC-enabled function module! It's a method of a business object!

7-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.

BAPIs

What Makes a BAPI Special?


RFC-enabled Parameters must be Data Dictionary types Called synchronously No exceptions

7-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.

BAPIs

Business Objects

Application Area 2 SAP Object 1 Customer Object 2 SAP Object 3 (supertype) SAP Object 3a (subtype) Customer Object 3a1 (subtype)

7-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.

BAPIs

Object Type Definition


Object type (supertype/parent)
Basic data

Interfaces Key fields Attributes Methods Events


7-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.

BAPIs

Examples of Object Types


SAP application Invoice Requisition Delivery note Material Customer master

Master data

Non-SAP application Archived documents EDI messages (IDocs)


PC documents Word processing documents Spreadsheets

7-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.

BAPIs

Business Object Repository

7-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.

BAPIs

Business Object Display

7-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.

BAPIs

The BAPI Explorer

7-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.

BAPIs

"Standard" BAPIs
GetList GetDetail CreateFromData

7-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.

BAPIs

Calling a BAPI
From 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 information else. write: 'Error:', return-message. endif.
7-Bapis.14

Must check the RETURN parameter for errors!

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

Calling a BAPI
From a different 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' destination 'HP2' exporting salesdocument = order importing return = return tables statusinfo = statusinfo.

DESTINATION indicates a different R/3 system

if return-type = 'S'. * Process the returned information else. write: 'Error:', return-message. endif.
7-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.

BAPIs

Calling a BAPI
From a non-R/3 system
Dim CompanyCode As Object
Set CompanyCode = BapiControl.GetSAPObject(ObjectName, _ "1234", "COMP_CODE")) CompanyCode.ZCCGetDetail Return:=Result, CompanyList:=Detail

7-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.

BAPIs

BAPIs and Transactional Integrity

Logon to R/3 system Call BAPI_1 Call BAPI_2 Call BAPI_TRANSACTION_COMMIT Logoff R/3 system Database

7-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

Integration of BAPIs and ALE


BAPI invocation by ALE

Query distribution model


ALE Error Handling
local? yes

no BAPI to IDoc

ALE outconversion bound

IDoc

ALE IDoc to BAPI inbound conversion


yes

BAPI

BAPI

error?

no
ALE Links

Business Component 1
7-Bapis.18

Business Component 2
BAPIs

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.

S-ar putea să vă placă și