Conversion of sap spool to pdf page in landscape mode.
Hi All,
I have a requirement where I need to print the output from a spool request in SAP to a pdf page .
The page has to be in landscape format. Is it possible to create a pdf page which is always in landscape format?
I am using FM convert abapspool 2pdf for conversion of spool to pdf.
Does this require any setting from BASIS end?
Any ideas/thoughts are welcome..
Thanks -
Harmeet Singh.
hi,
plz check the exporting or importing options of FM so that u can change the page format in the PDF.
please reward me if useful.
gupta
Similar Messages
-
Conversion of spool to pdf format in landscape mode
Hi All,
I have a requirement where I need to print the output from a spool request in SAP to a pdf page .
The page has to be in landscape format. Is it possible to create a pdf page which is always in landscape format?
I am using FM convert abapspool 2pdf for conversion of spool to pdf.
Does this require any setting from BASIS end?
Any ideas/thoughts are welcome..
Thanks -
Harmeet Singh.hi check this...
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver,
p_sender LIKE somlreci1-receiver,
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
regards,
venkat appikonda -
Can someone make iBooks have the Option to view 2 pages in landscape mode so it can use up all the pixel real estate?
Apple usually does this for OSX and its great when compared to windows where it doesnt use up all the real estate for viewing applications like websites and pdf files but when it comes to iBooks, it feels like there is no apple touch to it and is limited.
If steve jobs were still alive, i bet there wouldnt be this problem >.>
Please consider this as a real problem for people out there who would like to see 2 pages in landscape mode with pdf files and not just epub files.
Thanks!Penguin, do you always insult people on here or was I just a special case?
If you read the statement carefully, which you obviously did not! I was speculating, and I did not say anything for certain about knowing or not knowing ...
I'm happy for the reply to the post and helpful link you posted to where I can leave some feedback for my post on an Apple monitored site but i rather you not reply if your gonna leave a snyde remark with every helpful comment.
Don't do it again. and Thanks for the help. -
Can a PDF file in landscape mode have two pages open at once
I notice when I use ibooks to read a pdf document on my ipad that in normal mode it woks just like a book with one page open, but when I turn to landscape mode, the document just greatly reduces in size, and centers on the screen, where as a book opens two pages side by side, that still turn like a normal book. Is there any way or app that will allow a PDF document to act like a book does in landscape mode, where two pages are open at once side by side and still a decent size. I know it will have to be smaller than it would be in regular mode, but a book works great in Landscape mode.
Get a free DropBox account.
Drag the files into DropBox and you can get a link to send to your friend to download.
Another option with DropBox is to use a Shared folder. If you share files a lot with your friend, setup a Shared folder and everything in the folder will be shared. Obviously they also need to setup a free DropBox account (works on Windows). Just keep the folder size under the 2GB free limit.
For the future... OS X Yosemite Mail coming this fall, will offer a way to share files like DropBox.
Mail Drop allows you to attach large files via iCloud.
Attachments can be up to 5GB in size. -new feature in OS X 10.10 Yosemite Mail -
PDF pages in landscape format like a book?
I want my PDF file to be in landscape format. I don't mean that each page is landscape but the stacking of pages goes from left to right not top to bottom. I don't see an option for this. I would like to know how to do this two ways:
1. When I create a PDF out of WORD documents.
2. When I merge several PDF files into one Binder.
I'm new to pdf's
Hope this makes sense.
Thanks so much!What you want is set up in the Print menu. when print window opens click on copies and pages and scroll down to two sided printing.
Choose book setting. Tablet setting show image of a table with spiral ring at top. -
Filling out PDF forms in Landscape Mode
I have used Preview to fill out PDF forms in Portrait mode and it's very nice because I can save the modified file and email it to others, or just keep it for reference. Anyway, I downloaded a PDF form and tried to fill out the text. It highlights the form fields just right, with the blue glowy rectangle and everything, and when I type in the text it appears just fine, until that field loses focus, then the text goes goofy--it shows up starting at the right hand side of the field and goes in the wrong direction. It's as if Preview still thinks that the PDF is in portrait mode even though it's in landscape mode. Do you know what I'm doing wrong or if there's a fix out there?
http://www.graniteschools.org/C13/Professional%20Growth%20and%20Evalua/Document% 20Library/SEWE20050602.pdf
-
Create PDF export in landscape mode
Hello!
I am searching for a possibility to export a Xcelsius 2008 presentation to PDF in landscape mode. All exports are in portrait mode and I can`t find any settings within Xcelsius 2008 to change it.
Does anyone know how to do it?
Thanks in advance,
ChristianHello Christian,
As far as I know there is no possibility to have an influence on the appearance of the PDF.
But you can export the dashboard as *.swf and use Adobe Acrobat to implement the dashboard in whatever format into a PDF.
Regards,
Ralf -
Convert SAP spool output to PDF
I have created program running in background to convert SAP spool output to PDF using function CONVERT_ABAPSPOOLJOB_2_PDF .
It has been working fine untill I have SAP spool contained > 99 pages. It has a dialog pop up asking to run it in background.
If I clicked YES, the function generated another background job and another spool.
Also the returned table PDF contained no data.
But it is ok when click NO. The program can generate PDF file.
My problem is I want to set this program as job, so it will not generate PDF file when SAP spool contained > 99 pages.
Has anyone experienced about this problem? or know how to convert to PDF from SAP spool (>99 pages)?
Thank you in Advance.Hi,
Use the FM convert_otfspooljob_2_pdf
see this link for example Re: Download in PDF format
"Do not use CONVERT_ABAPSPOOLJOB_2_PDF for script or Smartforms
Prabhudas -
Convert spool to PDF and send as email attachment
When i try to convert SAP spool to PDF and send it as email attachment, size of PDF document becomes large as compared to size of the PDF cocument i download using the same spool.
I am using following FMs.
CONVERT_ABAPSPOOLJOB_2_PDF to convert spool to PDF
and
SO_NEW_DOCUMENT_ATT_SEND_API1 to send email with attchment.
some times size of attchment exceeds 2MB and email results in error in SAP connect (SOST).
Any idea on how to compress the PDF attchment??
ThanksHi Venkat,
Can you plesae assist me.
I have a requirement to convert spool to pdf
send an email to users
issue is that attachement is big cant go through
I have used compress, but when I open the pdf file error that file was not correclty decoded
please assist, anyone -
Hello experts,
I am using <b>RSTXPDFT4</b> to convert SPOOL(<b>Script</b>) to PDF. It works fine in foreground if the number of pages is < 100.
But, if the pages are > 100 then it asks for running in background. I have chosen to run in background. But It did not ask me to specify the file path for creating the pdf file!
I am wondering where the pdf file is stored in this case ?? !!!. Anybody has encountered this before ????
It also noticed that it is creating one more spool number (<b>binary format</b>) when u specify it run the program <b>RSTXPDFT4</b> in background.Hello experts,
RSTXPDFT4 works fine for me if i want to convert spools to pdf files in foreground mode.
If i want to do this in background mode as a daily job i am not able to use RSTXPDFT4.
With report RSTXPDFT5 i am able to download in background as binary data but not as pdf.
So, i want to download spools to network shared folder in pdf formaat.
Thanks for suggestions & Regards
Janez -
SSRS: How to handle Landscape PDF page
I’m using SSRS to author PDF documents of size 8.5 * 11. I use the article
here to achieve this. But I don’t know how to handle the situation when one of the PDF page ( not the whole PDF file) is in landscape mode. Here are the steps I’m following
1>
Convert each PDF page into .png. each Size 8.5 * 11in
2>
Create report of size 8.5 * 11
3>
Drag & drop rectangle onto report body. Each rectangle of size 8.5 * 11in. represents one PDF page
4>
Set background image of rectangle to PNG created earlier.
Issue here is, if one the page in PDF is in landscape mode. When I create png for this page I have to rotate the image so that I can author it during design time. This image becomes 11 * 8.5 instead of 8.5 * 11.
If I leave the report size 8.5 * 11 then output PDF creates extra pages.
If set report size 11 * 11 then out PDF is also 11 * 11 ( which we don’t want)
Question:
Is there any way to rotate that particular rectangle (PDF page) clockwise during PDF export. Note that all other pages will be in portrait mode except the one which I want rotate.
Any help, hint will be appreciatedThanks Katherine
Unfortunately i
cannot use that solution. I'm planning to use SSRS to author PDF document. (as described in this
article here).
So the rectangle will have background set to an image. and then there will be controls (textbox, tables etc) on the top of rectangle image. So setting the rectangle's visibility will not solve my issue.
i think solution would be to author each Landscape page as separate report. and then export them as separate PDF. and merge them using third party APIs
Unless anyone has other solution -
Smart form: Spool to PDF Conversion more than 100 pages.
Hi folks,
I have an issue with Function Module (FM) CONVERT_ABAPSPOOLJOB_2_PDF when the report to be converted has more than 100 pages.....i have explained this scenario as below
We have been using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert ABAP report to PDF file and then send this via mail using FM SO_DOCUMENT_SEND_API1.....
PDF conversion using FM CONVERT_ABAPSPOOLJOB_2_PDF works well if the number of report pages is less than 100....i.e the table pdf of the FM will contain the output as expected.....
If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty.
Could you suggest me a woorkaround in this situtaion...i.e how do I then get the output of the background job
And any process to convert Spool to PDF if having more than 100 pages.
Thanks in Advance............Pb,
If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty
i would suggest you to if pages are more than 100 than you need to send report output to sp01 with spool request number by using fm job_open..job_close..
than from sp01 you can convert pdf by running RSTXPDFT4 in se38.
hope this would solve your problem.
Amit. -
PDF document to SAP SPOOLER:
Hello everyone,
There are many many examples of objects outputted to PDF. ALV lists, grids, and also SAP Spooler.
Has anyone run across a way to send a pdf to SAP spooler to print out? I know that
Adobe Forms is currently doing this in some manor.
Is it possible to customize that functionality?
Thanks for any help on this.
SteveI am not an expert, but I hope it will help you:
1) SAP is able to convert ABAP lists and OTF documents (sapscript, smart form) into PDF binary, but it is not able to send this binary to printers. PDF1 device is a converter but I think it can't be used with printers. PDF conversion is only used to create files, attach PDF to mails, and so on.
2) SAP sends documents to printers by first converting them into PCL, PS, Prestige, etc. PDF is not used.
So I think that printing directly a PDF by sending it to a printer is not possible: it must be first converted to PCL, PS, etc. For that, you may use softwares like Ghostscript... -
Merge Different Spools containing a Single PDF page into a Single PDF file.
Greetings,
I am developing a custom object where in i need to read PDF file from many different Spools(Range given on Input Screen), where each spool has a single PDF page in it. I need to combine all these PDF Pages into a single PDF file & either create a new Spool or save it on an Application Server.
At present i have developed the code where in i am able to read the PDF files from different spools & convert them into Binary but i am not able to generate it back to PDF file.
Kindly find my code for your reference.
CODE:-
START-OF-SELECTION.
PERFORM f_get_spool_1000 .
PERFORM g_conv_pdf_to_bin_2000 .
*& Form F_GET_SPOOL_1000
text
FORM f_get_spool_1000 .
SELECT * FROM tsp01
INTO TABLE gt_tsp01
WHERE rqident IN s_spool
ORDER BY rqcretime DESCENDING.
IF sy-subrc = 0.
SORT gt_tsp01 BY rqident .
ENDIF.
ENDFORM.
*& Form G_CONV_PDF_TO_OTF_2000
text
DATA: lv_filename_out TYPE string,
lv_len TYPE i,
lt_tab TYPE tsfixml .
DATA: lwa_print_parms LIKE pri_params,
lv_valid(1) TYPE c .
DATA: lv_linsz LIKE sy-linsz VALUE 132, " Line size
lv_paart LIKE sy-paart VALUE 'X_65_132'. " Paper Format
DATA : lt_tsp01 TYPE STANDARD TABLE OF tsp01 ,
lwa_tsp01 TYPE tsp01 .
CLEAR : gv_pdf, gwa_tsp01, gv_renderpagecount .
LOOP AT gt_tsp01 INTO gwa_tsp01.
CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
EXPORTING
i_spoolid = gwa_tsp01-rqident
i_partnum = 1
IMPORTING
e_pdf = gv_pdf
e_renderpagecount = gv_renderpagecount
e_pdf_file = gv_pdf_file
EXCEPTIONS
ads_error = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR lv_len .
REFRESH gt_bin .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = gv_pdf
IMPORTING
output_length = lv_len
TABLES
binary_tab = gt_bin.
CLEAR gwa_bin .
LOOP AT gt_bin INTO gwa_bin.
APPEND gwa_bin TO gt_listout.
CLEAR gwa_bin .
ENDLOOP.
ENDLOOP.
Get FP reference
DATA: lo_fp TYPE REF TO if_fp VALUE IS INITIAL,
lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL,
lo_exc TYPE REF TO cx_root,
lv_xslt_message TYPE string .
lo_fp = cl_fp=>get_reference( ).
For handling exceptions
DATA: lo_fpex TYPE REF TO cx_fp_runtime VALUE IS INITIAL.
TRY.
lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
Set document
lo_pdfobj->set_document(
EXPORTING
pdfdata = gt_listout ).
Tell PDF object to extract data
lo_pdfobj->set_extractdata( ).
Execute the call to ADS
lo_pdfobj->execute( ).
CATCH cx_root INTO lo_exc.
lv_xslt_message = lo_exc->get_text( ).
ENDTRY.
Your quick reply would be of great help.
Regards.Thank Your for your concern, there are many replies & posts but all of them points only to Try what they have said. As being said that trying to convert PDF to binary & appending many PDF similarly would not let you generate a single PDF again.
Your Kind guidance would be really appreciable.
Regards. -
Spool generates empty pdf page?
Hi all,
I am writing to spool using
new-page print on parameters p_parame
after that I get the spool number for the generated spool and use the following function to generate a pdf file:
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = spool_num
no_dialog = 'X'
importing
pdf_bytecount = pdf_length
tables
pdf = it_pdf_file.
But this function only generates an empty page? If I look at the sp01 with the spoolnumber the writing data is there.
Does somebody already had this problem?
Thanks for any help or information,
Marcelo MoreiraI'm having the same issue, check your apache error logs.
Each time the page not found error in the browser is shown there is a error generated by the database:
[Wed Sep 19 19:25:52 2007] [error] mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
ORA-22293: LOB already opened in the same transaction
Someone was hinting that this issue could be related to the possibly the nlslanguage settings. I'd be interested to hear if anyone solves this one.
My environment is on 10g running in Windows through an Apache mod_plsql that was installed with Oracle 9i install on Linux.
Maybe you are looking for
-
Dear reader, Could you please help me quick, my iPad is restricting me from something. I tried to go on YouTube many times on my favorite videos list and I get a message saying: you don't have permission to access the requested resource. I go to sett
-
How do I find and download jazz music from the itune
i am a new user of ipod. I seem to have trouble, after i get into the Music store, locating the different music selections. I am particularly interested in all jazz music. Clarence Jackson
-
Substitution of asset master data
Hi, We are going to perform mass deactivation of the assets. When we create substitution there is missing field 'deactivation date' (ANLA-DEAKT) in Substitutable Fields window! Where is the problem? How to add missing field in substitutable selection
-
Why won't tabs display properly when composing e-mails in mail?
When I compose an e-mail in Mail, often the window won't display the top row of tabs (send, attachment, etc.). I can see the tip of each graphic, but it's almost like they've been cropped out. Does anyone know what might be causing this and how to
-
Hi! $ lsnrctl start LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-STY-2013 19:19:07 Copyright (c) 1991, 2011, Oracle. All rights reserved. Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 1