Box in a scripts

Hi all,
I want create a box in a scripts what is the syntax for that. plz provide the syntax for that.
Thanks,
Surya.

Hi Surya,
Go through this info.
Setting default parameters for a box:
You can use the POSITION and SIZE commands to set default parmeters for a box.
Instead of: 
/: BOX XPOS '11.21' MM  YPOS '5.31' MM  HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
You can write:
/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM
/: SIZE HEIGHT '2' MM WIDTH '76' MM
/: BOX  FRAME 10 TW INTENSITY 10
This can be usefull if you gave several boxes that share the same parameters.
If you want to set the position realtively to the window use POSITION WINDOW
to set the position to the top/left start of the window. Then use POSITION 
to set the current position relatively to the start of the Window. 
Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.
/: POSITION WINDOW
/: POSITION XORIGIN '5' MM  YORIGIN '10' MM
the position is now 5 MM from the left and 10 MM from the top of the window
NOTE: After using the position command you can move the current position
realtively to the last used position
/: POSITION XORIGIN '10' MM  YORIGIN '20' MM
Now the position will be X = 15 and Y = 30
Drawing a line. You can draw a line by setting the Height or Weidth to 0
and add a frane. E.g. a horizontal line:
/: SIZE HEIGHT '0' MM WIDTH '200' MM
/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100
Some urls:
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Debugging Document.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
********Rewards some points.
Rgds,
P.Naganajna Reddy

