Problem concerting spool to PDF format
Hi all,
I am trying a small program to write ABAP list to spool, and within the same program I am trying to convert the spool into PDF format. I am including all the code , please can any one check and tell me where I am going wrong. I am getting a message saying 0 bytes transferred.
Even the contents of the table pdf_table is empty.
REPORT ZWRITE_SPOOL .
tables tsp01.
DATA: val(1) TYPE c,
pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct value 60,
rows TYPE pri_params-linsz value 80.
data : w_spoolnumber like tsp01-RQIDENT.
data : w_device like tsp03-PADEST value 'H278' .
data begin of pdf_table occurs 0.
include structure tline.
data end of pdf_table.
data : MI_BYTECOUNT type i ,
MC_FILENAME LIKE RLGRAP-FILENAME.
DATA: MTAB_PDF LIKE TLINE OCCURS 0 WITH HEADER LINE .
data pdf_fsize type i.
DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS ,
MC_VALID(1) TYPE C .
CONCATENATE 'C:\TEMP\' sy-repid '.PDF' INTO MC_FILENAME.
*---- Code added
pripar-pdest = 'H278'.
pripar-prcop = 001.
pripar-plist = sy-repid.
pripar-prnew = 'X'.
pripar-pexpi = 8.
pripar-linct = 65.
pripar-linsz = 80.
pripar-paart = 'X_65_80'.
pripar-prsap = 'D'.
pripar-prrec = sy-uname.
pripar-prdsn = 'LIST1S'.
pripar-ptype = 'TEXT'.
pripar-armod = 1.
*---- End of code
perform format.
select single RQIDENT from tsp01 into w_spoolnumber
where RQ2NAME = sy-repid .
NEW-PAGE PRINT OFF.
write w_spoolnumber.
perform spool_to_pdf.
Form format
FORM format.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
layout = lay
line_count = lines
line_size = rows
no_dialog = 'X'
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF val <> space AND sy-subrc = 0.
PERFORM list.
ENDIF.
endform. " format
FORM list.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
write 'SAP PROGRAMMING USING ABAP'.
ENDFORM.
Form spool_to_pdf
form spool_to_pdf.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = w_spoolnumber
no_dialog = 'X'
DST_DEVICE = w_device
importing
pdf_bytecount = pdf_fsize
tables
pdf = pdf_table
exceptions
others = 0.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
BIN_FILESIZE = MI_BYTECOUNT
FILENAME = MC_FILENAME
FILETYPE = 'BIN'
IMPORTING
ACT_FILENAME = MC_FILENAME
TABLES
DATA_TAB = MTAB_PDF
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
CUSTOMER_ERROR = 7
OTHERS = 8.
endform. " spool_to_pdf
Thanks,
Varun.
hi Varun,
Check for the <b>internal Table data/work area</b> as whether data is getting populated in to that or not.
i.e,
CALL FUNCTION 'DOWNLOAD'
EXPORTING
BIN_FILESIZE = MI_BYTECOUNT
FILENAME = MC_FILENAME
FILETYPE = 'BIN'
IMPORTING
ACT_FILENAME = MC_FILENAME
TABLES
<b>DATA_TAB = MTAB_PDF</b>
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
CUSTOMER_ERROR = 7
OTHERS = 8.
<b>check whether data is getting populated in MATAB_PDF in debug mode.</b>
Regards,
Santosh
Similar Messages
-
Converting Spool to Pdf format
Hi,
How do you convert a SAP Script Spool in TCode SP01 to a pdf format?
Any helpw would be greatly appreciated.
Thanks in advance.
MickJust today someone has posted this link somewhere
https://wiki.sdn.sap.com/wiki/display/sandbox/Conversion%20of%20Spool%20Request%20Data%20into%20PDF%20and%20Excel%20Format%20and%20Send%20it%20into%20Mail -
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 -
In spool to pdf format i am not getting the entire recod
i am converting spool data into pdf format using the std program RSTXPDFT4 but i am not getting the entire data, the data is getting truncated side ways ie entire record is not getting generated.
in the main prg is rstxpdf4 i have given line-size to 512, even thou, i am not getting the entire recordTry the following:
SELECT u_permit.DATE_APPLICATION_RECEIVED, u_permit.permit_status
FROM U_PERMIT
WHERE u_permit.date_application_received BETWEEN to_date('01/21/2008') AND to_date('12/31/2008')
AND trim (upper(u_permit.permit_status)) = 'PENDING' ;You can also apply a date format in the TO_DATE if needed.
eg:
to_date('01/21/2008','dd-mon-yyyy')Hope this helps.
Craig... -
Problem in Spool to PDF conversion
Hi,
Iam using FM 'RSPO_SX_OUTPUT_TEXTDATA' to genarete a spool. then iam using FM 'CONVERT_ABAPSPOOLJOB_2_PDF' to conver to PDF.
Iam able to generate spool as wel pdf file, but when try to open pdf file, its thrwing an error ''There was an error opening this document. the file is damaged and could not be repair'
pls help me to solve this...
SrinivasHi,
After calling the fm'CONVERT_ABAPSPOOLJOB_2_PDF' u need to call the subroutine.Please have a look at the below piece of code.
Declaration of local variables
DATA : lv_bytecount TYPE i,
lv_cancel(1) TYPE c,
lv_filename1 LIKE rlgrap-filename. "File name
Declaration of local constants
CONSTANTS: lc_pdf(4) TYPE c VALUE '.PDF'.
CONCATENATE c_c
sy-repid
lc_pdf
INTO lv_filename1.
Convert Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = v_rqident
no_dialog = c_x
dst_device = v_print_parms-pdest
IMPORTING
pdf_bytecount = lv_bytecount
TABLES
pdf = i_pdf
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.
IF sy-subrc NE 0.
REFRESH : i_pdf.
ENDIF.
IF p_pdf IS NOT INITIAL.
To Download to PDF format
PERFORM download_w_ext(rstxpdft) TABLES i_pdf
USING lv_filename1
lc_pdf
'BIN'
lv_bytecount
lv_cancel.
ENDIF.
Reward points if u find useful
Regards,
Nagaraj -
Problem in Using scanned .pdf format files
I have an old (5-6 years old) Canon N670U flat bed scanner. I use it for scanning books of my interest. It can give each page/document scan in pdf format directly. However each scan becomes a separate file lthough serially numbered while scanning. When I want to read the pages, Next/Previous page or pages Up/Down etc. - reader tools available in Acrobat Reader are not operative.
I need to go back to each scan file separately. Also, most of the time, image needs to be rotated. Though I do it in view mode, it does not get saved in corrected mode-even if I go to "file" and click on "save as". At each fresh visit, this has to be repeated.
Present driver of the scanner is version 4. I did get your version 7 downloaded. But could not install & use it. Is it necessary that old version first must be uninstalled and only then I can install the new version? Is it not automatic? It might have to copy new and remove old software files.
What should be done that all these individual files (of a single bok) can be combined into a single meaningful folder, with availability/access to all Adobe Reader Tools. Will be grateful for advice..Sharadshankar wrote:
I need to go back to each scan file separately. Also, most of the time, image needs to be rotated.
This needs to be done during the scanning process, using your CanoScan software. Once the file is saved unrotated, you will need some additional software to do that (Acrobat), so better do it during the scanning process.
Use the Rotate clockwise / counterclockwise buttons on your scanning software. -
Hi,
I know a standard program RSTXPDFT4 which converts a single spool to PDF.
Do we have any thing for multiple spools? My requirement is I will key in Spool numbers via Selection options and I want Pdf file separetly to be dumped for each file
in to folder on to my hard drive.
Regards
VaraYou can start with this:
PARAMETERS: spoolid LIKE tsp01-rqident OBLIGATORY. "DEFAULT 9429.
DATA BEGIN OF pdf_table OCCURS 0.
INCLUDE STRUCTURE tline.
DATA END OF pdf_table.
DATA pdf_fsize TYPE i.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = 'X'
IMPORTING
pdf_bytecount = pdf_fsize
TABLES
pdf = pdf_table
EXCEPTIONS
OTHERS = 0.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = pdf_fsize
filetype = 'BIN'
TABLES
data_tab = pdf_table.
Rob -
Problem: convert spool into PDF
Hi all,
I have written the report. It is used to convert the spool in to PDF file and it will send an email with attached document to the user.
Problem:
When i open the PDF file. It display only the half of the report
(i.e first 4 columns) remaining 3 columns are displayed.
If I see the spool no it display all the 7 columns.
Thnx in Adso problem with ur report only.So here u have to increase the width of the lines.
like this
<b>docdata-doc_size = ( tab_lines - 1 ) * 2560 + strlen( objtxt ).</b>
regards
Prabhu -
(9iAS) problem printing reports in pdf format on NT client
Hi
Some details first:
iAS version=9.0.2.3.0
Reports Version=9.0.2.0.3
Portal Version=9.0.2.3b
Client NT Version=4 SP4
Via a portal connection, a report is called by following a series of hyperlinks and the resulting url is like below:
http://devoc4j.testcentre.co.uk/nrdms/xml/xmlResultSetPDF.xml?PID=eip&SID=vPXP9kQLR2NK1us1004&RID=aGa3Bhbn2PkffA81014&DOCID=2uRpdWVlscVNCab1012&&ieh=report.pdf
This report produces a pdf output fine for a client that has Win2K, however, with Windows NT we receive the following error message:
The requested URL could not be retrieved
While trying to retrieve the URL:
http://devoc4j.testcentre.co.uk/nrdms/xml/xmlResultSetPDF.xml?PID=eip&SID=vPXP9kQLR2NK1us1004&RID=aGa3Bhbn2PkffA81014&DOCID=2uRpdWVlscVNCab1012&&ieh=report.pdf
The following error was encountered:
Unable to determine IP address from host name for unknown server name
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
This is consistent across all NT client boxes.
I have changed the following settings on the NT boxes:
Select TOOLS > INTERNET OPTIONS > CONNECTIONS > LAN
SETTINGS and uncheck AUTOMATICALLY DETECT SETTINGS
This has had no effect, the problem is still existent. Does anyone have any ideas why?
Apologies for the length of the message, it's just to make it all clear!!
Regards
Andy1. From Task Bar at bottom of screen, Select Start, ALL Programs, and Open Adobe Reader
2. Click edit
3. Click Preferences
4. Click Internet
5. Remove check mark for Display PDF in browser
6. Click ok
7a. Close Adobe Reader
7b Restart your PC to apply changes
8. Run your app
9. Generate a PDF report
10. A pop window will appear and check remember and then click ALLOW. Click Remember my action for this site.
11. You may need to Enter username and password (this needs to be done only once to initialize the connection between Adobe and Oracle login app) or if the password/username changes. -
Problem in converting Spool to PDF file, having non-English characters
Hi All,
I have problem in converting Spool to PDF format.
Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
Regards,
Navin.Hi All,
I have problem in converting Spool to PDF format.
Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
Regards,
Navin. -
Change in report format after exporting from pdf format to excel format.
Hi,
I got a problem while exporting the pdf format of the Report to Excel format "Fully-Foramtted Grids and Texts".
The format gets automatically changed.
Is there any solution to this problem.Can you give some more details?
Which version are you using (and which patch level - if any).
Also what formatting is default on the reports and what is the default format in excel.
What exactly is different between PDF and excel?
Another possibility is that font substitution is going on?? -
hi gurus
I have used function module CONVERT_ABAPSPOOLJOB_2_PDF for converting spool to pdf format , now i need to send email using methods and class ( not with FM SO_DOCUMENT_SEND_API1 ) .
iam useing
TRY.
-------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
CALL METHOD document->add_attachment
EXPORTING i_attachment_type = 'RAW'
i_attachment_subject = 'My attachment'
<b> i_att_content_hex = gti_contents_hex.</b>
CALL METHOD send_request->set_document( document ).
sender = cl_sapuser_bcs=>create( sy-uname ).
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
recipient = cl_cam_address_bcs=>create_internet_address(
'[email protected]' ).
add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
CALL METHOD send_request->set_send_immediately( 'X' ).
---------- send document ---------------------------------------
CALL METHOD send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = sent_to_all ).
IF sent_to_all = 'X'.
WRITE text-003.
ENDIF.
COMMIT WORK.
CATCH cx_bcs INTO bcs_exception.
WRITE: 'Fehler aufgetreten.'(001).
WRITE: 'Fehlertyp:'(002), bcs_exception->error_type.
EXIT.
ENDTRY.
In the above code iam unable to convert pdf( out put of FM) out to gti_contents_hex.
rewarded with pointsHi,
plz check the below link..
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
reward if helpful.
Regards,
Nagaraj -
Downloading spool to PDF background
Hi friends
How can i downlaod spool to PDF format in back gorund.
i know we cna download background into server as we required in PDf format.
i am able to downlaod but when i go to AL11 tcode and open i am not able to see in PDF format..
is there any way to downlaod to front end PC through back ground ..
if the file store in application server how user can view the PDF document.
Please helpHi Ramesh,
Check the Sample programs:
RSTXPDFT4
RSTXPDFT5
The FM is: CONVERT_ABAPSPOOLJOB_2_PDF
check this link as well.
http://help.sap.com/saphelp_47x200/helpdata/en/85/54c73cee4fb55be10000000a114084/frameset.htm
<b>Reward points if this helps.
Manish</b> -
Invoice not appearing properly in Polish lang. for Spool and PDF
Hi,
We have created an invoice layout in English with font HELVE and HELV_17, the same layout and style is being called for polish language.
It is working fine for English; however the same font is not working for Polish language in Spool and PDF formats though we are using the code page 8859-2 LATIN-2 as stated in notes 96953.
It is highly appreciated, if you throw some light on this issue with respect to font appearing in polish . We are expecting the font HELVE in Spool and PDF formats for Polish language.
Regards
Harikrishna
Edited by: Harikrishna yoganarasimhaiah on Apr 14, 2009 5:20 AMWithout access to the files it's impossible for us to help. Acrobat will be displaying the PDF "correctly", but why the page contents are shifted is anyone's guess.
When you save as "Photoshop PDF" and choose the "Preserve Photoshop Editing Capabilities" option, it embeds a copy of the PSD file into the PDF and will open that whenever you try to open the PDF in Photoshop, which is why you don't get the import dialog. Photoshop never even reads the PDF page contents. Turn off that option, save to PDF again, and then open it in Photoshop - you'll see the true PDF page being imported as a graphic, and it'll match what Acrobat is displaying. -
Convert Smartforms to spool to PDF
Hi,
How can I convert Smartforms to Spool then convert the Spool to PDF?
Thank!
jamesHi,
when ever you see a print preview a spool file will be generated which you can go and check in SP01 t-code.So after you get your spool number you can follow with the below mentioned code.
Selecting details from the spool request table.
SELECT * FROM tsp01 INTO TABLE tb_spool
WHERE rqowner = sy-uname.
IF sy-subrc EQ 0.
SORT tb_spool DESCENDING BY rqcretime.
CLEAR : tb_spool.
READ TABLE tb_spool INDEX 1.
convert spool into pdf format.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = tb_spool-rqident
TABLES
pdf = tb_lines.
ENDIF.
Regards,
Chandra
Maybe you are looking for
-
How to define a separate virtual host for each client in SICF
Hello, We have an ERP system with multiple clients running on it. The WebDynpro ABAP applications once developed are available on all clients, as standard. However, this is not our desired behavior. We want: 1. The WebDynpro ABAP applications should
-
Hi All, I am executing MD05 Transaction to view the MRP List for the Materail. It is showing some purchase order pending . I want to remove those purchase order from the list. I have set the Delivey completed indicator also and deletion indicator f
-
BUG in iOS7: Post iOS7 upgrade, search option does not work for "Messages". If you want to search a contact name in Messages who is way below the list, the search will not yield any result.
-
How to group order & AR for the customers under one customer hierarchy
There are serveral customers under one customer hierarchy, we could easily get the group value in COPA (KE30) via the "customer hierarchy" parameter in the navigation channel. Could we also get the group value towards the incoming sales order and Acc
-
hello friends i have requirement taht i have to genarate report like that in the first row i have ot give employee current payroll data. in the second row i have to give data for wage type '1003'. and in which i have to mprovide thhe data from prviou