MIRO sapscript form problem
Hello, a form is generated each time an invoice is created. Now, we have a problem in the production environment concerning certain values appearing in the form. The case is not reproductible. Which other transaction can i use to print the form(+ i would be able to debug to find the problem ) .For example, i know that certain 'correspondence' transactions allow you to print a form based on message type.
Edited by: Antish Awootar on Jun 9, 2010 9:48 AM
Hi Ahmed,
first: check you have activated your SAPScript
second: check you print the language you have activated
(if not translate again your SAPScript)
third: check you have transport the SAPScript in the good client (SAPScript is client dependent)
Rgd
Frédéric
Similar Messages
-
Missing text elements in my sapscript form / Transaction F.17
Hello!
I'm on a sap ecc 6.0 system and have problems with a sapscript form.
My printprogram is sapf130d and my form is y_..._debi_slep.
Starting the transaction F.17 i get several lists and at last the error-list. This error-list says "in form y_..._debi_slep in the main window the following textelements are missing ...". Three elements 506, 595 and 606 are missing.
When i look into the form i couldn't see the elements. So with "/E 506", "/E 595" and "/E 606" i've inserted the elements in the main window and saved and activated the form. A new try with "F.17" raises the same errors. For my understanding the relevant elements should be in the info window in this case - i inserted them there, too ... but the errors remain the same. In the print program i can find all these textelements.
Perhaps someone out there has a solution or a hint for me?
Thanks a lot in advance.
Best regards,
IngoThe cause of error could be of any reason.
1) For driver program SAPF130D, following forms must be used, or customised by copying any of this below forms.. May be this could be one <b>reasons for the error.</b>
Forms
The following forms are used in the standard SAP R/3 System:
Form for Form name
Letter and Reply <b>F130_CONFIRM_01</b>
Check list <b>F130_LIST_01 and F130_LIST_02</b>
Results table <b>F130_RESULT_01 or F130_RESULT_02</b>
Error list <b>F130_ERROR_01 or F130_ERROR_02</b>
If you define your own forms, the form name should contain the identification code "F130".
Regards,
Sairam -
How to disable debugger for sapscript forms.
How to disable debugger for sapscript forms.
Once activated in se71-Utilities-Activate debugger I do not know how to disable itThank you Rich
I assigned you points for good answer on my preavious mail)
. Actually my real problem is a transported the SAP script form znalepke2 , printer definition nale
and device type zststartsp of a thermal printer.
On original system (ak1) the printout is ok but on target system(ak2)
not.
Lateron I transported also :
R3TR SCPD 1403(as the device type uses this character set)
R3TR TABU TSP08 (All entries)
R3TR TABU TSP1D(All entries)
R3TR TABU TSP1T(All entries)
I used also report RSTXSCRP to traport form and device types. L
Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
Thank you in advance -
Include PDF file in a SAPscript Form
Here is a good one. Anyone ever heard of this. I need to somehow import a PDF file into an ABAP program and include it in a sapscript form.
Requirment:
Customer sends a PDF file to our system. We need to take this PDF file and include into a "quote" sapscript form and fax it back to the customer.
If anyone has any other ideas of how I can accomplish this task........PLEASE let me know. Thanks.
Regards,
Rich Heilmani solved a similiar problem by following:
- catch the sapsript-data in otf-format by setting
itcpo-tdgetotf = 'X' at CALL FUNCTION 'OPEN_FORM'
- read the pdf-file from it's source
(i.e. content server)in an internal table
- send the fax with function-module SO_DOCUMENT_SEND_API1.
at least in 4.6c you can add attachements to the fax.
the fax-body is the otf, the attachements are
the pdf-files.
i suppose that your fax-software is able to send the pdf-attachements.
here is some coding i copied from my program. i simplified it to show the main steps, so it won't run immediatly. the form assumes that the otf is filled in table ZT_OTFDATE, the pdf in ZT_PDFDATA and the PDF-filesize is in Z_PDFSIZE.
*& Form FAX
FORM fax CHANGING pe_subrc.
DATA
: ls_docdata TYPE sodocchgi1
, ls_sadrfd TYPE sadrfd
, l_len TYPE i
, lt_packlist TYPE TABLE OF sopcklsti1 WITH HEADER LINE
, lt_head TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_text TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_bin TYPE TABLE OF solisti1 WITH HEADER LINE
, lt_recv TYPE TABLE OF somlreci1 WITH HEADER LINE
, l_lines TYPE i
OTF-Body
CLEAR lt_packlist.
DESCRIBE TABLE zt_otfdata LINES l_lines.
lt_packlist-transf_bin = 'X'.
lt_packlist-head_start = 1.
lt_packlist-head_num = 1.
lt_packlist-doc_type = 'OTF'.
lt_packlist-obj_name = 'Letter'.
lt_packlist-obj_descr = 'Letter'.
lt_packlist-body_start = 1.
lt_packlist-body_num = l_lines.
lt_packlist-doc_size = lt_packlist-body_num * 255.
APPEND lt_packlist.
APPEND tnapr-fonam TO lt_head.
APPEND LINES OF zt_otfdata TO lt_bin.
Attachement
CLEAR lt_packlist.
lt_packlist-transf_bin = 'X'.
lt_packlist-doc_type = 'PDF'.
lt_packlist-obj_name = 'filename'.
lt_packlist-obj_descr = 'a filedescription'.
lt_packlist-head_start = 2.
lt_packlist-head_num = 1.
DESCRIBE TABLE lt_bin LINES l_lines.
lt_packlist-body_start = l_lines + 1.
DESCRIBE TABLE zt_PDFDATA LINES l_lines.
lt_packlist-body_num = l_lines.
lt_packlist-doc_size = Z_PDFSIZE.
APPEND lt_packlist.
APPEND 'filename' TO lt_head.
APPEND LINES OF zt_pdfdata TO lt_bin.
Receiver
ls_sadrfd-rec_state = itcpo-tdteleland.
ls_sadrfd-rec_fax = itcpo-tdtelenum.
lt_recv-receiver = ls_sadrfd.
lt_recv-rec_type = 'F'. " F=FAX U=Email
APPEND lt_recv.
DOCUMENT HEADER
CLEAR ls_docdata.
ls_docdata-obj_name = 'fax name'
ls_docdata-obj_descr = 'fax description'.
ls_docdata-obj_langu = sy-langu.
ls_docdata-obj_sort = sy-datum.
ls_docdata-obj_expdat = sy-datum + 7.
ls_docdata-sensitivty = 'O'.
ls_docdata-obj_prio = '1'.
ls_docdata-NO_CHANGE = ''.
ls_docdata-priority = ls_docdata-obj_prio.
ls_docdata-expiry_dat = ls_docdata-obj_expdat.
ls_docdata-PROC_TYPE = ''.
ls_docdata-PROC_NAME = ''.
ls_docdata-PROC_SYST = ''.
ls_docdata-PROC_CLINT = ''.
ls_docdata-SKIP_SCREN = ''.
ls_docdata-TO_DO_OUT = ''.
ls_docdata-FREE_DEL = ''.
ls_docdata-doc_size = l_len.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_docdata
PUT_IN_OUTBOX = ' '
SENDER_ADDRESS = SY-UNAME
SENDER_ADDRESS_TYPE = 'B'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
SENDER_ID =
TABLES
packing_list = lt_packlist
object_header = lt_head
contents_bin = lt_bin
contents_txt = lt_text
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = lt_recv
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 <> 0.
pe_subrc = sy-subrc.
PERFORM protocol_update.
ENDIF.
ENDFORM. -
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 -
Priting same SAPscript form on different printer: different results
Hi,
my client has different printer models and is claiming now that the forms appear different.
Do I have to create a SAPscript form for each printer type?
Is there a way to use the same form for all printer models?
Would we have the same problem using SMARTFORM?
Thanks for your help in advance!!!
thomasHi.
You should not have one SAPscript for each printer type. Thats not really a good idea. I would first of all try to do some tests with different device types on your output devices.
I don't think converting to SMARTFORM is the way to go if you don't feel like you have to. It is much easier to experiment with the device types.
BR
Niklas -
Two SAPScript forms on a single page
Hello
Is there a way (in SAPScript) to have two forms (sapscript forms defined in SE71) printed in a single page ?
What I would like to achieve is to have several sapscript forms defined in the system and to be able to combine them in a single page dynamicallly - I mean: the printing program would decide which of them should be output.
I have one sapscript form which I want to output always - it contains some header and main window with some items. Apart from this form I need to print some additional information on the same page.
This additional information may be formated in a few different ways - depending on the case. I need to include this info at the top of the page - formatted in one of possible ways mentioned. The rest of the page is always the same (some header and main window with items).
I know I could just use windows definitions in a single sapsript form and let the printing program decide which of those windows to print. But my problem is: I would like to have different sizes of the information printed at the top of the pages - when I define a window I must declare height which will be occupied on the page - I'd like to have different height values for different cases.
Is there a way to achieve that ?
thanks in advance
regardsHi,
It is not possible.
But instead of creating sapscript, why dont you create different standard text and call in same sap-script based on condition.
You can create standard text in tcode so10. Its similar to editor in sap-script.
Reward if useful -
SAPScript Form Layout Error after HRSP Upgrade
Hi SAP Experts,
I hope someone can shed some of your inputs in the error that we have in our SAPScript form.
A window in our SAPScript form does not display at all when a report is generated.
Funny thing is that we did not make any change to the said form and this error is consistent across all our SAP environments - Dev, QA and Prod.
This has started happening after we had the SAP HRSP upgrade last weekend.
We tried checking the form configuration and we cannot find anything wrong in it.
We tried to check for SAPScript versions but we found out that this is not available in SE71, unlike for programs in SE38.
Has anyone of you encountered this problem?
Hope I can get some expert inputs from the community on this issue.
Thanks!Managed to find out the root cause of the SAPScript error. There was a new line that was added in the form layout after the HRSP upgrade. As to how it was added, it was unknown. But was able to resolve and fix the issue already.
-
I made a graph window in a sapscript form.When i print it i have the following problem :
I can't see the "MAIN WINDOW" only. I mean that i can see all the other elements EXCEPT the main window .
Please help me .....Hi,
Just check wheather the internal table you are trying to display in the main window is empty by mistake.
just try to put some charcter in the main window and test wheather it is printing or not .
Regards,
guru
mark if helpful -
Hello,
To print a 'bill-to' address on an invoice I'm using the ADDRESS...ENDADDRESS command within my SAPScript form. To specify an address, I use the ADDRESSNUMBER parameter. Although the address is printed, I have a problem: I would like to add the name of the addressee to the address (on the second line of the address).
Normally this is done by using the PERSON parameter, but because I'm using the ADDRESSNUMBER parameter, I think the PERSON parameter is omitted. Does anybody know how to solve this problem.The online help for the SAPscript <b>ADDRESS</b> command can be found at:
<u>http://help.sap.com/saphelp_470/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm</u>
I think you may want to play around with the PRIORITY parameter. Or you can specify the contents of each field you want and limit ADDRESS to formatting only. See the documentation. -
Printing SAPSCRIPT FORM vai RFC---URGENT
Hi All
I have a requirement where i am calling a Function moule ( present in destinataion system ) via RFC , from the source system.
Inside the Function module , i have requirement to call/submit a print program for a script form (Considering that the Form and Print program are in destination system).
Doing this, is there a way to have the SAPSCRIPT output ( ie a Spool) captured or copied in the source system?
Any pointers on the above would be of great help.
Thanks
PankajDear 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 -
Don't know what's happen in SAPScript Form
I have a question about the SAPscript form of delivery note
i got the item line show in the doc should be like this
000515 Farm & Country - Cow & Sheep 1700003333 444PC
But I don't know why the description become showing the form code of it..like this
000515 Farm & Country - Cow &,,&VBDPL-BSTKD&,,&VBDPL-VBELN_VAUF&,,&QTY&&VBDPL-VRKME&
Sheep
the form code that i write is shown as below.
&OLD_MATERIAL&,,<b>&ITEM_DESC1+0(31)&</b>,,&VBDPL-BSTKD&,,&VBDPL-VBELN_VAUF&
actually i don't know which combination of the letter will make this kind of problem.
can anyone know this?
Thx for helpJellicent wrote:It tells you: you are missing libfltk.so, hence you are missing the appropriate package.
Use your favourite search engine and search for for information on what package it is.
I found what you are looking for by searching on duckduckgo for "libfltk Arch Linux".
Thanks, i searched google and i installed fltk package. Then i try to start them in termial, there are some problem:
$ hdspconf
HDSPConf 1.4 - Copyright (C) 2003 Thomas Charbonnel <[email protected]>
This program comes WITH ABSOLUTELY NO WARRANTY
HDSPConf is free software, see the file copying for details
Looking for HDSP cards :
Card 0 : HDA Intel at 0xfdff8000 irq 43
No Hammerfall DSP card found.
$ hdspmixer
HDSPMixer 1.11 - Copyright (C) 2003 Thomas Charbonnel <[email protected]>
This program comes with ABSOLUTELY NO WARRANTY
HDSPMixer is free software, see the file COPYING for details
Looking for RME cards:
Card 0: HDA Intel at 0xfdff8000 irq 43
No RME cards found.
Thankyou, i will continue search google for my problem -
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 -
Hi friends! I have a problem here with sapscript form. I have an form and in preview print on screen is Ok, but when I print it on a printer, some line has font size much bigger, with this report is out of layout. Why in screen preview is Ok but in printer is bigger font? Font missing?
Thanks for any help.Hi,
I was trying to find the problem's solution but comes across a SAP note 548357. Pls check may help you.
Symptom
When printing a document or report the font that is printed is smaller
than the size required.
Other terms
Printing, document, report, font, printer, print preferences, size, PLD, SAP Business one, vertical print compression
Reason and Prerequisites
Consulting
Solution
The "vertical print compression" field is not set to 100 per cent. The
vertical and horizontal compression can stretch or compact the document
size and effect the font.
To solve this problem, please perform the following steps:
Go to Administration > System Initialization > Print Preferences > General tab.
Check the "Print With Vertical Compression" field and change it as desired.
Regards,
Lokesh.
Edited by: Lokesh Tarey on Apr 21, 2010 6:48 AM -
Sending sapscript form by email
dear experts
i want to send sapscript forms by email from sap. how is it done. is there any configuration that needs to be doneHello,
I have done in case where we are sending to an external mail id.
Check the code it may help u.
REPORT Z_SCRIPT .
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 = 'Z08V3_COLLI'
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.
I am sending to [email protected].
So proceed in similar manner and let me know if u face any problem.
Regards
Maybe you are looking for
-
Error while calling an RFC from R/3
Hi all, I am new to webdynpro. I am calling a RFC from R/3/.the code is like this. Zhr_Fm_Loan_Input input = new Zhr_Fm_Loan_Input(); wdContext.nodeZhr_Fm_Loan_Input().bind(input); input.setUsrid(wdContext.currentContextElement().getEmpnoa()); try wd
-
Restore photostream pictures from AppleTV to MacBookPro?
I had to rebuild my macbook pro this weekend. There are pictures that i have uploaded to a PhotoStream that I can see on my AppleTV. However, they are older than 30 days. So when i started up iPhoto on the mac, those pictures are not showing up in
-
JTA succeeds, database rolls back?
Hi All, I am using a stateless session bean (EJB) to interact with eight stored procedures under a container managed transaction. The issue is the database is rolling back but not reporting it's error to the JTA. The result, the application info
-
Hello, I'm a beginner with Berkeley DB and my question is: how to use the libdb60.dll with C++ Builder (Embarcadero) code? I created corresponding LIB with IMPLIB from dll and included it in the project, but the Exports section of LIB is very strange
-
Hello All, I am having a problem with RunState.PreviousStep.Result.PassFail variable. It is continue to read as fail when the previous step was shown as pass on the screen. I also get the same problem when accessing the Result.PassFail using the step