There have been many discussions on the XI forum regarding the advantages
of using ABAP Proxy protocol over the RFC protocol. In this weblog I will not provide you
with a direct answer which protocol you should use. Instead I will show how you can use
the new protocol’s function of sending attachments together with the message payload.

Let’s imagine we have to send an invoice (in XML) from our R/3 or ERP system.
If this was our only requirement then we could easily consider using either RFC
or ABAP Proxy communication as in both cases messages will be transfered to XML in the XI
but what if we also have to send the same invoice as a jpg file (or PDF) together
with the XML message and send it in the mail (using mail adapter)? What can we do then?
Is there a simple way of doing it? It turns out that there is ???? Since ABAP Proxy protocol
sends a SOAP message we can include the jpg file as an SOAP attachment.

Below you’ll find a code sample that executes a proxy call to the XI. Together with the XML message
we’re sending a jpg file in the attachment.

Now when we post this message we will see both parts in the XI – the XML payload and the attachment part of the SOAP message.

If we want to include the jpg file inside the e-mail message all we have to do is to check the “keep attachments” indicator.

When we test our flow we will see the jpg attachment in the e-mail message.

As you can see the jpg file has content-id name but you can easily change it inside the adapter module
of the mail adapter for example so that it can have the attachment’s name name.

I believe that the scenario I’ve described above could also be done with RFC protocol somehow
but I’m pretty sure we’d have to do a lot more coding to achive the same so why not use the new XI’s possibilities?

New NetWeaver Information at

Very Helpfull

User Rating: Be the first one !