Spool to pdf -not coming corectly
Hi,
i'm trying to convert spool to pdf,
i've set adobe pdf as default printer,
PDf is geting generated but all Values & text to right side are getting truncated/cut.
suppose if text is excise duty
it is coming as excise du
Pl suggest
Hi,
i'm trying to convert spool to pdf,
i've set adobe pdf as default printer,
PDf is geting generated but all Values & text to right side are getting truncated/cut.
suppose if text is excise duty
it is coming as excise du
Pl suggest
Similar Messages
-
PDF not coming back for bigger selection
Hello all,
I need help in finding what is causing my performance problem in my template.
I had to alter an original template. I had to add stock records (coming from a separate data source) and also the formatting had to change. I added <xsl:decimal-format xdofo:ctx="begin" name="OPMAAK" decimal-separator="," grouping-separator="." NaN=" " zero-digit="0" infinity="-"/ > for this and also the correct formatting tag around each number.
After adding this, the BIP report runs twice as long and for the biggest selection (for all sales branches) I don't get a result anymore. After about 10 minutes, I get a 'Internet explorer cannot display' screen instead of my pdf
If anyone cares to check out my template, I can email it to you. I also have sample xml data for 1 sales branch (runs about 4-5 minutes on server, 63 pages in PDF format)
PS: I already looked at jvm settings, caching,... but maybe a good idea to review that as well?Sounds like an overheating problem. You could try to reset the SMC and see if that helps, if not it probably needs to go to the shop.
Here is a link to how to reset the SMC on a new Mac
http://docs.info.apple.com/article.html?artnum=303446 -
Barcode in PDF output not coming in Oracle R12.1.3
Hi,
We have a rtf template for Invoice report. In this report we have to display barcode in PDF output. In our development instance barcode is coming properly. But in our test instance barcode is not coming(same template is available in Development and Test instance).
We are using wocrb.ttf and w128l.ttf font files and we have these files available at $OA_JRE_TOP/lib/fonts path.
Also, we have config file available on $OA_JRE_TOP/lib directory. and this config file has correct path of both the font files.
Still the barcode is not coming in Test instance.
Request you all to please help me with this issue.
Thanks,
SAPDF requires the font be registered correctly, since it is not appearing you have missed something in your configuration.
The most common error is the font family name does not exactly match the font name in Word. (Open the font on your PC and the name is present there also.)
You can use the xdodebug.cfg troubleshooting method, then see what error appears in the xdo.log when the font is accessed.
See the following note for xdo.log:
Note 364547.1 : Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
Thank you
Eugen -
Content Not Coming Properly after converting a Smartform to PDF.
I am converting a smartform into PDF format using CONVERT_OTF .
This smart form will be triggered from the portal at the occurance of an event .After Conversion some texts are properly outputted in the PDF but some texts which are in arabic are not coming properly ( shows some junk data in a language other than Arabic).
Can any give a Solution ??
Thanks
Chaitanya Sharma
Edited by: chaitanya sharma on Jan 28, 2009 2:15 PMhi
try using this fm CONVERT_OTF_2_PDF
hope this helps
regards
Aakash Banga -
Convert Spool to PDF and mail for the jobs not run in background.
Dear All,
I need to convert the spool job into pdf and mail as attachment for job not run in background.
I am printing the bills using the program SD70AV3A to print the bills in a batch using the SUBMIT.
But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
SUBMIT SD70AV3A
WITH RG_KSCHL-LOW = 'ZRR'
WITH RG_NACHA-LOW = '1'
WITH PM_VERMO = '2'
WITH PM_NSORT = '1'
WITH RG_VBELN IN range.
* TO SAP-SPOOL
* SPOOL PARAMETERS print_parameters
* WITHOUT SPOOL DYNPRO
* VIA JOB name NUMBER number
* AND RETURN.
so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
please suggest some solution.
Thanks
Bhargava.Hi,
Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
Table TSP01 to get spool number
You ,may need to convert OTF to PDF: FM CONVERT_OTF
and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
To send mail use class: cl_document _bcs.
Regards,
Maria João Rocha -
Send spool as PDF, error in opening PDF- Could not find the XObject '00014'
Hi
I am sendind a spool as PDF and when opening the PDF I am getting error saying Could not find the XObject named 00014.
Please let me know how I can see the PDF contents proerly.
Regards
BalaHi Bala
Check the sample which can be useful for you.
Pseudo code for sending PDF attachment:
TABLES: tsp01.
TYPES: BEGIN OF t_spool,
Rqident TYPE tsp01-rqident,
END OF t_spool.
DATA: i_spool TYPE STANDARD TABLE OF t_spool,
Wa_spool TYPE t_spool.
SELECT rqident FROM tsp01
INTO TABLE i_spool
WHERE rqowner = sy-uname.
SORT i_spool DESCENDING BY rqident.
LOOP AT i_spool INTO wa_spool.
ENDLOOP.
YPES: l_ty_tab_pdf TYPE tline OCCURS 0.
DATA: l_pdf TYPE l_ty_tab_pdf,
l_spool TYPE tsp01-rqident.
Type for binary attachment table.
TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.
DATA: l_objbin TYPE l_ty_tab_objbin.
l_spool = wa_spool-rqident.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = l_spool
no_dialog = ' '
TABLES
pdf = l_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 <> 0.
WRITE: / 'error', sy-subrc.
ENDIF.
**/ Convert the PDF format to the table type required for the attachment.
CALL FUNCTION 'QCE1_CONVERT'
TABLES
t_source_tab = l_pdf
t_target_tab = l_objbin
EXCEPTIONS
convert_not_possible = 1
OTHERS = 2.
IF sy-subrc <> 0.
WRITE: / 'error', sy-subrc.
ENDIF.
TABLES: soli.
DATA: v_email TYPE soli-line. Managers Email
DATA: l_adrnr LIKE kna1-adrnr. Address Number
DATA: l_objky TYPE nast-objky. Object Key
DATA: l_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
DATA: l_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA: l_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
DATA: l_doc_chng LIKE sodocchgi1.
DATA: l_objhead LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA: l_tab_lines LIKE sy-tabix.
CONSTANTS: k_true TYPE boolean_flg VALUE 'X'.
DATA: l_mail TYPE somlreci1-receiver.
l_mail = v_email.
Creation of the document to be sent as File Name
l_doc_chng-obj_name = 'SENDFILE'.
Mail Subject
l_doc_chng-obj_descr =l_text-001.
Here text-001 will contains Compensation Review Statement for Employee Name
Here we can concatenate employee first name and last name to l_text-001.
Completing the recipient list
l_reclist-receiver = l_mail. Manager Email Address
l_reclist-rec_type = 'U'.
APPEND l_reclist.
Mail Contents
l_objtxt = text-002.
APPEND l_objtxt.
Calculate email size in bytes
DESCRIBE TABLE l_objtxt LINES l_tab_lines.
READ TABLE l_objtxt INDEX l_tab_lines.
l_doc_chng-doc_size = (l_tab_lines - 1 ) * 255 + STRLEN( l_objtxt ).
Creation of the entry for the compressed document for the email text
CLEAR l_objpack-transf_bin.
l_objpack-head_start = 1.
l_objpack-head_num = 0.
l_objpack-body_start = 1.
l_objpack-body_num = l_tab_lines.
l_objpack-doc_type = 'RAW'.
APPEND l_objpack.
Creation of the document attachment
(Assume that the data in OBJBIN is in BMP format)
DESCRIBE TABLE l_objbin LINES l_tab_lines.
l_objhead = text-001.
APPEND l_objhead.
CLEAR l_objpack.
Creation of the entry for the compressed/attached document
l_objpack-transf_bin = k_true.
l_objpack-head_start = 1.
l_objpack-head_num = 1.
l_objpack-body_start = 1.
l_objpack-body_num = l_tab_lines.
l_objpack-doc_type = 'PDF'.
l_objpack-obj_name = text-005.
l_objpack-obj_descr = text-001.
l_objpack-doc_size = l_tab_lines * 255.
APPEND l_objpack. "/ .
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = l_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = l_objpack
object_header = l_objhead
contents_bin = l_objbin
contents_txt = l_objtxt
receivers = l_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc <> 0.
WRITE: / 'unsuccessful', sy-subrc.
ELSE.
WRITE: / 'successful'.
ENDIF.
*Take note it is a requirement to do a commit work for the email to go into transaction
SOST.
COMMIT WORK.
Regards,
Sree -
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. -
I am trying to scan a document into PDF format but PDF is not coming up as an option. What can I do?
Can your scanner software create PDF documents?
-
I have installed my brother computer and is in my printers and devices but is not coming up as a printer option in adobe pdf Help I was able to print PDFS before installing adobe now I cant
Be sure Safari does not have the Block Pop-Up Windows preference set.
Where I work now there are several unencrypted VLANs that require authentication, and Safari promptly pops up a window for me to register every time. -
URGENT ----- Problem in converting spool to pdf .
Error - File cannot be opened because of no pages ......
Hi experts,
I am passing internal table contents to spool --> then spool to pdf -
> then mail sending.
Everything is fine but only error is in the receiving mail the above error is coming.
given the code...
<b>I think the error is in converting into pdf function module</b>
<b>Help me to solve this problem as it is very urgent</b>
include data_declare. " pasted down
select * from kna1 into table itab up to 50 rows.
CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
EXPORTING
dest = 'LP01'
immediate_print = 'X'
IMPORTING
handle = handle
SPOOLID = spoolid.
loop at itab.
concatenate itab-kunnr itab-name1 itab-land1 into text separated by
space.
CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
EXPORTING
handle = handle
text = text.
endloop.
CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
EXPORTING
handle = handle.
Convert Spool to PDF **********************************
<b>CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = 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.</b>
Processing Mail Sending ************************************
DATA: p_email LIKE somlreci1-receiver,
p_sender LIKE somlreci1-receiver,
sub(40).
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = text-002.
it_mess_bod = text-001.
APPEND it_mess_bod.
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
MOVE 'Orders Rejeced on' TO sub.
WRITE: sy-datum DD/MM/YYYY TO sub+27(10).
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
TABLES it_mess_bod
it_mess_att
USING
p_email
sub "text-009
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
CHANGING gd_error
gd_reciever.
ENDFORM. " process_email
*& Form send_file_as_email_attachment
text
-->P_IT_MESS_BOD text
-->P_IT_MESS_ATT text
-->P_TEXT_009 text
-->P_1058 text
-->P_GD_ATTACHMENT_NAME text
-->P_GD_ATTACHMENT_DESC text
<--P_GD_ERROR text
<--P_GD_RECIEVER text
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-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
CLEAR gt_mail.
SELECT SINGLE * FROM zmail INTO gt_mail
WHERE grpnr = '1'.
IF NOT gt_mail-mail1 IS INITIAL.
t_receivers-receiver = gt_mail-mail1.
APPEND t_receivers.
ENDIF.
IF NOT gt_mail-mail2 IS INITIAL.
t_receivers-receiver = gt_mail-mail2.
APPEND t_receivers.
ENDIF.
IF NOT gt_mail-mail3 IS INITIAL.
t_receivers-receiver = gt_mail-mail3.
APPEND t_receivers.
ENDIF.
IF NOT gt_mail-mail4 IS INITIAL.
t_receivers-receiver = gt_mail-mail4.
APPEND t_receivers.
ENDIF.
LOOP AT gt_mail.
t_receivers-receiver = gt_mail-mailid..
APPEND t_receivers.
ENDLOOP.
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. " send_file_as_email_attachment
Data Declaration ************************************
DATA : handle LIKE sy-tabix.
data itab like kna1 occurs 0 with header line.
data: text(50) type c.
data: spoolid type TSP01-RQIDENT.
DATA : gt_listobject LIKE abaplist OCCURS 10 .
DATA : gt_objcont LIKE soli OCCURS 10 WITH HEADER LINE.
DATA : gt_objcont1 LIKE soli OCCURS 10 WITH HEADER LINE.
DATA : gt_objhead LIKE soli OCCURS 10 WITH HEADER LINE.
DATA : gt_att_head LIKE soli OCCURS 10 WITH HEADER LINE.
DATA : gt_receivers LIKE soos1 OCCURS 10 WITH HEADER LINE.
DATA : gt_packing_list LIKE soxpl OCCURS 10 WITH HEADER LINE.
DATA : gt_so_ali LIKE soli OCCURS 100 WITH HEADER LINE.
DATA : gt_so_ali1 LIKE soli OCCURS 100 WITH HEADER LINE.
DATA : gt_document_data LIKE sood1.
DATA: lineno TYPE i , length TYPE i , size TYPE i.
DATA: gt_message LIKE soli OCCURS 10 WITH HEADER LINE,
gt_message1 LIKE soli OCCURS 10 WITH HEADER LINE.
DATA: gt_scheme LIKE ztrc_scheme OCCURS 0 WITH HEADER LINE,
gt_mail LIKE zmail_prov OCCURS 0 WITH HEADER LINE.
gt_mail LIKE zmail." occurs 0 with header line.
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'.
DATA: check TYPE c,
days TYPE i.
<b></b><b></b><b></b>Hi Prashant,
Thanks for your reply. Really it is very useful one.
In this, the output list is getting populated into spool and to pdf.
But my requirement sending the internal table contents to spool directly without dispalying in the output list.
I did the program like the above mentioned one already. But my requirement is not that one.
Regards
chakradhar -
Problem with characters Converting OTF Spool to PDF
Hello All,
Im working on ECC6.0 system. I have a Z report where it will take spool number and mail ID as input.
It will check wheter the spool is of type OTF of ABAP List, according to that it will use the FMs ONVERT_OTFSPOOLJOB_2_PDF & CONVERT_ABAPSPOOLJOB_2_PDF.
Now it will download the PDF internal table data into a file using OPEN DATA SET statement as shown below.
OPEN DATASET gv_dsn FOR OUTPUT IN BINARY MODE.
*Download the file to application server
LOOP AT gt_pdf_output.
TRANSFER gt_pdf_output TO gv_dsn.
ENDLOOP.
CLOSE DATASET gv_dsn.
and it will ZIP the PDF as shown below.
* open the file from application server for zipping.
OPEN DATASET gv_dsn FOR INPUT IN BINARY MODE.
READ DATASET gv_dsn INTO lv_content.
CLOSE DATASET gv_dsn.
CREATE OBJECT go_zip.
go_zip->add( name = gv_file content = lv_content ).
gv_zip_content = go_zip->save( ).
* Convert the xstring content to binary
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = gv_zip_content
IMPORTING
output_length = gv_file_length
TABLES
binary_tab = gt_data.
After that the ZIP file conataining the PDF will be sent as an attachement to the mail ID given as input.
Now the problem is some characters of Czech are not coming properly when the attachement is opend once the mail is received. Can any one tell where the problem is and solution.
Im getting the message "Can not extract the embedded front 'CourierNewL2'. Some characters may not display or print correctly." while opening the PDF in the ZIP attachment.
Thank you.
Best Regards,
Sasidhar Reddy Matli.hi
u also check the following link
Re: how call FM otf to pdf in a report
Re: otf to pdf
Re: Error while converting OTF into PDF in CONVERT_OTF FM
Re: Convert OTF to PDF problem
Edited by: krupa jani on Jul 15, 2009 12:58 PM -
Convert spool to pdf for Chinese characters
Hi,
I need to convert spool to pdf for chinese font.
Spool is creating successfully, and contents are displaying properly. When try to convert the spool to pdf using 'RSTXPDFT4', the pdf is generated successfully, when trying open the pdf, contents are missing, its like empy white pdf page. This is happening for the Chinese font. The same script is working fine for the English font.
Plz suggets
Thanks
BalajiHi Balaji,
I am having a similar issue with Simplified Chinese, Traditional Chinese, and Thai fonts when saving spools to PDF. Have you found any more information on why the output shows up as a blank screen?
We are printing Purchase Orders and the T&Cs are coming through fine because they are saved as picture files but the smartform does not display at all.
Any information would be appreciated!
Thanks,
Josh -
Hi all,
One of the apps in the production system is not coming up after the windows patching, there are 2 servers in the same box the other one came up fine with no issues.
Even the Work process log is also not generated.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
trc file: "dev_disp", trc level: 1, release: "46D"
Tue Jun 21 15:11:31 2011
relno 4640
patchlevel 0
patchno 2513
intno 0
pid 13548
***LOG Q00=> DpSapEnvInit, DPStart (71 13548) [dpxxdisp.c 921]
Tue Jun 21 15:11:35 2011
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust your DNS settings [dpxxtool2.c 3171]
MtxInit: -2 0 0
DpIPCInit: start server >xxxx_71 <
ERROR => DpShMCreate: ShmCreate SHM_DP_ADM_KEY [dpxxtool2.c 1335]
ERROR => DpIPCInit: DpShMCreate [dpxxtool2.c 409]
DP_FATAL_ERROR => DpSapEnvInit: DpIPCInit
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
call semaphore clean-up function ...
***LOG Q0E=> DpSigGenHandler, Exception (c0000005) [dpnttool.c 390]
C-STACK -
SAP (R) - R/3(TM) Callstack, Version 1.0
Copyright (C) SAP AG. All rights reserved.
Application exception occurred:
Exception : c0000005 (Access Violation)
App : disp+work.exe (pid=13548)
When : 6/21/2011 15:11:35.782
Threads : 2
Computer Name xxxxxx
User Name : SAPServicexxx
Number of Processors: 32
Processor Type: EM64T Family 6 Model 46 Stepping 6
Windows Version : 5.2 Current Build: 3790
Stack Dump for Thread Id 3ca8
eax=00000000 ebx=00000003 ecx=016ea020 edx=0319f68c esi=00000000 edi=00000000
eip=00427bcb esp=0319fdf8 ebp=00000000 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
function : <nosymbols>
00427bb0 ff742404 push dword ptr [esp+0x4] ss:0633e6a3=????????
00427bb4 ffd0 call eax
00427bb6 59 pop ecx
00427bb7 c3 ret
00427bb8 a1bcf06c01 mov eax,[016cf0bc] ds:016cf0bc=00000000
00427bbd 56 push esi
00427bbe 57 push edi
00427bbf 8b7c240c mov edi,[esp+0xc] ss:0633e6a3=????????
00427bc3 8bf7 mov esi,edi
00427bc5 69f698020000 imul esi,esi,0x298
FAULT-> 00427bcb 837c064800 cmp dword ptr [esieax0x48],0x0 ds:0319e8ab=467f0048
00427bd0 7f46 jg 00427c18
00427bd2 833db89f6e0101 cmp dword ptr [016e9fb8],0x1 ds:016e9fb8=00000003
00427bd9 0f8c45030000 jl 00427f24
00427bdf e8ad910a00 call 004d0d91
00427be4 68310a0000 push 0xa31
00427be9 689060d400 push 0xd46090
00427bee e8e6d0ffff call 00424cd9
00427bf3 59 pop ecx
00427bf4 50 push eax
00427bf5 689c60d400 push 0xd4609c
00427bfa 68bc9f6e01 push 0x16e9fbc
--> Stack Back Trace <--
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
00000000 00000000 00000000 00000000 00000000 00000000 disp+work!<nosymbols>
Stack Dump for Thread Id 2f70
eax=00000000 ebx=0036f190 ecx=00000000 edx=00000000 esi=77bd0888 edi=00000000
eip=7d61cd3e esp=0769fc78 ebp=0769fcb8 iopl=0 nv up ei pl nz na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
function : NtFsControlFile
7d61cd29 b836000000 mov eax,0x36
7d61cd2e b91b000000 mov ecx,0x1b
7d61cd33 8d542404 lea edx,[esp+0x4] ss:0a83e523=????????
7d61cd37 64ff15c0000000 call dword ptr fs:[000000c0] fs:000000c0=????????
7d61cd3e c22800 ret 0x28
--> Stack Back Trace <--
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0769fcb8 00c38ed8 000004f4 00000000 00000000 0036f0f8 ntdll!NtFsControlFile
0769ff84 77bcb530 00000000 00000000 00000000 0036f190 disp+work!<nosymbols>
0769ffb8 7d4dfe37 0036f190 00000000 00000000 0036f190 MSVCRT!endthreadex
0769ffec 00000000 77bcb4bc 0036f190 00000000 00000000 kernel32!FlsSetValue
call clean-up function ...
SigICallExitRoutine: call exithandler (DpHalt)
DpHalt: shutdown server >mudpap01_UDP_71 <
Switch off Shared memory profiling
not attached to the message server
***LOG Q05=> DpHalt, DPStop ( 13548) [dpxxdisp.c 7267]
removing Event-Managment
ERROR => EvtRmMgt: Evt Mgt Table not init'd [evtnt.c 360]
(didn't work)
ShmCleanup SHM_SYS_ADM_KEY
ShmCleanup SHM_DP_ADM_KEY
ERROR => ShmDelete: Inv. Key=2 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 2 [shmnt.c 747]
ShmCleanup SHM_DP_CA_KEY
ERROR => ShmDelete: Inv. Key=3 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 3 [shmnt.c 747]
ShmCleanup SHM_PF_KEY
ERROR => ShmDelete: Inv. Key=4 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 4 [shmnt.c 747]
ShmCleanup SHM_PRES_BUF
ERROR => ShmDelete: Inv. Key=14 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 14 [shmnt.c 747]
ShmCleanup SHM_CALI_BUFFER
ERROR => ShmDelete: Inv. Key=11 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 11 [shmnt.c 747]
ShmCleanup SHM_DB_TBUFF
ERROR => ShmDelete: Inv. Key=19 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 19 [shmnt.c 747]
ShmCleanup SHM_DB_TBUFF_P
ERROR => ShmDelete: Inv. Key=33 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 33 [shmnt.c 747]
ShmCleanup SHM_DB_STBUFF
ERROR => ShmDelete: Inv. Key=41 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 41 [shmnt.c 747]
ShmCleanup SHM_DB_TTBUFF
ERROR => ShmDelete: Inv. Key=42 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 42 [shmnt.c 747]
ShmCleanup SHM_DB_FTBUFF
ERROR => ShmDelete: Inv. Key=43 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 43 [shmnt.c 747]
ShmCleanup SHM_DB_SNTBUFF
ERROR => ShmDelete: Inv. Key=45 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 45 [shmnt.c 747]
ShmCleanup SHM_DB_IRBUFF
ERROR => ShmDelete: Inv. Key=44 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 44 [shmnt.c 747]
ShmCleanup SHM_DB_OBJ_BUFFER
ERROR => ShmDelete: Inv. Key=54 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 54 [shmnt.c 747]
ShmCleanup SHM_ROLL_AREA_KEY
ERROR => ShmDelete: Inv. Key=9 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 9 [shmnt.c 747]
ShmCleanup SHM_PAGING_AREA_KEY
ERROR => ShmDelete: Inv. Key=8 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 8 [shmnt.c 747]
ShmCleanup SHM_ROLL_ADM_KEY
ERROR => ShmDelete: Inv. Key=17 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 17 [shmnt.c 747]
ShmCleanup SHM_PAGING_ADM_KEY
ERROR => ShmDelete: Inv. Key=18 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 18 [shmnt.c 747]
ShmCleanup SHM_PXA_KEY
ERROR => ShmDelete: Inv. Key=6 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 6 [shmnt.c 747]
ShmCleanup SHM_ENQ_TABLE_KEY
ERROR => ShmDelete: Inv. Key=34 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 34 [shmnt.c 747]
ShmCleanup SHM_ENQID_KEY
ERROR => ShmDelete: Inv. Key=58 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 58 [shmnt.c 747]
ShmCleanup SHM_VB_ADM_KEY
ERROR => ShmDelete: Inv. Key=7 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 7 [shmnt.c 747]
ShmCleanup SHM_DB_POOL
ERROR => ShmDelete: Inv. Key=40 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 40 [shmnt.c 747]
ShmCleanup SHM_EM_ADM
ERROR => ShmDelete: Inv. Key=51 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 51 [shmnt.c 747]
ShmCleanup SHM_MSBUF
ERROR => ShmDelete: Inv. Key=52 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 52 [shmnt.c 747]
ShmCleanup SHM_THRUN_ADM_KEY(th run adm)
ERROR => ShmDelete: Inv. Key=30 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 30 [shmnt.c 747]
ShmCleanup SHM_PF_AS_KEY(Appl.Statistics)
ERROR => ShmDelete: Inv. Key=56 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 56 [shmnt.c 747]
ShmCleanup SHM_POOL_0
ERROR => ShmDelete: Inv. Key=10 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 10 [shmnt.c 747]
ShmCleanup SHM_PROFILE
removing Semaphore-Management
removing Request Queue
ERROR => ShmDelete: Inv. Key=31 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 31 [shmnt.c 747]
ERROR => DpRqIQRemove: ShmDelete [dpxxqueu.c 558]
closing connect handles (dgm + tcp)
***LOG Q05=> DpHalt, DPStop ( 13548) [dpxxdisp.c 7454]
return from clean-up function ...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Changed the extendend memory and other parameters still not able to bring it up...
Please suggest...
Thanks,
Subhash.GHi,
sappfpar result , no errors and warnings reported.
+++++++++++++++++++++++++++++++++++++++++++++++
Shared memory disposition overview
================================================================
Key: 1 Size: 2000 ( 0.0 MB) System administration
Key: 2 Size: 18828644 ( 18.0 MB) Disp. administration tables
Key: 3 Size: 178144000 ( 169.9 MB) Disp. communication areas
Key: 4 Size: 541048 ( 0.5 MB) statistic area
Key: 5 Size: 4096 ( 0.0 MB) SCSA area
Key: 6 Size: 851968000 ( 812.5 MB) ABAP program buffer
Key: 7 Size: 14838 ( 0.0 MB) Update task administration
Key: 8 Size: 134217828 ( 128.0 MB) Paging buffer
Key: 9 Size: 134217828 ( 128.0 MB) Roll buffer
Key: 11 Size: 500000 ( 0.5 MB) Factory calender buffer
Key: 12 Size: 3000000 ( 2.9 MB) TemSe Char-Code convert Buf.
Key: 13 Size: 10500000 ( 10.0 MB) Alert Area
Key: 14 Size: 58500096 ( 55.8 MB) Presentation buffer
Key: 16 Size: 22400 ( 0.0 MB) Semaphore activity monitoring
Key: 17 Size: 753764 ( 0.7 MB) Roll administration
Key: 18 Size: 458852 ( 0.4 MB) Paging adminitration
Key: 19 Size: 460000256 ( 438.7 MB) Table-buffer
Key: 30 Size: 91500 ( 0.1 MB) Taskhandler Runtime Admin
Key: 31 Size: 4206000 ( 4.0 MB) Dispatcher request queue
Key: 33 Size: 61440000 ( 58.6 MB) Table buffer, part.buffering
Key: 41 Size: 9010000 ( 8.6 MB) DB statistics buffer
Key: 42 Size: 52900592 ( 50.4 MB) DB TTAB buffer
Key: 43 Size: 87894392 ( 83.8 MB) DB FTAB buffer
Key: 44 Size: 46934392 ( 44.8 MB) DB IREC buffer
Key: 45 Size: 29526392 ( 28.2 MB) DB short nametab buffer
Key: 46 Size: 20480 ( 0.0 MB) DB sync table
Key: 47 Size: 71681024 ( 68.4 MB) DB CUA buffer
Key: 48 Size: 300000 ( 0.3 MB) Number range buffer
Key: 49 Size: 2769392 ( 2.6 MB) Spool admin (SpoolWP+DiaWP)
Key: 51 Size: 3200000 ( 3.1 MB) Extended memory admin.
Key: 52 Size: 40000 ( 0.0 MB) Message Server buffer
Key: 54 Size: 262152192 ( 250.0 MB) Export/Import buffer
Key: 55 Size: 8192 ( 0.0 MB) Spool local printer+joblist
Key: 57 Size: 1048576 ( 1.0 MB) Profil in shared Memory
Key: 58 Size: 4096 ( 0.0 MB) EnqId
Key: 1002 Size: 400000 ( 0.4 MB) Performance monitoring V01.0
Nr of operating system shared memory segments: 36
Shared memory resource requirements estimated
================================================================
Total Nr of shared segments required.....: 36
Shared memory segment size required min..: 851968000 ( 812.5 MB)
Swap space requirements estimated
================================================
Shared memory....................: 2370.2 MB
Processes........................: 468.3 MB
Extended Memory .................: 10260.0 MB
Total, minimum requirement.......: 13098.4 MB
Process local heaps, worst case..: 1908.0 MB
Total, worst case requirement....: 15006.4 MB
Errors detected..................: 0
Warnings detected................: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
We are windows 2003 with sqlserver 2005, is there any equal command as cleanipc in UNIX for windows to clean the share memory .
Thanks,
Subhash.G -
J2ee in 620 Web AS Dialog server is not coming up
Hi all,
We have installed new 620 WEB AS dialog server in same host as CI , Installtion completed successfully i am not able to see the ports and j2ee in SMICM.. it showing as True for J2ee configured but ports are not there and J2ee operational is False..
I have checked the sapinst for prots file and able to see them ..
I am giving the dev_disp & dev_w17 trace files info below/
Please suggest .....
Thanks,
Subhash.G
Dev_disp.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
trc file: "dev_disp", trc level: 1, release: "640"
Wed Jan 6 17:59:41 2010
kernel runs with dp version 131(ext=102) (@(#) DPLIB-INT-VERSION-131)
length of sys_adm_ext is 312 bytes
sysno 07
sid UWX
systemid 370 (SUN on SPARC CPU with Solaris 2.2)
relno 6400
patchlevel 0
patchno 139
intno 20020600
make: single threaded, ASCII, 64 bit
pid 19525
***LOG Q00=> DpSapEnvInit, DPStart (07 19525) [dpxxdisp.c 1098]
shared lib "dw_xml.so" version 139 successfully loaded
shared lib "dw_xtc.so" version 139 successfully loaded
shared lib "dw_stl.so" version 139 successfully loaded
shared lib "dw_gui.so" version 139 successfully loaded
shared lib "dw_mdm.so" version 139 successfully loaded
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpIPCInit2: start server >uxgfdv11_UWX_07 <
DpShMCreate: sizeof(wp_adm) 15408 (856)
DpShMCreate: sizeof(tm_adm) 77455488 (15488)
DpShMCreate: sizeof(wp_ca_adm) 444400 (88)
DpShMCreate: sizeof(appc_ca_adm) 444400 (88)
DpShMCreate: sizeof(comm_adm) 1728000 (432)
DpShMCreate: sizeof(vmc_adm) 0 (504)
DpShMCreate: sizeof(wall_adm) (560040/862312/80/104)
DpShMCreate: SHM_DP_ADM_KEY (addr: ffffffff6f800000, size: 81516600)
DpShMCreate: allocated sys_adm at ffffffff6f800000
DpShMCreate: allocated wp_adm at ffffffff6f8018d8
DpShMCreate: allocated tm_adm_list at ffffffff6f805508
DpShMCreate: allocated tm_adm at ffffffff6f805530
DpShMCreate: allocated wp_ca_adm at ffffffff741e35b0
DpShMCreate: allocated appc_ca_adm at ffffffff7424fda0
DpShMCreate: allocated comm_adm_list at ffffffff742bc590
DpShMCreate: allocated comm_adm at ffffffff742bc5a8
DpShMCreate: allocated vmc_adm_list at ffffffff744623a8
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at ffffffff744623d0
DpShMCreate: allocated wall_adm at ffffffff744623d8
Wed Jan 6 17:59:42 2010
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 4096 kByte.
Using implementation std
EsIUnamFileMapInit: ES base = 0xfffffffd58c00000
EsStdInit: Extended Memory 8192 MB allocated
<ES> 2047 blocks reserved for free list.
ES initialized.
J2EE server info
start = TRUE
state = STARTED
pid = 19529
argv[0] = /usr/sap/UWX/D07/j2ee/cluster/dispatcher/go
argv[1] = go
argv[2] = -DCONNECT_PORT=47851
argv[3] = -DLISTEN_PORT=47852
argv[4] = -DSAPSYSTEM=07
argv[5] = -DSAPSYSTEMNAME=UWX
argv[6] = -DSAPMYNAME=uxgfdv11_UWX_07
argv[7] = -DSAPPROFILE=/usr/sap/UWX/SYS/profile/UWX_D07_uxgfdv11
argv[8] = -DFRFC_FALLBACK=ON
argv[9] = -DFRFC_FALLBACK_HOST=localhost
start_lazy = 0
start_control = SAP J2EE dispatcher node
DpJ2eeStart: j2ee state = STARTED
Wed Jan 6 17:59:49 2010
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG Q0K=> DpMsAttach, mscon ( uxgfuwx) [dpxxdisp.c 9977]
DpStartStopMsg: send start message (myname is >uxgfdv11_UWX_07 <)
DpStartStopMsg: start msg sent
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
DpJ2eeLogin: j2ee state = CONNECTED
Release check o.K.
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
MBUF state ACTIVE
Wed Jan 6 17:59:50 2010
DpModState: change server state from STARTING to ACTIVE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dev_w17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rc file: "dev_w17", trc level: 1, release: "640"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
M sysno 07
M sid UWX
M systemid 370 (SUN on SPARC CPU with Solaris 2.2)
M relno 6400
M patchlevel 0
M patchno 139
M intno 20020600
M make: single threaded, ASCII, 64 bit
M pid 19613
M
M
M Wed Jan 6 17:59:49 2010
M ***LOG Q01=> tskh_init, WPStart (Workproc17 1 19613) [thxxhead.c 1146]
M calling db_connect ...
C Got ORACLE_HOME=/oracle/UWX/102_64 from environment
C got NLS_LANG='AMERICAN_AMERICA.WE8DEC' from environment
C Client NLS settings: AMERICAN_AMERICA.WE8DEC
C Logon as OPS$-user to get SAPUWD's password
C Connecting as /@UWX on connection 0 (nls_hdl 0) ... (dbsl 640 221106)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 104f33560 104f3c540 104f3bed8
C Attaching to DB Server UWX (con_hdl=0,svchp=104f3be08,svrhp=104f3e2e8)
C Starting user session (con_hdl=0,svchp=104f3be08,srvhp=104f3e2e8,usrhp=104f47d80)
C Now '/@UWX' is connected (con_hdl 0, nls_hdl 0).
C Got SAPUWD's password from OPS$-user
C Disconnecting from connection 0 ...
C Close user session (con_hdl=0,svchp=104f3be08,usrhp=104f47d80)
C Now I'm disconnected from ORACLE
C Connecting as SAPUWD/<pwd>@UWX on connection 0 (nls_hdl 0) ... (dbsl 640 221106)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 104f33560 104f3c540 104f3bed8
C Starting user session (con_hdl=0,svchp=104f3be08,srvhp=104f3e2e8,usrhp=104f47d80)
C Now 'SAPUWD/<pwd>@UWX' is connected (con_hdl 0, nls_hdl 0).
C Database NLS settings: AMERICAN_AMERICA.WE8DEC
C DB instance UWX is running on uxgfdv11 with ORACLE version 10.2.0.4.0 since JAN 06, 2010, 14:59:54
B Connection 0 opened (DBSL handle 0)
B Wp Hdl ConName ConId ConState TX PRM RCT TIM MAX OPT Date Time DBHost
B 000 000 R/3 000000000 ACTIVE NO YES NO 000 255 255 20100106 175949 uxgfdv11
M db_connect o.k.
M ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,.sar,.gif
I MtxInit: 17 0 0
M SHM_PRES_BUF (addr: fffffffd50c00000, size: 45000000)
M SHM_ROLL_AREA (addr: fffffffd48800000, size: 134217728)
M SHM_PAGING_AREA (addr: fffffffd40400000, size: 134217728)
M SHM_ROLL_ADM (addr: ffffffff77b42000, size: 2672386)
M SHM_PAGING_ADM (addr: ffffffff6f600000, size: 656416)
I Profile configuration error detected, use temporary corrected setup
I Shared Pool 40: ipc/shm_psize_40 = 642000000 (too small)
I Shared Pool 40: (smaller than min requirement 685904088)
I Shared Pool 40: (estimated size assumed 690000000)
M ThCreateNoBuffer allocated 352144 bytes for 1000 entries at fffffffd17004000
M ThCreateNoBuffer index size: 3000 elems
M ThCreateVBAdm allocated 7440 bytes (50 server) at ffffffff6f500000
X EmInit: MmSetImplementation( 2 ).
X <ES> client 17 initializing ....
X Using implementation std
X ES initialized.
B db_con_shm_ini: WP_ID = 17, WP_CNT = 18, CON_ID = -1
B dbtbxbuf: Buffer TABL (addr: fffffffd0a800100, size: 200000000, end: fffffffd166bc300)
B dbtbxbuf: Buffer TABLP (addr: fffffffd09400100, size: 20480000, end: fffffffd0a788100)
B dbexpbuf: Buffer EIBUF (addr: fffffffcff400108, size: 163840000, end: fffffffd09040108)
B dbexpbuf: Buffer ESM (addr: fffffffcfec00108, size: 4194304, end: fffffffcff000108)
B dbexpbuf: Buffer CUA (addr: fffffffd3a652108, size: 5120000, end: fffffffd3ab34108)
B dbexpbuf: Buffer OTR (addr: fffffffcfe400108, size: 4194304, end: fffffffcfe800108)
M rdisp/reinitialize_code_page -> 0
M icm/accept_remote_trace_level -> 0
M rdisp/no_hooks_for_sqlbreak -> 0
M CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
S
S Wed Jan 6 17:59:50 2010
S *** init spool environment
S initialize debug system
T Stack direction is downwards.
T debug control: prepare exclude for printer trace
T new memory block 1053234a0
S spool kernel/ddic check: Ok
S using table TSP02FX for frontend printing
S 1 spool work process(es) found
S frontend print via spool service enabled
S printer list size is 150
S printer type list size is 50
S queue size (profile) = 300
S hostspool list size = 3000
S option list size is 30
S found processing queue enabled
S found spool memory service RSPO-RCLOCKS at fffffffd3ab38060
S doing lock recovery
S setting server cache root
S found spool memory service RSPO-SERVERCACHE at fffffffd3ab386d8
S using messages for server info
S size of spec char cache entry: 165024 bytes (timeout 100 sec)
S size of open spool request entry: 1184 bytes
S immediate print option for implicitely closed spool requests is disabled
A
A -PXA--
A PXA INITIALIZATION
A PXA: Fragment Size too small: 73 MB, reducing # of fragments
A System page size: 8kb, total admin_size: 11328kb, dir_size: 11272kb.
A Attached to PXA (address fffffffcebc00000, size 300000K)
A abap/pxa = shared protect gen_remote
A PXA INITIALIZATION FINISHED
A -PXA--
A
A ABAP ShmAdm attached (addr=fffffffd5911e000 leng=20938752 end=fffffffd5a516000)
A >> Shm MMADM area (addr=fffffffd5933e9c0 leng=144960 end=fffffffd59362000)
A >> Shm MMDAT area (addr=fffffffd59364000 leng=18554880 end=fffffffd5a516000)
A RFC rfc/signon_error_log = -1
A RFC rfc/dump_connection_info = 0
A RFC rfc/dump_client_info = 0
A RFC rfc/cp_convert/ignore_error = 1
A RFC rfc/cp_convert/conversion_char = 23
A RFC rfc/wan_compress/threshold = 251
A RFC rfc/recorder_pcs not set, use defaule value: 1
A RFC rfc/delta_trc_level not set, use default value: 0
A RFC rfc/no_uuid_check not set, use default value: 0
A RFC abap/SIGCHILD_default not set, use default value: 0
A RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0
A RFC Method> initialize RemObjDriver for ABAP Objects
A Hotpackage version: 54
M ThrCreateShObjects allocated 18772 bytes at ffffffff5ae00000
N SsfSapSecin: putenv(SECUDIR=/usr/sap/UWX/D07/sec): ok
N
N =================================================
N === SSF INITIALIZATION:
N ===...SSF Security Toolkit name SAPSECULIB .
N ===...SSF trace level is 0 .
N ===...SSF library is /usr/sap/UWX/SYS/exe/run/libsapcrypto.so .
N ===...SSF hash algorithm is SHA1 .
N ===...SSF symmetric encryption algorithm is DES-CBC .
N ===...sucessfully completed.
N =================================================
N MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.
N MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.
W =================================================
W === ipl_Init() called
W ITSP Running against db release 620!
W ITSP Disable Kernel Web GUI functionality
W === ipl_Init() returns 2, ITSPE_DISABLED: Service is disabled (sapparam)
W =================================================
B dbtran INFO (init_connection '<DEFAULT>' [ORACLE:640.00]):
B max_blocking_factor = 5, max_in_blocking_factor = 5,
B min_blocking_factor = 5, min_in_blocking_factor = 5,
B prefer_union_all = 0, prefer_union_for_select_all = 0,
B prefer_fix_blocking = 0, prefer_in_itab_opt = 1,
B convert AVG = 0, alias table FUPD = 0,
B escape_as_literal = 1, opt GE LE to BETWEEN = 0,
B select * =0x0f, character encoding =SBCS / <none>:-,
B use_hints = abap->1, dbif->0x1, upto->2147483647, rule_in->0,
B rule_fae->0, concat_fae->0, concat_fae_or->0
S using action cache size 20 (prof=20)
S creating spool memory service RSPO-ACTIONS at fffffffd3ab3d5e8
S catch mode for rspo_rperf disabled
L
L Wed Jan 6 18:01:09 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:07:09 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:13:09 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:18:10 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:24:10 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:30:10 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
L Wed Jan 6 18:36:10 2010
L Auto-Deletion of spool requests: Disabled, note 498668
L
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Dear Subhash,
If your Ci is running then http://hostname:port should give you a start page, but if you login to perticular new instane with http://new host:new port and if this is returning some error then we can categorize as we have problem in new instance.
Can you please paste .out logs from your work dir for new instance.
and chek the memory settings according to following notes:
Note 696410 - Java VM settings for EP6 on J2EE 6.20
729178 - Java VM setting for applications running on J2EE Engine 6.20
634689 - Central Note for Memory Issues, SAP J2EE Engine 6.20
And specify your system configuration as well ..
Regards
Shailesh -
Create Spool from Internal table & converrt the spool to PDF
Hi All,
My requirement is take data from a table and find amount specific to each Vendors . So I took all the data into ITAB and do all the calculation. Later after calculation I have to create a spool from this ITAB and this spool have to convert to PDF. Later this PDF have to seend via email.
To convert the internal table to Spool , I used
LOOP AT t_summ INTO wa_summ.
w-amount = wa_summ-remittanceamount.
CONCATENATE wa_summ-vendorcode
wa_summ-controlnum
w-amount INTO wa_textdata SEPARATED BY space.
APPEND wa_textdata TO t_textdata.
ENDLOOP.
DESCRIBE TABLE t_textdata .
w-file_length = syst-tfill * 1022.
l_doctype = 'LIST'.
l_layout = 'X_POSTSCRIPT'.
CONCATENATE ' Listbill Summary Report for' syst-datum INTO
l_title SEPARATED BY space.
l_receiver = syst-uname.
* Create Spool
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = 'LOCL'
* LDEST =
layout = l_layout
name = 'SUMREP'
* SUFFIX1 =
* SUFFIX2 =
copies = '1'
* PRIO =
* immediate_print = ' '
* AUTO_DELETE =
titleline = l_title
receiver = syst-uname "
* division = l_pri_params-prabt " abteilung
* authority = l_pri_params-prber "
* POSNAME =
* ACTTIME =
* LIFETIME = '8'
* APPEND =
* COVERPAGE =
* CODEPAGE =
doctype = l_doctype
* ARCHMODE =
* ARCHPARAMS =
* TELELAND =
* TELENUM =
* TELENUME =
IMPORTING
handle = l_spool_handle
spoolid = w-spoolid
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4
OTHERS = 5
. "#EC DOM_EQUAL
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SLVC_C1022_TO_C255'
EXPORTING
i_file_length = w-file_length
TABLES
it_c1022 = t_textdata
et_c255 = lt_spool.
l_length = w-file_length.
LOOP AT lt_spool INTO ls_spool.
l_length = l_length - 255.
IF ( l_length > 0 ).
l_line_length = 255.
ELSE.
l_line_length = l_length + 255.
ENDIF.
* Write contents to spool
CALL FUNCTION 'RSPO_SR_WRITE'
EXPORTING
handle = l_spool_handle
text = ls_spool
length = l_line_length.
ENDLOOP.
* Close Spool
CALL FUNCTION 'RSPO_SR_CLOSE'
EXPORTING
handle = l_spool_handle
pages = 1
FINAL = 'X'
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3
By this I can see the spool with data in SP02.
Then to conver to PDF, I used
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w-spoolid
no_dialog = 'X'
DST_DEVICE = 'LOCL'
* PDF_DESTINATION =
IMPORTING
* PDF_BYTECOUNT =
* PDF_SPOOLID =
list_pagecount = list_pagecount
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
pdf = t_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 <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\t\t.pdf'
filetype = 'BIN'
TABLES
data_tab = t_pdf
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
But later when I go and open the PDF, I am getting an error saying'Page cannot be open because it dont have any pages'
Please help me
Regards,
NikhilHi Nikhil,
<li>If you are still not able to find out the problem. You can an alternative way , which is used for the same purpose.
<li>Try this way. It creates spool and and same CONVERT_ABAPSPOOLJOB_2_PDF fm is used to convert spool to PDF. It works. Test this test program.
REPORT ztest_notepad.
DATA:g_val TYPE c,
w_pripar TYPE pri_params,
w_arcpar TYPE arc_params,
i_pdf TYPE TABLE OF tline,
spoolid LIKE tsp01-rqident,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount.
DATA:it_t001 TYPE TABLE OF t001 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE it_t001.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = w_arcpar
in_parameters = w_pripar
layout = 'X_65_132'
line_count = 65
line_size = 132
no_dialog = 'X'
IMPORTING
out_archive_parameters = w_arcpar
out_parameters = w_pripar
valid = g_val.
IF g_val NE space AND sy-subrc = 0.
w_pripar-prrel = space.
w_pripar-primm = space.
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS w_pripar ARCHIVE PARAMETERS w_arcpar NO DIALOG.
ENDIF.
LOOP AT it_t001.
WRITE:/ it_t001.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolid = sy-spono.
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 = i_pdf.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\temp\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf.
Thanks
Venkat.
Maybe you are looking for
-
Slideshow cuts off images when site uploaded
check out the error on the published site..maranatha.co.uk the slideshow cuts of portions of the images, or sometimes one of the images drops out of the slideshow. the issue doesnt occur in design mode.Generally and only generally it occurs in the pr
-
is there any function module to manage upper case and lower cases
-
C3-00 How to adjust Brightness/Contrast
I'm going blind with the current brightness/contrast >.<'
-
HDD write speeds are suddenly slow...
Hi, I have a T540p that has a 500 GB 7200 RPM hard drive in it. Previously, it would read and write near 100 MB/sec, which is to be expected. However, recently it will only give me 90 MB/sec sequential read speed and 40 MB/sec sequential write. My ex
-
Hi, My mac is currently installed with Mac OS Lion. I would like to restore my system (data) from my previous backup disk (as my mac had been reformatted), but my previous system was OS Leopard. Will it overwrite my OS Lion when installing back? If i