cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments

Former Member
0 Kudos

I need to send an XL sheet as an attachment thru XI to another Server.

How can I Accomplish the above task? What adapter I need to use on the sender And Receiver side?

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

What is the source of data ? Is it XL sheet ?

Some of the options-

1)If so use file adapter as a sender and Receiver also a file adapter with modules-

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c...

If .xls as an attachment in the mail-

2) Use Java proxy as a sender and receiver and using java email API in the reciever java proxy, you can send the XL sheet as an attachment.

3) Use File adapter to pick the data and send this data into Websercice thru SOAP adapter.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40728f7b-0401-0010-d9bc-8c7...

For converting excel sheet into xml , if mapping etc required then, go thru-

/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter

And also using Message Transform bean in ,Receiver Mail adapter you can send the .xl sheet as an mail attachment

Regards,

Moorthy

Former Member
0 Kudos

Thanks Krishna. How to send a PDF or an XL document from an R/3 system. There is no file Conversion needed. No Mapping is needed for me.

I want to ship these attachment(s) from the R/3 system to a file System. Thats all.

Thansk.

moorthy
Active Contributor
0 Kudos

SO your requirement is just an FTP thru XI ? am I right ?

Not an mail attachment ? right ?

You can think of writing a client abap proxy for this-

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

with SOAP attachment...

Regards,

Moorthy

Former Member
0 Kudos

Hi,

what if i am using abap proxy 2 java proxy with attachment,

how can i catch michal_attachment(image/jpg)file on payload of inbound in receiver java proxy?

thanks

venjamin

Former Member
0 Kudos

Hi Rohini,

Here is the Configuration.

Design ur outbound and inbound receiver Interfaces and no mapping is required. In ur Sender File communication channel get thet .xls or .pdf file.

Use Receiver Mail Adapter w/o Mail Package.

Check the keep Attachment Check box and Content Encoding as base64. Rest are usual mail config like To Address, Subject,etc.

In Module use <b>localejbs/AF_Modules/MessageTransformBean</b>before standard Mail Adapter Bean(Its available in Adapter Framework) and give following parameters and values

Transform.ContentDescription: MainDocument

Transform.ContentDisposition: attachment

Transform.ContentType: application/vnd.ms-excel;name="attaching.xls"(Name of the Attachment).

For pdf content type would be application/pdf

Reference:

<a href="http://www.w3schools.com/media/media_mimeref.asp">http://www.w3schools.com/media/media_mimeref.asp</a>

Do Get back with the results.

Regards,

Sudharshan

Former Member
0 Kudos

Hi Rohini,

Just see these steps described by Bhavesh, it will surely help you understand how to send a PDF or any file from one system to another when there is no transformation required.

Do the folllowing~~

1. Create a dummy datatype

2. Create a Message Type for the data type of step 1

3. Create the outboundand inbound message interaces using the message type of step 2

4.No Message amd Inteface Mapping is needed

5. In Configuration , create Receiver Determination, Interface Determination , Sender and REceiver Agreement as usual. In Interface Determination, there will be no INTERFACE MAPPING.

Regards,

Abhy

Former Member
0 Kudos

Thanks Abhy and also to Bhavesh. Exactly thats what I was looking for.

Thank you gentlemen.

Answers (0)