Академический Документы
Профессиональный Документы
Культура Документы
(http://www.sap.com/)
(https://community.sap.com)
(/users/login.html?
redirect_to=%2Fquestions%2F11928298%2Fdownload-
pdf-file-to-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
Former Member
Download PDF le to application server
Aug 31, 2015 at 12:47 PM | 2.1k Views
Fquestions%2F11928298%2Fdownload-pdf- le-to-
ata%3D11928298%26s_csrf%3D1607326637876.167)
pplication-
1
Fquestions%2F11928298%2Fdownload-pdf- le-to-
data%3D11928298%26s_csrf%3D1607326637876.167)
pplication-
(/users/login.html?redirect_to=%2Fquestions%2F11928298%2Fdownload-pdf- le-to-application-server.html%3Fs_action%3Dfollow%26s_csrf%3D1607326637876.167)
Follow RSS Feed
Hi experts,
I have an adobe form created in tcode SFP. I can download the le to local desktop successfully.
lit_pdfcontent = cl_document_bcs=>xstring_to_solix(
ip_xstring = ls_formoutput-pdf ).
IF sy-subrc = 0.
ENDLOOP.
ENDIF.
CLOSE DATASET l_ le
Assigned Tags
Related questions
/
2 Answers
Hi Lakshmi,
%2Fquestions%2F11928298%2Fdownload-pdf- le-to-
data%3D11930143%26s_csrf%3D1607326637876.167)
FchildToView%3D11930143%23answer-
1
Please follow the below steps..
%2Fquestions%2F11928298%2Fdownload-pdf- le-to-
FchildToView%3D11930143%23answer-
_data%3D11930143%26s_csrf%3D1607326637876.167)
Using OPEN DATASET TRANSFER CLOSE DATASET upload the form to application server.
Download the Form from Application server to presentation server using OPEN DATASET READ CLOSE DATASET.
Please check the below code for your reference.it (http://reference.it) is working ne..,
CHANGING
ie_outputparams = fp_outparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
EXPORTING
i_name = 'ZAF_TEST'
/
IMPORTING
e_funcname = fm_name.
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
EXPORTING
/1bcdwb/docparams = fp_docparams
i_matnr = p_matnr
IMPORTING
/1bcdwb/formoutput = ls_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc <> 0.
ENDIF.
lit_pdfcontent = cl_document_bcs=>xstring_to_solix(
ip_xstring = ls_formoutput-pdf ).
IF sy-subrc = 0.
ENDLOOP.
ENDIF.
ENDIF.
CLEAR lit_pdfcontent.
REFRESH lit_pdfcontent.
DO.
IF sy-subrc = 0.
EXIT.
ENDIF.
ENDDO.
EXPORTING
letype = 'BIN'
IMPORTING
lelength = lengthn
TABLES
data_tab = lit_pdfcontent.
* IMPORTING
* E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
Regards,
Suneel.uggina
Hi Lekshmi,
%2Fquestions%2F11928298%2Fdownload-pdf- le-to-
data%3D11928398%26s_csrf%3D1607326637876.167)
FchildToView%3D11928398%23answer-
0
Please refer the below link.. It may help
%2Fquestions%2F11928298%2Fdownload-pdf- you to reslove the issue..
le-to-
FchildToView%3D11928398%23answer-
_data%3D11928398%26s_csrf%3D1607326637876.167)
Regards,
Suneel. /
Add a Comment (/users/login.html?redirect_to=%2Fquestions%2F11928298%2Fdownload-pdf- le-to-application-
server.html%3Fs_action%3Dcomment%26s_data%3D11928398%26s_csrf%3D1607326637876.167) |
Alert Moderator (/users/login.html?redirect_to=%2Fquestions%2F11928298%2Fdownload-pdf- le-to-application-
server.html%3Fs_action%3Dreport%26s_data%3D11928398%26s_csrf%3D1607326637876.167) |
Share
1 Comment
Former Member
Aug 31, 2015 at 01:30 PM (/comments/11928487/view.html)
Hi Suneel,
I had already tried the above code, it is not working. I would save the le in application server; but when we check the same le after downloading it to local machine; it would give error message that "the
le is damaged or could not be repaired".
Thanks,
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