Sapscript form print as PDF
Hello,
is there a way to setup a printer that we can print sapscript form into a PDF file?
We don't want to go over the spool request and use RSTXPDFT4.
I have already setup a printer with device type PDF1, Host Spool Access Method F:Printing on Frontend Computer and Host Printer __Default. But for some reasons it doesn't work. We are running SAP Enterprise 470.
Any help?
Thanks
Anne
You must choose a FILE printer. See these notes:
[Note 576973 - Creating a file printer on a Windows PC|http://service.sap.com/sap/support/notes/576973]: steps to add a Windows (if it's Vista, see note 1164132) printer of type Generic/Text only, and to create an output device in SAP to print to this printer. It does not explain that we may just change the port of an existing printer.
[Note 1164132 - Front-end printing on Windows printer with FILE port|http://service.sap.com/sap/support/notes/1164132]: note 576973 applied to Windows XP and before, but it doesn't work anymore on Windows VISTA because the dialog box to enter the file name is no more displayed. A change in SAPGUI 7.10 was made (and it works only with access method G) to display a SAP dialog box to enter file name.
Similar Messages
-
About include text in sapscript form printing
hi experts:
I am learning about form printing,the control command-include,for example:INCLUDE ZTEST OBJECT TEXT ID ST.
the question is:how to ceate the text?
thanksHi,
Standard text are used to include a Fixed Note or Rules or regulation document in SAPSCRIPT.
You can include this text any where in your SAPSCRIPT, just by using include text.
It is created in SO10 transaction, Where you can create the standard text. Object Name --> Starting with Z, Text ID --> ST, Language --> EN
Just enter the text you want to display inside the editor and save it.
Then go to sapscript editor --> in Menu Include --> Text --> Standard.
It wil get included.
Hope this may be useful..
Regards,
Prashant -
Hi Experts,
I have a sapscript form being used in transaction LT31. When LT31 printing is executed, the form is always being printed twice. Where should I start investigating on this?
Thanks in advance!Check the variant, I guess in variant you will have an options...
Regards,
SaiRam -
Hi,
Pls reply back if you have come across such a sapscript issue before.
Sometimes(Not always) all the contents in a sapscript print out (also the print preview) prints all characters as # . Each and every character on the form prints as '#### .....' .
Printer used - Xerox WorkCenter
Printer Driver - HP Laserjet 4 Series PCL - 5
Let me know the soln in case anybody has come across such an issue before.
Thanks,
ashokHi Ashok,
Can you give some details, like is this happening for only specific printers or font+font size combination as SAPScript recognizes fonts with specific sizes for e.g. Font HELV has font sizes recognized by 10 and 8, 9 - HELV is not recognized by the Script.
As for me I think this problem might be solved by changing Printer Configuration.
Thanks
Anirban M. -
Physical Inventory SAPscript form printing.
Hi Friends,
we have developed a SApscript form and print program for physical inventory documnet . and we r using z transaction code to run this..
now the requiremnt is . the same form and print program need to be called when they run the transactions MI03, or MI01 or MI02.
it seems to be there are no Output types related to physical inventory.
Could any one of you guide me how to do assign this custom form and program to these transactions.
Its bit urgent.
thanks in advance.
Jeyaseelan.GDear all,
I think I've got the answer (even though it is 3 years after question was posted).
Let me re-cap the problem:
1) A set of SAPscript form and print program (beginning with 'Z') for physical inventory document are developed
2) This set of SAPscript form and print program produce similar printout as that in T-code: MI03, or MI01 or MI02
3) The SAPscript form is copied from "INVENT" or "INVENT_VKBW" and the print program is copied from "RM07IDRU" or "RWWVINVB"
4) However, there is no output types available for configuration for user to print physical inventory document using this new set of SAPscript form and print program
Am I correct ?
The re-solution is: Maintain the output types entries (program, form) in table "T159N"
1) T-code: MI01 , MI02, MI04 will call T-code: MI21 when user selects to print physical inventory document
2) T-code: MI21 will call print program "RM07IDRU" (this is maintained in T-code SE93)
3) Program RM07IDRU" will call SAPscript "INVENT" or "INVENT_VKBW" (this is maintained in table "T159N")
Hence, if you develop new sets of SAPscript form and print program (by copying from "INVENT" or "INVENT_VKBW" / "RM07IDRU" or "RWWVINVB"), try table "T159N".
Simon -
i am having a problem with a sapscript form for payment advice. its in germany but i want it in english. how do i convert it to english. the name of the form is F110_D_DTA. Its a standard form. if there is anyone who has this form in english please send it to my email: [email protected]
Hi Chingarande,
You can also try this.
GO to SE71->Administrative Data. In language Attributes change the option "Translate to all languages" from "Do not ranslate".
Ashven -
My sapscript form prints a blank page...
Hello experts,
I am currently modifying a sapscript wherein it prints a page that doesnt contain any data in its main window. How do I prevent this? Again, thank you guys and have a nice day!Hi Viraylab,
Assign a text element say it is 'TEST' to that window, and try to call the write_form with that text element.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEST'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Then whatever u write after this text element will get displayed on that particular window. -
Sending a form as a pdf via email with the BCS interface
Hi,
I would like to send a sapscript form as a pdf to a mail recipient using the BCS interface.
I started to investigate the BCS.
When using the function - CLOSE_FORM - I get the OTFDATA table - how do I send it as a pdf file with BCS ?
How different is sending an Ms-Word attachment ?
Thanks so much.
Promise to award points...
Ruthie.Hai
Go through the following Code that will help you
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Regards
Sreeni -
Convert SAPSCRIPT forms to PDF
We need to do a report that can generate several pdfs from a payment run (SAP-FI), so we need to have one pdf for each payment in the run (they are in SAPSCRIPT form).
The program that we use is copy of "J_1AF012" and the we use "SX_OBJECT_CONVERT_OTF_PDF" function to obtain the pdf form, but the changes that we did in the standard were:
a) in the "OPEN_SAPSCRIPT"
*& Form OPEN_SAPSCRIPT
text *
FORM OPEN_SAPSCRIPT.
ITCPO-TDIMMED = '*'. " kz sofort drucken
ITCPO-TDDELETE = '*'. " kz freigbe nach Druck
ITCPO-TDLIFETIME = '7'. " verfalltage
ITCPO-TDPREVIEW = 'X'. " druckansicht
Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
CALL FUNCTION 'OPEN_FORM' " open form for output
EXPORTING FORM = S_FORM
DIALOG = 'X'
LANGUAGE = 'S'
OPTIONS = ITCPO
OPTIONS = w_options
DEVICE = 'PRINTER'
DEVICE = c_printer
IMPORTING
RESULT = W_RES.
ENDFORM. " OPEN_SAPSCRIPT
b) In the "CLOSE_SAPSCRIPT" :
FORM CLOSE_SAPSCRIPT.
C_ORDEN = C_ORDEN + 1.
shift C_ORDEN left deleting leading space.
CONCATENATE C_PATH C_NAME1 C_ORDEN C_EXTENSION INTO C_NAME.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = w_res
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS= 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
c) And we added these functions:
Converting OTF data to single line
LOOP AT i_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
Converting to PDF Format
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = c_otf
format_dst = c_pdf
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
Downloading the PDF File
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_size
filename = c_name
filetype = c_bin
TABLES
data_tab = i_content_bin.
When we run the program the error is a dump with:
"DBIF_RSQL_INVALID_CURSOR
CX_SY_OPEN_SQL_DB "
and aparenttly is due to the cursor in BKPF table is closed (or missing) in some of those functions.
We use the "open_form" and "close_form" for each payment document, and we could generate only the first pdf and then the program cancel (to the second pdf) with this mentioned error.
We are on R/3 4.70, 620, and Informix Database.
Please, could you kindly help us???
Best regards,Hola Grisel!
Estoy tratando de armar en pdf las órdenes de pago, pudiste hacerlo? Como lo lograste?
Gracias de antemano por cualquier info que me puedas brindar.
Saludos
Eduardo Puricelli
Hi Grisel,
I'm trying to build in pdf payment orders, could you? As you did it?
Thanks in advance for any info you can give me.
Greetings
Eduardo Puricelli -
How to print or Fax a file with SAPscript form ?
Hello Gurus,
+ We have a file (Terms) WORD which is contained in 1 PAGE WORD . Font ARIAL size 5. In Word it is OK , Now our client needs this contents to be printed with the SAPSCRIPT ( Sale order) . We can not extract all of this contents into a page of SAPScript .. We've tried with font TIMES size 8 in SAPSCRIPT it printed in3 pages. So We think of another solution is to print or Fax this file at the same time when the SAPscript is printed. Could you please advise us how to do this ? Supposing that this file is stored in the SERVER .
Thank in advance.When you open a PDF email attachment, would you make sure to open it in Adobe Reader for iOS?
When you receive and open an email with a PDF attachment, Apple Mail (the default mail app on iPad/iPhone) uses its own preview feature to display the PDF attachment. However, Apple Mail for iOS does not render or print form fields or comments in the preview.
Please take a look at the Mail section of the following FAQ documents to open a PDF email attachment in Adobe Reader for iOS.
For iPad, see How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
For iPhone, see How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
Please let us know if you need further assistance. -
I have developed a fillable pdf in Adobe Acrobat Professional X but when I try to use the Airprint feature the form print minus the field data, have anyone been able to resolve this issue?
Hi,
I had a similar problem and found help for it. Go to the "Advanced" menu and select Extend features in Adobe Reader. That will enable rights which may resolve your problem. If that doesn't work, there is a really helpful guy in here, Robert Levine. You may want to ask him directly.
Good Luck -
How do I print a pdf form that has no print button?
How do I print a pdf document that has no print button or name? It is a Florida form for handicapped drivers.
When you open a PDF in Reader or Acrobat there will be a Print toolbar button and a File > Print menu item. Other PDF viewers will have much the same.
-
PDF Form Printing Text, but no Form
I have an accountant trying to print a PDF Form. It cannot be saved, but only printed. When the form is completed and printed, it only prints out the entered text, and nothing else. All other PDF docs print fine
IT conditions:
She prints to an older Panasonic Copy machine
Her printer connection is Shared
Another PC can print the same form 100% fine and that machine goes through here PC to the printer.
Completed Troubleshooting:
First discovered she was on Reader 10.1.3 and the other PC was 10.1.1
Did a complete uninstall of 10.1.3 to include deleting from registry
Installed 10.1.1 with same issue.
Verified all a printer and reader settings are the same for both PCs
Attempted work arounds:
Installed doPDF virtual printer to try and save the completed form as PDF
PDF prints text and form text, but not the field borders for each block
Installed Nitro PDF as default PDF reader, same issue. Will not print out the field borders.
Additional Troubleshooting:
Ran full virus and malware/spyware scans with no issues.
Specific Form:
https://forms.in.gov/Download.aspx?id=4722
Searched all over the internet with Google and have had no luck finding any suggestionsWhen you print it, the box that pops up should say, under the Comments and Forms box, "document and markups". Hope that helps.
-
I can't print my PDF form after filling it out. Only the form prints and not the text I put in.
That's a limitation of Apple's AirPrint framework that Adobe Reader depends on. We are considering an alternate solution that may resolve this issue though.
Thanks for your feedback.
-Gaurav -
Can we add logo to sapscript Form Result while coverting to PDF?
Hi Expert,
My requirement is, I have to covert Form Result to PDF.but while converting Form result to OTF , Can we Add logo to the OTF data? Can logo be saved in text format? only then we can add logo to OTF data probably.
Please Help.
Thanks in AdvanceAs you have probably searched the forum, you saw that you can get the sapscript result as OTF.
Graphics are automatically handled by SAP which stores them in the OTF (RD and BM lines).
And then you convert OTF to PDF as usually.
So, where is the question?
Maybe you are looking for
-
Message Mapping Transformation error in E-filing GB
Hi All, I am running the E-filing GB interface and at the Message mapping I get Process Error: The source structure, target structure, or a function library has been changed or could not be found in the Enterprise Services Repository. The mapping def
-
How to open JTree in browser?
Hi Friends, 1)I have a tree which is displayed using swing ,If i clicks on the node of the tree i want to display some details in a browser.How can i do it? 2)Is it possible to display a tree created by JTree in a browser
-
I have a Message driven bean and my transaction isolation is set to READ_COMMITTED. In our scenario, multiple transactions update same row of a table. I need to perform following operation in sequence. Update database row. Read the same row. Let me k
-
Save an unencoded iDVD disc image to encode/burn with Toast?
Hi: I'm geting jittery image on playback (only in certain scenes) when I use iDVD to encode my disc. If I use Toast to encode and burn, there's no problem, using the same blanks and burner. I saw a post here from someone who said you can save a disc
-
After update of Yosemite, Finder couldn´t get access...
After update of Yosemite, Finder couldn´t get access to Time Capsule. Connection failed. Restart of the Time Capsule doesn´t solve the problem.