Business Objects products in this release may contain redistributions of software
licensed from third-party contributors. Some of these individual components may
also be available under alternative licenses. A partial listing of third-party
contributors that have requested or permitted acknowledgments, as well as required
notices, can be found at: http://www.businessobjects.com/thirdparty
2008-08-26
Contents
Introduction11Chapter 1
SAP Interfaces...........................................................................................12
Data Services in the SAP ERP and R/3 Environment15Chapter 2
Using Data Services in SAP ERP and R/3 environments.........................16
SAP ERP and R/3 ABAP interface connectivity........................................20
SAP ERP and R/3 IDoc interface connectivity..........................................22
Installing Data Services functions on SAP ERP and R/3..........................23
SAP ERP and R/3 security levels..............................................................32
SAP ERP and R/3 user authorizations......................................................34
ERP and R/3 data flow processing using ABAP..................................17
Batch and real-time processing using IDocs........................................17
Working with functions.........................................................................19
Data transport requirements.................................................................21
SAP ERP and R/3 permissions............................................................21
This guide contains information about how to use Data Services with SAP
ERP and R/3. It is organized to mirror the information sequence in the DataServices Designer Guide, and the final section is designed to mirror the
information in the Data Services Reference Guide.
SAP Interfaces
Data Services has four SAP interfaces:
•SAP ERP and R/3 ABAP
•SAP ERP and R/3 BAPI
•SAP ERP and R/3 IDoc
•SAP BI/BW
Each interface is a license-controlled feature that can be purchased
separately and installed with Data Services. When you purchase the SAP
ERP and R/3 ABAP interface, you can use an additional type of data flow
called an ERP and R/3 data flow.
The following table lists SAP interfaces, their intended functionality, and the
types of data flows you can use with each.
Licensed controlled feature
SAP ERP and R/3 ABAP
12Data Services Supplement for SAP
How is this feature designed to be used?
Use an SAP ERP and R/3
datastore to import metadata
(tables, files, hierarchies,
and functions) to create
batch jobs to extract data
from SAP ERP and R/3
sources.
See SAP ERP and R/3
ABAP Interface options on
page 188 for a list of options
added to the Designer when
this feature is installed.
Which data flow should be
used?
ERP and R/3 data flow
Introduction
SAP Interfaces
1
Licensed controlled feature
SAP ERP and R/3 BAPI
SAP ERP and R/3 IDoc
How is this feature designed to be used?
Use an SAP ERP and R/3
datastore to import BAPI
function metadata to be included in batch or real-time
jobs. BAPI functions can be
used to update SAP ERP
and R/3 and SAP BI/BW
sources.
Use an SAP ERP and R/3
datastore to import IDoc
metadata which can be used
to create the following for
batch and real-time jobs:
For batch jobs
•
IDoc file sources
•
IDoc message sources
•
IDoc message targets
Which data flow should be
used?
data flow
data flow
SAP BI/BW
For real-time* jobs
•
IDoc file sources
•
IDoc message sources
•
IDoc file targets
•
IDoc message targets
Use an SAP BI/BW datastore to import BW metadata
to create batch jobs that can
be run from SAP BI/BW or
Data Services to update SAP
BI/BW targets.
Data Services Supplement for SAP13
data flow (batch jobs only)
Introduction
SAP Interfaces
1
14Data Services Supplement for SAP
Data Services in the SAP
ERP and R/3 Environment
2
Data Services in the SAP ERP and R/3 Environment
2
Using Data Services in SAP ERP and R/3 environments
This section covers the following SAP ERP and R/3 interfaces:
•SAP ERP and R/3 ABAP
•SAP ERP and R/3 BAPI
•SAP ERP and R/3 IDoc
These interfaces must use a Data Services SAP ERP and R/3 datastore
connection.
Related Topics
•SAP BI/BW datastores on page 57
•Using Data Services in SAP ERP and R/3 environments on page 16
•SAP ERP and R/3 ABAP interface connectivity on page 20
•SAP ERP and R/3 IDoc interface connectivity on page 22
•Installing Data Services functions on SAP ERP and R/3 on page 23
•SAP ERP and R/3 security levels on page 32
•SAP ERP and R/3 user authorizations on page 34
Using Data Services in SAP ERP and R/3
environments
Data Services provides three basic methods for moving data into and out of
SAP ERP and R/3:
•ABAP interface — Reads data from SAP ERP and R/3, using ERP and
R/3 data flows, and primarily supports tables (transparent, pool and
cluster).
•RFC/BAPI interface — Loads data to SAP ERP and R/3 (since a function
is handled as a nested column within a query, it can return SAP ERP and
R/3 tables, structures or scalar parameters, which can be loaded into any
target) and allows direct access to ERP and R/3 tables outside of the
ERP and R/3 data flows through RFC function calls.
•IDoc interface — Reads from and loads data to SAP ERP and R/3.
You can search an SAP ERP and R/3 application server for tables, IDocs,
functions, and hierarchies. You can import metadata for them into Data
Services using an SAP ERP and R/3 datastore connection.
16Data Services Supplement for SAP
Data Services in the SAP ERP and R/3 Environment
Using Data Services in SAP ERP and R/3 environments
Once metadata is imported, Data Services provides:
•ERP and R/3 data flows — Move table and hierarchy data between SAP
ERP and R/3 and Data Services using ABAP/4 (SAP' s proprietary
fourth-generation language).
•Data flows in batch jobs — Can contain ERP and R/3 data flows (as
sources), tables, or IDocs (as sources and targets), and SAP ERP and
R/3 functions as needed.
•Data flows in real-time jobs — Move table and IDoc data (using SAP ERP
and R/3 functions as needed) between SAP ERP and R/3 and Data
Services.
ERP and R/3 data flow processing using ABAP
In Data Services, ERP and R/3 data flows extract SAP ERP or R/3 data from
tables and follow this general execution process:
•Data Services generates the ABAP code
•Data Services connects to the SAP ERP or R/3 application server through
remote function call (RFC).
2
•The SAP ERP or R/3 application server executes the ABAP code.
•The ABAP program results are generated and communicated back to
Data Services, which then loads the target data cache.
Batch and real-time processing using IDocs
An SAP ERP or R/3 IDoc is an intermediate document that can be used to
send and receive business documents between ERP and R/3 application
servers and other servers.
SAP ERP and R/3 offer numerous IDocs that describe different business
documents. The data in an IDoc supports a particular transaction. An IDoc
can contain data from multiple tables and can contain hierarchical data.
Data Services processes outbound and inbound IDocs from and to the SAP
ERP or R/3 application server. SAP outbound IDocs are called, IDoc sources
in Data Services. SAP inbound IDocs are called IDoc targets. As with other
Data Services Supplement for SAP17
Data Services in the SAP ERP and R/3 Environment
2
Using Data Services in SAP ERP and R/3 environments
target objects in Data Services, IDoc targets can be used primarily to update
a data cache and to update a back-office system, such as SAP ERP or R/3,
on a conditional basis.
The method of processing IDocs depends upon the type of job in which you
define the IDoc and whether the IDoc is handled as a message or a file.
In Data Services, an IDoc can be used as a source or target object and
processed as a message or as a file. The only limitation is that batch jobs
cannot process IDoc messages as sources.
IDoc messageIDoc file
NoYesBatch job source?
YesYesBatch job target?
YesYesReal-time job source?
For example, Data Services real-time processes IDoc source messages
(outbound IDocs from the SAP ERP or R/3 application server) as follows:
•Your SAP ERP or R/3 system administrator includes the Access Server
as a TCP, remote function call (RFC) destination.
•The SAP ERP or R/3 application server (client) publishes an IDoc after
processing a transaction. For example, when an operator enters a sales
order.
•The Access Server receives the published IDoc and dispatches it to an
available service provider for processing.
•If no service providers are available for this IDoc type, the Access Server
queues the request and dispatches it when a service provider becomes
available.
18Data Services Supplement for SAP
YesYesReal-time job target?
Data Services in the SAP ERP and R/3 Environment
Using Data Services in SAP ERP and R/3 environments
•When available, a service provider processes the IDoc. The IDoc data
can trigger queries to the SAP ERP or R/3 application server or cached
data as required to enrich the IDoc data. The real-time job flattens and
loads the required information into a data cache and/or an IDoc message
target as specified in its data flow designs.
•The service provider returns a response to the Access Server indicating
the successful IDoc processing.
•The Access Server receives the response and sends an acknowledgment
to the SAP ERP or R/3 application server so the IDoc can be marked as
processed.
Related Topics
•SAP ERP and R/3 IDoc interface connectivity on page 22
•Browsing, searching and importing metadata from SAP ERP or R/3 on
page 52
•IDoc file on page 203
•IDoc message on page 205
•Source on page 224
•Target on page 235
2
Working with functions
SAP ERP and R/3 remote function calls (RFCs) can be used within queries
created in data flows. Data Services supports remote function calls. In
addition, Data Services offers the SAP ERP and R/3 BAPI interface to support
the use of remote function calls designed for business transactions (BAPIs).
If you are using a license that includes the BAPI interface, you can use an
SAP ERP or R/3 datastore to import BAPI function metadata. See SAP ERP
and R/3 RFC and BAPI function calls on page 246 for more information.
SAP normal functions cannot be used in data flows. Instead, Data Services
supports the use of normal functions and RFC functions in ERP or R/3 data
flows with the following restrictions:
•The function can have only scalar, multiple input parameters. The function
cannot have structure input or table parameters.
•The output parameter must be a single scalar parameter.
Data Services Supplement for SAP19
Data Services in the SAP ERP and R/3 Environment
2
SAP ERP and R/3 ABAP interface connectivity
In the following SAP normal function, valid input and output parameters
are shown.
RP_PERIOD_SALARY_FROM_ANSAL
Input parameters:
F_PERNR LIKE P0008-PERNR
F_ANSAL LIKE P0008-ANSAL
F_DATE LIKE Q0008-IBBEG
Output parameters:
F_PERIOD_SALARY LIKE P0008-BET01
F_PERIODS_OUT TYPE P
Data Services cannot use normal functions in data flows because an SAP
ERP or R/3 normal function is not an RFC function.
However, you can write a wrapper for a normal function, which can change
the function to RFC enabled. In this case, a normal function would be
supported in data flows.
SAP ERP and R/3 ABAP interface
connectivity
Use the following information to install and configure Data Services when
working in an SAP ERP or R/3 environment:
•
Data transport requirements on page 21
•
SAP ERP and R/3 permissions on page 21
•
Security profile on page 21
•
Server connectivity—host names on page 22
20Data Services Supplement for SAP
Data transport requirements
When you configure ERP or R/3 datastores in Data Services, you must
specify the data transport method. This method defines how data that is
extracted from the SAP ERP or R/3 server becomes available to the Data
Services server (the computer on which the Data Services Job Server runs).
The four options are:
•Custom Transfer — SAP ERP or R/3 server loads the Working Directory
on SAP server with the transport file. The file is read by a third-party file
transfer (custom transfer) program and loaded to the Local directory.
•Direct download — SAP ERP or R/3 server transfers the data directly to
the Local directory.
•FTP — SAP ERP or R/3 server loads the Working Directory on SAP
server with the transport file. The file is read using the FTP relative path
to the SAP working directory and written to the Local directory.
•Shared directory — SAP ERP or R/3 server loads the Working Directory
on SAP server with the transport file. The file is read using the Data
Services Path to the shared directory.
Data Services in the SAP ERP and R/3 Environment
SAP ERP and R/3 ABAP interface connectivity
2
See Data transport methods on page 146 for more information.
SAP ERP and R/3 permissions
Data Services uses different execution methods to execute generated ABAP
in design, development, test, and production environments. Each method
has different security requirements. See SAP ERP and R/3 security levels
on page 32, for detailed information and planning worksheets. Also see SAP
ERP and R/3 security levels on page 32 if you have security requirements
for extracting from SAP BW.
Security profile
ABAP programs generated by Data Services can verify the permissions of
the user executing the program. If a security profile is provided, the generated
ABAP verifies that the user executing the program has the permissions
Data Services Supplement for SAP21
Data Services in the SAP ERP and R/3 Environment
2
SAP ERP and R/3 IDoc interface connectivity
specified by that profile. This security profile should be transported to the
production system prior to running Data Services against it.
Server connectivity—host names
The computer on which the Data Services Designer is installed should be
able to access the computer on which the Data Services Job Server is
installed. Similarly, the Data Services Job Server computer should be able
to access the Data Services Designer computer by name. Use the ping
command to verify that both can access each other by name, not IP address.
SAP ERP and R/3 IDoc interface
connectivity
Your SAP ERP or R/3 system should be configured to send and receive
IDocs from Data Services. Refer to the SAP ERP or R/3 implementation
guide (transaction SPRO) and other SAP ERP or R/3 documentation for
more information.
SAP versions 4.0 and higher are supported in Data Services.
Extended/reduced IDoc Types are supported from SAP versions 4.0A and
higher.
IDoc message sources (SAP ERP or R/3 outbound IDocs) must be configured
in the Data Services Designer and in the RFC client branch of the Data
Services Administrator.
However, configuring RFC clients for IDoc message targets (SAP ERP or
R/3 inbound IDocs) is unnecessary. The partner number, partner type,
message type, and IDoc type settings you save in the Designer's IDoc Target
Editors are the ones needed to send messages to SAP ERP or R/3 via
transactional remote function calls (TRFCs).
The remainder of this section covers Data Services functions, and SAP ERP
or R/3 security levels and user authorizations. These sections all apply to
the ABAP, BAPI and IDoc interfaces.
Related Topics
•Source on page 224
22Data Services Supplement for SAP
Data Services in the SAP ERP and R/3 Environment
Installing Data Services functions on SAP ERP and R/3
•To import IDoc metadata using the search option on page 54
Installing Data Services functions on SAP
ERP and R/3
The default Data Services installation process places two Data Services
function module files for SAP ERP or R/3 in the Data
Services\Admin\R3_Functions\transport directory. These files are later
loaded to SAP ERP or R/3 using the SAP Correction and Transport System
(CTS). Using CTS allows for version control as Data Services functions are
improved. There are two different upload files used for installing the Data
Services functions that support the use of the ABAP, BAPI and IDoc
interfaces. They are associated with different SAP ERP or R/3 versions.
See the readme.txt file under the Data
Services/admin/R3_Functions/transport directory to get the name of
the latest transport file used to install or upgrade SAP ERP or R/3 and SAP
BI/BW functions.
You will need some or all of these functions in normal operation of Data
Services in an SAP ERP or R/3 environment. These functions perform such
operations as dynamically loading and executing ABAP programs from Data
Services, efficiently running pre-loaded ABAP programs, allowing for
seamless metadata browsing and import from SAP ERP or R/3, and reporting
the status of running jobs.
2
Functions and the CTS system
If you are installing Data Services for the first time, or updating to a new
release, the Data Services functions must be added to the SAP ERP or R/3
environment. We recommend using the CTS system.
The following instructions work for updates and for new installations. These
instructions anticipate that the user installing the functions is familiar with
CTS and has the authorization to perform the transport.
Data Services Supplement for SAP23
Data Services in the SAP ERP and R/3 Environment
2
Installing Data Services functions on SAP ERP and R/3
To manually upload Data Services functions to SAP
ERP or R/3
If you are unable to install Data Services-supplied functions using the CTS,
you can manually upload them.
To manually upload Data Services functions to SAP ERP or R/3:
1. Create the function group ZAW0.
Note:
If you use SAP Web Application Server 6.10 or later, create the function
group ZAW0 with the Unicode checks active flag checked.
The system generates two include files: LZAW0TOP and LZAW0UXX.
2. Upload the file zaw0_global_data.txt (for SAP R/3 3.1) or
zaw0_global_data_40.txt (for SAP R/3 4.0 and above or SAP ERP) to
the global data module LZAW0TOP.
3. Create ZACTA and ZTAB2048 tables.
The ZACTA table is created as follows:
Table name: ZACTA Transparent table
Short text: Data Services Table
Key data elementField name
24Data Services Supplement for SAP
Data
type
Length
120CHARX ZAW_NAMENAME
Check table
Acta
Name
Acta Row10INT4ZAW_ROWTOTAL_ROW
Acta Date8DATSZAW_DATEUPDATE_DAT
Short text
Data Element for
Table ZACTA
Data Element for
Table ZACTA
Data Element for
Table ZACTA
Data Services in the SAP ERP and R/3 Environment
Installing Data Services functions on SAP ERP and R/3
The structure ZTAB2048 is created as follows:
Structure name: ZTAB2048
Short text: Table with a 2048 byte field
4. Manually create the desired functions in SAP ERP or R/3.
Data Services function modules
Data Services function modules include the following:
2
Short textLengthData TypeType nameField name
Data Element for ZTAB20482048CHARZAWCH2KWA
Z_AW_AUTH_IMPORT
Z_AW_READ_TEXTZ_AW_ABAP_RUN
Z_AW_RFC_ABAP_IN
STALL_AND_RUN
Z_AW_RFC_READ_TABLEZ_AW_BW_QUERY
Z_AW_SYNTAX_CHECKZ_AW_COLUMN_SEARCH
Z_AW_TABLE_IMPORTZ_AW_FILE_ROWCOUNT
Z_AW_TABLE_SEARCHZ_AW_FUNCTION_GET
Z_AW_TREE_IMPORTZ_AW_IDOC_IMPORT
Data Services Supplement for SAP25
Data Services in the SAP ERP and R/3 Environment
2
Installing Data Services functions on SAP ERP and R/3
Z_AW_TREE_IMPORT40Z_AW_IDOC_SEARCH
Z_AW_TREE_NAVIGATEZ_AW_JOB_LOG
Z_AW_TREE_NAVIGATE40Z_AW_JOB_RUN
Z_AW_TREE_SEARCHZ_AW_JOB_STATUS
Z_AW_TREE_SEARCH40Z_AW_MODEL_NAVIGATE
The appropriate Data Services function modules for your SAP version are
installed.
Packaging of Z_AW_RFC_ABAP_INSTALL_AND_RUN
For SAP ERP and R/3, Data Services provides a function called
Z_AW_RFC_ABAP_INSTALL_AND_RUN in its transport file. This function is used
in the generate_and_execute mode (set in an SAP ERP or R/3 datastore)
to generate ABAP code on Data Services and execute it on an SAP server.
It allows dynamic program generation and is particularly useful in a
development environment. However, it also provides a level of write access
to an SAP server that may not be acceptable to your security environment.
If this is a concern, remove this function from your SAP ERP or R/3 server.
For more information about this function's parameters see, Interface
information and source code table on page 27.
Sample Data Services function module
Following is the Data Services function module Z_AW_SYNTAX_CHECK:
Example:
FUNCTION Z_AW_SYNTAX_CHECK.
*"-------------------------------------------*"*"Local interface:
26Data Services Supplement for SAP
Data Services in the SAP ERP and R/3 Environment
Installing Data Services functions on SAP ERP and R/3
SYNTAX-CHECK FOR PROGRAM MESSAGE MESS LINE LIN WORD WRD.
IF MESS <> SPACE.
ERRORMESSAGE = MESS.
EXIT.
ENDIF.
ENDFUNCTION.
Interface information and source code table
The following table lists information about the Data Services functions for
SAP ERP and R/3, their interfaces, and function source code. Descriptions
include these characters to indicate parameter types:
•I - Import Parameter
2
•E - Export Parameter
•T - Table Parameter
Function name
Z_AW_ABAP_RUN
Parameter type / Parameter name / Reference field Exception
Z_AW_ABAP_RUN executes generated or
preloaded ABAP programs.
I / PROGRAMNAME / SY-REPID
E / ERRORMESSAGE /SY-MSGV1
T / SELTAB /RSPARAMS
LOG /LISTZEILE
Exception(s):
PROGRAM_DOES_NOT_EXIST
Data Services Supplement for SAP27
Data Services in the SAP ERP and R/3 Environment
2
Installing Data Services functions on SAP ERP and R/3
Function name
Z_AW_COLUMN_SEARCH
Z_AW_IDOC_IMPORT
Parameter type / Parameter name / Reference field Exception
Z_AW_COLUMN_SEARCH is currently not
used and is reserved for future implementation.
I / P_TNAME / DD03VT-DDTEXT
I / P_CNAME / DD03VT-DDTEXT
I / P_CDESC / DD03VT-DDTEXT
I / P_LANG / DD03VT-DDLANGUAGE
I / P_MAXROWS / SY-TABIX
T / P_RETURN / LISTZEILE
Z_AW_IDOC_IMPORT imports IDocs from
SAP ERP and R/3.
I / IDOCTYP / EDISYN-DOCTYP
I / LANG /EDISEGT-LANGUA
T / SEGMENTS / LISTZEILE
Exception(s):
IDOC_TYPE_DOESNOT_EXIST
28Data Services Supplement for SAP
Data Services in the SAP ERP and R/3 Environment
Installing Data Services functions on SAP ERP and R/3
2
Function name
Z_AW_JOB_RUN
Parameter type / Parameter name / Reference field Exception
Z_AW_JOB_RUN submits ABAP jobs for
background execution.
I / PROGRAMNAME / SY-REPID
I / JOBGROUP /TBTCO-JOBGROUP
I / JOBNAME / TBTCO-JOBNAME
I / HOST / TBTCO-BTCSYSREAX
I / JOBCLASS / TBTCO-JOBCLASS
E / JOBCOUNT /TBTCO-JOBCOUNT
E / JOB_RELEASED / BTCH0000-CHAR1
T / SELTAB /RSPARAMS
Exception(s):
Installing Data Services functions on SAP ERP and R/3
Function name
Z_AW_READ_TEXT
Parameter type / Parameter name / Reference field Exception
Z_AW_READ_TEXT allows extraction of
text from SAP ERP and R/3. This function
is an RFC-enabled version of the SAP ERP
or R/3 function module, READ_TEXT.
ID — Text ID invalid LANGUAGE — Invalid
language NAME — Invalid text name
NOT_FOUND — Text not found OBJECT
— Invalid text object REFERENCE_CHECK
— Reference chain interrupted
WRONG_ACCESS_TO_ARCHIVE —
Archive handle invalid
Z_AW_SYNTAX_CHECK
30Data Services Supplement for SAP
Z_AW_SYNTAX_CHECK performs a syntax
check for generated or preloaded ABAP.
This function is required for the "execute
preloaded" access method you configure in
an ERP or R/3 datastore.
E / ERRORMESSAGE / SY-MSGV1
T / PROGRAM /PROGTAB
Loading...
+ 236 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.