0% found this document useful (0 votes)
599 views

PDF File From URL - SAP Q&A

Uploaded by

phogat project
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
599 views

PDF File From URL - SAP Q&A

Uploaded by

phogat project
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Community

(http://www.sap.com/)
(https://community.sap.com)
(/users/login.html?
redirect_to=%2Fquestions%2F348314%2Fdownload-
pdf-file-from-url.html)
Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.php) Login (/users

Search the SAP Community

(/users/19063/dweinberg.html) Daniel Weinberg ( https://people.sap.com/d.weinberg)


Download pdf le from URL
Nov 03,
Fquestions%2F348314%2Fdownload-pdf- 2017 at 07:37 AM | 1.3k Views
le-from-
a%3D348314%26s_csrf%3D1607326644051.9236)
0
Fquestions%2F348314%2Fdownload-pdf- le-from-
ata%3D348314%26s_csrf%3D1607326644051.9236)
(/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-url.html%3Fs_action%3Dfollow%26s_csrf%3D1607326644051.9236)
Follow RSS Feed

Hi Community,

We need to retrieve a pdf le from URL that is stored as a link under the attachments of a material. The ultimate goal is to store this pdf as an attachment to a customer quote.

The URL is a regulare one that is publicly available w/o authentication. Meaning I can simply enter the URL (http://somehost.com/path/ le.pdf
(http://somehost.com/path/ le.pdf)) in webbrowser to get the le.

Is there any way to achieve this? We tried using the REST API but currently fail with an RABAX error whenever we call the REST service.

Any help appreciated,

Daniel

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-


url.html%3Fs_action%3Dcomment%26s_data%3D348314%26s_csrf%3D1607326644051.9236) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-
url.html%3Fs_action%3DreportQuestion%26s_data%3D348314%26s_csrf%3D1607326644051.9236)

Assigned Tags

SAP Business ByDesign (/tags/01200615320800000691) | SAP Cloud Applications Studio (/tags/67837800100800006741) |

Related questions

Download OWL-Export via Url (https://answers.sap.com/questions/9429520/download-owl-export-via-url.html)


By Former Member ( https://people.sap.com/former.member) Jul 19, 2012

Retrieving Customer Invoice PDF les from ByDesign from an external system (https://answers.sap.com/questions/565274/retrieving-customer-invoice-pdf- les-from-bydesig.html)
By Eelco Essenberg ( https://people.sap.com/ir.eelcoe) Jul 12, 2018

2 Answers

Sort by: Votes | Newest | Oldest

Knut Heusermann ( https://people.sap.com/knut.heusermann)


(/users/4424/knutheusermann.html)
Nov 08, 2017 at 10:37 AM

Hi Daniel,
%2Fquestions%2F348314%2Fdownload-pdf-
ToView%3D351416%23answer- le-from-
ata%3D351416%26s_csrf%3D1607326644051.9236)
0
In blog post Read and Write ByDesign
%2Fquestions%2F348314%2Fdownload-pdf- Attachments using Web Services (https://blogs.sap.com/2015/10/08/read-and-write-bydesign-attachments-using-web-
le-from-
ToView%3D351416%23answer-
data%3D351416%26s_csrf%3D1607326644051.9236)
services/) I described how to create and update attachments of ByD business objects using Soap services. Adding an external link as attachment to a business object in ByD
works basically the same: just submit the external link instead of the le content (here: material attachment):

/
...
<AttachmentFolder
DocumentListCompleteTransmissionIndicator="false"
ActionCode="06">
<UUID>00163e0e-4644-1ed5-9aed-c438b0f1dcec</UUID>
<Document PropertyListCompleteTransmissionIndicator="false" ActionCode="01">
<VisibleIndicator>true</VisibleIndicator>
<CategoryCode>3</CategoryCode>
<TypeCode>10001</TypeCode>
<Name>www.sap.com</Name>
<AlternativeName>My Web Page</AlternativeName>
<ExternalLinkWebURI>http://www.sap.com</ExternalLinkWebURI>
</Document>
</AttachmentFolder>

Using OData you would basically need to provide the same data, but I did not use that yet.

Best regards,
Knut
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-
url.html%3Fs_action%3Dcomment%26s_data%3D351416%26s_csrf%3D1607326644051.9236) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-
url.html%3Fs_action%3Dreport%26s_data%3D351416%26s_csrf%3D1607326644051.9236) |
Share

3 Comments

Daniel Weinberg ( https://people.sap.com/d.weinberg)  Knut Heusermann

Nov 10, 2017 at 10:46 AM (/comments/353172/view.html)


Hi Knut,

This is exactly what I am trying to do. But I could not nd a way to download a PDF from an external source out of an ABSL script. I tryed to use a external service of type REST for this, but calling the
REST simply dumps.

Regards,

Daniel

Like (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-url.html%3FchildToView%3D353172%23comment-


353172%26s_action%3Dlike_comment%26s_data%3D353172%26s_csrf%3D1607326644051.9236) 0 |
Share
|

Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-


url.html%3Fs_action%3DreportComment%26s_data%3D353172%26s_csrf%3D1607326644051.9236)

Show all

Comment on This Answer (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-


url.html%3Fs_action%3Dcomment%26s_data%3D351416%26s_csrf%3D1607326644051.9236)

Rishabh Sharma ( https://people.sap.com/rishabh7)


(/users/370973/rishabh7.html)

Jul 11 at 10:44 AM

Hi Daniel,
%2Fquestions%2F348314%2Fdownload-pdf- le-from-
ata%3D13089838%26s_csrf%3D1607326644051.9236)
View%3D13089838%23answer-
0
Thanks for your blog
%2Fquestions%2F348314%2Fdownload-pdf- le-from-
data%3D13089838%26s_csrf%3D1607326644051.9236)
View%3D13089838%23answer-

I have one requirement,

Here,

Sender Ariba cxml payload the attachment (“cid:[email protected] (mailto:[email protected])”)


document is coming in above format need to extract this content and send to base64 with third party… could you please suggest me with your inputs, that how we can
extract the content.

It’s very helpful.

Thank you.
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-
url.html%3Fs_action%3Dcomment%26s_data%3D13089838%26s_csrf%3D1607326644051.9236) |
/
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-
url.html%3Fs_action%3Dreport%26s_data%3D13089838%26s_csrf%3D1607326644051.9236) |
Share

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 speci cs, 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.

Rules of Engagement (https://www.sap.com/community/resources/rules-of-engagement.html)

Know someone who can answer? Share a link to this question.

You must be Logged in (/users/login.html?redirect_to=%2Fquestions%2F348314%2Fdownload-pdf- le-from-


url.html%3Fs_action%3DanswerQuestion%26s_csrf%3D1607326644051.9236) to submit an answer.

Please provide a distinct answer and use the comment option for clarifying purposes.

Submit your Answer

Find us on

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity) (https://www.youtube.com/c/SAPCommunities)

(https://www.linkedin.com/company/sap) (https://instagram.com/sap/) (http://www.slideshare.net/SAP) (mailto:?subject='SAP Community')

Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-use.html)

Legal Disclosure (http://sap.com/about/legal/impressum.html) Copyright (http://sap.com/about/legal/copyright.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Newsletter (https://www.sap.com/cmp/nl/sap-community-voice/index.html) Support (mailto:[email protected])

You might also like