Skip to Content
author's profile photo
Former Member



what r the complicated questions in scripts ?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • author's profile photo
    Former Member
    Posted on Sep 06, 2007 at 03:58 AM


    FAQ for Sap Scripts

    What is the difference between a script & a report ?

    Script is a form which has a layout set as per the company standards and can be used for external use too. Generally reports are designed for internal use for in house users

    What are the components/elements in sap script ?

    Layout set and Print program and the layout set has windows in it.

    Can you create a script with out a main window ?


    How many main windows can be created for a script ?


    How can we use tables in sap scripts?

    We can access structures and the tables tat are updated during runtime. Else you have to pass the structure values to the table in the print program.

    How to print a logo in a sap script?

    Upolad in the R3 using Se78 and use the Include statement in the script.

    When we need to modify standard scripts(eg:medruck) given by sap?

    When the client goes for customization of the form

    What is the use of transaction code NACE in sap scripts?

    You can track the form and the print program used for that form

    What is the table name that will contain all the script form names and print program names?


    Can you assign your own form to a standard print program? how?

    Yes. thru NACE

    What is the use of PROTECT & ENDPROTECT?

    Keeps the block of text in the same page.

    How to add extra functionality to a standard print program with out touching the print program?

    Thru subroutine programs

    What is sub routine pool in sap script? when it is used?

    Its an Abap prog of type sub routine pool, it is used for calculating certain variables, eg DUE date for an Invoice. You pass the values from the form thru ITCSY structure intot he prgram.

    How to read text in sapscripts?


    What is the transaction code for logo uploading?


    What is the difference between paragraph & character format?

    Self explanatory definition

    How to use a sapscript for multiple languages ?

    (english, germany etc) Copy the script in each lang or you have an option to click 'TO all Languages'

    How to download/upload sapscripts from & to your PC ?

    SE78 or RSTXLDMC

    What is the difference between scripts & smart forms?

    Scripts are client-dependent but SF are client Independent

    What is the standard program used for uploading the logo to script?


    How can you send forms from one client to other?

    SE71, Utilities -> Copy from client...

    What does open_form, write_form, close_form do?

    Again its self-explanatory

    How to convert a sapscript to smart form?

    tcode SMARTFORMS, I think its menu Utilities you have an option.. Migrate Scripts to Smartforms.

    How to send a smartform result through mail?

    I think you have to configure the output type. Not sure..

    How to select desired paper size in sapscript?

    In Basic settings.

    How do you backup script layout sets?

    What type of variables normally used in script to o/p data?

    How do you use tabsets in layouts?

    Use this Std program RSTXSCRP.

    1) First Export to Presentation file(.doc).

    2) Whenever you need that Export into SAP.

    Normally we call them as Program symbols. Those are defined in Driver program. We can use in Script as for exp. &itab-matnr&

    Other variables ---System symbols : ex &page&

    ---Std symbols :

    ---Text symbols :We define them in script editor itself.

    Ex : /: Define &mysymbol& = 'XX'

    We can control the tab feed in a paragraph with tab positions. The tab stops us define in the paragraph format replace the tab spacing we defined in the header data of the form. However, this depends on the extent to which we have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line.

    SAPscripts Tips by : Venkat O

    Q: We get the total number of pages as expected by using 'SAPSCRIPT-FORMPAGES' in a duplex layout. In our case duplex case is always 'Terms & Conditions'. We do not want the number of pages as in duplex printing. What is the best possible solution?

    A: On the Terms & Conditions page, Change the Page counter mode to 'HOLD' to keep the page counter from incrementing when you print the Term & Conditions.

    Q: Can I Print a logo on an Invoice?

    A: Save a Logo using Paintshop Pro or Corel Draw as Tiff file. Use RSTXLDMC to convert the logo to standard text in SapScript. When the program is executed, the path and file name have to be correctly specified.

    Process could be like the following:


    Enter file name C:\MAIL\COMPLOGO.TIF

    Resolution for Tiff file

    Absolute X-position

    Absolute Y-position

    Absolute positioning

    Reserved height

    Shift to right

    UOM = CM

    Text title

    Line width for text = 132


    Text ID ST

    Text language = E

    Postscript scaling

    Width & Height according to PS scaling

    Number of Tiff gray levels (2,4,9) 2

    Then Create a new window 'COMP' with attributes;

    Window COMP description Company Logo

    Window type CONST

    Left margin 7.00 CH window width 10.00 CH

    Upper margin LN window height 8.00 LN

    Finally in the text element , mention


    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed!

    You will not be able to see the logo in a test print. The same will be printed in actual printout.

    If you are using two logos in the same layout, the names of the logos should be unique. Say 'ZHEX-MACRO-LOGO1' and 'ZHEX-MACRO-LOGO2'. Else all the information will be overwritten.

    If the logo is not EXACTLY TIFF 6.0, the same will not be printed.

    See OSS notes 5995, 18045, 39031 for some inputs.

    Check the following Link



    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 06, 2007 at 03:58 AM

    1. how we can use Bar codes in Sap-script?

    2. How we download the sapscript in text format?

    3. what is the way to maigrate From sap-script to smartform?

    4. Do you modify print program ?

    5. how to modify the layout without effecting print program ?

    6. How sap layout triggers at application ?



    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2007 at 04:01 AM

    1) Is SAP scripts client dependent or client independent?

    2) What does protect- end protect does?

    3) how do you goto next/ new page in SAPscript?

    4) how to get additional data in form when driver program is not in your control

    5) Where do you define tab spaces?

    The above are few questions... close the thread if you got what you are expecting...



    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 20, 2007 at 08:46 PM


    how are you? i can solve your problems.

    Do you have any questions?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 08:10 PM

    Advanced happy birthday

    Add comment
    10|10000 characters needed characters exceeded