SDN Community Contribution

Similar documents
Step By Step Procedure to Implement Soap to JDBC Scenario

How to Create Tables in MaxDB using SQL Studio

How to Create and Execute Dynamic Operating System Scripts With XI

Easy Lookup in Process Integration 7.1

Graphical Mapping Technique in SAP NetWeaver Process Integration

Using Radio Buttons in Web Template

A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

MDM Syndicator: Custom Items Tab

POWL: Infoset Generation with Web Dynpro ABAP

A Simple search program for Dictionary objects

Creating a Development Component

Linking Documents with Web Templates

MDM Syndication and Importing Configurations and Automation

SDN Community Contribution

A Step-by-Step Guide on IDoc-to- JDBC Using Business Service in the XI Integration Directory

Exception Handling in Web Services exposed from an R/3 System

Steps for XML Validation by Adapter Engine in PI 7.1

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

SDN Community Contribution

Creating, Configuring and Testing a Web Service Based on a Function Module

Creating Multiple Methods/Operations and Exposing BAPI as a Webservice

Setting up Connection between BW and R/3 for Data Load

B2B Integration Using Seeburger AS2 Adapter with PI 7.1 Ehp1

SAP BusinessObjects Translation Manager Functionality and Use

Creation of Alert Data Service VC model for the BI query exception using Information Broadcasting

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

How to Create and Schedule Publications from Crystal Reports

A Step-by-Step Guide on IDoc-ALE between Two SAP Servers

BAPI Execution in offline Adobe Form

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Step by Step Guide for PI Server Start and Stop Procedure

E-Sourcing System Copy [System refresh from Production to existing Development]

How to Configure User Status in mysap SRM

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

Displaying SAP Transaction as Internet Application in Portal

BW 3.1 Open Hub Extraction Enhancement: Using Literal Filename & Path

BPM Multi Line Container in Integration Process

Material Master Archiving in Simple Method

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Message Prioritization in Advanced Adapter Engine

Applies To:...1. Summary...1. Table of Contents...1. Procedure..2. Code... Error! Bookmark not defined.0

Config Tool Activities

Federated Portal for Composite Environment 7.1

Limitation in BAPI Scheduling Agreement (SA) Create or Change

How to Integrate SAP xmii Services with Web Dynpro Java

How to Create Business Graphics in Web Dynpro for ABAP

SDN Community Contribution

Dialog Windows in WebDynpro ABAP Applications

How to Default Variant Created for Report Developed In Report Painter/Writer

Information Broadcasting Part 3 Scheduling the First Report

Purpose of Goods Receipt Message indicator in Purchase Orders

DB Connect with Delta Mechanism

Validity Table in SAP BW/BI

SDN Community Contribution

Access SAP Business Functions (ABAP) via Web Services

SDN Community Contribution

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

HOWTO: SCRIPTING LANGUAGE SUPPORT FOR SAP SERVICES - RUBY

Data Flow During Different Update Mode in LO Cockpit

Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

Selection-Screen Design

Add /Remove Links on ESS Home Page in Business Package 1.5

Synchronization of Services between the IBM WebSphere Services Registry & Repository and SAP s Services Registry

Function Module to Create Logo

Custom Password Reset Tool in SAP Enterprise Portal Using Web Dynpro for Java

List of Values in BusinessObjects Web Intelligence Prompts

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

ecatt Part 6 System Data Container

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Different Types of iviews in Enterprise Portal 7.0

Solution to the Challenges in Pivoting

Standalone BW System Refresh

Adding Files as Attachments to SAP Interactive Forms in the Java Environment

SUP: Personalization Keys and Synchronize Parameter

SDN Community Contribution

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Freely Programmed Help- Web Dynpro

SDN Community Contribution

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

Step By Step: the Process of Selective Deletion from a DSO

SAP QM-IDI Interface. SDN Contribution. Applies to: Summary. Author Bio. SAP QM Interfaces

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Table Row Popup in Web Dynpro Component

How to Display Traffic Lights for Exceptions in BI Web Reports

Programmatical Approach to User Management in Enterprise Portal

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Open Hub Destination - Make use of Navigational Attributes

How to Perform Value Mapping A Walkthrough

Developing Crystal Reports on SAP BW

SYNDICATING HIERARCHIES EFFECTIVELY

SAP Biller Direct Step by Step Configuration Guide

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

SDN Community Contribution

Download SAP Query Output to Local/ Network Folders in Background

Step by Step Procedure for DSO Creation

Step by Step Method for File Archival in BW

Administrating ABAP+JAVA and SLD Problems of SAP PI 7.1

Step by Step Guide How to Use BI Queries in Visual Composer

Transcription:

SDN Community Contribution (This is not an official SAP document.) Disclaimer & Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2005 SAP AG Page 1 of

Applies To SAP XI 3.0 Expected audience is consultants who mainly work for SAP XI Implementation Project where they are involved in developing interfaces for sending a mail with attachment. Summary The objective of this document is to provide solution for sending a mail with payload as an attachment in CSV format. It also demonstrates how to implement an asynchronous execution of WebService from Legacy Application via XI. By: Krishna Moorthy Title: Senior Software Engineer, Wipro Technologies Bangalore India. Reviewed By: Chintamani Chitnis, Systems Manager, NetWeaver Competence Group (NWCG), Wipro Technologies, Pune, India. Company: Wipro Technologies 2005 SAP AG Page 2 of

