How to use box in Scripts?

Hi Guys,
              can anybody tell me how to use Box and purpose of box?
           My req is i have to display 5 columns ina Script thru printer but problem is i am not able to display the columns values in a vertical way i am getting in a jig jag way.so what shall i use ?  is BOX ok ?
Thanks,
Gopi.

Hi Kodandarami,
                       I had done like that only see here is the code below.here L1 L2 L3 and L4  are paragraph left Justified item's.
so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
=    -
L1   Itm,,Material,,Mat.Desc,,             Batch,,  SLoc,,  Stor.bin        
/*   Stock type                                                             
L3                                 ,,              Counted qty.,,Un         
L    -
=    -
/E   POS_BELZEILE2                                                         
/:   PROTECT                                                               
/:   BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6                
L4   &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,        
=    ,,&ISEG-LGORT&,,&MABDR-LGPBE&                                         
/*   ,&T064B-BTEXT&                                                        
L3        ,,              _______________,,&ISEG-ERFME&                    
/:   ENDPROTECT                                                            
/E   POS_ENDPAGE                                                           
Thanks,
Gopi.

Similar Messages

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • How to create Box in scripts

    hi
      can anyone send how to create box, like table including vertical and horizontal lines in sap-scripts
    regards
    ratna

    BOX Command
    Syntax
    /: BOX
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    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
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    · TW (twip)
    · PT (point)
    · IN (inch)
    · MM (millimeter)
    · CM (centimeter)
    · LN (line)
    · CH (character).
    The following conversion factors apply:
    · 1 TW = 1/20 PT
    · 1 PT = 1/72 IN
    · 1 IN = 2.54 CM
    · 1 CM = 10 MM
    · 1 CH = height of a character relative to the CPI specification in the form header
    · 1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    SIZE Command
    Syntax
    /: SIZE
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.

  • How to use a custom script in a batch process?

    I was recently told that I can Photomerge, crop and save 2 separate folders of images to a 3rd folder in a batch process if I created a custom Javascript.  Are there any examples of how to integrate a custom script as an action in a batch process?

    if you recieve an image from mms you can save the object to gallery and then select it as wallpaper
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to use "do shell script" when Terminal replies with a prompt?

    Hey all,
    I'm wondering how to properly use "do shell script" when Terminal replies with a question? In this example, I'm building a small tool in AppleScript that will auto-update the Android SDK via command line prompts. The problem is when I tell it to update all ("update sdk --no-ui"), I need to accept licence agreements before it continues, and the amount of licence agreements brought up is different every time.
    So, basically, I'm wondering how to handle a case where "do shell script" encounters a case where Terminal would normally need a user's response to?
    Thanks,
    Behn

    If it is variable number of prompts that is a problem.  Look around hd and figure out how many prompts there will be. Ask around android forum for a bash solution. There are some test case apps that will let you put conditionals on output from running programs.
    # traditional way.  Pipe output to command.
    do script "echo 'ok' | update sdk --no-u"
    Here is the preferred way of getting administrator privileges.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • How to use a calc script to work around Implicitly share members

    I have a hierarchy which has some implicitly shared members( one child per parent)
    For example my cost center dimension is built the following way
    CostCenter
    |
    |-------------------CostCenter1
    | |
    | |--------------Member A( child of COst Center 1) ---------------------------Has 4 children members
    |
    |
    |------------------CostCenter 2
    |
    | Member B( Child of Cost Center 2)______________________ has 4 children
    Anytime I use a function to reference Member A from COstCenter 1, the function is automatically skipping the next level and looking at the bottom level
    For example if I do a @COUNT(SKIPNONE, @children(COstCenter1))
    it returns 4 instead of 1
    I know that if I use the never share option for the members it will fix the issue, but I want to know if there's a work around for it
    Here's the full script I am using
    /*Calculate gross and net values for all regions for parent level cost centers*/
    FIX(@RELATIVE("A_76867",0), @RELATIVE("A_76868",0),
    "USD",
    "GROSS_VIEW",
    "WorkingVersion",
    /*@IDESCENDANTS("Regions"),*/
    @IANCESTORS("R_Americas1"),
    @UDA("Scenarios", "CurScen"),
    @RELATIVE("F_ALL_FUNDING",0),
    /*@REMOVE(@IDESCENDANTS("E_10041716"), @RELATIVE("E_10041716",0))*/
    @ANCESTORS("E_10041676")
    FIX(@UDA("Years", "CurYear"), @UDA("Periods", "CURRENT_Q"))
    "No_LegalEntity"
    "GROSS_VIEW" = @SUMRANGE("NET_VIEW", @children(@currmbr(CostCenters)));
    IF (@ISDESC("A_76867"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @COUNT(SKIPNONE,@children(@currmbr(CostCenters)))*
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = (20000) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ELSEIF (@ISDESC("A_76868"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @COUNT(SKIPNONE,@children(@currmbr(CostCenters))) *
    (1 - "A_SMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = (20000) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ENDIF;
    ENDFIX
    FIX(@UDA("Years", "Future1"), @UDA("Periods", "FUTURE_Q"))
    "No_LegalEntity"
    "GROSS_VIEW" = @SUMRANGE("NET_VIEW", @children(@currmbr(CostCenters)));
    IF (@ISDESC("A_76867"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @SUMRANGE("NET_ADJUSTMENTS", @children(@currmbr(CostCenters))) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = ("NET_ADJUSTMENTS") *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ELSEIF (@ISDESC("A_76868"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @SUMRANGE("NET_ADJUSTMENTS", @children(@currmbr(CostCenters))) *
    (1 - "A_SMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = ("NET_ADJUSTMENTS") *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF
    ENDIF;
    ENDFIX
    ENDFIX
    ________________________________________

    it is choosing the chilod member instead of the parent eventhough the fix is defined to use the parent memberAnd that's an implied share.
    Per Kevin's recommendation, make the parents Never Share and your code will work the way you expect.
    Regards,
    Cameron Lackpour

  • How to use the same script for multiple buttons

    Hi,
    I've only just started using flash so any help would be great!
    I'm creating a blockbusters type game, I have a grid of 20 buttons and I need  them (individually) to turn blue on click and red on double click. I've managed to do it with the first one using this code;
    var clicked:Boolean = false;
    bn1.addEventListener(MouseEvent.CLICK, bn1click);
    function bn1click(event:MouseEvent):void {
        clicked = true;
        var newColorTransform:ColorTransform = bn1.transform.colorTransform;
        if(clicked){
        newColorTransform.color = 0x064258;
        bn1.transform.colorTransform = newColorTransform;
    bn1.doubleClickEnabled = true;
    var doubleclicked:Boolean = false;
    bn1.addEventListener(MouseEvent.DOUBLE_CLICK, bn1dclick);
    function bn1dclick(event:MouseEvent):void {
        doubleclicked = true;
        var newColorTransform:ColorTransform = bn1.transform.colorTransform;
        if(clicked){
        newColorTransform.color = 0xac1e23;
        bn1.transform.colorTransform = newColorTransform;
    Now I'm having trouble getting the same to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and remain blue/red once clicked. I've tried listing them as addEventListener commands but not having a great deal of success!
    Any help would be greatly appreciated, thanks!
    Tomo

    One way to do this is to use arrays to keep track of the buttons and their properties.
    var buttonList:Array = new Array(bn1,bn2,bn3);
    var clickedList:Array = new Array();
    var doubleClickedList:Array = new Array();
    //then use a for loop to assign the functions and properties for each button:
    var thisMany:int = buttonList.length; // this will give you the number of items in the buttonList array
    for(var i:int = 0; i<thisMany; i++) {
         buttonList[i].addEventListener(MouseEvent.CLICK,btnClick); // assign the click function to each button
         buttonList[i].addEventListener(MouseEvent.DOUBLE_CLICK,btnDClick); // assign the double click function
         clickedList.push(false);  // add a false value for each button to this array
         doubleClickedList.push(false);
               buttonList[i].doubleClickEnabled = true; // set the double click property for each button
    function btnClick(event:MouseEvent):void {
              var thisButton:int = buttonList.indexOf(event.target);  // figure out which button was clicked as an item in the array
              clickedList[thisButton] = true;  // change the value in the array
               var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
        if(clickedList[thisButton]){
        newColorTransform.color = 0x064258;
        buttonList[thisButton].transform.colorTransform = newColorTransform;
    function btnDClick(event:MouseEvent):void {
              var thisButton:int = buttonList.indexOf(event.target);
              doubleClickedList[thisButton] = true;
        var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
        if(doubleClickedList[thisButton]){
        newColorTransform.color = 0xac1e23;
        buttonList[thisButton].transform.colorTransform = newColorTransform;
    Now you can have any number of buttons, just add their instance names to the array at the top.

  • How to use a sap scripts for  multiple languages

    hi gurus
    what are main events in that are used in ALV reports.........
    regards
    baskar

    Hi Bhaskar,
    in the alvs these are the main events.
    1.slis_t_listheader,
    2.slis_t_fieldcat_alv.
    3.slis_t_sortinfo
    4.slis_t_events
    5.slis_t_print_alv.
    6.slis_t_layout_alv.
    and also used these two events.
    1. top-of-page.
    2.top-of-list.

  • How to use Box.glue

    i have a java app using Swing JList
    the problem is that when the person resizes or gridbaglayout interprets the sign in such a way the list expands and covers up the button below it. i don't want the JList to expand and cover up the JButton that was below it. So i'm under the impression I need a glue to keep it in place.
    could someone give some guidance on that
    thanks in advance
    stev

    I am not a fan of Grid Bag Layout. ....It might be Basically Becos u have Kept Both JList and Button in the Same Cell...Try Placing them in Different Cells....Otherwise Use a Combination of BorderLayout and Flaw Layour...That shuld Solve ur Problem
    Cheers,
    Manja

  • How to use IncludeIn in Script code

    Hallo, i don't know how to add a label (dinamically created) to a particular State. I do it with MXML with the includeIn property but there is not such a property through as3 code.
    Please help
    Max

    help.

  • How to use Box & Box.Filler class in jdk1.4

    hi
    i want to know the details about Box & Box.Filler classes in JDK1.4.0 version. can anyone will tel me the place where i will find info.
    i am interested in few code samples also.
    reply me soon.
    thankx in advance

    Hi Kodandarami,
                           I had done like that only see here is the code below.here L1 L2 L3 and L4  are paragraph left Justified item's.
    so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
    =    -
    L1   Itm,,Material,,Mat.Desc,,             Batch,,  SLoc,,  Stor.bin        
    /*   Stock type                                                             
    L3                                 ,,              Counted qty.,,Un         
    L    -
    =    -
    /E   POS_BELZEILE2                                                         
    /:   PROTECT                                                               
    /:   BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6                
    L4   &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,        
    =    ,,&ISEG-LGORT&,,&MABDR-LGPBE&                                         
    /*   ,&T064B-BTEXT&                                                        
    L3        ,,              _______________,,&ISEG-ERFME&                    
    /:   ENDPROTECT                                                            
    /E   POS_ENDPAGE                                                           
    Thanks,
    Gopi.

  • How to use import script with FDM using adapter ERPI?

    Hi,
    I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
    Data loaded from eBS are YTD data.
    I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
    But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
    Thanks in advance for your help
    Fanny

    Hello Fanny,
    No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
    There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
    Thank you,

  • How to use the validation work in Both TAB and Mouse keys in Forms6i

    Hi,
    I have a validation script once it's validated it should execute the query.But using When-Validate-Item i can't use execute_query.I am able to use the validation in Key-Next-Item trigger but if the user moves the cursor using mouse then it's not working.
    How to use the validation script working in Both Scenarios(Tab and Mouse keys).
    Can anyone please give inputs to rectify the above issue?.

    So you have multiple fields, but on at least one of them if it's valid you immediately want to execute the query?
    You could create a hidden field in a control block Query_Now default 'N'. In a WHEN-VALIDATE-ITEM on your item, if it's determined to be valid, then set Query_Now to 'Y'.
    In a WHEN-NEW-ITEM-INSTANCE at block level, check if Query_Now is 'Y'. If it is then execute the query (and set it back to 'N').

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • How to acheive check box in SCRIPTS

    Hi All,
    I am working on SCRIPTS, I want a check box with checked in the layout after execting. I am not changing any driver program
    How to acheive this.
    Thanks in advance

    Hi,
    You can achive check boxes in scripts using this below link
    http://abapeasy.blogspot.com/2008/03/3-easy-way-to-add-checkbox-in-your.html
    with out modifying the print program u can check the check box using the PERFORM ---ENDPERFORM CONTROL COMMAND
    see this link how to use preform contorl command in script
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm
    Regards
    Jagadeesh

Maybe you are looking for