PDF File From URL - SAP Q&A
PDF File From URL - SAP Q&A
(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
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.
Daniel
Assigned Tags
Related questions
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
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
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
Show all
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-
Here,
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.
Please provide a distinct answer and use the comment option for clarifying purposes.
Find us on