Configuring Java IDoc Adapter (IDoc_AAE) in Process Integration. : SAP Labs India Pvt.Ltd



Similar documents
SAP Landscape Transformation (SLT) Replication Server User Guide

Open Items Analytics Dashboard System Configuration

SAP BW on HANA & HANA Smart Data Access Setup

Extend the SAP FIORI app HCM Timesheet Approval

SAP BusinessObjects Business Intelligence 4 Innovation and Implementation

Set Up Hortonworks Hadoop with SQL Anywhere

LVS Troubleshooting Common issues and solutions

BW Source System: Troubleshooting Guide

How-to guide: Monitoring of standalone Hosts. This guide explains how you can enable monitoring for standalone hosts in SAP Solution Manager

SAP PartnerEdge Program: Opportunities for SAP-Authorized Resellers

How to Extend a Fiori Application: Purchase Order Approval

Using SAP Crystal Reports with SAP Sybase SQL Anywhere

Memory Management simplifications in ABAP Kernel 7.4*

Create and run apps on HANA Cloud in SAP Web IDE

Creating a Fiori Starter Application for sales order tracking

Sybase ASE Linux Installation Guide Installation and getting started guide for SAP Sybase ASE on Linux

Agentry and SMP Metadata Performance Testing Guidelines for executing performance testing with Agentry and SAP Mobile Platform Metadata based

Consumption of OData Services of Open Items Analytics Dashboard using SAP Predictive Analysis

Compare & Adjust How to Guide for Compare & Adjust in SAP Solution Manager Application Lifecycle Management

Setting up Single Sign-On (SSO) with SAP HANA and SAP BusinessObjects XI 4.0

How to Implement a SAP HANA Database Procedure and consume it from an ABAP Program Step-by-Step Tutorial

Integration of SAP Netweaver User Management with LDAP

Cloud Single Sign-On and On-Premise Identity Federation with SAP NetWeaver Cloud White Paper

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

LHI Leasing Simplifying and Automating the IT Landscape with SAP Software. SAP Customer Success Story Financial Services Provider LHI Leasing

Installing and Configuring the HANA Cloud Connector for On-premise OData Access

SAP Solution Manager - Content Transfer This document provides information on architectural and design questions, such as which SAP Solution Manager

How to... Master Data Governance for Material: Use the Data Import Framework for Material. Applicable Releases: EhP6, MDG 6.1, MDG 7.

SAP Security Recommendations December Secure Software Development at SAP Embedding Security in the Product Innovation Lifecycle Version 1.

How To... Master Data Governance for Material: Maintenance for multiple Materials in one Change Request. Applicable Releases: all

SAP Sybase Adaptive Server Enterprise Shrinking a Database for Storage Optimization 2013

How-To Guide SAP Cloud for Customer Document Version: How to Configure SAP HCI basic authentication for SAP Cloud for Customer

Additional Guide to Implementing the SAP CRM Service Management rapiddeployment

Setting up Single Sign-On (SSO) with SAP HANA and SAP BusinessObjects XI 4.0

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

Quick Guide to the SAP Customer Relationship Management Rapid- Deployment Solution (based on EhP1) Demo/Evaluation Appliance

CRM WebClient UI & Netweaver Enterprise Portal Integration

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

SAP CRM Service Manager 3.1 Mobile App Extended Feature List An extended list of all the features included in the default delivery of the SAP CRM

Process Archiving using NetWeaver Business Process Management

Nine Reasons Why SAP Rapid Deployment Solutions Can Make Your Life Easier Get Where You Want to Be, One Step at a Time

SAP BusinessObjects Dashboarding Strategy and Statement of Direction

Training.sap.com User Guide

How-To Guide SAP Cloud for Customer Document Version: How to replicate marketing attributes from SAP CRM to SAP Cloud for Customer

Five Strategies Small and Medium Enterprises Can Use to Successfully Implement High Value Business Mobility

SAP Operational Process Intelligence Security Guide

Certification Guide Network Connectivity for SAP on Premise and Cloud Solutions Integration

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on EDI Separator Adapter

Learning Series: SAP NetWeaver Process Orchestration, secure connectivity add-on 1c SFTP Adapter

Data Integration using Integration Gateway. SAP Mobile Platform 3.0 SP02

SAP Business One OnDemand. SAP Business One OnDemand Solution Overview

Availability Monitoring using Http Ping

