Date post: | 08-Jan-2018 |
Category: |
Documents |
Upload: | valerie-nichols |
View: | 217 times |
Download: | 0 times |
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
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
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?
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
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
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
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
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
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
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
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
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!
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
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
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
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