Reading PDF in ABAP report
Hi all,
Is Adobe Document Services (ADS) necessary for reading PDF files directly in ABAP report? Maybe there is other way?
Best regards
Marcin Cholewczuk
I guess there is no such solution. I think it's time for new project on Code Exchange platform
Best regards
Marcin Cholewczuk
Similar Messages
-
Getting error while printing PDF from ABAP Report
hi everyone,
I am trying to print PDF form from a report. But the output i get is an error msg on the Paper
ERROR: limitcheck
OFFENDING COMMAND: PDF Parser: Damaged PDF file, failed reading trailer STACK:
thanks.Some additional information:
In the defaulttrace, I can see this:
Service XMLFormService: Native process (PID=15892) E:\usr\sap\PEP\JC00\j2ee\os_libs\adssap\XMLFormService\bin\XMLForm.exe terminated abnormally with error code 128
Processing exception during a "Render" operation.
Request start time: Fri Mar 06 10:11:55 CET 2009
com.adobe.ProcessingException: XMLFM Exception during render: org.omg.CORBA.COMM_FAILURE
Exception while connecting to <SERVER-IP>:3533
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method -
Error at step Run ABAP Reports during system copy in HPUX
Hi experts,
During system copy from Prodcution to Development i am facing the following errror at step
Run ABAP Reports
INFO 2009-03-18 03:57:36
Information for application function INST_EXECUTE_REPORT copied to local Repository.
INFO 2009-03-18 03:57:36
Function module INST_EXECUTE_REPORT set successfully.
INFO 2009-03-18 03:57:36
Executing function call INST_EXECUTE_REPORT.
ERROR 2009-03-18 03:57:38
FRF-00025 Unable to call function. Error message: Exception condition "WRITE_FAILED" raised. .
INFO 2009-03-18 03:57:38
RFC connection closed.
ERROR 2009-03-18 03:57:38
MUT-03025 Caught ERfcExcept in Modulecall: Exception condition "WRITE_FAILED" raised..
ERROR 2009-03-18 03:57:38
FCO-00011 The step runRADDBDIF with step key |NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_ABAP_Reports|ind|ind|ind|ind|2|0|runRADDBDIF was executed with status ERROR .
Please let me know the solution
Thanks & Regards,
ArunThis seems to be related with permission to write in /usr/sap/trans
Read,
Re: Run ABAP Reports error during ECC 6.0 installation on Win2003 with Oracle
Exception condition "WRITE_FAILED" raised during installation 4.0
and
Install error at Phase 33
Regards
Juan -
Reading and printing the pdf file in abap reports.
Hello friends .
how to read pdf file and print the contents of the pdf file in abap reports.?
Edited by: Shivanand Kalagi on Jan 11, 2008 12:47 PMHI Brad Bohn,
Issue is not only with the file damaged.
My requirement is to place the PDF file in FTP folder using FTP_COMMAND, FTP_R3_TO_SERVER Function Modules.
I'm placing the PDF sucessfully in FTP Folder. When i try to open it's showing the "File cannot be opened because it's damaged....".
I'm not sure whether i'm placing the PDF file in correct way.
Regards,
Saran -
Download Simple ABAP report as PDF
Hi freinds,
There is a requirement that a simple classical abap report has to download as PDF on user PC. how it can be acheived without using smartforms and sapscript.
regards
Rajeshhi,
This might resolve your problem.
[https://forums.sdn.sap.com/click.jspa?searchID=18642809&messageID=4655514] -
How to directly print PDF file(which is stored in SAP) in ABAP report?
Hi experts,
I searched SDN for printing PDF file but everything is about OTF to PDF and to use fm: CONVERT_OTF which is not the solution for my problem.
I have to build ABAP report which will take the PDF file attached to SAP document (CV02N) and print it.So, which function module or program can I use to print the PDF file?
Thank you very much.
Kind regards,
DanijelaDear
this is the code for down load smartform for PDF format. its working properly
2nd way is
set your Acrobat Printer as your default printer
when you print select printer as LOCAL
then you will file dialog box for Naming PDF
DATA : T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE.
DATA : WA_CTRLOP TYPE SSFCTRLOP.
DATA : WA_OUTOPT TYPE SSFCOMPOP.
DATA : T_OTFDATA TYPE SSFCRESCL.
DATA : T_PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA : V_FILESIZE TYPE I.
DATA : W_BIN_SIZE TYPE I.
WA_CTRLOP-GETOTF = 'X'.
WA_CTRLOP-NO_DIALOG = 'X'.
WA_OUTOPT-TDNOPREV = 'X'.
CALL FUNCTION P_LV_FNAME
EXPORTING
OUTPUT_OPTIONS = WA_OUTOPT
USER_SETTINGS = 'X'
CONTROL_PARAMETERS = WA_CTRLOP
IMPORTING
JOB_OUTPUT_INFO = T_OTFDATA
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
T_OTF[] = T_OTFDATA-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = W_BIN_SIZE
TABLES
OTF = T_OTF
LINES = T_PDF_TAB
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
DATA : LV_DOWN_FILE TYPE RLGRAP-FILENAME.
DATA : LV_TEXT TYPE STRING.
CASE SSCRFIELDS-UCOMM.
WHEN 'REPRUNMOLD'.
CONCATENATE '(' SO_SCHDT-LOW '-' SO_PLANT-LOW ')' INTO LV_TEXT.
CONCATENATE '\\lkdb01\FTP-Loadstar\0.PP_Planning\ZPP014\Run_Moulds\' SY-DATUM '-' SY-TIMLO '-' 'Running Mould' '-' LV_TEXT '.pdf' INTO LV_DOWN_FILE SEPARATED BY SPACE.
WHEN 'REPLINESIT'.
CONCATENATE '(' SO_SCHDT-LOW '-' SO_PLANT-LOW '-' SO_LINE2-LOW ')' INTO LV_TEXT.
CONCATENATE '\\lkdb01\FTP-Loadstar\0.PP_Planning\ZPP014\Line_Situation\' SY-DATUM '-' SY-TIMLO '-' 'Line Situation' '-' LV_TEXT '.pdf' INTO LV_DOWN_FILE SEPARATED BY SPACE.
ENDCASE.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_BIN_SIZE
FILENAME = LV_DOWN_FILE
FILETYPE = 'BIN'
IMPORTING
FILELENGTH = V_FILESIZE
TABLES
DATA_TAB = T_PDF_TAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC <> 0.
MESSAGE 'File not downloaded succesfully' TYPE 'I'.
EXIT.
ELSE.
MESSAGE 'PDF File downloaded succesfully' TYPE 'I'.
ENDIF.
ENDFORM. " Print_PDF
Rewards if useful. -
Convert ABAP Report's Output into PDF Format..
Hello Experts,
I want to convert the outout of an ABAP report to an PDF file. I have succedded in doing the following :
Data statistics -
Number of
Records passed ---4
After executing the program RSTXPDFT4, i can get PDF file saying number of records in the above format...
But i want to have the output of the report in PDF. suppose a list is being displayed in the output olf the ABAP report, i want to save that report in PDF format....
Please help........
Anupam...Hi Anupam,
Try this way
<font color=blue><pre>
REPORT ztest_notepad.
"Variables
DATA:
l_lay TYPE pri_params-paart,
l_lines TYPE pri_params-linct,
l_cols TYPE pri_params-linsz,
l_val TYPE c,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount,
spoolno TYPE tsp01-rqident.
*Types
TYPES:
t_pripar TYPE pri_params,
t_arcpar TYPE arc_params.
"Work areas
DATA:
lw_pripar TYPE t_pripar,
lw_arcpar TYPE t_arcpar.
DATA:
it_t100 TYPE t100 OCCURS 0 WITH HEADER LINE,
it_pdf TYPE tline OCCURS 0 WITH HEADER LINE.
"Start-of-selection.
START-OF-SELECTION.
l_lay = 'X_65_132'.
l_lines = 65.
l_cols = 132.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = lw_arcpar
in_parameters = lw_pripar
layout = l_lay
line_count = l_lines
line_size = l_cols
no_dialog = 'X'
IMPORTING
out_archive_parameters = lw_arcpar
out_parameters = lw_pripar
valid = l_val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF l_val <> space AND sy-subrc = 0.
lw_pripar-prrel = space.
lw_pripar-primm = space.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lw_pripar
ARCHIVE PARAMETERS lw_arcpar
NO DIALOG.
ENDIF.
"Get data
SELECT *
FROM t100
INTO TABLE it_t100
UP TO 100 ROWS
WHERE sprsl = sy-langu.
" Writing to Spool
LOOP AT it_t100.
WRITE:/ it_t100.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolno = sy-spono.
"Convert spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolno
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = it_pdf.
"Download PDF file C Drive
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\itab_to_pdf.pdf'
filetype = 'BIN'
TABLES
data_tab = it_pdf. </pre></font>
Thanks
Venkat.O -
How can I print PDF attachments from ABAP report in transaction ME23N?
Hi,
Users attach PDF files using "services for objects" in transaction ME23N.
How can I print the PDF attachments from ABAP report ?
Thanks in advance,,Hi,
check this link,this might help you to solve your problem
/people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
Regards
Kiran Sure -
How to read RRI sent parameters in ABAP Report??(Urgent)
I have my own ABAP report. How can I read parameter that RRI sent to me from BEX Query? I know it's possibly needed to setup table name in RSBBS for each element.
hi,
i am failing to see relevance of this post in WebDynpro for ABAP forum. Requesting moderator to move to ABAP general forum. -
ABAP report to read request details in data-target and delete
Hi,
Is there any abap report which I can run in background to read all request details (Request ID, Date) in a data target?
And any ABAP report which can delete a particular request?
Regards
VikrantHi Vikrant,
You can check Table RSREQDONE and RSREQICODS for all details about requests.
About deletion you can try with standard function in InfoPackage when uploading.
Ciao.
Riccardo. -
Read BDS documents in an ABAP report
I have entered comments in BPS using standard functionnality. I would like to create an ABAP report to display content of my comments to avoid having to click on each icon. Do you know what are the function modules or abap report to call. Any piece of codes for this purpose would be highly appreciated.
ThanksHi,
You can use NEW-LINE NO-SCROLLING before writing the row using WRITE statement.
This may not be useful for you now, but it will help for someone who are looking for help on this.
Thanks,
MK. -
Sir,
I am receiving a "error reading pdf report" while submitting for digital signature. Please tell me how I can over come the issue.
Regards,
N. MuraleedharanHello Nagai,
I think you are not maintaining the description in the member of the dimension. Please check the description in the member .
Thanks.
With regards,
Anand Kumar -
Is it possible to read a mySQL database from an ABAP report?
We have some information stored in a mySQL database which is now required on ABAP reports.
Is it possible to read the mySQL database from an ABAP report? I'm still a bit confused on that.
So far I have setup DBCO with information about the mySQL server using MMS as the DBS because mySQL was not an option. I have made sure we have the latest dbmssslib.dll installed.
When I try to run the following code
EXEC SQL.
CONNECT TO :con
ENDEXEC.
I get error: SQL Server does not exist or access denied.
Then I have tried to connect using the function CHECK_CONNECTION_SDB.
I get the following messages in the return table:
1 OS-AppServ:Windows NT
2 dbmcli_neg: no_client_software
3 dbmrfc_c_neg: no_client_software
4 dbmrfc_s_neg: no_client_software
5 sql_neg
6 work_proc: 1
Does anyone know what I need to do to connect to the mySQL database.
Thank you
KarenThank you for your reply. I've gone through all the documentation you sent and much more and I'm still not sure what the problem is.
One thing that concerns me is that this all relates to MS SQL server and I'm trying to link to a mySQL database. Is this even possible?
Some posts talk about changing Oracle settings and having J2EE installed. Is this necessary to connect to a mySQL database via ABAP?
Which user should I enter into DBCO? Is it the mySQL server user or a SAP user? Does the person in charge of the mySQL database need to add any permissions for SAP to access the database or is that done by the user in DBCO?
Does anyone have any more advice?
Thank you
Karen
Also, does anyone know what the messages from the CHECK_CONNECTION_SDB function mean
1 OS-AppServ:Windows NT
2 dbmcli_neg: no_client_software
3 dbmrfc_c_neg: no_client_software
4 dbmrfc_s_neg: no_client_software
5 sql_neg
6 work_proc: 1
Edited by: Karen Dean on Oct 6, 2009 4:44 AM -
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 show custom header in pdf generated from report
Hi,
I have created a report that is used to display Leave record of employees in an organization. After which it creates a pdf file and send it to respective HOD.
In this case I am trimming generated output and sendinf only required fields to the pdf.
When pdf is getting generated it shows program name as Title of that report.
I want to change this header to my own header along with some variable but not sure how I can do so.
I have also tried TOP-OF_PAGE but problem in this case is that I am still getting program name along with it.
To generate pdf I have used function :
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = spoolid
no_dialog = ' '
importing
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
tables
pdf = l_pdfdata.
Then I had converted this pdf to Binary
call function 'QCE1_CONVERT'
tables
t_source_tab = l_pdfdata
t_target_tab = lit_record
exceptions
convert_not_possible = 1
others = 2.
Then I had created subject matter and used FM : SO_NEW_DOCUMENT_ATT_SEND_API1: to send mail to respective HODs.
I tried dubbing it but couldn't get any variable which is holding program name.
Sorry for putting in wrong forum.
so Closing it from this forum and raising the same in ABAp-General forum.
How to change header of pdf in generated report
Edited by: gaur.yagyesh on Apr 16, 2010 4:03 PMTo make it more clear to my question.
I am using sun one webserver 6.0 sp6.
I need to enable custom header on the webserver so that any request having a custom http header coming to webserver should be captured by the webserver.
Thanks,
Maybe you are looking for
-
Installing HP Officejet Pro 8000 Wireless problems
I'm having a problem installing my printer. When I first installed it I could use it as a local printer (usb wired to my computer) and it printed fine. I have a laptop and purposely bought the wireless printer so that I could use it with the laptop
-
Can't view Camera RAW files in Bridge or Photoshop CS4 after upgrading to Mac Mavericks X OS.
After upgrading my Mac operating system to Mavericks X I can no longer view Camera RAW images on either Bridge or Photoshop CS4! I'd already fixed the issue of not even being able to launch Photoshop by installing Apple's Java applet, but this doesn'
-
Excise form Purchase and Sales side
Hi, Can some one guide me the Purchase side Excise through PO and Sale side Excise. It would be thankfull if some one can give me T code from Purchase side and Sales side. Points will awarded. Thanks, Pallavi
-
Multiple macs & different iTunes libraries with iCloud
I have multiple macs with different iTunes libraries, and I don't want to blend them. What do I need to know/do before setting up and using iCloud? I don't mind choosing one library for use with iCloud, but I don't want to disturb the other librari
-
Just wondering if anyone has any insight on how Oracle is preparing to include OWB funcationality into ODI 12g and when it will be available? Thanks in advance. Edited by: D-Hawk on Jan 22, 2013 9:17 AM