on 03-31-2008 3:19 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.