SAP Work Manager 6.0 Mobile App Extended Feature List

SAP White Paper Enterprise Information Management

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

How To... Master Data Governance for Material: Create Custom Print forms. Applicable Releases: MDG 7

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How-To Guide SAP Cloud for Customer Document Version: How to Perform Initial Load of data from SAP ERP to SAP Cloud for Customer

SAP BusinessObjects Query as a Web Service Designer SAP BusinessObjects Business Intelligence platform 4.0

SAP BusinessObjects Edge BI, Standard Package Preferred Business Intelligence Choice for Growing Companies

Fiori Frequently Asked Technical Questions

So far in the first three chapters of this book we have studied an overview of SAP

Implementing an Enterprise Information Management Strategy An Approach That Mitigates Risk and Drives Down Costs

SAP Project Portfolio Monitoring Rapid- Deployment Solution: Software Requirements

Design Thinking for. Requirements Analysis

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Single Sign-On between SAP Portal and SuccessFactors

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

SAP Business ByDesign and SAP ERP. SAP Business ByDesign for Subsidiaries Overview of Functional and Technical Integration with Headquarters SAP ERP

StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

Active Quality Management

HR400 SAP ERP HCM Payroll Configuration

SAP BUSINESS PLANNING AND CONSOLIDATION 10.0, VERSION FOR SAP NETWEAVER, POWERED BY SAP HANA STARTER KIT FOR USGAAP

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Feature Pack 3

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Duet Enterprise Add SAP ERP Reports and SAP BI Queries/Workbooks to Duet Enterprise Configuration

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

What's New in SAP BusinessObjects XI 3.1 Service Pack 5

How-to guide: SNMP Trap Adapter

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

How to Configure an Example SAP Cloud Applications Studio (PDI) Solution for SAP Cloud for Customer

SAP Thought Leadership Paper Engineering, Construction, and Operations. Beyond Enterprise Resource Planning Construction in the ipad Age

How To... Use SOA Configuration to Call RFCs and Web Services from within SAP NetWeaver BPM

SAP PartnerEdge Program Guide for Language Services Partners

ITM204 Post-Copy Automation for SAP NetWeaver Business Warehouse System Landscapes. October 2013

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

HANA Input Parameters with Multi-Values to Filter Calculation Views

Data Governance. Data Governance, Data Architecture, and Metadata Essentials Enabling Data Reuse Across the Enterprise

Streamlined Planning and Consolidation for Finance Teams in Any Organization

ABAP SQL Monitor Implementation Guide and Best Practices

Setup Guide Central Monitoring of SAP NetWeaver Proces Integration 7.3 with SAP Solution Manager 7.1. Active Global Support February 2011

Setting up the Environment for Creating or Extending SAP Fiori Apps

ForFarmers: SAP Business Communications Management for Call Center Workload Distribution

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

Transcription:

Configuring Java IDoc Adapter (IDoc_AAE) in Process Integration Author Company : Syed Umar : SAP Labs India Pvt.Ltd

TABLE OF CONTENTS INTRODUCTION... 3 Preparation... 3 CONFIGURATION REQUIRED FOR SENDER CHANNEL WITH IDOC_AAE ADAPTER TYPE... 4 1. Default (recommended) option in sender communication channel.... 4 a. Creating Default Destination in NWA of the PI System... 4 b. Create RFC destination in NWA for Backend System (Optional)... 7 c. Configuring the resource adapter inboundra.... 7 d. Sender Communication Channel with IDoc_AAE Adapter type.... 9 e. Configuring RFC Destination in Sender R/3 system.... 9 2. Manual Option in sender communication channel...10 a. Sender Communication channel with IDoc_AAE Adapter type and Manual Option....10 b. Configuring RFC Destination in sender R/3 system....11 3. From NWA option in sender communication channel...12 a. Create Custom Resource adapter....12 b. RFC destination in Sender ERP system....14 CONFIGURATION REQUIRED FOR RECEIVER CHANNEL WITH IDOC_AAE ADAPTER TYPE...14 1. Default (Recommended) option in receiver communication channel...14 a. RFC destination in NWA...14 b. Communication channel with IDoc_AAE Adapter type and Default Option....14 2. Manual option in receiver communication channel....15 a. Communication channel with IDoc_AAE Adapter type and Manual Option....15 3. From NWA option in receiver communication channel....16 a. JCA Connection Factory in NWA....16 b. Communication channel with IDoc_AAE Adapter type and From NWA Option...18 TESTING END TO END CONFIGURATIONS WITH IDOC ADAPTERS...19 1. Testing IDoc to File scenario with sender adapter in Default (Recommended) Option...19 2. Testing IDoc to File scenario with sender adapter in Manual Option...20 3. Testing IDoc to File scenario with sender adapter in From NWA Option...21 4. Testing File to IDoc scenario with receiver adapter in Default (Recommend) Option....21 5. Testing File to IDoc scenario with receiver adapter in Manual Option...23 METADATA REFRESH AND IDOC MESSAGE MONITOR IN NWA....26 CHOOSING RFC SERVER PARAMETER OPTION IN IDOC_AAE ADAPTER...28 RELATED CONTENT...30 2

