cancel
Showing results for 
Search instead for 
Did you mean: 

Access MIME from ABAP Mapping for Attachment

Former Member
0 Kudos

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.

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for your suggestions Francesco,

I didn't know about the first option. I am trying to check if the 2nd option works for me.

Thanks,

Vijay

Former Member
0 Kudos

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