on 05-04-2015 11:35 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.