Smartforms & Scripts

Hai can anybody tell me answers for these Questions......
1.What is the difference between a script & a report ?
2.What are the components/elements in sap script ?
3.Can you create a script with out a main window ?
4.How many main windows can be created for a script ?
5.How can we use tables in sap scripts?
6.How to print a logo in a sap script?
7.When we need to modify standard scripts(eg:medruck) given
by sap?
8.What is the use of transaction code NACE in sap scripts?
9.what is the table name that will contain all the script form
names and print program names?
10.Can you assign your own form to a standard print program?
how?
11.What is the use of PROTECT & ENDPROTECT?
12.How to add extra functionality to a standard print program with
out touching the print program?
13.what is sub routine pool in sap script? when it is used?
14.How to read text in sapscripts?
15.What is the transaction code for logo uploading?
16.what is the difference between paragraph & character format?
17.How to use a sapscript for multiple languages ? (english,
germany etc)
18.How to download/upload sapscripts from & to your PC ?
19.What is the difference between scripts & smart forms?
20.What is the standard program used for uploading the logo to
script?
21.How can you send forms from one client to other?
22.what does open_form, write_form, close_form do?
23.How to convert a sapscript to smart form?
24.How to send a smartform result through mail?
25.how to select desired paper size in sapscript?

For all the details abt smartforms, have a look at below link. It will answer all the questions related to smartforms.
http://sap.ionelburlacu.ro/sap0/sapsf001.htm
<b>Difference with SMARTFORMS and SapScript</b>
The Following are the differences :-
a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
b) It is possible to have a smartform without a main window .
c) Labels cannot be created in smartforms.
d) Routines can be written in smartforms tool.
e) Smartforms generates a function module when activated.
<b>Upload/Download SAP Scripts To/From PC</b>
If you wish to keep a copy of your layout sets in your own hardisk.  You can run this SAP program.  You can keep it as a backup copy and upload it back whenever you need it again.
<b>RSTXSCRP - SAP Scripts Export/Import</b>
Also have a look at below link. It has many answers.
http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers

