Display pdf file using webdynpro abap
Hi Friends,
My requirement is to display pdf file in the second page with the input text entered in the fisrt page when clicked on action
button( in the first page) using webdynpro abap.
Can anybody explain the step by step procedure as I am new to this area.
Thanks in advance.
Reagrds,
Nagaraju
Hi,
Check this.,
Creating a PDF file in webdynpro abap.
Web Dynpro ABAP display pdf
hope this helps u.,
Thanks & Regards
Kiran
Similar Messages
-
How to upload a pdf file using webdynpro abap
Hi Experts,
I need to upload pdf files using webdynpro abap.my question is where to upload this files and how to upload this files, and how to display this pdf file.
Please Provide Requried Information.
Waiting for Reply.
Thanks & Regards.
Bhushan.Hi,
There is a UI element with the type 'File Upload'.
You can use that in your view.
For further details and coding, please refer to
[http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm]
Hope this helps you.
Regards,
Dolly -
Error in displaying PDF file in webdynpro application
Hi Experts,
I am trying to display one pdf file using webdynpro abap using MIME.
While executing the application i am getting an error in the browser:
" File doesnot begin with '%PDF-' "
Please help me to proceed.
Regards,
Arun.Hi Arun,
Please check this...
File does not begin with %PDF
File does not begin with %PDF
Cheers,
Kris. -
How to read the excel file using webdynpro abap?
Hi,
how to read and modify excel file using webdynpro abap?
Regards,
PavaniFor reading excel file follow the steps :
1. Use a File upload UI element and bind it with xstring.
2. Now your excel will be uploaded and stored in Xstring.
3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
4. Now split the string at new line so as to make an internal table .
Ex . SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE it_table.
here it_table is type table of string.
5.now loop at the internal table and separate the content of this table separated by tab.
Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
it_new type string_table.
6. For more info , refer this thread :
Re: How to upload excel file in Webdynpro application using ABAP -
Creating a PDF file in webdynpro abap.
Hi friends,
Can anybody tell me how to create PDF file in webdynpro abap and how to save and edit, copy etc., whatever you can do through normal pdf file?
I have checked with the standard application WDR_TEST_ADOBE and WDR_TEST_ADOBE_ONLY. But none of the applications are working...
Could anyone please suggest me how to do this?
Regards
Sireesha.Hello Sireesha,
Good places to start are the online help and tutorials, which you can find here:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning</a>
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm</a>
Best regards,
Thomas -
How to Download a PDF file from Webdynpro ABAP Screen
Hi,
I have developed a input form in webdynpro - ABAP(Not Adobe),
As I am not using above services here, but would like to download the information I am capturing into a PDF file.
can I do it without using adobe interactive forms ?
thanks
SiddharthHi siddharth,
My suggestion would be to create your output as a Smartform and call your Smartform in your View.
For more Click this link.
[HOW TO DISPLAY A SMARTFORM AS PDF DOCUMENT IN WEB DYNPRO FOR ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]
Regards
Bulent -
How to upload pdf file to DataBase using webdynpro abap.
Hi Experts,
how can i upload a pdf file in document server using webdynpro abap and display the same pdf file on the view using webdynpro abap.
Please Provide requried information .
Thanks & Regards.
Bhushan.NB - the "data" that is returned by these classes is the data as defined in an adobe form - it doesn't return the content of non-form PDF documents.
The PDF must be an interactive form ( although that doesn't restrict you to using the SAP process for creating the form is my understanding - but I could be wrong. )
Edit - I was wrong! ONLY PDF documents that have been created by the ADS can have data extracted using these classes. So unless you are using Adobe interactive forms - then you will get no value from this functionality - and if you're using AIF then you're probably just use the standard UI element
Edited by: Chris Paine on Oct 26, 2010 6:04 PM -
Is it possible to read PDF file data by using Webdynpro Abap?
Hi,
I have an requirement, where customer will upload an PDF file on an application and i need to read some data from pdf file.
The pdf file contains only text data in tabular format.
In past i developed an application for uploading data from Excelshet by using WDA . But just wondering, whether it is possible to upload the data from Pdf file also. ( Also if not possible then what could be other way to read PDF file data in abap)
Regards
PGNB - the "data" that is returned by these classes is the data as defined in an adobe form - it doesn't return the content of non-form PDF documents.
The PDF must be an interactive form ( although that doesn't restrict you to using the SAP process for creating the form is my understanding - but I could be wrong. )
Edit - I was wrong! ONLY PDF documents that have been created by the ADS can have data extracted using these classes. So unless you are using Adobe interactive forms - then you will get no value from this functionality - and if you're using AIF then you're probably just use the standard UI element
Edited by: Chris Paine on Oct 26, 2010 6:04 PM -
How to print PDF file content from ABAP in background?
Hi,
Is it possible to print PDF file content from ABAP in background?
I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
Please have you any suggestions?
Thank you
Tomas<b><u>Solution:</u></b><br>
<br>
The target output device must support PDF print, this is only one limitation.<br>
<br>
REPORT z_print_pdf.
TYPE-POOLS: abap, srmgs.
PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
p_immed AS CHECKBOX.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
DATA: lv_rc TYPE i,
lv_filter TYPE string.
DATA: lt_files TYPE filetable.
FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
file_filter = lv_filter
CHANGING
file_table = lt_files
rc = lv_rc
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0 AND lv_rc EQ 0.
MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
IF sy-subrc EQ 0.
p_fname = <fs_file>-filename.
ENDIF.
AT SELECTION-SCREEN.
DATA: lv_name TYPE string,
lv_result TYPE boolean.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING
file = lv_name
RECEIVING
result = lv_result
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
IF lv_result NE abap_true.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
START-OF-SELECTION.
END-OF-SELECTION.
PERFORM process.
FORM process.
DATA: lv_name TYPE string,
lv_size TYPE i,
lv_data TYPE xstring,
lv_retcode TYPE i.
DATA: lt_file TYPE srmgs_bin_content.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lv_name
filetype = 'BIN'
IMPORTING
filelength = lv_size
CHANGING
data_tab = lt_file
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_size
IMPORTING
buffer = lv_data
TABLES
binary_tab = lt_file
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
IF lv_retcode EQ 0.
WRITE: / 'Print OK' COLOR COL_POSITIVE.
ELSE.
WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
ENDIF.
ENDFORM. " PROCESS
FORM print USING iv_prndst TYPE rspopname
iv_content TYPE xstring
CHANGING ev_retcode TYPE i.
DATA: lv_handle TYPE sy-tabix,
lv_spoolid TYPE rspoid,
lv_partname TYPE adspart,
lv_globaldir TYPE text1024,
lv_dstfile TYPE text1024,
lv_filesize TYPE i,
lv_pages TYPE i.
CLEAR: ev_retcode.
CALL FUNCTION 'ADS_SR_OPEN'
EXPORTING
dest = iv_prndst
doctype = 'ADSP'
copies = p_ncopi
immediate_print = p_immed
auto_delete = 'X'
IMPORTING
handle = lv_handle
spoolid = lv_spoolid
partname = lv_partname
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_GET_PATH'
IMPORTING
ads_path = lv_globaldir.
CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
TRANSFER iv_content TO lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CLOSE DATASET lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
EXPORTING
iv_content = iv_content
IMPORTING
ev_pages = lv_pages.
lv_filesize = XSTRLEN( iv_content ).
CALL FUNCTION 'ADS_SR_CONFIRM'
EXPORTING
handle = lv_handle
partname = lv_partname
size = lv_filesize
pages = lv_pages
no_pdf = ' '
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_SR_CLOSE'
EXPORTING
handle = lv_handle
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
ENDFORM. " PRINT -
Uploading/Downloading Files in Webdynpro ABAP
Hello,
I am trying to Upload/Download Files in Webdynpro ABAP using the following link:
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
It works fine and the file(either .doc or .txt) gets uploaded successfully. But when I download it ,it is not able to retrieve the contents.
May be the SAP ECC system does not work with Microsoft Office 2007.
Please help.
Thanks.I guess it has problem with .doc extension but
.txt you can read
and also .docx and .xlsx will provide the content
it is only this .doc and .xls which will create problem.
e.g. .docx after downloading will give one .zip file.
change its extension to .doc or .docx. the content will be there.
thanks
sarbjeet singh. -
How to upload file in webdynpro abap alv
Hello Friends,
how to upload file in webdynpro abap alv
Regards
Narendra
Moderator message: please search for available information, post in correct "Web Dynpro ABAP" forum if still required.
Edited by: Thomas Zloch on Jun 6, 2011 11:55 AMHi Narendra,
You ahve to search before posting. This discussed many times.
You need to use file upload ui element to upload data. and display in alv.
Please go thorugh this..
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
Re: Upload .xls file in WDABAP
http://forums.sdn.sap.com/click.jspa?searchID=72307893&messageID=5425671
Cheers,
Kris. -
Dear everyone
I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it.
I read a european commission document explaining that
http://ec.europa.eu/research/participants/data/support/sep_usermanual.pdf
If Safari does not display pdf forms in the browser window, uninstall all older versions of Adobe Reader and download the most recent one. First close Safari and then install Reader. Launch Safari and you ought to be able to open the pdf files inside the Safari window. If you install Adobe Reader 10.1.x without first closing Safari, Safari will not display the pdf file inside its browser window until it is re-launched. For further help, please see http://helpx.adobe.com/acrobat/kb/troubleshoot-safari-plug-acrobat-x.html
I have OX S yosemite, I unistalled adobe acrobat, I closed safary and I installed the new version of adobe acrobat
but when I open a web page that I need to allow me to display and modify PDF files it is not working.
I checked the following web page
Troubleshoot Safari plug-in | Acrobat X, Reader X
that is recommending the following:
The AdobePDFViewer plug-in is used to display PDF files in Safari using Acrobat and Reader.
This plug-in is installed as part of the Acrobat X or Reader X installation. The location of this plug-in is:
/Library/Internet Plug-ins/AdobePDFViewer.plugin
but after the new installation with this folder is completely empty and I am still
unable to open these pdf.
Does anybody knows anything else I can do?
Best regards
RamonMoving this discussion to the Adobe Reader forum.
-
How to display Pdf file in iPad site
Hi
How to display Pdf file in web page which can able to view in iPad safari?
Thanks,
ArunYou can't really.
You need to use DHTML in the swf-wrapper HTML file, usually a
division wrapped iFrame, and load the PDF into the iFrame as an
overlay to the Flash. -
How to display pdf file in windows phone 8 silver light application?
Hi,
I am developing windows phone 8 silver light application . For my app I want to display pdf files . Is there any default controls to display pdf files ?
I don't want to display using launchers , I want to display with in the app.
any help,
Thanks..
Suresh.MProbably this should give you a fair idea : How to view PDF file inside an Windows Phone application?
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8 -
Html db to display pdf files saved as blob in the data base
Hi all,
I have a DB page to call next page to display pdf files.
A procedure is being called when the link is clicked on the first page.
However, the procedure output a juck code insteand the pdf files. Please help.
Thanks,
n_length number;
n_image BLOB;
begin
select note_image, dbms_lob.getlength(note_image)
into n_image, n_length
from n100_notes where note_id = nid;
owa_util.mime_header('application/pdf');
htp.p('Content-length: ' || n_length);
wpg_docload.download_file(note_image );we use:
owa_util.mime_header('application/pdf',false);
htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
owa_util.http_header_close;
wpg_docload.download_file(l_blob);
see plpdf.com
LL
Maybe you are looking for
-
Is there a way to make an HTML or CSS Dreamweaver template (not a website template)?
This might be confusing. I'm not looking for a way to create a website template but a layout/DocType template that has an HTML skeleton in place. The reason I'm asking is that I do a lot of email designs in Dreamweaver and I want to get a template in
-
How to make .pdf's open in Reader and NOT Photoshop
I am using Adobe Reader X, v 10.1.1 with Vista. I also have Adobe Photoshop installed. When I try to open a .pdf file, it automatically opens in Photoshop instead of Reader. Is there a setting I can change somewhere to ensure that pdf's automatica
-
Exclamation mark on large view, but file still there?
Hi, I've seen a few other people with this problem, but I seem to have a different variant. I have a new computer, new iPhoto library. For a small number of photos when I double click on a thumbnail it shows a black screen with an exclamation mark. T
-
Hello Guys, I am extracting Data from ECC to BI. Following the Requirement. I have MSEG , MKFP , VBAK and VBEP tables data to be extracted. I am think of creating View for creating Datasource for the extaction. I have linked MKPF and MSEG tables and
-
Using if(_currentframe=="frameLablel")
_currentframe returns a number so that I can use it like this in a conditional statement if(_currentframe==2) However if(_currentframe=="frameLablel") does not work. Is is possible to use frame label for this purpose?