0% found this document useful (0 votes)
164 views4 pages

GUI - Download PDF - SAP Q&A

Uploaded by

phogat project
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views4 pages

GUI - Download PDF - SAP Q&A

Uploaded by

phogat project
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Community

(http://www.sap.com/)
(https://community.sap.com)
(/users/login.html?
redirect_to=%2Fquestions%2F6091197%2Fguidownload-
pdf.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

Former Member
GUI_Download PDF
Jun 11, 2009 at 09:00 AM | 2.2k Views
=%2Fquestions%2F6091197%2Fguidownload-
a%3D6091197%26s_csrf%3D1607326632323.6418)
1
=%2Fquestions%2F6091197%2Fguidownload-
ata%3D6091197%26s_csrf%3D1607326632323.6418)
(/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-pdf.html%3Fs_action%3Dfollow%26s_csrf%3D1607326632323.6418)
Follow RSS Feed

Dear all

I use

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

IMPORTING

bin_ lesize = w_bin lesize

bin_ le = w_bin le

TABLES

otf = t_ofdata

lines = t_lines.

To create my PDF File.

Now I like to save this to my PC with GUI_Download.

Which is the data_tab I have to save? When I use t_ofdata, Acrobat Reader can't open the le. T_lines is empty.

Herbert

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-pdf.html%3Fs_action%3Dcomment%26s_data%3D6091197%26s_csrf%3D1607326632323.6418) |


Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-
pdf.html%3Fs_action%3DreportQuestion%26s_data%3D6091197%26s_csrf%3D1607326632323.6418)

Assigned Tags

ABAP Development (/tags/833755570260738661924709785639136) |

Related questions

Download PDF le in background (https://answers.sap.com/questions/875898/download-pdf- le-in-background.html)


By Former Member ( https://people.sap.com/former.member) Mar 10, 2005

Download to PDF File (https://answers.sap.com/questions/1197032/download-to-pdf- le.html)


By Former Member ( https://people.sap.com/former.member) Feb 07, 2006

2 Answers
/
Sort by: Votes | Newest | Oldest

Best Answer

Vineesh Varghese ( https://people.sap.com/vineesh.varghese)


(/users/80380/vineeshvarghese.html)

Jun 11, 2009 at 09:14 AM

Herbert, please refer the below link...


o=%2Fquestions%2F6091197%2Fguidownload-
ToView%3D6091317%23answer-
ata%3D6091317%26s_csrf%3D1607326632323.6418)
1
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/saving-a-pdf-to-unix-using-gui_download-1636674 (http://sap.ittoolbox.com/groups/technical-
o=%2Fquestions%2F6091197%2Fguidownload-
ToView%3D6091317%23answer-
_data%3D6091317%26s_csrf%3D1607326632323.6418)
functional/sap-dev/saving-a-pdf-to-unix-using-gui_download-1636674)

I think...it will help you

Edited by: Vin on Jun 11, 2009 11:15 AM


Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-
pdf.html%3Fs_action%3Dcomment%26s_data%3D6091317%26s_csrf%3D1607326632323.6418) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-pdf.html%3Fs_action%3Dreport%26s_data%3D6091317%26s_csrf%3D1607326632323.6418)
|
Share

2 Comments

Former Member  Former Member


Jun 11, 2009 at 09:43 AM (/comments/6091660/view.html)
found it...

the problem was that I lled bin_ le = w_bin le.

when I mark this as comment, it works.

Thank you all

Like (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-pdf.html%3FchildToView%3D6091660%23comment-
6091660%26s_action%3Dlike_comment%26s_data%3D6091660%26s_csrf%3D1607326632323.6418) 0 |
Share
|

Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-


pdf.html%3Fs_action%3DreportComment%26s_data%3D6091660%26s_csrf%3D1607326632323.6418)

Show all

Comment on This Answer (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-


pdf.html%3Fs_action%3Dcomment%26s_data%3D6091317%26s_csrf%3D1607326632323.6418)

Former Member

Jun 11, 2009 at 09:14 AM

Hi!
o=%2Fquestions%2F6091197%2Fguidownload-
oView%3D6091332%23answer-
ata%3D6091332%26s_csrf%3D1607326632323.6418)
1
Write the code as this....
o=%2Fquestions%2F6091197%2Fguidownload-
_data%3D6091332%26s_csrf%3D1607326632323.6418)
oView%3D6091332%23answer-

DATA :
itab_otf type table of itcoo,
itab_tline type table of tline,

/
call function 'CONVERT_OTF'
exporting
format = 'PDF'
max_linewidth = 132
tables
otf = itab_otf
lines = itab_tline
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
.

call function 'GUI_DOWNLOAD'


exporting
filename = 'C:\TEMP\DATA.PDF'
filetype = 'BIN'
confirm_overwrite = 'X'
tables
data_tab = itab_tline
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
.

This will get you the tline....

Regards.
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-
pdf.html%3Fs_action%3Dcomment%26s_data%3D6091332%26s_csrf%3D1607326632323.6418) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-pdf.html%3Fs_action%3Dreport%26s_data%3D6091332%26s_csrf%3D1607326632323.6418)
|
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%2F6091197%2Fguidownload
You must be Logged in (/users/login.html?redirect_to=%2Fquestions%2F6091197%2Fguidownload-
pdf.html%3Fs_action%3DanswerQuestion%26s_csrf%3D1607326632323.6418) 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:sapnetwork@sap.com)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy