You are on page 1of 4

Community

(http://www.sap.com/)
(https://community.sap.com)
(/users/login.html?
redirect_to=%2Fquestions%2F3426348%2Fscripts-
--pdf-download.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
Scripts - PDF download
Dec 31, 2007 at 06:50 AM | 19 Views
=%2Fquestions%2F3426348%2Fscripts---pdf-
data%3D3426348%26s_csrf%3D1607332326165.9636)
0
=%2Fquestions%2F3426348%2Fscripts---pdf-
_data%3D3426348%26s_csrf%3D1607332326165.9636)
(/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-download.html%3Fs_action%3Dfollow%26s_csrf%3D1607332326165.9636)
Follow RSS Feed

Hi All ,

Can we download the pdf le from the sap sripts.

Thanks

Ravi

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-


download.html%3Fs_action%3Dcomment%26s_data%3D3426348%26s_csrf%3D1607332326165.9636) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3DreportQuestion%26s_data%3D3426348%26s_csrf%3D1607332326165.9636)

Assigned Tags

NW ABAP Print and Output Management (/tags/334558737810127171897316045257708) |

Related questions

SAP SCRIPTS download to local pc. (https://answers.sap.com/questions/4565844/sap-scripts-download-to-local-pc.html)


By Former Member ( https://people.sap.com/former.member) Aug 08, 2008

Scripts Download (https://answers.sap.com/questions/3822654/scripts-download.html)


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

4 Answers

Sort by: Votes | Newest | Oldest

Former Member

Dec 31, 2007 at 07:06 AM

Hi,
o=%2Fquestions%2F3426348%2Fscripts---pdf-
ldToView%3D3426444%23answer-
ata%3D3426444%26s_csrf%3D1607332326165.9636)
0
By using the program RSTXPDFT4 we convert the script into pdf format.
o=%2Fquestions%2F3426348%2Fscripts---pdf-
_data%3D3426444%26s_csrf%3D1607332326165.9636)
ldToView%3D3426444%23answer-

satish.
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dcomment%26s_data%3D3426444%26s_csrf%3D1607332326165.9636) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dreport%26s_data%3D3426444%26s_csrf%3D1607332326165.9636) |
Share

/
Former Member

Dec 31, 2007 at 07:18 AM

Use the Program RSTXPDFT4


o=%2Fquestions%2F3426348%2Fscripts---pdf-
ldToView%3D3426495%23answer-
ata%3D3426495%26s_csrf%3D1607332326165.9636)
0
Any Report in the SAP Scripts Spool can be converted to PDF using the Program RSTXPDFT4
o=%2Fquestions%2F3426348%2Fscripts---pdf-
_data%3D3426495%26s_csrf%3D1607332326165.9636)
ldToView%3D3426495%23answer-

Regards.
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dcomment%26s_data%3D3426495%26s_csrf%3D1607332326165.9636) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dreport%26s_data%3D3426495%26s_csrf%3D1607332326165.9636) |
Share

Former Member

Jan 04, 2008 at 01:38 PM

hi
o=%2Fquestions%2F3426348%2Fscripts---pdf-
ldToView%3D3443907%23answer-
ata%3D3443907%26s_csrf%3D1607332326165.9636)
0
Look this program RSTXPDFT4
o=%2Fquestions%2F3426348%2Fscripts---pdf-
_data%3D3443907%26s_csrf%3D1607332326165.9636)
ldToView%3D3443907%23answer-

Regards

Gregory

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-


download.html%3Fs_action%3Dcomment%26s_data%3D3443907%26s_csrf%3D1607332326165.9636) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dreport%26s_data%3D3443907%26s_csrf%3D1607332326165.9636) |
Share

Former Member

Jan 04, 2008 at 04:09 PM

hi,
o=%2Fquestions%2F3426348%2Fscripts---pdf-
ldToView%3D3444530%23answer-
ata%3D3444530%26s_csrf%3D1607332326165.9636)
0
to download a SAP-SCRIPT in pdf format
o=%2Fquestions%2F3426348%2Fscripts---pdf-
_data%3D3444530%26s_csrf%3D1607332326165.9636)
ldToView%3D3444530%23answer-

1 - you need to have the otf data from the smartforms.

for having back this table you have to pass the value 'X' to tdgetotf of itcpo structure

>itcpo-tdgetotf = 'X'.

>CALL FUNCTION 'OPEN_FORM'

> EXPORTING

> ...

> options = itcpo

> ...

>EXCEPTIONS

>OTHERS = 12.

the function CLOSE_FORM now gives back in otf_data tables parameter a table that contain in OTF format the sapscript

>DATA: otf_data TYPE itcoo OCCURS 100 WITH HEADER LINE.

>CALL FUNCTION 'CLOSE_FORM'

> TABLES

> otfdata = otf_data

> EXCEPTIONS

> unopened = 1
/
> bad_pageformat_for_print = 2

> send_error = 3

> spool_error = 4

> codepage = 5

> OTHERS = 6.

now you can call the function CONVERT_OTF_2_PDF for converting the data and then download it with GUI_DOWNLOAD

>DATA: lt_pdf LIKE tline OCCURS 0 WITH HEADER LINE,

> l_len TYPE i,

> lt_docs TYPE docs OCCURS 0 WITH HEADER LINE.

>

>CALL FUNCTION 'CONVERT_OTF_2_PDF'

> EXPORTING

> use_otf_mc_cmd = 'X'

> IMPORTING

> bin_ lesize = l_len

> TABLES

> otf = otf_data

> doctab_archive = lt_docs

> lines = lt_pdf.

>

>

>CALL FUNCTION 'GUI_DOWNLOAD'

> EXPORTING

> bin_ lesize = l_len

> lename = 'c:\my_pdf.pdf (http://my_pdf.pdf)'

> letype = 'BIN'

> TABLES

> data_tab = lt_pdf

> EXCEPTIONS

> OTHERS = 99.

bye
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dcomment%26s_data%3D3444530%26s_csrf%3D1607332326165.9636) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F3426348%2Fscripts---pdf-
download.html%3Fs_action%3Dreport%26s_data%3D3444530%26s_csrf%3D1607332326165.9636) |
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%2F3426348%2Fscripts---pdf-


download.html%3Fs_action%3DanswerQuestion%26s_csrf%3D1607332326165.9636) 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