cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming Image file with XML payload processing

Former Member
0 Kudos

Hi,

We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.

2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.

These files have to be mapped to the standard RFC and then pushed into ECC.

Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?

If yes, can someone please help with the code and the mapping aspects?

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181985
Active Contributor
0 Kudos

Use ABAP Proxy for this.

Send xml as Payload and Image as attachement.

On ECC ABAP proxy side handle this accordingly.

Regards,

Praveen Gujjeti.

former_member200962
Active Contributor
0 Kudos

If I am not wrong, PROXY does not support attachment.

Regards,

Abhishek.

Former Member
0 Kudos

Hi Praveen,

So does this mean that -

I send the 2 files to ECC in the same file adapter - with xml as the main file and the image as the attachment.

No mapping done on XI

How will the receiver message interface and type will handle the attachment?

In ECC, for the incoming receiver message, I create the proxy code

But is there some special handling for the attachment?

Can i not send the both the files (xml and image as they will both have same file names) to ECC nad store in AL11

Then I can use the abap proxy to manipulate the image file so that it is stored in archive

Regards,

Former Member
0 Kudos

Hi,

If abap proxy cannot support this, how do i manage the attachment?

Is there any way i can handle it with the java mapping in message mapping instead of using the module programming?

Regards,

former_member181985
Active Contributor
0 Kudos

Abhishek,

Though I never worked with server proxy with attachments,

In my opinio, when it is possible to send attachments from outbound ABAP proxy, then logically it should be possible to read attachments in the inbound proxies.

I just saw this link in forum,

[|]

Regards,

Praveen Gujjeti.

Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

Former Member
0 Kudos

ABAP/java proxies can handle attachments (both client and server proxies).

RFC adapter can not handle attachments.

former_member181985
Active Contributor
0 Kudos

Hi JaiShankar,

>ABAP/java proxies can handle attachments (both client and server proxies).

I too said the same. I was just replying to abhishek's answer....

Further, Just want to share this....

Since RFC doesnt support attachments, we can also send binaries to RFC like this....This will be useful if the SAP Web AS < 6.20 (no proxy environment support)

Check my WIKI Section: [How to Send Binary Data to RFC from XI(or)PI|http://wiki.sdn.sap.com/wiki/display/XI/HowtoSendBinaryDatatoRFCfromXI%28or%29PI]

Regards,

Praveen Gujjeti.

Former Member
0 Kudos

Hi,

What is the best way ot move forward with this-

Xml file with correspondin image file is veing received

The image file and the xml file contents have to be mapped to RFC

If i take the 2 files on to ECC, and then try the code in abap proxy to call the RFC, it is expecting the image contents in an internal table format with the field Line expecting lines from the binary file.

any ideas?

Regards,