This guide helps to understand the configurations required for IDoc scenarios with IDoc_AAE adapter type in PI 7.3/ 7.31 involving advanced adapter engine. Unlike other type of adapters, the Java IDoc adapter has dependencies on configurations in backend SAP systems and configurations in NWA apart from the configurations which have been maintained in communication channel with Adapter type IDoc_AAE. INTRODUCTION The new IDoc Adapter IDoc_AAE is part of the advanced adapter engine and is a java implementation which does not use ABAP services. The configuration for IDoc_AAE adapter is different when compared to the IDoc Adapter (ABAP Stack). For configurations related IDoc Adapter in PI Dual Stack refer how-to guide How to Configure IDoc Adapters (NW7.0). However this current document provides the details about the configurations required for using Java IDoc Adapter (IDoc_AAE) and other important settings like creation of destinations, configuration of resource adapter in NWA which are required for IDoc related scenarios. The three different modes which are available for configuring communication channels with the IDoc_AAE Adapter type are: 1. Default (recommended) 2. Manual 3. From NWA Note: The configurations shown here are from swing client and similar options are available if configurations are done via NWDS. In dual stack installation we can use either IDoc or IDoc_AAE adapters. The additional configurations in R/3 system related to creation of Partner Profiles (WE20), Ports (WE21) will not be discussed in detail as part of this guide. The configuration steps for each mode (Default, Manual and From NWA) in case of Sender and Receiver IDoc channels are mentioned separately below. Preparation The developer should have necessary permissions to log-on to PI system, SOA Monitor and Configure Destination and Resource adapters in NWA. Required Business systems need to be imported in Integration directory of PI from SLD. 3