Similar Messages

  • When i have a ticked box for Java script i'm still not able to acess things on the i player. Why is this?

    I have tried to load Java Script so that i can watch things on the BBC i player. I have followed the instructions for loading Java Script as told on the BBC i player i.e i have a ticked box for Java Script but i still can't watch things on the i player. I seem to be doing something wrong, but not sure what it is!

    What error are you getting when you try ? If you are getting a network timeout then try temporarily turning off your firewall and antivirus software until the download has completed. Or you could downloading the update via a browser : https://discussions.apple.com/message/16436025#16436025

  • In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    Two items in the Advanced JavaScript window were removed as of the Firefox 4.0 version, but they are still available thru about:config .
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''dom.disable_window_status_change''' = double-click to toggle to '''false''' to allow websites to mess with status text.

  • How to increase size of check box in sap script

    Hi All,
    I need to include check box in sap script. I included check box using insert>character->sap symbols. I cant able to view check box in print preview but i can able to get check box in print out.Size of check box printed in the paper is not having enough size. I need to increase size of the check box. Give me suggestion for increasing size of check box.
    Regards,
    Peranandam

    Chk the link.
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm

  • Problem printing box in sap script

    i am printing the main window in a box in sap script, the box is appearing on page one but it does not seem to appear on the later pages, how do i get it to appear on all the pages? is there any setting that i'm missing?

    Hi,
    Can you elobrate your question.
    if your question is like this.
    -> You have only one page you are displaying the data in that box and that data is exceeding the main window and printing in
    the second page and you are not getting the BOX in the second page .
    a) If it is your question check whether there is any if condition
    before the BOX command like
    /:   if &page& = 1.
    /:  BOX height 5 ln width 50 ch
    /:   Endif.
    remove the if condition there.
    or
    /E  ele1.
    /:  BOX height 5 ln width 50 ch
    place the Box statement in the first line  of that window.
    -> You have two pages .
    a) If it is so check wheter the box command is there in both
    pages.
    Thanks,
    NN.

  • Having trouble with combo box in action script 3

    I have created a combo box in action script 3.0 and have some things working and others not. I am creating a store for shirts, caps, etc..... so need different things and rates. Can anyone help me?
    [email protected]

    Creating a STORE for my website and used combo buttons with types of shirts for one button, 2nd button with color, and third with sizes.
    Using Action Script 3.0 making these work and having trouble.
    HELP meaning if you can connect to my computer remotely and see where my problem is. I am happy to pay if works.

  • How to uncheck Send Notification check box by custom script in supplier's contact Account management tab?

    Hi Experts,
    We have a requirement to uncheck the Send Notification check box by custom script in supplier's contact account mangement tab while page loading while creating new contact for the supplier. I have attached screen shot for reference.
    I have searched several API Java classe for get and set methods for this Send notification field but no luck.
    If anyone have an idea about get and set methods for this field please share.
    Help would be appreciated and points awarded!
    Thanks,
    Lava.

    Hi Lava,
    Inorder to uncheck the Send Notification checkbox while loading the page you have to write the script targeting the class Contact(600) and target as Loaded.
    Include below lines in your custom script (contact onload Script)
    doc.getFieldMetadata("SEND_NOTIFICATION").set(doc,FALSE);
    You can create it in On create Script also.
    Hope it helps.
    Thanks,
    Raj.

  • While opening firefox or any page adialogue box appear " [java script application] An error occured throwing an exception" -what to do

    i am using vista sp1, recently while opening Firefox or any link within it a dialogue box appear " [java script application] An error occured throwing an exception" . however both cancelling or accepting opens the link or firefox but its nagging plz help
    == This happened ==
    Every time Firefox opened
    == few days ago

    The code is not working because you made a mistake somewhere, duh! So figure out what (hint: firefox javascript console, it's your friend) and fix it!
    And next time when you post code: use the [ code ]  tags to pretty format your code, as it is now it's unreadable.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • How to pick a message from a mail box using shell script

    Hi
    Can any one tell me how to pick a message from a mail box using shell script.
    Thanks,
    Suman.

    Hi Suman,
    Can any one tell me how to pick a message from a mail box using shell script.Grep for the message and then either cut or awk for the text. . . Something like this:
    ls -al /mail/directory | grep "$1"* | awk '{print $9}'
    Jon emmons has working samples in his book on Oracle shell scripting . . .
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • How to display Lines and Boxes in SAP Script

    hi,
    Can any one help me how to display Lines and Boxes in SAP Script.
    Regards
    kiran

    The SAP printer drivers based on page-oriented printers use these commands when creating output whereas the line printers and non-supported page-oriented printers ignore these commands.
    Syntax:/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    This command draws a box of the specified size at the specified position.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH determines the width of the box.
    Default: WIDTH value of the SIZE command.
    HEIGHT determines height of the box.
    Default: HEIGHT value of the SIZE command.
    FRAME determines the thickness of frame.
    Default: 0 (no frame).
    INTENSITY determines the box contents as a grayscale percentage.
    Default: 100 (full black)
    The other details I guess is provided by friends who have posted before me.
    Regards,
    K.Sibi

  • How to hide the information box in Jave script if the IR report is no data?

    dear all:
    if the IR report desn't catch the data . the system show "Essbase Query :No rows retried" message . we have to click the "OK" buttion to continue it . but if my report is runing by JAVA script , the message shows it too. i want to hide the message box the program go ahead. how to do it ?
    Regards.
    Tony

    I remembered having this issue with OLAPQuery. Have you tried CubeQuery?

  • How to create a box in sap script n footer

    Hi,
    I am working on a Sap Script in which i have to display a box having the decision of crt profile and i don't know how to display it. It is clear that it is to be displayed in the footer of it and the code for that decision is coming from the program.
    plzz provide me guidelines as how to solve this problem.

    To draw a box, try this syntax.
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    example:
    /: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.18' MM INTENSITY 100.
    /: POSITION XORIGIN '11.21' MM YORIGIN '5.13' MM.
    /: SIZE HEIGHT '120' MM WIDTH '90' MM.
    Regards,
    Joan

  • Box in SAP Script

    Hello All ,
    This issue is driving me crazy . In the Layout there are three columns one is Material , 2nd one is  Scanned  and the 3rd one is Scanned By .
    In the Print Preview there are no issues . But in the Actual Print , I am facing 2 issues : -
    1 - A box is getting Printed for Scanned . There is no BOX command or anything in the Script . Where is this Box coming from ?
    2 - I want the Box mentioned in Point 1 . But it is coming after Scanned By . That is , Under Scanned By , I have give line to write name like this
         __________________ and the box is coming after this in the actual Print .
    I am not able to figure out how the box is coming and how it is being positioned .
    Can anyone please help me figure this out .
    Rahul .

    This was because there was <727> in the Script , from where the check box was getting printed .

  • "Security Warning" dialog box when click script set to Run at Server

    I am rendering a PDF form using the renderForm component.  I'm setting the Target URL.  I have a script on a button set to "run at server".  I can render my form in a browser and fill it out, but when I click the button I get a dialog box with a title of "Security Warning".  It says "Acrobat is attempting to connect to [target URL]" with options to Allow or Block.  Is this the expected behaviour for server-side execution of scripts?
    I'm thinking that maybe I should just use a submit button instead.  The problem with that though, is that I don't want to run the mandatory field rules and validation rules.  As I understand, you can't submit a form with a submit button unless all the mandatory fields are completed.
    Here's the requirement.  I need to have two "submit" buttons.  One checks all the mandatory field rules before submitting a "final" version of the form.  The other button submits a "draft" version without the mandatory checks.  I was hoping that the second button could be implemented as a normal command button with a script that executes server-side.  Sure enough, it attempted to submit without checking the mandatory fields.  Unfortunately I ran into other undesirable side-effects including a distressing "Security Warning" dialog box.
    Ideas?
    Jared Langdon

    This was helpful (stopped the request to execute Thunderbird) . However, The pop up window is now asking what program do you want to use to access the website??? What is the next step??

  • Printing Boxes in sap-script

    Hi,
    I want to display boxes for line items of a purchase order in the output of a sapscript.I wrote the box command under text-element for display line item.Now
    my problem is these boxes should come in output multiple times means how many line items with corresponding line items.
    How i'll be able to do this?Please suggest on this.
    Thanks
    Bprakash Soni

    Hi prakash,
    FORM SCRIPT .
    select single ersda from mara into v_ersda
      WHERE MATNR = IT_MATERIAL-MATNR.
    SELECT pstat
            werks
            EKGRP
            PRCTR
            MINLS
            MAXLS INTO  corresponding fields of TABLE IT_SCRIPT FROM
            MARC
            WHERE MATNR = IT_MATERIAL-MATNR.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
       APPLICATION                       = 'TX'
       ARCHIVE_INDEX                     =
       ARCHIVE_PARAMS                    =
       DEVICE                            = 'PRINTER'
       DIALOG                            = 'X'
        FORM                              = 'ZFINAL_13688'
        LANGUAGE                          = SY-LANGU
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
                        EXPORTING
                          ELEMENT                        = 'TOP'
                        FUNCTION                       = 'SET'
                          TYPE                           = 'TOP'
                          WINDOW                         = 'MAIN'
                        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.
    LOOP AT IT_SCRIPT.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'NEW'
        FUNCTION                       = 'SET'
         TYPE                           = 'BODY'
         WINDOW                         = 'MAIN'
       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.
      ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    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.
    endform.
    /E   TOP
       plant,,status,,GROUP,,Profit,,Min.Size,,Max.Size
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /*   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    /E   NEW
       &IT_SCRIPT-pstat(C)&,,&IT_SCRIPT-werks(C)&,,
    =    &IT_SCRIPT-EKGRP(C)&,,&IT_SCRIPT-PRCTR(C)&,,
    =    &IT_SCRIPT-MINLS(C)&,,&IT_SCRIPT-MAXLS(C)&
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX YPOS 4 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    do this in main window.
    also write the command
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    as many times as the no. of line items that can fit in the table by increasinf height of box from to 2 to 4 or 6 ...
    hope this helps.
    do reward if helpful.
    regards,
    keerthi.

Maybe you are looking for

  • Oracle List of Error codes and messages

    Hi, In our application we are planning to use sqlloader to load a huge amount of data into the database. However, to parse the log file we need a list of Oracle error codes and messages that are commonly encountered while loading data using sqlloader

  • Problems moving library from old external drive to new one

    I keep all my music on an external hard drive connected to my laptop at home. I am now spending several months away from home, and couldn't take my external drive with me. I planned to handle this by using iTunes backup feature to put my whole librar

  • Cannot open Microsoft Office 2004

    Hi. I have MS Office 2004 installed on my iMac, for using Excel and Word. All of a sudden this morning, I could not print an Excel file, due to some sort of error. Don't know what it was. I then found that I could not open any Office application. I g

  • Doctype problem

    Hi, I am developing webpages by creating templates through dreamweaver. I use asp code. I just discovered that when I view the source code through a browser, the doctype doesn't appear. The webmaster checked the asp code and said it was fine. Could t

  • New and needing some help PLEASE

    I just bought a iPod Nano. I went to install the itunes but it wil not let me because I don't have windows 2000 or vista or whatever it takes. I have Windows ME. Is there any way to still download itunes for windows me?? Or if not what should I do??