Skip to Content
author's profile photo Former Member
Former Member

File-to-File/RFC scenario with reading filename

Hi,

i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.

Scenario:

- A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...

- The file must now go through a business process (not necessary the file, but i need the filename in the business process).

- The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.

- The collected data are send via SOAP to a receiver system

- The file itself has to be stored in a directory via File-Adapter.

Here's my problem:

- Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?

- Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?

- How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?

- Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?

Thanks in advance,

ms

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 31, 2008 at 02:51 PM

    If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).

    For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2008 at 02:57 PM

    Hey

    the below blog might be helpful to you

    /people/venkataramanan.parameswaran/blog/2006/12/12/java-mapping-to-handle-flat-files-in-sap-xi

    Thanx

    Aamir

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.