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

The PDF Files From Application Server - 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)
110 views

The PDF Files From Application Server - 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/ 4

Community

(http://www.sap.com/)
(https://community.sap.com)
(/users/login.html?
redirect_to=%2Fquestions%2F10006380%2Fdownload-
the-pdf-files-from-application-server.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
Download the pdf les from application server
May 15, 2013 at 10:36 AM | 648 Views
stions%2F10006380%2Fdownload-the-pdf- les-from-
pplication-
ta%3D10006380%26s_csrf%3D1607332323798.532)
0
stions%2F10006380%2Fdownload-the-pdf- les-from-
data%3D10006380%26s_csrf%3D1607332323798.532)
pplication-
(/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
Follow
server.html%3Fs_action%3Dfollow%26s_csrf%3D1607332323798.532) RSS Feed

Hi Experts,

I need to download all the pdf les stored in the directory from the application server.

The path of the directory is /tempspace/pdf/saleord

Please suggest how to download all the pdf les at once from the above path of application server to the presentaion server ( my desktop).

Thanks

Parag

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-


server.html%3Fs_action%3Dcomment%26s_data%3D10006380%26s_csrf%3D1607332323798.532) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
server.html%3Fs_action%3DreportQuestion%26s_data%3D10006380%26s_csrf%3D1607332323798.532)

Assigned Tags

ABAP Development (/tags/833755570260738661924709785639136) |

Related questions

Issue in TAB Delimited le (https://answers.sap.com/questions/5997252/issue-in-tab-delimited- le.html)


By Former Member ( https://people.sap.com/former.member) May 22, 2009

Download les from application server (https://answers.sap.com/questions/3635366/download- les-from-application-server.html)


By Muruganand Kumaresan ( https://people.sap.com/muruganand.kumaresan) Feb 16, 2008

2 Answers

Sort by: Votes | Newest | Oldest

Sriranjani Chimakurthy ( https://people.sap.com/sriranjani.chimakurthy)


(/users/19358/sriranjanichimakurthy.html)
May 15, 2013 at 10:48 AM

Hi Parag,
uestions%2F10006380%2Fdownload-the-pdf- les-from-
data%3D10006484%26s_csrf%3D1607332323798.532)
FchildToView%3D10006484%23answer-
0
There is no standard transaction to download
uestions%2F10006380%2Fdownload-the-pdf- les-from-directly. But you can write your custom program which shall read all the les on the application server and download it to
FchildToView%3D10006484%23answer-
_data%3D10006484%26s_csrf%3D1607332323798.532)
a speci c location in PC.

You can use the FM EPS_GET_DIRECTORY_LISTING to list all the les on a particular directory.

Thanks and Regards,

Sriranjani Chimakurthy. /
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
server.html%3Fs_action%3Dcomment%26s_data%3D10006484%26s_csrf%3D1607332323798.532) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
server.html%3Fs_action%3Dreport%26s_data%3D10006484%26s_csrf%3D1607332323798.532) |
Share

2 Comments

Marcin Cholewczuk ( https://people.sap.com/marcin.cholewczuk)

May 15, 2013 at 12:05 PM (/comments/10006679/view.html)


Hi,

There is CG3Y 😉, but works only for single les.

Best Regards

Marcin Cholewczuk

Like (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-server.html%3FchildToView%3D10006679%23comment-


10006679%26s_action%3Dlike_comment%26s_data%3D10006679%26s_csrf%3D1607332323798.532) 0 |
Share
|
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
server.html%3Fs_action%3DreportComment%26s_data%3D10006679%26s_csrf%3D1607332323798.532)

Show all

Comment on This Answer (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-


server.html%3Fs_action%3Dcomment%26s_data%3D10006484%26s_csrf%3D1607332323798.532)

Arindam Mondal ( https://people.sap.com/arindam.mondal)


(/users/51676/arindammondal.html)
May 15, 2013 at 10:58 PM

Hi,
uestions%2F10006380%2Fdownload-the-pdf- les-from-
data%3D10008071%26s_csrf%3D1607332323798.532)
FchildToView%3D10008071%23answer-
0
You can call the FM EPS2_GET_DIRECTORY_LISTING
uestions%2F10006380%2Fdownload-the-pdf- les-from- like as shown below:
FchildToView%3D10008071%23answer-
_data%3D10008071%26s_csrf%3D1607332323798.532)

CALL FUNCTION 'EPS2_GET_DIRECTORY_LISTING'


EXPORTING
iv_dir_name = p_fapp "Directory you want to read
TABLES
dir_list = gt_ lelist "Get back list of les in it
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.

IF sy-subrc NE 0.

*Give suitable error msg.

ENDIF.

*This will read the PDF les only make sure you have the extension of the le as .pdf when you *upload to AL11
LOOP AT gt_ lelist INTO w_ lelist WHERE name CP '*.pdf'.

*Call FM ARCHIVFILE_SERVER_TO_CLIENT in the loop to download from app server

ENDLOOP.

Cheers,

Arindam

Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-


server.html%3Fs_action%3Dcomment%26s_data%3D10008071%26s_csrf%3D1607332323798.532) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-
server.html%3Fs_action%3Dreport%26s_data%3D10008071%26s_csrf%3D1607332323798.532) |
Share /
2 Comments

Arindam Mondal ( https://people.sap.com/arindam.mondal)  Former Member

May 16, 2013 at 02:28 PM (/comments/10010379/view.html)


Hi,

I think you have the paths wrong.I think the target path is 'C:\Parag\pdf TEST_201305080549.pdf (http://TEST_201305080549.pdf)' and path is '/tempspace/pdf/saleord' also I think you have to give
the full path i.e. along with the name of the le. Something like

PATH = '/tempspace/pdf/saleord/TEST_201305080549.pdf (http://TEST_201305080549.pdf)'

and

TARGETPATH = lepath " 'C:\Parag\pdf TEST_201305080549.pdf (http://TEST_201305080549.pdf)'

Cheers,

Arindam

Like (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-server.html%3FchildToView%3D10010379%23comment-


10010379%26s_action%3Dlike_comment%26s_data%3D10010379%26s_csrf%3D1607332323798.532) 0 |
Share
|

Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-


server.html%3Fs_action%3DreportComment%26s_data%3D10010379%26s_csrf%3D1607332323798.532)

Show all

Comment on This Answer (/users/login.html?redirect_to=%2Fquestions%2F10006380%2Fdownload-the-pdf- les-from-application-


server.html%3Fs_action%3Dcomment%26s_data%3D10008071%26s_csrf%3D1607332323798.532)

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%2F10006380%2Fdownload-the-pdf- les-from-


application-server.html%3Fs_action%3DanswerQuestion%26s_csrf%3D1607332323798.532) 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