cancel
Showing results for 
Search instead for 
Did you mean: 

File-to-File/RFC scenario with reading filename

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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