Skip to Content
avatar image
Former Member

Encoding Binary Attachments in Adapter Module

Hi Experts,

I want to Encode outgoing attachments with base64 in an Adapter Module.

I am using Receiver RNIF 2.0 Adapter.

My Scenario is :

ABAP Proxy sends multiple attachments with the payload to PI.

In the Receiver Adapter, PI has to Encode all the attachments with base64 encoding.

--- Is there any limit on number of Attachments in an RNIF 2.0 receiver adapter? (I am not sure but I have heard two as of now


--- Can you please help in the proper syntax in Adapter module in order to read the attachments which are a

    a physical PDF Files (Binary) and then Encode all the attachments into a base64 and return the same.

Regards,

VkJoat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 21, 2012 at 08:20 AM

    Would it be an option to encode the attachments in ABAP before you send the message?

    For example with function module SCMS_BASE64_ENCODE.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Stefan Grube

      Hi Stefan,

      I have fixed the Issue though there is a strange thing happening.

      Though ABAP was encoding the attachment only once somehow RNIF was encoding it again thus legacy system was receiving double encoded attachment.

      I am sending the attachment directly without encoding it from the source itself then the legacy system is able to decode successfully and receive the attachment.

      It implies RNIF adapter is encoding it.

      Regards,

      Vkjoat