cancel
Showing results for 
Search instead for 
Did you mean: 

Keep attachments in receiver file adapter

Former Member
0 Kudos

Hello,

We receive via Abap proxy a txt file by attachment, and we need to archive that file in other machine using a receiver file adapter but the receiver file adapter doesn´t have any keep attachment option. How can we achieve that?

Thanks!

Luis

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

two options:

- java proxy call in which you can get the attachment and do whatever you need

- adapter module for the file adapter - -you can easily get the attachment there + you can do all the config in the communication channel

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michal,

I dont know what you mean with this:

- adapter module for the file adapter - -you can easily get the attachment there + you can do all the config in the communication channel

Can you explain me a bit more clearly? I dont have any idea about java proxies either...

Thanks a lot,

Luis

Former Member
0 Kudos

3rd option: crate a JAVA message mapping that open the attachment and put it in the MainDocument.

In this way you will handle the data with file adapter, or sent in in a BPM for produce more than one file.

Regards,

Sandro

Former Member
0 Kudos

Hi Sandro,

maybe that is a good option, but my problem is that I know too little about java, could you guide a litle bit how i should do that?

Thanks a lot,

Luis

Former Member
0 Kudos

Look to this weblog:

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

good starting point,

Regards

Sandro

MichalKrawczyk
Active Contributor
0 Kudos

hi Sandro,

this will not work as you don't have access to attachments from java mappings...

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

java mapping approach will not work

Regards,

michal

Former Member
0 Kudos

Hi Michal

so if java mapping doesnt work, how could I resolve my problem with the solutions you proposed? Could you explain a bit more clearly, please?

thanks,

Luis

Former Member
0 Kudos

Yes, I thoug that was possible but in fact the attachment is intended to be something that should be not accessed from the integration server and so not mapped.

http://help.sap.com/saphelp_nw2004s/helpdata/en/b6/0b733cb7d61952e10000000a11405a/frameset.htm

I think that the adapter module will be the better choice.

Regards,

Sandro

Former Member
0 Kudos

Hi Sandro,

What you mean with adapter module??

Regards,

Luis

Former Member
0 Kudos

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81">How To Create Modules for the J2EE Adapter Engine</a>

You need JAVA skill in order to make it.

Regards,

Sandro

Former Member
0 Kudos

hi,

could u please tel me in which scenerio we use this attachments

Answers (2)

Answers (2)

STALANKI
Active Contributor
0 Kudos

did u try additional file attachment?

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Receiver File adapter by default so not support attachments.

Am not sure if this will work, but one option would be to write a module that will take the attachment from SOAP header and then archive it in the necessary directoy in the module itself.

Regards,

Bhavesh