CONFIGURATION REQUIRED FOR SENDER CHANNEL WITH IDOC_AAE ADAPTER TYPE The goal of the sender configuration is to establish a technical connection from the R/3 system to the PI system for sending the IDOCs from the former into the latter. The connectivity is established using RFC technology. There are different RFC connections that are maintained on PI and the R/3 system. The PI system receiving the IDOC needs to query the sending R/3 system to understand the structure of the received IDOC. An RFC connection is created for this purpose on the PI system. The same RFC connection can also be used by the PI system to post IDOC acknowledgement messages to the R/3 system once the IDOC has been successfully processed or when errors are encountered by PI. The PI system registers a Program ID with a web application server gateway to receive RFC calls from the R/3 system. The gateway chosen is typically that of the PI web application server but can also be that of the R/3 system. Finally a RFC destination is created in the R/3 system. This destination allows the IDOC layer in the R/3 to call the program ID that is registered on the RFC gateway either on the PI system or the R/3 system. The RFC destination in the R/3 system is referenced in the IDOC port configurations. 1. Default (recommended) option in sender communication channel. The default setting is recommended as the configuration is simplified by using a central configuration in the NWA. A single resource adapter is shared between all the sender channels of this option. The details are explained in the following sections. A RFC destination is maintained in the PI system with details of the R/3 system to query the IDOC structure. This connection is created in the section 1.a below. The destination maintenance step enables the IDOC adapter to create a RFC connection internally for metadata query of the IDOC structure. To support multiple ERP systems the parameter named MultiRepository is used. The same RFC destination can also be used by the PI system to post IDOC acknowledgement messages to the R/3 system once the IDOC has been successfully processed or when errors are encountered by PI. However if needed a different destination can be maintained. The creation of this destination is outlined in section 1.b. The registration of the Program ID by the PI system into the RFC gateway is achieved by configuring inboundra resource adapter in the NWA. This step is outlined in section 1.c The creation of the RFC destination in the R/3 system is described in section 1.e a. Creating Default Destination in NWA of the PI System The destination is used by the sender communication channel to retrieve the metadata for the IDoc types that are processed on the communication channel. The destination must point to a SAP web application server (e.g ERP) that contains the IDOC definition. Open NWA (http://<host>:<port>/nwa) Configuration Infrastructure Destination. 4

Click on Create button to create a new Destination. Enter the Destination Name (XI_IDOC_DEFAULT_DESTINATION) and select destination type as RFC. 5

Enter ERP system details below. Enter the log-on Credentials and click finish. Once completed, the destination will be added in the available list of destinations. Select this newly added destination and click on Ping Destination button to check if connection is successful. Results will be displayed on top of the page. 6

In case of errors in Ping Destination, check the system and logon details which has been provided while creation of destination. b. Create RFC destination in NWA for Backend System (Optional) RFC Destinations can be created with the below name for metadata read. XI_IDOC_DEFAULT_DESTINATION_<SID>. The above destination can also be used for sending acknowledgements but this needs to be explicitly defined in the channel. Separate RFC Destinations need to be created for each R/3 system. Separate RFC destination can also be created for sending acknowledgements in this case naming pattern is not mandatory. Note: If this is not set the default destination of inboundra XI_IDOC_DEFAULT_DESTINATION is used for metadata of any idoc messages from the R/3 system. c. Configuring the resource adapter inboundra. This configuration is a one-time activity on the PI system. The step is initially executed during the installation process when the CTC template JIDOC is executed. If not configured during the time of installation, it will have to be configured later. Open NWA (http ://< host> :< port>/nwa) Configuration Infrastructure Application resources. Select Resource Adapters from show drop down list. 7

Filter for inboundra in the list. The resource of the name inboundra must already exist if the CTC template is executed during installation. Then Click Properties tab and enter the details as shown in screenshot below. (If certain property is not shown in the list, it can be added from Add New Property option available). - Set the value of the Program ID field as XI_IDOC_DEFAULT_<SID> where SID is system ID. Note: This is the same program id which will be used to create RFC destination (TCP/IP) in ERP system as described in step e. Note : Program ID can be arbitrary but must be unique name for the used gateway - Set MaxReaderThreadCount value between 5 10 (Default value is 10) - Destination Name as XI_IDOC_DEFAULT_DESTINATION - Set Local as true. - Set BindingKey as PI_AAE_IDOC - Save changes. Note : If Local is set to false then default Gateway server and Gateway service of PI system need to be provided while configuring inboundra. 8

d. Sender Communication Channel with IDoc_AAE Adapter type. Create a communication channel in Integration Directory (In this guide it is IDoc_AAE_Default) as shown below. (Note: The required business systems should be already imported into integration directory from SLD) - Select Adapter Type as IDoc_AAE - Select Default (Recommended) option in RFC Server Parameters. Note: Maintaining Ack Destination is not mandatory. Refer SAP Note 1826256 for further details. e. Configuring RFC Destination in Sender R/3 system. Create RFC Destination of type T in sender R/3 system (In this guide it is P73_AAE) and in technical settings tab select registered server program. Same details need to be provided for Program ID, Gateway Host and Gateway service in RFC Destination which was added earlier while configuration of inboundra resource adapter in section 1.c above. 9

Click on connection test to ensure connection is successful with the details specified in RFC Destination. 2. Manual Option in sender communication channel In the manual mode, all the configuration parameters are provided in the channel itself. Sender communication channel with Manual option can be used for test purpose. In case of Manual option we have no control of the gateway. The parameters to create a RFC connection to retrieve the IDOC structure are already available in the channel configuration. The same RFC connection can also be used by the PI system to post IDOC acknowledgement messages to the R/3 system once the IDOC has been successfully processed or when errors are encountered by PI. Similarly, the registration of the Program ID by the sender channel into the RFC gateway of the R/3 system is implicitly performed. Here a distinct gateway name cannot be specified in the channel. The creation of the RFC destination in the R/3 system is described in step b. a. Sender Communication channel with IDoc_AAE Adapter type and Manual Option. Create Sender Communication channel (in this guide it is IDoc_AAE_Sender_Manual) in Integration directory Select Adapter Type IDoc_AAE and select RFC Server Parameters as Manual. 10

Provide unique Program ID (in our case it is SAP_XI_MANUAL_TEST) as shown in below screen shot. This Program ID will be used later while configuring RFC Destination in sender R/3 system. System details of R/3 system with valid user id and password need to be provided in channel so that the Program ID is registered in R/3. b. Configuring RFC Destination in sender R/3 system. Create RFC of Type T in sender R/3 system (Tcode sm59) and provide the details as shown below in Technical settings tab. (In this guide it is P73_AAE_MANUAL) Program ID name should be the same which has been mentioned in the sender communication channel (IDoc_AAE_Sender_Manual). Maintain Gateway host and Gateway service of R/3 system where Program ID has been registered. Save and Click on Connection Test to ensure RFC Destination is working fine without any issues. 11

3. From NWA option in sender communication channel The mode is very similar to the default mode and offers convenience of a central configuration in the NWA. A resource adapter configuration is created manually and is shared between all the sender channels sharing the same resource adapter name. The details are explained in the following sections. Custom Resource adapter is created as in step a below. This adapter can be specified in sender communication channel to receive IDoc from R/3. RFC destination need to be created in the R/3 system. a. Create Custom Resource adapter. Create a custom resource adapter in NWA Go to NWA -> Configuration -> Infrastructure -> Application Resources. Click Button Create New Resource -> Select New Resource Adapter 12

Select Template as com.sap.aii.adapter.idoc.raclonetemplaterar & Enter a name for Application and click Next Enter JNDI Name example ERPCLNT800_RA Press Next Again -> Enter JNDI Name again and press Tab for save button to activate and Press Save. Now a NWA Resource Adapter is created. Now in the properties tab for newly created resource adapter enter the Program ID(Example : SAP_ERP_NWA) which will be used in RFC Destination in R/3 system, and other details like server,client,logon details etc. Do not change the binding key value which is PI_AAE_IDOC. Create an RFC Destination in R/3 system as done earlier of type T and enter the Program ID(SAP_ERP_NWA) which has been mentioned in properties on Resource Adapter ERPCLNT800_RA Create a communication channel (In this guide it is IDoc_AAE_NWA) in Integration Directory as per below screen shot. - Select Adapter type IDoc_AAE. - Select RFC Server Parameters as From NWA and provide the Resource Adapter Name as ERPCLNT800_RA. If required separate Java IDoc communication channels can be created for each customer interface scenario which is using one central NWA configuration. 13

b. RFC destination in Sender ERP system. Create RFC destination in Sender R/3 system as done in section 1.e for Default Mode in Sender IDoc Adapter. Enter the Program ID(SAP_ERP_NWA) which has been mentioned in properties of Resource Adapter ERPCLNT800_RA CONFIGURATION REQUIRED FOR RECEIVER CHANNEL WITH IDOC_AAE ADAPTER TYPE The objective of the receiver channel configuration is to establish a technical connection from the PI system to the R/3 system for sending the IDOCs from the former into the latter. The connectivity is established using RFC technology. Single RFC connection needs to be created on PI system. The following options are available. The PI system can be configured with a RFC destination to specify the content of the RFC connection parameters. The PI channel can refer to the RFC destination in the NWA. The RFC connection parameters can be directly maintained in the PI channel. A new java connection factory is created and the required parameters of the RFC destination are maintained in the connection factory. The connection factory is then referenced in the PI channel. Note: The Java IDOC Receiver Adapter is a bit more strict when checking the syntax of the IDOC XML. For BEGIN and SEGMENT fields of the IDOC XML and the adapter expects the constant value 1. 1. Default (Recommended) option in receiver communication channel a. RFC destination in NWA Create RFC destination in NWA as defined in step 1.b with target R/3 system details in our case its XI_IDOC_DEFAULT_DESTINATION_ERP (Separate RFC Destinations need to be created for each R/3 system if not already done). b. Communication channel with IDoc_AAE Adapter type and Default Option. Create Receiver Communication channel (In this guide it is Integration Directory with below details. IDoc_Receiver_Default) in 14

Adapter type IDoc_AAE. Select Default (Recommended) option in RFC Client Parameters. Provide the RFC Destination created in NWA for Destination section in RFC Client Parameters. (In our case it is XI_IDOC_DEFAULT_DESTINATION_ERP). 2. Manual option in receiver communication channel. a. Communication channel with IDoc_AAE Adapter type and Manual Option. Create a receiver communication channel (In this guide it is IDoc_Receiver_Manual) in Integration Directory with IDoc_AAE Adapter type and enter the details as show in screen shot below. Select Manual in RFC Client parameters section. Enter the details for client, user name, pwd, and server name and system number of receiver R/3 system. 15

3. From NWA option in receiver communication channel. a. JCA Connection Factory in NWA. Create JCA Connection factory in NWA which will be used in channel configuration for NWA Mode. Open NWA (http://<host>:<port>/nwa) Resources. Configuration Infrastructure Application From the drop down list select JCA Resources and filter for outboundra. 16

In Related JCA Connection Factories tab select outboundra_cf and click on Copy and Add New JCA Connection Factory. Provide the JNDI Name which will be used later in Communication channel. Separate connection factory to be created for each IDoc receiver system. Naming convention can be used as <SID>CLNT<MANDT>_CF where SID is system ID and MANDT is client number. 17

Click on Configuration Properties Tab and enter the RFC destination name which has been created pointing to target R/3 system and click on save. Note: If property is not visible the DestinationName property can be added by clicking Add New Property button. The created JCA Connection Factory will be available in the list and can be used in communication channel. b. Communication channel with IDoc_AAE Adapter type and From NWA Option. Create a new receiver communication channel in Integration Directory (In this guide it is IDoc_Receiver_NWA). Select IDoc_AAE as adapter type, From NWA option for RFC Client Parameters and enter the created JCA Connection factory details as shown in below screen shot. 18

TESTING END TO END CONFIGURATIONS WITH IDOC ADAPTERS For testing the scenario of IDoc to File using IDoc_AAE adapter type, a Receiver file channel has been created and integrated configuration using the sender IDoc channel and Receiver file channel has been created. The same integrated configuration has been used for testing by assigning different IDoc communication channels which were created earlier as mentioned in document above. 1. Testing IDoc to File scenario with sender adapter in Default (Recommended) Option. Create File Receiver channel in Integration Directory and Create integrated configuration with sender channel IDoc_AAE_Default which was created earlier and Receiver File channel. Assign the RFC Destination which was created earlier for Default mode (P73_AAE) in section 1.e to the sender port (WE21) in sender R/3 system. Trigger the IDoc from tcode WE19 from sender ERP system. 19

Check the communication channel monitoring for the channel IDoc_AAE_Default, the IDoc details like IDoc number will be available in processing details section which has been received by PI system. 2. Testing IDoc to File scenario with sender adapter in Manual Option. Assign the RFC destination which was created for Manual mode earlier (P73_AAE_MANUAL) section 2.b to sender port (tcode we21) in sender R/3 System Assign the sender channel (IDoc_AAE_Sender_Manual) which was created earlier in integrated configuration. 20

Follow the same testing steps to trigger the IDoc from sender R/3 system via WE19 which was done previously for Default Mode. 3. Testing IDoc to File scenario with sender adapter in From NWA Option. Assign the RFC Destination which has been created earlier in section 1.b for the sender port (WE21) in sender R/3 system. Assign the Sender channel (IDoc_AAE_NWA) created earlier for sender communication channel in integrated configuration. Follow the steps for trigger the IDoc via WE19 tcode from sender R/3 system as done before for Default mode. 4. Testing File to IDoc scenario with receiver adapter in Default (Recommend) Option. Create a Sender File Channel (File_IDoc_Sender) in Integration Directory, Create integrated configuration with sender file channel and IDoc_Receiver_Default (Default Mode which was created earlier) in Outbound processing tab for receiver channel. 21

Start the sender communication channel. Channel monitoring for IDoc_Receiver_Default channel 22

Check the IDoc status in tcode we05 receiver R/3 System. Inbound IDoc has been received at target system. However additional data need to be maintained in target system for successful IDoc processing. 5. Testing File to IDoc scenario with receiver adapter in Manual Option. Change the Receiver channel in integrated configuration to IDoc_Receiver_Manual which was created earlier. 23

Start the Sender File communication channel. Communication channel monitoring for IDoc_Receiver_Manual channel. 24

Check the IDoc status in tcode we05 receiver R/3 System. Inbound IDoc received at target system Similarly, we can test for communication channel IDoc_Receiver_NWA which has been configured with From NWA Option. 25

METADATA REFRESH AND IDOC MESSAGE MONITOR IN NWA. Select http://host:port/nwa --> SOA Monitoring PI IDoc Adapter Monitoring. Select tab message monitor and enter the filter criteria for Inbound or Outbound IDocs. If any changes have been done in the IDoc structure, IDoc metadata can be reloaded via Metadata Monitor Tab. 26

Properties of InboundRA resource Adapter MaxReaderThreadCount : IDoc works on the SAPJRA and JCo 3 model. SAPJRA application instance allows idoc adapter to receive idoc messages (sender adapter).the number of Reader threads or parallel server connections registered to the gateway can be configured in the Resource adapter.the property is called MaxReaderThreadCount. Set MaxReaderThreadCount value between 5 10, Default value is 10 and is the highest which is recommended to this property. Local : To improve performance and tie the Lifecycle of gateway with that of Adapter engine it is possible to use local gateway. There is local gateway available with Adapter engine installation.for this you need to set the 'Local' property to true. However if you do this at SAP Backend side too the same gateway needs to be chosen. In SM59 transaction you have to enter local gateway details manually. If 'Local' property is chosen, the GatewayServer and GatewayService configured in inboundra has no significance.also please remember to set Local property to false if you don't wish to use Local gateway. multirepository : The miltirepository property should not be changed manually as it is populated by the IDoc_AAE adapter. It specifies a list of RFC destinations from the PI system to several SAP systems that are used to query for IDoc metadata when parsing the received IDoc documents or IDoc document lists to valid IDoc-XML. The property value consists of pairs <SID>=XI_IDOC_DEFAULT_DESTINATION_<SID> separated by ; where <SID> is the SID name of the sender system of a started sender channel. Binding Key : It is binding key used to activate IDoc message listener and constant value PI_AAE_IDOC has to be maintained for this property. 27

CHOOSING RFC SERVER PARAMETER OPTION IN IDOC_AAE ADAPTER Default (Recommended): Default mode in sender communication channel can be used to receive IDoc from multiple senders. Channel configuration is simple compared to manual mode as no authentication parameters are maintained in the channel. No requirement of the PI Integration Developer Role for administration of the connection details. And therefore ideal configuration for long term operational maintenance of the IDOC connection. Basis administrator role is required for maintenance of the connection parameters. The PI integration developer testing phase requires pre configuration activities by BASIS Administrator. Uses logical destination which allow reuse of connection data. Connection can be shared between multiple R/3 systems. However it may not give good isolation as we have multiple R/3 systems are reusing same set of inbound connections. Ideally to be used with PI Gateway (in InboundRA resource adapter), this reduces the chances of Gateway related issues and reduces the channel start and stop time. Could lead to monitoring issues as the request processing is not tied to channel lifecycle (server connection may be started even when channel is stopped). Manual: Quick and easy configuration by the integration developer is enabled. No NWA Administration role is required for configuration and is ideal during adhoc development time testing. Manual option can be used for test purpose. Operational maintenance of the connection settings on a long term operational lifecycle of the integration scenarios requires the PI developer role. Cannot add trace level or log level since the server connections are per ABAB Backend system. NWA: NWA Option can be used if there are numerous senders/receivers to be configured Simple Configuration. No maintenance of authentication parameters in the channel. Flexible, can be used for error tracking as separate RAs can be created per incoming servers (trace level and server connections can be increased). 28

Could lead to monitoring issues as the request processing is not tied to channel lifecycle (server connection may be started even when channel is stopped). NWA option can be used for communication with Non-SAP systems using Java IDoc_AAE adapter type. 29

RELATED CONTENT SAP Help Portal SAP Help Portal Wiki Link : Configuring IDoc Adapter (AAE) in the Integration Builder : Comparison of IDoc Adapter (IE) and IDoc Adapter (AAE) : Troubleshooting common errors with IDoc_AAE Adapter configurations SAP Note references : Note Details 1826256 ACK destination not available 1719180 Handling of multiple acknowledgements 1729575 Sending IDoc acknowledgements fails because of long text 1688780 IDoc AAE Adapter fails to insert empty strings in database 1795609 Multiple idoc types in single queued RFC call 1790977 Receiver IDoc_AAE adapter fails with NullPointerException 1647147 PI CTC: com.sap.aii.adapter.idoc.sapjra.inboundra startup 1641541 Idoc adapter performance tuning 30

www.sap.com 2013 SAP AG. All rights reserved. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company. Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.