Applies To... 1 Summary... 2 1.Business Scenario... 4 Objective... 4 Overview... 4 Description... 4 Pre-requisites... 4 2. Implementation Steps... 5 Integration Repository-Design... 5 Integration Directory-Configuration... 9 Disclaimer & Liability Notice... Author Bio... 2005 SAP AG Page 3 of

1. Business Scenario An Outbound Interface, where a mail is sent with payload as an attachment in CSV format through XI. Objective The objective of this document is to provide solution for sending a mail with payload as an attachment in CSV format. Overview This document is to demonstrate how to implement an asynchronous execution of WebService from Legacy Application via XI. After reading this document you will be in position to implement this scenario using XI with File adapter as a Sender and SOAP adapter as a Receiver. The WebService is responsible for converting XML payload into CSV file and sending a mail with CSV file as an attachment. Legacy File SOAP System XI WebService Description File is picked from the legacy system using File Adapter. The file content is sent to XI. Receiver and Interfaces are determined. Mapping between source file structure and target WebService structure is executed. WebService is executed by SOAP Receiver Adapter. Pre-requisites Input file should have all information required by Java mail API. This can be header information. Body or detail part of the file should have content to be sent as attachment. 2005 SAP AG Page 4 of

Java application should be ready that parses XML payload and converts into CSV file. The application should also include code for sending a Mail with attachment using Java Mail API. This application should be exposed as a WebService and deployed in XI Server. The WSDL file should be provided by WebService Provider that is imported and stored in a local drive. 2. Implementation Steps Integration Repository-Design 1) Create software component 2) Create Namespace under the software component that is created in the above step. 3) Now import Web Service metadata in the form of a WSDL file. Create a new External Definition. Import the WSDL into External Definitions in Namespace created. This External Definition acts as a Target Data Type. While importing WSDL file make sure that category is wsdl. Observe the Request and Response message generated, under message tab in the External definition. Go to Integration Repository->Software Component Version (i.e. created in step1) - >Namespace (i.e. created in step2) ->Interface Objects->External Definition After clicking on New following screen will appear. 2005 SAP AG Page 5 of

Name is given here Give new name for External Definition and press Create Button. Then following screen will appear. 2005 SAP AG Page 6 of

Import the wsdl by clicking here After importing valid WSDL, below screen will appear. Make sure that category is wsdl and Messages is From All Available Message Definitions in the following screen. 2005 SAP AG Page 7 of

Click on Messages Tab and look for Messages in Messages window. 4) Create Data Type for Input File. 5) Create Message Type for Input File. 6) Create two Message Interfaces. 1) Outbound, Asynchronous 2) Inbound, Synchronous. In Inbound interface, Input message type should be request/input message for Web Service and Output message type should be response message of Web Service. 7) Create a direct one-to-one Message Mapping. Here Source is File Message type and Target is used as input message type of Web Service i.e. from External Definition. 8) Now create new Interface Mapping Object. Source Interface is File and Target Interface is WebService. 9) Save all and Activate all. 2005 SAP AG Page 8 of

Integration Directory-Configuration 1) Create new Configuration Scenario. 2) Create Sender and Receiver Communication Channels with respect to specific Business System/Service. Parameters for Sender Communication channel are: Adapter Type- File, Sender. 3) Parameters for Receiver Communication Channel are: Adapter Type: SOAP, Receiver. Transport Protocol: HTTP Message Protocol: SOAP 1.1 Adapter Engine: Integration Server Under Connection Parameters provide the following: Target URL: Enter the complete address (URL) of the Web service provider that you want to send the message to. If the server requires a user authentication, specify the following: Specify the User. Specify the Password and confirm. Hint: Here Target URL means, URL of WSDL. 4) Create Sender Agreement for File Interface. 5) Create new Receiver Determination. 6) Create new Interface Determination. 7) Create new Receiver Agreement. 2005 SAP AG Page 9 of

8) Save All and Activate All. To Test the Scenario, follow the steps below. 1) Keep the file in the specified directory (as configured in the file adapter). 2) Check the mail box of the respective recipients defined in the file. It should have the mail with attachment. Disclaimer & Liability Notice This document may discuss sample coding, which does not include official interfaces and therefore is not supported. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing of the code and methods suggested here, and anyone using these methods, is doing it under his/her own responsibility. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of the technical article, including any liability resulting from incompatibility between the content of the technical article and the materials and services offered by SAP. You agree that you will not hold SAP responsible or liable with respect to the content of the Technical Article or seek to do so. Author Bio Krishna Moorthy is currently working as a Senior Software Engineer for NetWeaver Practice in Wipro Technologies Bangalore India. He worked as a PeopleSoft Technical Consultant, Mercury Consultant, and ABAP Consultant and now he is playing a role of SAP XI Consultant. His interests are EP and RFID. Copyright 2005 SAP AG, Inc. All Rights Reserved. SAP, mysap, mysap.com, xapps, xapp, 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 in several other countries all over the world. All other product, service names, trademarks and registered trademarks mentioned are the trademarks of their respective owners. 2005 SAP AG Page of