How to make BOX position variable in SAPscript

Can we make box position variable in sapscript?
Can we pass variable in Box command in sapscript like
BOX XPOS <v1> YPOS <v2> WIDTH <v3> HEIGHT <v4>.

Hi,
Yes we can pass variables to BOX command...
But the variables should be of type char
Patil

Similar Messages

  • HT4642 ios numbers:how to make cell height variable with auto line brake setting ?

    ipad numbers; How to make cell height variable with auto line break setting?

    That's strange. I responded earlier and the whole message got trashed. Hence the test post before retyping the entire thing again.
    Thanks for the reply.
    The video clip is a single screen capture video clip. This is what I've found by playing around with this more.
    The original clip resolution is greater than 640x480. If I use QT Pro to convert the original clip to 640x480 and then use either Flip4Mac or PE7, then the resolution looks good.
    Just trying to figure out if should keep all workflow on the MacOS side. There are several different version of Flip4Mac. $49 gives me 640x480, but if I ever want to make it slightly larger then I would need to go with the $99 or HD version.
    I also tried to export to AVI with QT Pro and the import with Windows MovieMaker but it didn't work really good. I liked the simplicity (since PE7 hogs a lot of resources especially through VMWare).

  • How to make use of variable present in sap standard FM to custom badi.

    Hi All,
    Scenario: I am using a transaction which makes use of SAP standard FM. Also I have used a zbadi to achieve my requirement. While debugging, I found that when the control goes to zbadi, i am unable to make use of the variables which are defined in standard FM.
    Now my requirement is to make use of variables present in standard FM into zbadi. Can anyone suggest me how to achieve this?
    Thanks in Advance......[:)]
    Regards,
    Vinit

    if your system is NetWeaver 7.0 (ECC 6...), then you can use enhancement framework to add your code to the function module.
    Otherwise, you can only access them if they have global scope, using ASSIGN ('(SAPLfunction group name)GLOBALVARNAME') TO <fieldsymbol> (be careful, you could change variable value, so make sure you don't)

  • How to make select as variable for Export-csv?

    Hello, 
    I'm trying to get the script to work which can iterate over topics and make predefined selection based on current active topic on iteration. It seems that the problem is simple, but I can't find the solution.
     The source file is the following:
    topic=interface_bridge ruleaction=add name=vlan10
    topic=interface_bridge ruleaction=add name=vlan13
    topic=interface_bridge ruleaction=add name=vlan14
    topic=interface_bridge ruleaction=add name=vlan20
    topic=interface_ethernet set=0 comment=DMZ
    topic=interface_ethernet set=1 comment=DMZ
    topic=interface_ethernet set=2 comment=Servers
    topic=interface_ethernet set=4 comment=WKS
    topic=interface_ethernet set=5 comment=VMWARE
    topic=interface_ethernet set=6 comment=WKS
    topic=interface_ethernet set=10 comment=External
    The current script is the following:
    $file="c:\scripts\mk.txt"
    #selections
    $interface_ethernet='comment','name','set','switch','master-port'
    $interface_bridge='comment','name','protocol-mode'
    #topics
    $topics1=@($interface_ethernet, $interface_bridge)
    $topic_int_bridge='interface_bridge'
    $topic_int_ethernet='interface_ethernet'
    $topics=@($topic_Int_bridge, $topic_int_ethernet)
    foreach ($topic in $topics)
    $match='^topic='+$topic+'\s+'
    $result_File = 'config_'+$topic+'.txt'
    $select = '$'+$topic
    $interface_ethernet='comment','name','set','switch','master-port'
    $interface_bridge='comment','name','protocol-mode'
    $topics1=@($interface_ethernet,$interface_bridge)
    $select1=invoke-expression ('$'+$topic)
    $results = Get-Content mk.txt | Where-Object { $_ -Match $match }| foreach { new-object PSObject -Property $($_ -replace '^' -replace ' ',"`n" | convertfrom-stringdata) }
    $results | select $select1
    I'm hang on the following: when I run the script it only takes first selection ($interface_bridge) gives the result about first topic (bridge), and for second (ethernet) - only comments.
    comment name protocol-mode
    vlan10
    vlan13
    vlan14
    vlan20
    DMZ
    DMZ
    Servers
    WKS
    VMWARE
    WKS
    External
    There can be many topics, so write If expression for each it's not the case.
    Question:
    How to modify the script that the result is printed for each topic with adequate section:
    1) when looping over topics, when the topic interface_ethernet is processed select and print results for variable $interface_ethernet
    (selected items 'comment','name','set','switch','master-port')
    2) when looping over topics, when the topic interface_bridge is processed select and print results for variable $interface_bridge
    (selected items 'comment','name','protocol-mode')
    3) etc...
    Each topic should be on separated iteration block because for each will be generated csv file with each own header. 
    Thanks.

    Hello!
    I'm trying to understand why the script does not work. The question is:
    Is it correct way of using the "invoke-epression" on code?
    $select1=invoke-expression ('$'+$topic)

  • How to make a text variable (running header - character) resize a text frame?

    I have successfully been able to get a metadata text variable to auto-resize a text frame, but when I change the text variable to a running header-character/paragraph variable, the text frame does not resize - in fact it gets smaller and squashes the text.
    Surely if Indesign can handle one kind of variable it should handle another??
    Please help!

    Thanks all.
    Will- I tried adding another character to the text box but this made no difference.
    Eugene- I'm trying to avoid the purchase of any 3rd party plugins due to budget constraints.
    I realised that all I needed to do was use a wide paragraph rule to emulate a box behind the text, and make the text box long enough to hold all possible variables.
    One other issue has now cropped up, the running header (character) only grabs the text up to the first return, but I need it to grab all text formatted with the Character Style (2-3 lines max).
    I require a forced line break in the title (where the header is being pulled from) as it has a paragraph rule style attached, requiring a full return for each line of the title.
    Any ideas?

  • How to make as selection variable

    Hi All
    we have one variable plant.
    the variable is properties are:
    genral properties:
    Type of variable : Characteristic
    Processing by : Authorization
    Reference charateristic : plant.
    Details:
    Variable represents : Multiple single values
    variable is : Optional
    this variable is not presenting in selection screen.
    how can i make it as selection scrren variable.means
    please tell me..
    Thanks
    Krishna

    Processing by authorization is different.
    Check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/44/599b3c494d8e15e10000000a114084/content.htm
    If you tick the "ready to input" option it will be available for selection.
    Hope this helps.

  • How to make a data variable BOLD

    Hi,
    I am passing a value to a data variable. Now this value being passed needs to be in BOLD format.How can i ensure this using Abap statements. ?
    Note : This value, i am displaying in an ALV.But the problem here is not all the values have to BOLD,there is a condition attached to it.So i guess i cannot make use of ALV features.Am i correct ?
    Please Guide me !!!
    <REMOVED BY MODERATOR>
    Regards,
    Rohan
    Edited by: Alvaro Tejada Galindo on Jan 23, 2008 12:27 PM

    Hi,
      You can not make a variable as BOLD, but you can display the variable in different color that can be possible in alv, i can suggest you to do this.
    Rgds,
    Bujji

  • How to make sure 2 Variables of same class do not share internal variables?

    K, I am having trouble making a new instance of an object.
    I have a class call File_Class that have a public static attribute call File_Name.
    Now in another class, I have a linkedlist and each one of the element is supposely a File_Class object. The problem that I am having now is that whenever I create a new File_Class (File_Class New_Class = new File_Class (File_Name)), i am actually getting a reference to the old one so that anything that I change reflects on every element of my link list.
    My question now is
    1. how exactly do i enforce that a new instance of the object (File_Class) is created so i can make sure every element in my linked list is distinct.
    2. why is this happening at all
    thanks for your help in advance.
    Hung-Hsun Su

    Here is a simple example that i wrote just to demonstrate the point. it seems that i always get the same object no matter what. Thanks again.
    Result:
    AFTER 0 1 2
    1 2
    AFTER 1 10 20
    10 20
    10 20
    AFTER 2 99 999
    99 999
    99 999
    99 999
    Code:
    class T
              public static int A;
              public static int B;
    class Test
              static T TA[] = new T[5];
              private static void Set_Value (int i, int A, int B)
                        T t1 = new T ();
                        t1.A = A;
                        t1.B = B;
                        TA[i] = t1;
              private static void Print (int i)
                        for (int k = 0; k <= i; k++)
                                  System.out.println (TA[k].A + " " + TA[k].B);
              public static void main (String args[])
                        System.out.println ("AFTER 0 1 2");
                        Set_Value (0, 1, 2);
                        Print (0);
                        System.out.println ("AFTER 1 10 20");
                        Set_Value (1, 10, 20);
                        Print (1);
                        System.out.println ("AFTER 2 99 999");
                        Set_Value (2, 99, 999);
                        Print (2);
         }

  • How to make a bind variable out of a comparison like statement

    I have a statement similar to the following -
    select x from atable where acolumn like '1%';
    How do I turn that into a variable in an anonymous block like -
    declare
    l_var varchar2(1) := '1';
    begin
    select x from atable where acolumn like 'l_var%'
    end;
    I need to prevent the database from using a literal in the plan so I need to convert like '%1' into a variable.
    Any suggestions?

    Not quite sure what you mean by 'binding' or 'substitution'.
    If you mean bind variables, the yes oracle does automatically use bind variables:
    SQL> CREATE TABLE atable
      2  (
      3          x VARCHAR2(10)
      4  )
      5  /
    Table created.
    SQL>
    SQL> INSERT INTO atable VALUES ('1234');
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL>
    SQL> set serveroutput on size unlimited
    SQL>
    SQL> declare
      2    l_var atable.x%TYPE := '1';
      3    l_str atable.x%TYPE;
      4  begin
      5    select x
      6      into l_str
      7      from atable
      8     where x like l_var || '%';
      9
    10    dbms_output.put_line ('l_str = "' || l_str || '"');
    11  end;
    12  /
    l_str = "1234"
    PL/SQL procedure successfully completed.
    SQL>
    SQL> SELECT SQL_TEXT FROM v$sql WHERE sql_text LIKE 'SELECT %ATABLE%' AND sql_text NOT LIKE '%V$SQL%';
    SQL_TEXT
    SELECT X FROM ATABLE WHERE X LIKE :B1 || '%'
    SQL>Where that is the sql statement that the sql engine actually ran on behalf of the pl/sql routine.
    GP>

  • How to make JFrame positioned to lower right corner of user's desktop

    I'm a new java user, and I'm working on building a small
    application. When the application is launched, I would
    like the application (JFrame) window to be positioned
    in the lower right corner of the user's desktop. Does
    anyone know how to get the user's desktop size so
    I can position the application.
    Here is a code snippet where I lauch the app.
    public static void main(String args[]) {
    ArchiveRestore mainFrame = new ArchiveRestore();
    mainFrame.setSize(500, 500);
    mainFrame.setTitle("Master Model Automation");
    mainFrame.setVisible(true);
    Thanks
    -cliff

    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Will get the screen size. The Toolkit class is in the java.awt package.

  • How to make cursor record/variable dynamic or substitute variable

    Hi
    I have couple of cursor records define in my PL/SQL procedures, they are all same structure type.
    For example
    C_rec_1 c_currsor%ROWTYPE;
    C_rec_2 c_currsor%ROWTYPE;
    C_rec_3 c_currsor%ROWTYPE;
    C_rec_4 c_currsor%ROWTYPE;
    C_rec_5 c_currsor%ROWTYPE;
    C_comm_rec c_currsor%ROWTYPE;
    BEGIN
    fetch .... into C_rec_1;
    fetch .... into C_rec_2;
    fetch .... into C_rec_3;
    fetch .... into C_rec_4;
    fetch .... into C_rec_5;
    IF c_rec1.dept = 100 then
    C_comm_rec := c_rec1;
    END IF;
    IF c_rec2.dept = 100 then
    C_comm_rec := c_rec2;
    END IF;
    IF c_rec3.dept = 100 then
    C_comm_rec := c_rec3;
    END IF;
    IF c_rec4.dept = 100 then
    C_comm_rec := c_rec4;
    END IF;
    IF c_rec5.dept = 100 then
    C_comm_rec := c_rec5;
    END IF;
    Here rather than coding 5 IF statement, Can I make c_rec_? dynamic?
    Something like but this does not work :)
    For i IN 1..5 loop
    If c_rec_&l = 100 then
    C_comm_rec := c_rec5;
    End if
    End loop;
    END;

    Hi Jaun,
    You have to go CMOD  Transaction .
    Create a project  and then write code in the exit EXIT_SAPLRRS0_001.
    there is include
    INCLUDE ZXRSRU01  double click on it and write code like below.
    Coding for Variable
        WHEN 'ZTES'.     YOUR variable name
    if     i_step = 1
          l_s_range-LOW = sy-datum +0(6).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    Hope this will help you.
    Regards
    vikas saini

  • How to make the float variable 1,6000000000000000E+2 as 160 ?

    hi, Can you help me how to convert the float type so that it can looks much better to users .
    Regards ,

    Consider the code below, its serves your requirement, make changes accordingly
    data:
    expo type ANZ_TAGE,
    temp(16) type p decimals 14.
    expo = '3.9604320000000000E+08'.
    move expo to temp.
    write: expo,temp.
    Reward points if useful, get back in case of query...
    Cheers!!!

  • OBIEE - How to make one presentation variable dependent on the other

    Hi,
    I have the following requirement. In a prompt say there are two columns acting as filters:
    Columnfilter1 Columnfilter2
    Now the columnfilter2 is constrained based on columnfilter1.
    The user wants that, upon logging only the columnfilter1 should have default value set and not columnfilter2. And the report should run in the following way:
    If only columnfilter1 is entered at the prompt and not columnfilter2. Therefore it should give values for all the columnfilter2 values wrt columnfilter1.
    and
    if both the prompts are entered, then the report should filter on both the columnfilters.
    I dont know how to set the above to conditions in the report.Please let me know how should i proceed.
    Thanks

    Hi,
    Thanks for the reply.. I think i did not pose question properly.. In my report I have the following requirement:
    Column1 Prompt Column2 Prompt
    Where column2 prompt depends on the column1 prompt such that there is a hierarchy, column1 (parent) --> column2 (child)
    Now, if in my report i need to display measures by comparing column1 and column2 prompts with parallel set of column1 and column2 values of another hierarchy.
    now, if column1 prompt is chosen and no column2 prompts are chosen then, then alll values of column2 are considered. Now I want to put a condition of comparison when all values are considered and a different condition of comparison when a specific value for column2 prompt is entered. How do i do that?? I thought of using default value in the condition statement. But its not working. Maybe I am implementing it wrong.
    Could you let me know how to achieve the above?
    Let me know if you need any other details.
    Thanks,

  • How to make fixed position of column names on JSP/xml form

    Hi,
    I use Oracle 9i, ver. 2. I create a browse form (JSP) where I can see the data from one large table through Microsoft Internet Explorer (version 6).
    When I scroll the browse form I would like that names of
    columns to be fixed on the form.
    I trued with following tag but without success:
    <h1 style="background-color:yellow;position:fixed;"> Column_names_1, Column_names2</h1>
    I would appreciate any help on it.
    Aleksandar

    Hi there
    Hmm interesting.  You can try this below which seems to work by listeneing for the headerShift event and the mouse doen event.  Basically it records the original layout of the coloumns and then if the user try to put a column at position 0 then it resets them.  The others can moce around fine.  The ideal would be to prevent the default behaiviour of the headershift event but this is not cancelable.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  >
        <mx:Script>
            <![CDATA[
                import mx.events.IndexChangedEvent;
                import mx.controls.dataGridClasses.DataGridColumn;
                import mx.rpc.events.HeaderEvent;
                private var originalColumns:Array;
                private function headerShiftHandler(event:IndexChangedEvent):void {
                    // If new pos of the dragged column is going to be 0, then reset to original layout.
                    if (event.newIndex == 0) {
                        dg.columns = originalColumns;       
                // Capture the original column layout.
                private function captureColumns():void {
                    originalColumns = dg.columns;
            ]]>
        </mx:Script>
        <mx:DataGrid id="dg" x="51" y="125" width="414" height="207" headerShift="headerShiftHandler(event)" mouseDown="captureColumns()">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="col1" resizable="false" draggable="false" />
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    Hope this helps
    Andrew

  • How to make my input variable when labview is running ( URGENT)

    Hi I need help on labview.
    (1) I need to create a knob that increase the amplitude of a sine wave. I need to increase the amplitude of the sine wave while the program is running using the knob. I am only able to increase the amplitude of the sine wave when i stop the program, turn the knob to another amplitude and start running again. I cant increase the amplitude of the sine wave while running. Pls help me in this area.
    (2) I need also to create an array to store the amplitudes of the waveform that i need.The array must send in information One by one to the waveform generator at time intervals. Can someone help me in this area. Thanks

    Ah, the end of the semester, and school projects are due.  You won't find anyone on the list that will write you rprogram for you.  You would be better off posting the code you have so we can guide you to the solution better.
    1.  LabVIEW only reads a control value when you tell it to, so you'll either need a while loop and read the control over and over or use a while loop with an event structure which will read the control everytime you change it.
    2.  Use a while or for loop (while loop would be better, especially if your timing constant is large) and index the values use a delay or wait(ms) to add a delay before the next point.

Maybe you are looking for