Similar Messages

  • List box in Smartforms/scripts

    Hi,
         Can we develop list box in the smartform/scripts.
    Br,
    Laxmi

    Hi Laxmi
    Try like this
    adjust box according to ur requirement
    /: BOX YPOS '0.0' CM WIDTH '13.5' CM HEIGHT '9.0' CM FRAME 4 TW
    /: BOX XPOS '4.6'CM WIDTH '0.0'TW HEIGHT '9.0'CM FRAME 4 TW
    /: BOX XPOS '6.7'CM WIDTH '0.0'TW HEIGHT '9.0'CM FRAME 4 TW
    /: BOX YPOS '0.54'CM WIDTH '13.5' CM HEIGHT '0.0'CM FRAME 4 TW
    If u have to create the box inside a template like this
    ____|_____________
    You divide your template according to your requirement.
    Inside the Table Painter, click those lines which you need to show as continuous lines
    Reward all helpfull answers
    Regards
    Pavan

  • Reverse printing a window (Mirror image) in smartforms/scripts

    Hi,
    Is it posible to do a reverse print of a particular window(Mirror Image) in smartform/script output?
    Scenario:
    I have 3 windows in the smartforms.
    Window1
    Window2
    Window3
    I want to print Window1 & Window3 normally & Window2 upside down like a mirror image.
    Regards,
    Sree

    Hi friend,
    One suggestion if you are printing your company logo or some thing like that in the window2 then you can invert the image using paint and then again upload it.
    Else if its some sort of text like that then you can rotate it using some functions like '^FWR' like that there are functions to rotate the text.
    Or else you can handle this using or setting the printer settings but i think its not possible to change the settings for only one page.
    See the Link : [Printing vertical text in Smartform|Printing vertical text in Smartform;.
    In this the post by Julie LV will be helpful to you.
    I think this will solve your issue if you face any queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Smartforms / scripts for these things

    hi experts,
                  I need the standard smartform / scripts available for the following transaction ASAP.
    1)CT2 Form
    2)RT12 Revised Format
    3) Annexure -19
    4) TR6 Challan
    5) 57 F(4)
    6) 57 F(4) Challan ( 2)
    thanks in advance

    so the first 3 times where free?
    Did your warranty expire?
    That would explain the $150 oow fee.
    there is no "recall"

  • Smartform / script for sales order

    hi experts,
                  Pls give me the standard smartform / script for printing sales order.i am using ECC 6 now.

    Hi manikanddan,
                       Actually i am working on ECC 6.0 I need some information about ecc6.0 if it possible can i have your P NO mail me to my EMail:[email protected]

  • How to modify Smartforms & Script on new Macbook

    Hi there
    I am new to Macbook but i have install SAP JAVA GUI.
    Able to work on SAP, but not able to work on SAMRTFORMS & SAP SCRIPT
    Can any one tell me how to modify them on MACBOOK,
    Thanks  in ADVANCE.

    Hello,
    unfortunately, authoring functionality for smart forms is only available in SAP GUI for Windows.
    See [note 736147|https://service.sap.com/sap/support/notes/736147].
    Best regards
    Rolf-Martin

  • Smartform/Script Preview Appears ok Printing is Inverse(Upside Down)

    Hi Friends,
    We are having number of Objects on which Company Logo and other Graphics has been added.
    When I look at the Layout in Preview. It Appears OK.
    But when I take Printing It comes INVERSE (Upside Down)
    This issue has been obsered while taking  coloured printing.
    (  If I take printing through MS-word Everything come Correct  )
    Kindly suggest how to resolve these issue.
    Thanks In Advance.

    Hi,
    This issue has nothing to do with the coding or the smartform. The problem is with the printer. If you try the same with other
    printer it might work properly. Try installing the latest drivers for the printer. This should solve your problem.
    Regards,
    Sagar

  • Printing smartform/script in line printer

    hi experts,
           can any one suggest me how to configure my smartform to line printer,
    presently i have configured my smartform to dotmatrix printer FOR 24PIN EPSCP DEVICE TYPE in spad, can anyone suggest me please
    kishore

    hi
    CHeck with the Service Provider and Basis Consultant because Zebra Printers  need a specific memory device & drivers to print Bar codes . cross check with them ...
    surya

  • Bill of lading smartform, Sap script

    Can any one tell me the smartform/script for bill of Lading in SD
    Thanks a lot.....
    Sharath Chandra

    Hi There is no special smartform for Bill of lading
    You can use the same smartform for this which is used for delivery note
    <b>LE_SHP_DELNOTE</b>
    with little changes or
    you can use the smartform
    Z_VICS_BILL_OF_LADING
    or you can use the script <b>RVDELNOTE</b> of delivery note
    or use SD_SHIPMENT_CMR  (driver program is  ZRVADTR01)
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Smartforms are worse than Scripts.

    Hi all,
       This is krishna. Let me know at what condition Smartforms are worse than Scripts.
    If any one knows pls help me.
    Thnx in advance.
    Regards,
    Krishna.

    Hi Krishna..
    This is not worse....
    script is client dependent.smartform is client independent.
    Less programing in smart form.
    Multiple page format is possible in smart form
    we can maintain background graphics in smartform
    Scripts doesnot generate any funtional module where as smart form generates.
    Multiple page format not allowed in scripts allowed in sf.
    Labelling is possible in scripts not possible in sf.
    Script is client dependent and sf is client independent.
    Reward Point if Useful..
    Thanks & Regards,
    S.Suresh.

  • Smartform or script for sales order

    hi experts,
                  please let me know abt the standard smartforms / script that is available for printing sales order.
    Note: I am using ecc 6.0

    Hi
    Pls refer the link below
    http://help.sap.com/saphelp_46c/helpdata/en/4b/83fb42df8f11d3969700a0c930660b/frameset.htm
    http://www.sapprofessionals.org/?q=smartforms_a_detailed_overview
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html

  • Item level data in sap script

    Hello Friends,
    I have a report which prints Normal Tax invoice & Returns Tax, I modified this report just by adding one extra "delivery channel". The report call one more program which dose the printing job based on the delivery no.
    The issue, I can able to see the header data in th the print preview of the tax invoice, and not able to see item level data.
    Please help me how to resolve this issue.
    Regards,
    Shreekant

    Hi,
    You need to pass the line item data to the smartform/script. Please check in debug mode whether the data is passed correctly.
    Best regards,
    Prashant

  • Smartform output showing another language rather than english

    Hi Experts,
    in my system if any of the smartform/script output want to see it showing another language.it's not showing in english language.same smartform in my friend's system it is showing english only.
    Please suggest me the solution.
    Thanks in advance,
    Venkat.

    Hi
    See the attached 2 OSS notes for your problem
    OSSNote:960341
    Symptom
    In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
    Other terms
    CONVERT_OTF, SAPscript, Smart Forms
    Reason and Prerequisites
    The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
    The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
    Example:
    %Charwidth values from HP4300 HELVE 060 normal
    /Widths
    [ 278 333 500 633 633 1000 758 333 333 333 633...
    Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
    This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
    The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
    Solution
    Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
    Header Data
    Release Status: Released for Customer
    Released on: 30.06.2006 12:44:06
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s): Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV COURIER, HELVE, TIMES
    (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP KPBATANG, KPDODUM, KPGULIM
    KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000 0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4 P 144 240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE 120 00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000 0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4 P 144 240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE 120 00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005 09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    <b>Reward points</b>
    Regards

  • HR paysleep application with Smartform

    Dear friends.
        I am having a one problem with HR smartform application. client using standard HR Paysleep aplication developed in PE51, and use this transaction to run 1. now client demands to have logo in the application. it is not possible with pe51. for that i am supposed to create a Z seriese program. now my main problem is if i create the smartform how i link it with the hr application.secondly.. is HRFORMS tcode helps me to create a z seriese smartform.
    another problem is i dont know the dictionary structure, table, fields names anything related to the HR. can you send me the documentation on it and ways on which i can complete the task. I am blind in HR.  please send me the process how i link smartform to he application.
    Regards
    Naeem
    p.s.: my mail id is: [email protected]

    In PE51 it is not possible to get LOGO, To get Logo u can have 3 options
    Hi Naim,
    1. After generation of Payslip we have one function Module GET_PAYSLIP
    use this Function Module and call the function module in SAP script/ Smart
    Form Program. in u r Smartform/Script put Logo Window and there u can get
    Logo in the logo window.
    1. Design Payslip using HRFORMS it is similar to Smartforms
    3. Use preprinted Stationary (With Logo) and print the payslip on that Paper.
    Regards
    Raj

  • Smart form script

    hi experts,
    please let me know abt the standard smartforms / script that is available for printing sales order.
    Note: I am using ecc 6.0
    Thanks

    Hi Rajendra,
    I am not aware of any Standard program for Smartforms. However there is a roundabout way which might be able to help you.
    First find the name of the Function Module created for that Smartform ( Smartforms -> Environment -> Function Module Name)
    Open this FM in SE37 -> Utilities -> More Utilities -> Upload/Download -> Download.
    This will download the FM to a text file.
    Hope this helps!
    Dont forget to reward points if it does!
    Regards,
    Saurabh

Maybe you are looking for