Sending an Image File Through XI in a File-to-Mail Scenario



Similar documents
SDN Community Contribution

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Salesforce.com Integration Using SAP PI: A Case Study

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

SAP CRM Campaign Automation

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

BW Performance Monitoring

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

How to Generate Stack Xml for Ehp4 and Above Upgrade

Creating Transaction and Screen Variants

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Configuring HTTPs Connection in SAP PI 7.10

SAP CRM 7.0 E2C Setup: CRM via Toolset

LSMW: Upload Master Data using Batch Input Recording

Step by Step Guide for Language Translation Tool

Reverse Transport Mechanism in SAP BI

Process Controlled Workflow SRM 7.0 (Using BRF)

Deleting the User Personalization done on Enterprise Portal

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

Restricting Search Operators in any Search View

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Display Options in Transaction SE16

Order Split Usage in Production Orders

How to Assign Transport Request for Language Translation?

Forgot or Lock "Administrator or J2EE_ADMIN" Password

Configuration of Enterprise Services using SICF and SOA Manager

Extractor in R/3 and Delta Queue

Sales Commission Calculation & Settlement Handling through Order Processing

Converting and Exporting Data in XML Format

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

Creation and Configuration of Business Partners in SAP CRM

ABAP How To on SQL Trace Analysis

SAP FI - Automatic Payment Program (Configuration and Run)

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

SAP CRM Middleware Configurations

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Step by Step guide of Report-to- Report Interface in BW Reporting

ABAP Debugging Tips and Tricks

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

StreamServe Encryption and Authentication

Market Basket Price Calculation in Retail

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

StreamServe . User Guide SP2 Rev A

ABAP Proxy Interfacing

Invoice Collaboration: Self Billing Invoice

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Direct Subcontracting Process (SAP SD & MM)

Data Extraction and Retraction in BPC-BI

Different Types of Alerts for Process Chains. Table of Content

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

Multi Provider Creation Based on Sales and Planning Info Cubes

SAP MM: Purchase Requisition with Classification and Workflow Approval

Creating New Unit of Measure in SAP BW

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Deploying Crystal Reports on Top of a SAP BI Query

SAP NetWeaver Developer Studio 7.30 Installation Guide

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

How to Modify, Create and Delete Table Entries from SE16

Automating Invoice Processing in SAP Accounts Payable

First step to Understand a Payroll Schema

Creating Mobile Applications on Top of SAP, Part 1

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

Integrated Testing Solution Using SAP Solution Manager, HP-QC/QTP and SAP TAO

Sending Additional Files from SAP Netweaver PI to third Party System

Embedding Crystal Reports inside ECC ALV Reports

XSLT Mapping in SAP PI 7.1

Consuming Services in SOA Manager

Message handling in SAP CRM Web UI

Guidelines for Effective Data Migration

StreamServe Persuasion SP4 Encryption and Authentication

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

SAP Workflow in Plain English

Creating Content Using SO10 Objects and Text Symbols

StreamServe Persuasion SP5 Encryption and Authentication

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Web Dynpro ABAP: ALV and Table in Popup Window

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

Quick Viewer: SAP Report Generating Tool

Release Strategy Enhancement in Purchase Order

MailEnable Connector for Microsoft Outlook

Multi Level Purchase Order Release Strategy

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Business Scenario Using GP/Web Dynpro with Back and Forth 3 Level Process and Dynamic Approvers in a Loop

Step By Step Procedure to Create Logical File Path and Logical File Name

Solution Manager Service Desk an End-to-End Helpdesk Solution

How to Create an ecatt?

SAP BW 7.3: Exploring Semantic Partitioning

Credit Management in Sales and Distribution

Quantifying the Amount of Cash Discount Lost

ALE Settings, for Communication between a BW System and an SAP System

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Wireless Installation Checklist for Novell GroupWise Environments

Adobe Document Service Configuration and Troubleshooting Guide

SPDD & SPAU Adjustments Handbook

SDN Contribution Beginners guide to CRM Interaction Center (IC) Winclient setup

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Transcription:

SDN Contribution Sending an Image File Through XI in a File-to-Mail Scenario Summary This article depicts the usage of the Additional files parameter in a File adapter to send a binary file(image) through Exchange Infrastructure, and receive it as an attachment in a mail. The scenario has been designed to make sure that both the XI Payload, as well as the image attachment is received in the mail (using a receiver mail adapter). Created on: 18 th April 2006 Author Bio Prashanth Azharuddin is an SAP XI Consultant with Wipro Technologies. 2006 SAP AG 1

Table of Contents. Introduction... 3 Configuring the sender FILE adapter... 3 Configuring the receiver MAIL adapter... 4 Module configuration and related parameter settings... 5 Conclusion: -... 7 2006 SAP AG 2

Introduction The idea to implement this scenario came up when we had a requirement to transfer some images from one Business System to another via the middleware. Initially, we considered using SOAP over XML to achieve this, but then we came up with this idea of sending the images as attachments. This scenario could also be extended to transfer all forms of binary files from master data sources for articles to MDM. The image file used in this scenario will be in JPEG format. The version of Exchange Infrastructure used is XI 3.0 with SP16. The filename of the XML payload as well as the image attachment used here will be the same since the namepart substitution parameter was used when configuring the file adapter. The major plus in this scenario is that all binary file types can be sent as attachments through XI. This includes various types of file extensions such as.wav,.bmp,.pdf etc. The receiving of the attachment by the mail adapter is handled using two standard mail modules, the MessageTransformBean and the PayloadSwapBean Further detail on them is given under module configuration below. This is a fast and easy method to send and receive attachments in XI and does not contain any lines of code Configuring the sender FILE adapter The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured under the Additional File(s) as shown in the screenshot below. The file type would still remain binary. Additional parameters are specified for the extra file, as shown.. 2006 SAP AG 3

Configuring the receiver MAIL adapter The receiver mail adapter parameter configuration is simple enough. I have given the transport protocol as SMTP since my official mailbox resides on an SMTP server. The message protocol would be XIPAYLOAD and we would not be using mail package here. The mailbox URL is entered, and user authentication is configured. The most important thing to be kept in mind here, is to check the Keep Attachments tab under mail attributes 2006 SAP AG 4

Module configuration and related parameter settings Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format and also change the file extension. For our scenario, the processing sequence and module configuration are done as shown in the scenario below. The PayloadSwapBean module is used to replace the application payload of the XI message that holds the data with another payload which is appended to the message as an attachment. In our case, the payload would be file1.xml whereas the attachment would be file1.jpg The swap module is denoted in our scenario with the module key swap. It has two parameters from the MIME header. They are Swap.keyName where the attribute of the payload is entered Swap.keyValue which holds the value of the attribute 2006 SAP AG 5

The MessageTransformBean module is used to describe the payload. The various MIME content fields used to describe the payload are Transform.ContentDisposition with parameters attachment inline refers to how the payload shows up in the mail Transform.ContentDescription which gives the file description Transform.ContentType which specifies the type of the payload The MessageTransformBean and PayloadSwapBean are standard modules provided by SAP and their functionality is explained clearly in the below supporting documents. Reference pages:-. 1. http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset. htm 2. http://help.sap.com/saphelp_nw2004s/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm 3. https://weblogs.sdn.sap.com/pub/wlg/2849 Once all the objects are saved and activated, the files are picked up by the File Adapter, sent through XI to be received by the receiver mail adapter. The file with attachment is received as shown in the snapshot below. 2006 SAP AG 6

Conclusion: - This scenario could be used to send all types of binary files as attachments through XI. These include PDF documents, sound files, bitmaps amongst others Disclaimer and 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. 2006 SAP AG 7