Skip to Content
author's profile photo Former Member
Former Member

Access MIME from ABAP Mapping for Attachment

Hi,

I am adding an attachment in ABAP Mapping and sending that message to Ariba System through HTTP Adapter channel.

I am able to send the message successfully and also I can see the attachment in the PI RWB But I am not able to see any

attachment in the Receiver's end along with the message.Ariba is able to receive the message successfully though.

It looks like I need to change MIME Header a bit before sending the message.

I check this link.

xi-attachment-and-main-document-mime-sequence

But Its about SOAP Adapter with PayloadSwap Bean. Since HTTP adapter is on ABAP we can not use the Module

Tab of the channel.

I need to know how can I use ABAP Mapping to access the MIME HEADER to change/ check Content Disposition and

other properties.

Thanks,

Vijay

Edited by: tech.info012 on Oct 12, 2010 6:33 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2010 at 05:37 PM

    Hi,

    i don't think is possible to manage PI Message Attachments in HTTP Plain adapter.

    What I can suggest you are two possibilities:

    1) Try to write someting like this:

    /people/william.li/blog/2009/03/19/adapter-user-module-for-http-adapter

    2) Try to use the SOAP Adapter (J2EE) and check the option "Do not use SOAP Enevlope" and "Keep Attachment"

    In this way you're able to use the Standard Adapter Modules.

    Francesco

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      When I tried the 2nd option It is giving me this error in response message. Do you have any idea what problem can cause this.

      <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" 
      SOAP:mustUnderstand="1">
        <SAP:Category>XIAdapterFramework</SAP:Category> 
        <SAP:Code area="MESSAGE">GENERAL</SAP:Code> 
        <SAP:P1 /> 
        <SAP:P2 /> 
        <SAP:P3 /> 
        <SAP:P4 /> 
        <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not queue receive 
      for message 4cb474bf-00c1-02af-e100-80000aa00d4b(INBOUND). Reason: java.lang.NullPointerException:
      </SAP:AdditionalText> 
        <SAP:Stack /> 
        <SAP:Retry>M</SAP:Retry> 
        </SAP:Error>

      Thanks,

      Vijay

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.