Академический Документы
Профессиональный Документы
Культура Документы
Dec-2008
Objectives
The participants will be able to :
Recall the basic techniques of using BAPI.
Learn process flow of mass data transfer using BAPIs in the DX Workbench.
Dec-2008
Extract
Map
Clean
Load
We will discuss
use of BAPI in
detail in this
chapter
Check
Dec-2008
Extract
Map
Clean
Load
We will discuss
use of BAPI in
detail in this
chapter
Check
Dec-2008
BAPI : Overview
Business Application Programming Interfaces (BAPIs) are standardized
programming interfaces that provide external access to SAP business processes
and data.
BAPIs are defined in the Business Object Repository (BOR) as methods of SAP
business objects or SAP interface types.
BAPIs enable an object-oriented access to SAP application components.
BAPIs are implemented and stored as RFC-enabled function modules in the
Function Builder of the ABAP Workbench.
Dec-2008
BAPIs as Interfaces
When using BAPIs as interfaces to the SAP System, the Workbench uses the
same technology as used with permanent data transfer via ALE between SAP
Systems or between SAP Systems and non-SAP systems.
The data to be loaded must be in IDoc format. The IDoc numbers in the file must
be unique.
When the task is started, the IDocs from the specified input files are read and
transferred to the BAPI.
Dec-2008
Dec-2008
Writing a report
The report is responsible for writing existing R/3 objects in IDoc format to a file. This report is
required, since it is the only way for users to establish the connection between the online
transaction, the BAPI, and the IDoc.
Registering a BAPI
This step is required if the BAPI will be used in the DX Workbench. To register the
BAPI, including its corresponding report, use transaction BDLR.
Dec-2008
Generate default
Idocs for a BAPI
without application
data
Generate Idocs for a
BAPI whose
parameters have
been filled with data
from an existing R/3
object
DX Workbench
Dec-2008
Mapping
LSMW/External
mapping tool
Transfer file
imported to
target system
10
Dec-2008
Transfer file
received in the
target system
11
Dec-2008
If the BAPI
call
fails,error
message
is returned
in the
BAPI
Return
parameter
= t_headdata
valuationdata = t_valuationdata
valuationdatax = t_valuationdatax
IMPORTING
return
= w_return
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE
= 2 MESSAGE MSG_TEXT.
.. Handle w_return appropriately here.
2 special system
exceptions with
addition
DESTINATION
ENDLOOP.
12
Dec-2008
Demonstration
Using BAPI function modules instead of Call Transaction to update Material data.
13
Dec-2008
Practice
Using BAPI function modules instead of Call Transaction to update Material data.
14
Dec-2008
Summary
Mass Data Transfer technically involves 5 steps :
Analysis & Cleanup of data in Non SAP system,
Extraction of data from the non-SAP system,
Mapping the data in SAP format,
Transferring the data to the SAP System,
Checking the data for consistency in R/3.
The batch input procedure CANNOT be used for the new Enjoy transactions
because the batch input recorder does not support the controls used in these
transactions. Hence use of BAPI is becoming increasingly important.
Data Interfacing through BAPI is performance efficient.
15
Dec-2008
Questions
What is BAPI ?
Why batch input procedure cannot be used with enjoy SAP transactions?
What are the steps need to be performed to update data in SAP using BAPI ?
16
Dec-2008