Eway™ Adapter For Sap Ale User'S Guide: Sun Seebeyond
Eway™ Adapter For Sap Ale User'S Guide: Sun Seebeyond
Eway™ Adapter For Sap Ale User'S Guide: Sun Seebeyond
Release 5.1.3
Copyright © 2007 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved. Sun
Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this
document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents
listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in
other countries. U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc.
standard license agreement and applicable provisions of the FAR and its supplements. Use is subject to license terms. This
distribution may include materials developed by third parties. Sun, Sun Microsystems, the Sun logo, Java, Sun Java Composite
Application Platform Suite, SeeBeyond, eGate, eInsight, eVision, eTL, eXchange, eView, eIndex, eBAM, eWay, and JMS are
trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used
under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries.
Products bearing SPARC trademarks are based upon architecture developed by Sun Microsystems, Inc. UNIX is a registered
trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. This product is covered and
controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile,
chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited.
Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but
not limited to, the denied persons and specially designated nationals lists is strictly prohibited.
Copyright © 2007 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, Etats-Unis. Tous droits réservés.
Sun Microsystems, Inc. détient les droits de propriété intellectuels relatifs à la technologie incorporée dans le produit qui est
décrit dans ce document. En particulier, et ce sans limitation, ces droits de propriété intellectuels peuvent inclure un ou plus
des brevets américains listés à l'adresse http://www.sun.com/patents et un ou les brevets supplémentaires ou les
applications de brevet en attente aux Etats - Unis et dans les autres pays. L'utilisation est soumise aux termes de la Licence.
Cette distribution peut comprendre des composants développés par des tierces parties. Sun, Sun Microsystems, le logo Sun,
Java, Sun Java Composite Application Platform Suite, Sun, SeeBeyond, eGate, eInsight, eVision, eTL, eXchange, eView, eIndex,
eBAM et eWay sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans
d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées
de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés sur une
architecture développée par Sun Microsystems, Inc. UNIX est une marque déposée aux Etats-Unis et dans d'autres pays et
licenciée exclusivement par X/Open Company, Ltd. Ce produit est couvert à la législation américaine en matière de contrôle
des exportations et peut être soumis à la règlementation en vigueur dans d'autres pays dans le domaine des exportations et
importations. Les utilisations, ou utilisateurs finaux, pour des armes nucléaires, des missiles, des armes biologiques et
chimiques ou du nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou
réexportations vers les pays sous embargo américain, ou vers des entités figurant sur les listes d'exclusion d'exportation
américaines, y compris, mais de manière non exhaustive, la liste de personnes qui font objet d'un ordre de ne pas participer,
d'une façon directe ou indirecte, aux exportations des produits ou des services qui sont régis par la législation américaine en
matière de contrôle des exportations et la liste de ressortissants spécifiquement désignés, sont rigoureusement interdites.
eWay™ Adapter for SAP ALE User’s Guide 2 Sun Microsystems, Inc.
Contents
Contents
Chapter 1
Chapter 2
Chapter 3
eWay™ Adapter for SAP ALE User’s Guide 3 Sun Microsystems, Inc.
Contents
Chapter 4
Index 56
eWay™ Adapter for SAP ALE User’s Guide 4 Sun Microsystems, Inc.
Chapter 1
The Sun SeeBeyond eWay™ Adapter for SAP ALE, also referred throughout this
document as the SAP ALE eWay, provides an OTD wizard to build IDoc OTDs. These
OTDs are used with the Sun SeeBeyond eWay™ Adapter for SAP BAPI to exchange
IDoc data with SAP R/3.
What’s in This Chapter
About SAP ALE on page 5
About the SAP ALE eWay on page 6
What’s New in This Release on page 9
What’s in This Document on page 9
Sun Microsystems, Inc. Web Site on page 11
Documentation Feedback on page 11
eWay™ Adapter for SAP ALE User’s Guide 5 Sun Microsystems, Inc.
Chapter 1 Section 1.2
Introducing the SAP ALE eWay About the SAP ALE eWay
IDoc Types are different versions of standard Message Types, such as Orders for
specific items or services.
A typical SAP IDoc consists of Control, Data, and Status records, as shown in Figure 1
on page 6. Status records, however, are not used by the ALE interface.
Data Record/Segments
HEADER1 XXXXXXXXXXXXX
ITEMS XXXXXXXXXXXXXXXXXXXXXXXXXX
SUBITEMA XXXXXX
SUBITEMB XXXXXX
TEXT XXXXXXXXXXXX
ITEMS XXXXXXXXXXXXXXXXXXXXXXXXXXXX
SUBITEMC XXXXXXX
SUBITEMD XXXXXX
ACCUM XXXXXXXXXXXXXXXX
Status Record
‘To be processed’ 14:33:48
eWay™ Adapter for SAP ALE User’s Guide 6 Sun Microsystems, Inc.
Chapter 1 Section 1.2
Introducing the SAP ALE eWay About the SAP ALE eWay
eWay connected to the recipient system. Any necessary data transformation required
for the target application is performed in your Project Collaborations.
IDoc
tRFC
BAPI
File eWay
TID
Idoc Target
eWay
OTD Application
eGate Transformation
The diagram in Figure 2 shows the following inbound message processing flow:
1 The eWay reads in the required configuration parameters and establishes a network
connection with the SAP R/3 system. The eWay acts an RFC server, receiving IDocs
from the SAP R/3 system.
2 When the IDoc is sent from SAP R/3 via tRFC, the SAP BAPI eWay uses the RFC
OTD, IDOC_INBOUND_ASYNCHRONOUS, to receive the IDoc data.
3 IDoc data received by the IDOC_INBOUND_ASYNCHRONOUS OTD can be
marshaled out of the OTD and unmarshaled into a IDoc OTD.
4 A file-based TID (Transactional ID) database is used to track transactions that have
been committed successfully or rolled back.
5 If identified successfully, the process moves on to the next step. If not, the eWay
composes the appropriate response and logs an exception in the log file.
6 If the Collaboration or Business Process fails, an exception is logged in the log file
raised back to SAP R/3.
7 The eWay then repeats the procedure beginning with step 2.
eWay™ Adapter for SAP ALE User’s Guide 7 Sun Microsystems, Inc.
Chapter 1 Section 1.2
Introducing the SAP ALE eWay About the SAP ALE eWay
IDoc
tRFC
BAPI
File eWay
TID
IDoc Target
eWay
OTD Application
eGate Transformation
The diagram in Figure 3 shows the following outbound message processing flow:
1 When the Collaboration or Business Process starts to run, the eWay is initialized
with its configuration properties.
2 The data is unmarshaled to the IDoc OTD before being sent to the SAP BAPI eWay’s
RFC OTD---IDOC_INBOUND_ASYNCHRONOUS.
3 The SAP BAPI eWay transmits the data to SAP R/3.
4 The SAP BAPI eWay associates the next TID (from a persistent resetable counter)
with the transformed outbound message and sends it via tRFC to the SAP R/3 host.
5 If no exceptions are raised by the receiving SAP R/3 host, the next TID is
incremented.
6 The eWay repeats the procedure beginning with step 2.
Messages are sent to the SAP R/3 host via Transactional RFC (tRFC). With tRFC, the
receiving SAP R/3 system relies on an unique Transactional ID (TID) sent with the
message to ascertain whether or not a transaction has ever been processed by it before.
eWay™ Adapter for SAP ALE User’s Guide 8 Sun Microsystems, Inc.
Chapter 1 Section 1.3
Introducing the SAP ALE eWay What’s New in This Release
The SAP BAPI eWay assumes that all messages handled are new and assigns a new TID
to each message.
Note: If you have IDoc data in a byte array format you may unmarshal it directly to the
IDOC_INBOUND_ASYNCHRONOUS OTD without using the IDoc OTD first.
Using the IDoc OTD with the Sun SeeBeyond eWay™ Adapter for SAP BAPI
Refer to the sample Projects and tutorials in the Sun SeeBeyond eWay™ Adapter for SAP
BAPI User’s Guide on how to use the IDoc OTD along with the SAP BAPI eWay.
eWay™ Adapter for SAP ALE User’s Guide 9 Sun Microsystems, Inc.
Chapter 1 Section 1.4
Introducing the SAP ALE eWay What’s in This Document
1.4.1 Scope
This document describes the process of installing the SAP ALE eWay.
This document does not cover the Java methods exposed by IDoc OTDs. For
information on the Java methods, download and view the SAP ALE eWay Javadoc files
from the Enterprise Manager.
eWay™ Adapter for SAP ALE User’s Guide 10 Sun Microsystems, Inc.
Chapter 1 Section 1.5
Introducing the SAP ALE eWay Sun Microsystems, Inc. Web Site
eWay™ Adapter for SAP ALE User’s Guide 11 Sun Microsystems, Inc.
Chapter 2
This chapter describes how to install the SAP ALE eWay, its documentation, and the
SAP ALE sample Projects.
What’s in This Chapter
Installing the SAP ALE eWay on page 12
ICAN 5.0 Project Migration Procedures on page 14
SAP ALE Integration Server Logging on page 16
Note: When the Repository is running on a UNIX operating system, the eWays are loaded
from the Java Composite Application Platform Suite Installer, running on a
Windows platform connected to the Repository server using Internet Explorer.
eWay™ Adapter for SAP ALE User’s Guide 12 Sun Microsystems, Inc.
Chapter 2 Section 2.1
Installing the eWay Installing the SAP ALE eWay
eWay™ Adapter for SAP ALE User’s Guide 13 Sun Microsystems, Inc.
Chapter 2 Section 2.2
Installing the eWay ICAN 5.0 Project Migration Procedures
After Installation
You must incorporate the installed eWay components into a Project before using the
intended functions. See the Sun SeeBeyond eGate™ Integrator User’s Guide for more
information on incorporating the eWay into an eGate Project.
eWay™ Adapter for SAP ALE User’s Guide 14 Sun Microsystems, Inc.
Chapter 2 Section 2.2
Installing the eWay ICAN 5.0 Project Migration Procedures
Note: Only projects developed on ICAN 5.0.2 and above with SAP ALE 5.0.3 can be
imported and migrated successfully into the Java Composite Application Platform
Suite.
eWay™ Adapter for SAP ALE User’s Guide 15 Sun Microsystems, Inc.
Chapter 2 Section 2.3
Installing the eWay SAP ALE Integration Server Logging
eWay™ Adapter for SAP ALE User’s Guide 16 Sun Microsystems, Inc.
Chapter 3
The chapter describes how to use the SAP ALE OTD Wizard to create IDoc Object Type
Definitions (OTDs). OTDs are used in the business logic in Java Collaboration
Definitions and eInsight Business Processes.
What’s in This Chapter
About the SAP IDoc Wizard on page 17
SAP JCo and SAP IDoc Class Library Installation on page 18
Creating IDoc OTDs on page 20
Exporting the IDOC File from SAP R/3 on page 29
IDoc
Description
File
IDoc IDoc
SAP R/3 Wizard OTDs
IDoc
Message
Description
eWay™ Adapter for SAP ALE User’s Guide 17 Sun Microsystems, Inc.
Chapter 3 Section 3.2
Using the SAP ALE OTD Wizard SAP JCo and SAP IDoc Class Library Installation
To export an IDoc description file from an SAP R/3 system to be used by the IDoc
wizard, see “Exporting the IDOC File from SAP R/3” on page 29. Separate instructions
are included for versions 4.6 and earlier and 4.7 and later due to the significant SAPGUI
changes that distinguish those versions.
eWay™ Adapter for SAP ALE User’s Guide 18 Sun Microsystems, Inc.
Chapter 3 Section 3.2
Using the SAP ALE OTD Wizard SAP JCo and SAP IDoc Class Library Installation
4 The sapjco.jar file is also required during runtime. For this, add the JAR file to
<JavaCAPS51>\logicalhost\is\lib.
5 Download the following DLL files. These are available, free of charge, from various
sources on the Internet:
msvcp71.dll
msvcr71.dll
You must manually add these files to the following location:
c:\WINNT\system32
Note: Restart both Enterprise Designer and the domain after installing the JAR file.
Procedures (UNIX)
The instructions for the installation of SAP JCo on other operating systems are included
in the corresponding download files. On UNIX operating systems, add the OS specific
shared lib files to the library path. Check the SAP BAPI eWay readme to confirm the
supported operating systems.
Note: The SAP Java Connector file, JCo version 2.1.6 is not backwards compatible with
previous versions, such as 2.1.3. Confirm backwards compatibility issues with SAP
before attempting to switch between different JCo versions on different machines.
Note: We recommend only using the directory path when setting your library path, not
the directory path and file name.
eWay™ Adapter for SAP ALE User’s Guide 19 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
Note: JCo 2.1.6 does not support mixed case, users may need to convert passwords to
upper case for all design time and runtime SAP connection configurations.
Note: You need to copy the JCo JAR file to the \compile\lib\ext folder before
deploying and running command line codegen. You also need to copy the JCo JAR
file to the c:\Sun\ApplicationServer\lib folder before deploying and
running via the Sun Java™ System Application Server Enterprise Edition 8.1.
Note: You also need to copy the sapjco.jar, sapidoc.jar, and sapidocjco.jar files to the
c:\bea\weblogic91\samples\domains\wl_server\lib folder before
deploying and running via the WebLogic Application Server, version 9.1. When
using CommandLineCodegen, please place sapjco.jar in
<JavaCAPS51>commandlinecodegen\compile\lib\ext.
eWay™ Adapter for SAP ALE User’s Guide 20 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
2 Click SAP IDoc and click Next. The Select metadata page appears.
3 To retrieve the IDocs message format directly from the connected SAP R/3 system,
select the From SAP Directly, then click Next.
eWay™ Adapter for SAP ALE User’s Guide 21 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
Note: Refer to SAP JCo and SAP IDoc Class Library Installation on page 18 for a
list of required files that must be installed in order to connect to SAP directly.
5 Enter the information for the SAP R/3 system for the IDoc wizard to connect to:
eWay™ Adapter for SAP ALE User’s Guide 22 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
eWay™ Adapter for SAP ALE User’s Guide 23 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
For IDoc type, click the List IDocs button to display a list of available IDocs
supported by SAP R/3, as seen in Figure 10.
eWay™ Adapter for SAP ALE User’s Guide 24 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
eWay™ Adapter for SAP ALE User’s Guide 25 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
13 Figure 11 shows a CREMAS IDoc OTD in the OTD editor. The OTD has various
methods which you can use in Java Collaborations for processing IDoc data.
14 The CREMAS IDoc OTD also has marshal and unmarshal Web Service operations
as seen in the Project Explorer. You can use these operations when using the OTD in
eInsight business processes.
Figure 12 shows the unmarshal operation in the eInsight Business Process editor.
You can unmarshal byte or string data onto the IDoc OTDs bytes and contents
nodes respectively. The bytes node takes in only UTF-8 encoded data. That is, if you
want to perform an unmarshal operation using bytes as the input source, then you
must ensure that the data is in UTF-8 before utilizing this node.
In this example we are unmarshaling byte data which is not UTF-8 encoded;
therefore, you must perform a bytes to text conversion in editor, and then
unmarshal string data to the contents node.
eWay™ Adapter for SAP ALE User’s Guide 26 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
If required, you can also use the Relaunch option of the OTD to relaunch the IDoc
OTD wizard, see Figure 13, and rebuild the IDoc OTD for the same IDoc Type built
with a particular system release.
On relaunch, the OTD is rebuilt again with the changed meta data. Any Java
Collaborations and Business Processes using this IDoc OTD are also synchronized
with the new changes.
If your Java Collaborations or business Processes are using OTD nodes that are now
absent in the relaunched OTD, you will be prompted to correct the business rules by
validation errors.
eWay™ Adapter for SAP ALE User’s Guide 27 Sun Microsystems, Inc.
Chapter 3 Section 3.3
Using the SAP ALE OTD Wizard Creating IDoc OTDs
3 To retrieve the IDocs from a description file, select the From Description File.
4 Click Next. The Definition File Parameters page appears.
eWay™ Adapter for SAP ALE User’s Guide 28 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
eWay™ Adapter for SAP ALE User’s Guide 29 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
eWay™ Adapter for SAP ALE User’s Guide 30 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
eWay™ Adapter for SAP ALE User’s Guide 31 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
5 On the System menu, click List, Save, and then Local File. The Save List in File
dialog box appears.
eWay™ Adapter for SAP ALE User’s Guide 32 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
9 Enter the name and path of the local file to receive the IDoc description file.
10 Click Transfer. This downloads the file.
Once you have downloaded the IDoc description file, create the IDoc OTD using the
IDoc wizard as described in “Creating IDoc OTDs” on page 20. Use the From
Description File option so that you can select the description file you downloaded.
Note: The screenshots in the procedure below show the SAPGUI version 6.2 connecting to
segment version 4.7.
eWay™ Adapter for SAP ALE User’s Guide 33 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
eWay™ Adapter for SAP ALE User’s Guide 34 Sun Microsystems, Inc.
Chapter 3 Section 3.4
Using the SAP ALE OTD Wizard Exporting the IDOC File from SAP R/3
6 On the System menu, click List, Save, and then Local File. The Save List in File
dialog box appears.
eWay™ Adapter for SAP ALE User’s Guide 35 Sun Microsystems, Inc.
Chapter 4
You can send/receive IDocs to a SAP R/3 system by using the IDoc OTD along with the
SAP BAPI eWay to send/receive IDocs to SAP R/3. You must configure the SAP R/3
system as described in this chapter.
The SAP screen captures in this chapter correspond to SAPGUI version 6.2, and
SAP R/3 version 4.0. They are included to illustrate the general nature of the
procedures, and contain only example values. Refer to the documentation supplied
with your SAP R/3 system to determine the exact procedures.
What’s in This Chapter
SAP Hierarchies on page 36
Naming the Logical System on page 38
Specifying the Distribution Model on page 40
Defining the RFC Destination on page 44
Defining the Communications Port on page 48
Creating a Partner Profile on page 49
Configuring a Partner Profile on page 51
Security Issues on page 54
eWay™ Adapter for SAP ALE User’s Guide 36 Sun Microsystems, Inc.
Chapter 4 Section 4.1
Configuring SAP R/3 SAP Hierarchies
Distribution
Model View
Client
Logical System
Name (eWay)
IDoc Name
RFC Destination
Communications
Port
Partner Profile
The RFC Destination defines the entity to which Remote Function Calls (RFCs) can be
made; it is the same as the Logical System in the Distribution Model. The
Communications Port defines a channel for communication of IDocs. The Partner
Profile acts as an identifier for the eGate system, and provides a communications
gateway by incorporating elements of the ALE interface.
eWay™ Adapter for SAP ALE User’s Guide 37 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
1 In the SAP R/3 System home window, type SALE into the command field and click
Enter to display the Distribution (ALE) Structure window.
eWay™ Adapter for SAP ALE User’s Guide 38 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
2 Expand the tree to display IDoc Interface / Application Link Enabling (ALE) > Basic
Settings > Logical Systems > Define Logical System.
3 Click the Activity button to select Define Logical System. This displays the Logical
Systems Overview window.
4 Click the New entries button to display the New Entries window.
5 Enter the logical name for your SAP eWay using capital letters and a brief
descriptive name.
eWay™ Adapter for SAP ALE User’s Guide 39 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
7 Click the Create request button, to display the Create Request window.
8 Enter a short description (e.g., eWay Test) and click Save. The Change Request
entry window appears.
9 Click Enter to add the new data into the system. You are now returned to the
Logical Systems Overview window, and the new Logical System appears in the
list.
10 Click Save and select the Back button repeatedly until the SAP R/3 System window
appears.
eWay™ Adapter for SAP ALE User’s Guide 40 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
Transaction: SALE
1 In the SAP R/3 System home window, type SALE into the command field and click
Enter to display the Distribution (ALE) Structure window.
2 Click the Activity button next to Maintain Distribution Model and Distribute
Views to display the Maintain Distribution Model window.
eWay™ Adapter for SAP ALE User’s Guide 41 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
3 Select the Menu path Edit > Model View > Create to display the Create Model
View dialog box.
4 Enter the logical name you want for the new Distribution Model View, along with a
brief descriptive name or message (for your own use).
5 Click Continue (Enter), which returns you to the previous window. Your new
Model View now appears in the tree, as shown in Figure 35.
eWay™ Adapter for SAP ALE User’s Guide 42 Sun Microsystems, Inc.
Chapter 4 Section 4.2
Configuring SAP R/3 Configuring the Distribution Model
6 Highlight the new entry and select Add Message Type. This displays the Add
Message Type dialog box.
7 Type the desired values for the four parameters into the text boxes, or select them
from the drop-down menus. For example, CREMAS is the message type used for
Creditor Master Data.
8 Select Continue (Enter), which returns you to the previous window. The values you
select now appear in the Distribution Model tree, as shown in Figure 37.
eWay™ Adapter for SAP ALE User’s Guide 43 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
9 Save your entry, click Back and then Cancel to return to the Distribution Structure
window.
eWay™ Adapter for SAP ALE User’s Guide 44 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
1 In the SAP R/3 System home window, type SM59 into the command field and click
Continue (Enter) to display the RFC Destination Maintenance window.
2 Select the TCP/IP connections option and then Create to display the RFC
Destination entry window.
eWay™ Adapter for SAP ALE User’s Guide 45 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
3 Type in the name of the RFC Destination (use the Logical System name), an
accompanying Description, and enter <T> for the Connection Type (TCP/IP).
4 Click Save to return a confirmation message and display the RFC Destination
window corresponding to your entry.
eWay™ Adapter for SAP ALE User’s Guide 46 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
5 Click Registration for the Activation type and type in a Program ID of the form
<hostname>.<program name>, and a Description.
6 Click Test Connection, which tests the connection for logon speed and message
transfer speed. When the eWay is running, the results are displayed in a table;
otherwise, return code 3 is displayed.
eWay™ Adapter for SAP ALE User’s Guide 47 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
7 Click Save and select Back repeatedly to return to the SAP R/3 System window.
1 In the SAP R/3 System home window, type WE21 into the command field and click
Continue (Enter) to display the WF-EDI Port Definition window.
2 Expand the tree under Transactional RFC to display the currently-defined Ports.
3 Select the desired Port from the list, or select Change to display the Port Definition
for Asynchronous RFC Overview window.
eWay™ Adapter for SAP ALE User’s Guide 48 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
4 Type in a Version (specifies IDoc record type), Logical destination, and Description,
matching the entries made previously.
5 Select Enter, which displays the Change Request Query dialog window. [Note that
you must have CTS (Correction and Transport System) turned on for this screen to
be displayed.]
6 Select Create Request, which displays the Create Request dialog window.
7 Enter a Short description and Save.
8 Select Back repeatedly to return to the SAP R/3 System window.
1 In the SAP R/3 System home window, type WE20 into the command field and then
click Continue (Enter) to display the Partner Profile: Initial Screen window.
eWay™ Adapter for SAP ALE User’s Guide 49 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
2 Type the name of the logical system created previously into the Partner number
field, select LS for the Partner type, and select Create. This creates the Partner, and
displays the Create Partner Profile <Partner Number> window.
eWay™ Adapter for SAP ALE User’s Guide 50 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
3 Select ALE for the Partner class and A (Active) for the Partner status, then Save. You
now have created the Partner, and need to continue to the next section to configure
the Partner Profile.
eWay™ Adapter for SAP ALE User’s Guide 51 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
3 Select CREMAS as a Message type and CRE1 as a Process code from the drop-down
menus, then click Save. The entries now appear in the list in the EDI Partner
Profile: Inbound Parameters Overview window.
eWay™ Adapter for SAP ALE User’s Guide 52 Sun Microsystems, Inc.
Chapter 4 Section 4.3
Configuring SAP R/3 Configuring Communications
4 Follow the same procedure for Outbound parameters, as seen in Figure 51.
eWay™ Adapter for SAP ALE User’s Guide 53 Sun Microsystems, Inc.
Chapter 4 Section 4.4
Configuring SAP R/3 Security Issues
5 After making your entries, Save and then Back to get to the main SAP R/3 System
window.
eWay™ Adapter for SAP ALE User’s Guide 54 Sun Microsystems, Inc.
Chapter 4 Section 4.4
Configuring SAP R/3 Security Issues
RFC1
SCCR
SYST
ZDG1
Permission for Processing IDoc Type
Under ALE/EDI > Distributing master data and ALE/EDI, select:
Receiving IDocs via RFC
eWay™ Adapter for SAP ALE User’s Guide 55 Sun Microsystems, Inc.
Index
I
IDoc
format 5
types 6
Index IDoc description file
downloading (4.6) 29
downloading (4.7) 33
IDoc OTD
A creating 20
installation 12–15
ALE interface 5 Installing
architecture, eWay 6 migration procedures 14
authorization objects 54 Repository on UNIX 12
sample Projects and Javadocs 14
SAP BAPI 12
B installing 12
building interface, ALE 5
business logic 17 introduction, SAP eWay 5
business logic
building 17
J
Javadocs, installing 14
C
commandline codegen requirements
codegen L
Sun Java System Application Server logical system name 38
requirements 20
configuring
SAP 36 M
conventions, text 10 message types (SAP IDoc) 5
migration procedures 14
D
data flow O
outbound 8 objects, authorization 54
Deployment OTDs, IDoc 20
EAR File 16 outbound
description file data flow 8
downloading (4.6) 29 overview
downloading (4.7) 33 SAP IDoc wizard 17
distribution model 38, 40
document
scope 10 P
downloading, IDoc description file 29, 33 partner profile 49, 51
port, communications (SAP) 48
E profile, partner 49, 51
EAR File
deploying 16 R
RFC
F destination 44
eWay™ Adapter for SAP ALE User’s Guide 56 Sun Microsystems, Inc.
Index
S
sample projects, installing 14
SAP eWay
ALE interface 5
architecture 6
IDoc format 5
installing 12
introduction 5
SAP IDoc
format 5
message types 5
types 6
SAP IDoc wizard 5
Definition file parameters 28
IDoc metadata parameters page 24
Login parameters page 23
overview 17
Select metadata page 21, 28
System parameters page 22
using 20
SAP system configuration
communications port 48
distribution model 38, 40
logical system name 38
partner profile 49, 51
RFC destination 44
security 54
scope 10
security, SAP 54
T
text conventions 10
Transactional ID (TID) 7, 8
types
IDoc 6
message (IDoc) 5
W
wizard, SAP IDoc 17
eWay™ Adapter for SAP ALE User’s Guide 57 Sun Microsystems, Inc.