cancel
Showing results for 
Search instead for 
Did you mean: 

PO attachment via CXML to Ariba

Former Member
0 Kudos

Hi Experts,

Ariba integration to SAP is implemented in our project vis CXML. Our new requirement is, PDF file from ECC application server must be linked to PO in Ariba.

According to CXML user guide, Ariba adapter accepts only MIME external file and <ATTACHMENT> node in CXML structure must be populated with Unique CID as url. So that Ariba adapter can upload the file to Ariba from its host server.

I tried giving application server path with host name in the url, but no luck as it accepts only MIME files.

- Will Ariba adapter accepts application server path. If not, how to generate MIME file for it and send the unique ID to PI?

- Suppose an attachment via ABAP Proxy is sent to PI. Can PI send this attachment to CXML?

Appreciate you help.

Thanks,

Prasanna.

Accepted Solutions (0)

Answers (2)

Answers (2)

RaghuVamseedhar
Active Contributor
0 Kudos

Prasanna,

Attachment files referenced by cXML documents can reside either on a server accessible by the receiver (URL link) or within an envelope that also includes the cXML documents themselves (MIME with attachment).

If attachment is on some server in your network, just include the URL to it in cXML. When end user wants to see the attachment, Ariba will pull it from URL and display it to him.

Former Member
0 Kudos

Thank you Raghu.

We are trying for MIME attachment. As you have mentioned, URL must be included in CXML. Can you give the steps in ECC and PI? The files are on SAP application server.

Thanks & Regards,

Prasanna.

RaghuVamseedhar
Active Contributor
0 Kudos

Prasanna,

AribaNetworkAdapter receiver channel connecting to Ariba.

Please check page 135 of Ariba Network Adapter for SAP NetWeaver® Setup Guide v3.0. (Ariba provides these documents).

HTTP receiver channel connecting to Ariba.

1. Develop and Configure, Purchase Order interface SAP -> PI -> Ariba.

2. First test it without any attachment. PO raised in SAP should be pushed to Ariba Network and should be visible in Ariba realm.

3. The attachment (pdf or image which is present on SAP app server), should be accessible using URL. i.e., if you put URL in internet browser address bar, you should be able to see it. If it is not accessible, work with admin team. It should also be accessible from outside network (firewall settings need to be maintained).

4. Now give that URL link in cXML (there is an element to hold it in cXML) and push a PO to Ariba. Now, when this PO is opened in Ariba, attachment should be visible when you click show attachment in Ariba realm.

Former Member
0 Kudos

Hi Raghu,

We are actually stuck here only. Will the application server be accessible via URL? How can we achieve this? Should this be handled in ABAP code or only few setting from admin team?

I am checking with admin team on this. Meanwhile could you please share me any reference on how to do this.

Thanks,

Prasanna.

RaghuVamseedhar
Active Contributor
0 Kudos

Prasanna,

Images/pdf's can be exposed on Java application server using below Java code. Request ABAP team write something similar in ABAP.


response.setContentType("image/gif");

ServletOutputStream out = response.getOutputStream();

try {

  InputStream fileReader = new FileInputStream("E:\\Documents and Settings\\Raghu\\Desktop\\raghu\\raghu.jpg");

  byte[] b = new byte[9999];

  fileReader.read(b);

  out.write(b);                      

} finally {

  out.close();

}

Former Member
0 Kudos

Hi Raghu,

ECC  team gave one url from which I am able to download the PDF file. I mapped the same url to CXML PO structure. But PI is throwing below error. It is unable to download the file.

Kindly help.

Thanks,

Prasanna.

former_member181985
Active Contributor
0 Kudos

Hi,


As far as I see the cXML structure, you have to send attachment as base64 data but in payload section

Check the screen shot attached

Best Regards,

Praveen Gujjeti

Former Member
0 Kudos

Hi Praveen,

I could not find this structure in standard content. Also could you explain how we can attach it to that particular PO.

Thanks,

Prasanna.