7-bapis
TRANSCRIPT
-
8/13/2019 7-Bapis
1/16
-
8/13/2019 7-Bapis
2/16
BAPIs7-Bapis.2This 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 toother employees of PricewaterhouseCoopers.
VisualBasic
Java
InternetIntranet
Visual J++
External ApplicationsDB Server
R/3D
a
t
a
App Server
Business Object
Repository
Business Object
B
A
P
I
s
The Business App l icat ion
Prog ramm ing Inter faces
-
8/13/2019 7-Bapis
3/16
-
8/13/2019 7-Bapis
4/16
BAPIs7-Bapis.4This 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 toother employees of PricewaterhouseCoopers.
What Makes a BAPI Special?
RFC-enabled
Parameters must be Data Dictionary types
Called synchronously
No exceptions
-
8/13/2019 7-Bapis
5/16
BAPIs7-Bapis.5This 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 toother employees of PricewaterhouseCoopers.
Bus iness Objects
Application Area 2
Customer Object 3a1 subtype)SAP Object 3a subtype)
SAP Object 3 supertype)Customer Object 2SAP Object 1
-
8/13/2019 7-Bapis
6/16
-
8/13/2019 7-Bapis
7/16BAPIs7-Bapis.8This 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 toother 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
Master
data
-
8/13/2019 7-Bapis
8/16BAPIs7-Bapis.9This 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 toother employees of PricewaterhouseCoopers.
Bus iness Object Reposi tory
-
8/13/2019 7-Bapis
9/16BAPIs7-Bapis.10This 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 toother employees of PricewaterhouseCoopers.
Bus iness Object Disp lay
-
8/13/2019 7-Bapis
10/16BAPIs7-Bapis.11This 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 toother employees of PricewaterhouseCoopers.
The BAPI Exp lorer
-
8/13/2019 7-Bapis
11/16BAPIs7-Bapis.13This 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 toother employees of PricewaterhouseCoopers.
" Standard" BAPIs
GetList
GetDetail
CreateFromData
-
8/13/2019 7-Bapis
12/16BAPIs7-Bapis.14This 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 toother employees of PricewaterhouseCoopers.
Call ing a BAPIFrom w ith in 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.
Must check the RETURN
parameter for errors!
-
8/13/2019 7-Bapis
13/16BAPIs7-Bapis.15This 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 toother 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 information
else.
write: 'Error:', return-message.
endif.
Call ing a BAPIFrom a dif ferent R/3 sys tem
DESTINATION indicates
a different R/3 system
-
8/13/2019 7-Bapis
14/16BAPIs7-Bapis.16This 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 toother employees of PricewaterhouseCoopers.
Call ing 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
-
8/13/2019 7-Bapis
15/16
-
8/13/2019 7-Bapis
16/16BAPIs7 B i 18This is PricewaterhouseCoopers PROPRIETARY MATERIAL (hereafter, the Material) intended for internal use only.
Y t t l di t ib t th M t i l t li t th thi d ti b t t f th M t i l t
Business Component 2Business Component 1
local?
BAPI invocation by ALE
no
yes
BAPIBAPI error?
yes
no
BAPI to IDoc
conversion
ALEout-
bound
ALE Links
IDoc
ALE Error Handling
ALE
inbound
IDoc to BAPI
conversion
Query distribution model
Integrat ion of BAPIs and ALE