on 12-26-2018 10:55 AM
Hi.
Has anybody an idea if there is an URL for Preview Scanned document file need to convert the preview file as Xstring or binary tab?
Idea is export a URL file
https://smartuat.gep.com/P2P/PreviewInvoiceById?dd=YnBjPTE5ODc5OCZkYz0yODE0MjU1&oloc=107
and get back an Xstring or binary tab.
Would really need your help.
Thanks in advance for all your ideas.
Alok
Use the class CL_HTTP_CLIENT to read the response from URL (the methods create_by_url, send, receive, and then response->get_data).
More info: SAP Library: Example Program: Executing an HTTP Request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
TIP - If you read a HTML of that PreviewInvoiceById page you can find, that there is another service (GetPDF) which returns PDF file. You can ask provider for more info.... But that is not about ABAP. For ABAP part see Sandra's answer.
.../P2P/GetPDF?...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandra,
I need to get that PDF which is showing in URL link and pass it for GOS attachment in MIR4 as a PDF attachment not as URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.