Skip to Content
avatar image
Former Member

Using attachment with RNIF

Hi,

I actually use B2B scenario based on RosettaNet/RNIF with SAP PI 7.0 SP12.

I need to use the attachment capability, but, according to discussion with SAP support there is no current documentation about how to perform this action.

Has anybody already do this setup ?

Is it like attachment with mail adapter ? Do I develop a custom adapter module to use this standard capability ?

Best Regards,

Laurent

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 11, 2007 at 12:25 PM

    The attachments in RNIF are mapped to an XI message attachment.

    You can create this attachment in an adapter module or you can send or receive the attachment with an ABAP proxy.

    What is the senders or receivers of the message in your scenario?

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      PI will only do xml automatically. The main payload is in xml format and the RNIF adapter will take care of it. You can send any MIME type as an attachment as long as its acceptable to TIBCO and RNIF adapter. You will have to convert XML or text to other MIME types before attaching it. The above code accepts a string input and attach's it to the main payload. If you want to convert to pdf you have to do it in other udf then use the above udf to create attachment.You need to change "application/pdf" to your required MIME type in the above code.

      In my scenario I was getting the IDOC as the main payload and a binary string in another proxy and BPM multi-mapping was used to put both of them together.

      Below is the scenario

      IDOC -> BPM -


      main payload PIDX Invoice

      PROXY- BPM -


      attachment in base64 binary string

      BPM -> (RNIF) Receiver

      If you create attachment then

      You should get another RNIF after

      Content-ID: RN-Delivery-Header.3d1534e1e78911df8070001b78be27c2

      <XMLTag>insert XML here</XMLTag>

      for attachment:

      Content-Type: application/(Your MIME)

      Content-Transfer-Encoding: binary

      Content-ID: Attachment.xxxxxxxATsap.com

      Thanks

      Asif

  • avatar image
    Former Member
    Nov 11, 2010 at 09:52 AM

    Thanks, Asif for the help. Currently we are exploring the ABAP proxy solution with the customized module to send the attachment as well from SAP to PI.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Venkata,

      Sorry this answer came in 3 years late. ;-) I hope you were able to resolve your problem. The ABAP Consultant should be able to generate a spool of both the XML (proxy) message + the attachment.

      Cheers.

      Regards,

      Madina