Form in SAPscript convert to PDF in the backend
Hi,
Is there a way to convert a form created in SAPscript, directly to PDF in the backend?
I am aware that there is a report RSTXPDFT4 to convert a spool output to PDF. But I do not want to create a spool for the SAPscript. I want the form to be directly downloaded as PDF.
As the program will be generated as a background job, i want it to download to pdf directly to a filepath specified on the selection screen. Also, I can only use SAPscript, not adobe form or smartforms to generate.
Thank you for your help.
Hi Hm He,
Were you able to send the sapscript in pdf to specified path yet? I have the same problem here. I want to be able to send the sapscript in pdf to a unix path to be ftp'd to another server via batch.
Please advise.
Thanks
Bee Soo
Similar Messages
-
I would like to use Formcentral form data to populate a pdf with the same fields. Is that possible?
Randy,
We have an application that I would like to have in Formscentral. That application is also in a larger PDF file that once filled in populates all the other forms below it (lease, credit check form, ect). If the Application on Formscentral keep the same field names as the pdf can I pull the data from formscentral and sill populate the old application pdf so that all the forms below it will be also populated.
Greg -
I have a 54MB Tiff that will not convert to PDF in the the online or desktop version.
I have a 54MB Tiff that will not convert to PDF in the the online or desktop version. It crashes at page 211 in Windows Photo Viewer when trying to print it to PDF.
Sean
6023639400Sounds pretty definitely broken.
-
Problem in converting to PDF (in the smartform)
Hello Eddy and Jashandeep,
Fought for a while with the smartform and called it in my BSP Application.But here i faced a problem.The sequence is as follows -->
1, I Created a smartform and wrote the code as given by
Mr.Eddy(weblog on PDF by Craig) in my BSP Application.
2, I executed my BSP Application.
3, Got the tableview on the page.
4, Selected the 4rth Radiobutton in the list and then pressed Display.
5, My application went for a dump saying :
<b>"An exception with the type
CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither
handled locally, nor declared in a RAISING clause"</b>
Could u guys tell me what was the problem in my case.
a. I think that there is problem in my Smart form!!
In my application I have the final table containing
18 fields.
But in smartform i declared the table in the
forminterface of type mcdata as i cannot define my 18
fields type in the interface.
SO a type mismatch may occured due to this and a dump was generated ...i guess it is so....
PLease help me to come-out of this problem.
2, Plz help me in understand the following toooo.....
Why do we have <b>6 radio buttons</b> for the PDF
conversion ?
a. The requirement is to download the table into a PDF.
Can U plz tell me what is the purpose of each
radiobutton.
And a browse option is also given.
<b>Why is this required when we have the content to be downloaded to PDF on the page itself in the form of a table ?</b>
Regards,
Deepu.KHi Manasa,
I did that.
It's working in the SmartForm and in now it's working in my layout also.
But,the spool output is not the output of my table-view.
can u tell me what may be the reason ?
Regards,
Deepu.K -
Hi All ,
i want to convert sapscript to pdf .
this is standart code , i don't know very good sapscript.
Thanks..
LOOP AT it7trg01 WHERE mark EQ 'X'.
CLEAR l_counter.
READ TABLE sirket WITH KEY begda = it7trg01-begda
sskis = it7trg01-isskno.
CALL FUNCTION 'START_FORM'
EXPORTING
startpage = 'PAGE1'.
PERFORM write_form.
LOOP AT fpper WHERE isskno EQ sirket-sskis
AND begda EQ sirket-begda.
ADD 1 TO l_counter.
PERFORM write_window USING 'MAIN' 'MAIN'.
ENDLOOP.
CLEAR fpper.
IF l_counter LT 12.
l_counter = 12 - l_counter.
DO l_counter TIMES.
PERFORM write_window USING 'MAIN' 'MAIN'.
ENDDO.
ENDIF.
CALL FUNCTION 'END_FORM'.
ADD 1 TO itcpo-tdcopies.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'.Hi,
From the print program Call function 'END_FORM' ,the import parameter 'result' structure having "TDSPOOLID" field ,this is nothing but ,spool request no.,you have to pass this value to these function module...
plz,you can try this function module....
1.CONVERT_ABAPSPOOLJOB_2_PDF
2.CONVERT_OTFSPOOLJOB_2_PDF
3.CONVERT_OTF_2_PDF
4.CONVERT_OTF_2_PDF_ARCHIVELINK
Also,you can call the program "RSTXPDFT4" in Background Job in your print program.
I hope,it will help you...
<=<< Sharing Knowledge is a way to Innovative >=>>
By,
Yoga -
Sapscript converted to PDF throug spool and sent via email
Hello gurus, i have the following code for the requeriment and when trying to open file through transaction SOST, the system says that the file is corrupted.
What am I doing wrong please?
Help is very appreciated!!!!
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w_spool
no_dialog = c_marca
dst_device = zcts_itcpo-tddest
IMPORTING
pdf_bytecount = w_numbytes
TABLES
pdf = i_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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 eq 0.
PERFORM f_convert_pdf TABLES i_pdf
i_objbin.
PERFORM f_send_mail.
endif.
FORM f_convert_pdf TABLES i_source_tab STRUCTURE tline
i_target_tab STRUCTURE zcts_objbin.
DATA: l_hfeld(1600) TYPE c,
l_offset TYPE p,
l_tabix TYPE sy-tabix,
l_linecount_source TYPE i,
l_length_source TYPE i,
l_length_target TYPE i.
CLEAR: l_hfeld,
l_offset,
l_tabix,
l_linecount_source,
l_length_source,
l_length_target,
zcts_pdf,
zcts_objbin.
DESCRIBE FIELD i_source_tab LENGTH l_length_source IN BYTE MODE.
DESCRIBE FIELD i_target_tab LENGTH l_length_target IN BYTE MODE.
DESCRIBE TABLE i_source_tab LINES l_linecount_source.
CLEAR:
i_target_tab,
zcts_pdf.
LOOP AT i_source_tab INTO zcts_pdf.
l_tabix = sy-tabix.
MOVE zcts_pdf TO l_hfeld+l_offset.
IF l_tabix EQ l_linecount_source.
l_length_source = STRLEN( zcts_pdf ).
ENDIF.
l_offset = l_offset + l_length_source.
WHILE l_offset GE l_length_target.
zcts_objbin = l_hfeld(l_length_target).
APPEND zcts_objbin TO i_target_tab.
CLEAR zcts_objbin.
SHIFT l_hfeld BY l_length_target PLACES.
l_offset = l_offset - l_length_target.
ENDWHILE.
IF l_tabix EQ l_linecount_source.
IF l_offset GT 0.
zcts_objbin = l_hfeld(l_offset).
APPEND zcts_objbin TO i_target_tab.
CLEAR zcts_objbin.
ENDIF.
ENDIF.
CLEAR:
i_source_tab,
zcts_pdf.
ENDLOOP.
ENDFORM. " f_convert_pdf
FORM f_send_mail .
DATA: l_lines_txt TYPE i,
l_lines_bod TYPE i.
CLEAR: i_reclist,
i_objpack,
l_lines_txt,
l_lines_bod.
CLEAR i_objhead.
Create here the mail body
DATA: li_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE.
CLEAR li_mess_bod.
li_mess_bod = text-012.
APPEND li_mess_bod.
IF sy-subrc EQ 0.
CLEAR zcts_objtxt.
ENDIF.
CLEAR i_materials.
READ TABLE i_materials INDEX 1.
IF sy-subrc EQ 0.
CONCATENATE text-013 i_materials-maktx INTO li_mess_bod SEPARATED BY space.
ENDIF.
APPEND li_mess_bod.
IF sy-subrc EQ 0.
CLEAR li_mess_bod.
ENDIF.
IF p_deliv IS INITIAL.
CONCATENATE text-014 p_sales INTO li_mess_bod SEPARATED BY space.
ELSE.
CONCATENATE text-014 p_deliv INTO li_mess_bod SEPARATED BY space.
ENDIF.
APPEND li_mess_bod.
IF sy-subrc EQ 0.
CLEAR li_mess_bod.
ENDIF.
DESCRIBE TABLE li_mess_bod LINES l_lines_bod.
CLEAR li_mess_bod.
READ TABLE li_mess_bod INDEX l_lines_bod.
IF sy-subrc NE 0.
CLEAR li_mess_bod.
ENDIF.
zcts_doc_chng-obj_name = 'CERTIFICATE'.
Subject
IF p_deliv IS INITIAL.
CLEAR i_delivery.
READ TABLE i_delivery INDEX 1.
IF sy-subrc EQ 0.
CONCATENATE text-011 i_delivery-vbeln sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
ENDIF.
ELSE.
CONCATENATE text-011 p_deliv sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
ENDIF.
Fill the document data and get size of attachment
zcts_doc_chng-sensitivty = c_sens.
zcts_doc_chng-doc_size = ( l_lines_bod - 1 ) * 255 + STRLEN( li_mess_bod ).
Body mail
CLEAR zcts_objpack-transf_bin.
zcts_objpack-head_start = 1.
zcts_objpack-head_num = 0.
zcts_objpack-body_start = 1.
zcts_objpack-body_num = l_lines_bod.
zcts_objpack-doc_type = c_doc_type.
APPEND zcts_objpack TO i_objpack.
PDF attachment
zcts_objpack-transf_bin = c_marca.
zcts_objpack-head_start = 1.
zcts_objpack-head_num = 0.
zcts_objpack-body_start = 1.
DESCRIBE TABLE i_objbin LINES l_lines_txt.
zcts_objpack-doc_size = l_lines_txt * 255.
zcts_objpack-doc_size = w_numbytes.
zcts_objpack-doc_type = c_doc_type2.
zcts_objpack-obj_name = c_obj_name.
CONCATENATE text-010 sy-datum INTO zcts_objpack-obj_descr SEPARATED BY space.
APPEND zcts_objpack TO i_objpack.
Mail destinary
zcts_reclist-receiver = text-018.
zcts_reclist-rec_type = c_rec.
zcts_reclist-com_type = c_com_type.
APPEND zcts_reclist TO i_reclist.
Call function below to sending PDF object to internet email address
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = zcts_doc_chng
put_in_outbox = c_marca
commit_work = c_marca
TABLES
packing_list = i_objpack
object_header = i_objhead
contents_bin = i_objbin
contents_txt = li_mess_bod
receivers = i_reclist
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.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " f_send_mailhi
good
go through this code hope this will help you to solve your problem
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
reward point if hlepful.
thanks
mrutyun^ -
Convert to PDF w/out the font changing
When I convert my word doc into PDF using Adobe, the font changes from Futura LT to Helvetica. How can I convert to PDF without the font changing?
I need it to be Futura and Adobe apparently does not have that font.Use the Press or Print job settings. They try to embed all fonts. I am assuming the font can be embedded (is licensed for that).
-
Using Word doc after converting from PDF
I have just purchased Adobe Export PDF purely to complete a Job Aaplication form in Word rather than PDF but the Word document does not allow me to edit it properly - i.e. I cannot expand the text boxes to make them bigger and when I try to add in information like my name and the post I'm applying for, it moves existing text from the original PDF doc onto different lines. I assumed once I'd converted it I could use it like a normal Word doc but it seems not. Please advise what I'm doing wrong, thank you.
Hi Disc9,
In order to help you. Let me know which application of Adobe you are using including the version.
Also let me know the complete workflow how you convert the PDF to docx/doc.
Regards. -
I have a user that every time she chooses "Convert to PDF" from the context menu on a MS Word document she gets a Save As box, enters the name and location, clicks Save. Then Word starts and it brings up another Save As box and makes her enter the name and save location AGAIN. It does then create the PDF, but it is very annoying to her as she makes lots of PDFs for our board of directors (she is our CEO). I have tried it on other PCs that have a similar setup, but none have done this. They all just run the converter window after one dialog box. Please HELP
Does your user have custom add-ons besides the Acrobat PDFMaker add-on? If so, try disabling the other add-ons as a test to see if you get the same results.
Does your user have a custom template? Try moving it out and using the standard MS Word template as test?
Did your user have a previous installation of Adobe Acrobat?? If so, check the Add-ons to see if an older version is still registered with MS Word. -
CANNOT convert to PDF for Adobe Acrobat 9 Pro
Hi there,
When I try to convert a word file to pdf, after completed process, it prompts out a txt file which only included the path of the pdf file located. However, there is no such pdf file in that location instead the txt file mentioned above.
I couldn't understand it work fine when I just save file at local PC but remote network driver do not.
Could you give me any advice? Thank you in advance.
Best Regards,
WylieHi Aandi Inston,
It's very strange. It works again. By the way, I still want to explain my case.
I usually select Adobe PDF printer to convert doc to pdf or just right the doc file and select "convert to pdf" from the menu.
Actually, during converting process, there is a status bar/menu showing the process. When it is compeleted, the status bar/menu closed itself.
Finally, a txt file prompt out. It contains the path of pdf file stored.
However, there is no such pdf created.
I guess there maybe a problem for not using Adobe installation login account. ???? -
Explorer Context Menu Convert Sends Files to the Printer
Right-clicking PSD files and choosing "convert to PDF" sent the files to the printer!!! I had hoped it would have brought up a dialog to convert the files to PDF...
(I was looking for "combine as PDF" -- I'm not sure what happened to it?)
I'm running Acrobat 11 on Windows 8.1
-DonaldAll that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
A rough example of how to do this is at http://www.codeproject.com/w2k/extendingshell.asp
Brian Rose -
Error Message in Word Convert To PDF Tab
I am gettting an Error Message in Word Convert To PDF Tab
The pop up box comes up when I am in Word 2003 , it says "Unabkle To Find PDFresource files, you must be an adminstrator to install these files
So I cannot create a PDF file when in Word 2003
When I go to Acrobat 9.0 and try to create from a file , choose the word file, it says it is creating it- but nothing happens, its like it's not loading.
I am on a PCCan you print to the Adobe PDF printer (I suspect you can not)? Are you logged in as the administrator? Can you find any of the job settings files? If the latter is the case, then you likely do not have permissions set to allow you to read the folder that has all the job settings. If you are not the administrator, you will have to get the administrator to find the folder (it is in one of the document and settings folders under Adobe for XP and under the Users (I think) on Win7) and grant you access.
-
34,000 page excel file needs to be converted to pdf
I have a 34,000 page excel file that I need to convert to pdf. The excel file is 13mb. I'm using excel 2013 on Win 7.
Within excel, I have tried Save As pdf. It has never finished. I've let it run all day and night, but it gets to about 90% and hangs.
Last night, I tried converting it within Adobe (let it run all night), and found that it had crashed some time over night.
I really want this to be one pdf since it's one excel file and it would be simpler for traceability and audit purposes.
My questions are:
1. Is there a maximum file size or page limit to conversions?
2. Any suggestions on how to convert this into one pdf file?
Thank you!!That's a large file. PDFs can have many more pages than that though, so it's not due to a limitation of PDF. As a test, are you able to select fewer pages to convert to see how it goes?
-
Acrobat Pro 8 Outlook convert to PDF
I have several thousand emails that I want to convert to PDF using the PDF Maker plug-in. I want all the messages and their attachements converted, I don't need PDF/A or an index. The problem that I have is the volume of emails is so large that PDF Maker won't convert them all. One mail batch of just the in box was almost 700MB and took about 2 hours. Is there any better or faster way of taking tens of thousands of emails (about 25,000) and converting them to PDF with the attachments like PDF Maker does? Is there a way to some how or another to raise or bypass the limit PDF Maker seems to have?
I'm using Windows Vista Home, Outlook 2007, Acrobat 8.12, 2GB of RAM, Dual core 1.73 processor.any updates to this issue?
-
Acrobat 8.1 Pro .mht And Some .html files Do Not Convert To PDF
Acrobat 8.1 Pro with Windows Vista. .mht files are saved complete webpage single files similar to complete html files except they're as a single file instead of a file and a folder. When using Create From File, Acrobat does not recognize .mht files and will not convert them to PDF. Some complete .html files will not convert using Create from File, even though Acrobat does recognize them.
Also, when I'm logged into a website and want to convert a webpage to PDF using Create From Web, often the resulting PDF document is of the login page and not the page I selected with the error message "can't locate file". These difficult webpages can be converted to PDF using the Print Adobe PDF function, but hyperlinks are not preserved with this function.
I would like to be able to convert all files (including .mht) and webpages to PDF while preserving hyperlinks. Can anyone help me with this?Bruce,
mht files are not standard html files. Acrobat will not handle those. If
you are on a website that most be logged into, then Acrobat cannot get
to those files since it is not logged in. You can print to pdf, since
your browser is logged in.
Mike
Maybe you are looking for
-
Photo quality low res in iMovie. I can't fix it.
No Matter what the quality of my image (jpeg), after I import it (from iPhoto or any other way, for that matter) the photo is low res and I cannot get a crisp image in iMovie 6.0.1. iMovie 5 did a fine job of reproducing my images. Now, I am at my wi
-
BDC issues in FB60 while posting through proxy
Hi All, I have created a BDC for FB 60 & FB65. Now, the requirement is that Data will come from XI as inbound proxy and the code will get executed. XI sends a separate file for each record. That is if 10 documents are to be created from FB 60 , then
-
Dear Experts, please find the following process SO-DO(Partial qty)-IN Return Order with reference of invoice and PGR and Cr.Memo completed. now the user has cancelled the invoiced(normal invoice) And he reverse the Delivery Document. user requested R
-
Dear all, How to make the subtotal of the group by section?? ABC SubTotal: $300 Payment No Payment Amount 123456 $100 123457 $200 BCD SubTotal: $200 Payment No Payment Amount 123654
-
Oracle Retail Devices Configuration
Hi all; I have the server and register running; i have connected a printer and cash drawer.i got javapos from the manufacturer. After installation of javavapos the POS application is still not able to communicate to my devices. According to POS insta