What is $var variable name usage?

Hi all,
Good day.
In SAP standard program, I saw some variable declared with prefix dollar sign.
example, $lt_var
Any different with normal variable name?
Thanks.
Greatly appreciate for any comment.

Hi,
good question but unfortunately I do not have direct answer. But I am very interested in answer. I found this about variable naming in ABAP documentation.
As well as these characters, certain special characters are used internal. However, these should not be used in application programs.
and in ABAP objects you can use only
Permitted are letters from "A" to "Z", numbers from "0" to "9" and underscores (_).
So my guess is that it should be related to special characters. Maybe passing some hints to ABAP compiler.
Cheers

Similar Messages

  • What's user variable name using Smart View POV function (ex:HypGetActiveMember)?

    Hi,
    We want to use Smart View POV function (ex:HypGetActiveMember) to get the active member of user variables from HFM forms selected into Excel, but we don't know the user variable name in the following paragraph of Smart View developer guide:
    "To uniquely identify the user variable, provide the user variable name rather than the dimension name."
    For example, what's the user variable name of Year dimension? How to get the user variable name?
    Any information would be appreciated. Thank you!

    Hi,
    I guess user variable name is set by users/developers. I am not very clear on your question. If you have defined some variables to select any members from a dimension then it will be in HFM only. In planning we have two kinds of variables User Variables (we set it from Planning Preferences) and Substitution variable (we set it from Essbase Consol in the backend). Without looking into your application it is difficult to say the user variable name. Like for Year the user variables can be "PreviousYear", "CurrentYear", or "NextYear" etc.
    Soumya

  • Variable name calling css?

    What is the variable name initialising the CSS in the HTML index file when publishing out with the HTML5 option?
    Thanks,
    Oliver

    Not really sure what you are after, but the style sheet is loaded in the head when the html page loads. There are surely some inline styles being applied also. CSS as a whole is not put into a variable and CSS does not contain variables. You can use JavaScript to change styles though.
    <link rel="stylesheet" type="text/css" href="captivate.css" />

  • Creating on the fly dynamic named bind variable names.

    I have an application process which gets called by a Dynamic action and Javascript.
    Everything is working great however I'm using it to drive dynamic charts.
    I could use IF statements at the end of the application process to decide what BIND vairable to fill with the information the process has collected however I'd prefer just to create the BIND variable from the
    name of the submitted information.
    So I have an application level variable called WHICHCHART. this gets populated with text upon calling the application process...so let's say 'chart1' is what it gets filled with.
    What I"d like to have at the end of the application process is just a bind variable waiting called :chart_1.
    So no matter what the value of WHICHCHART it will create an on the fly a bind variable with the same name.

    Ok. I guess this question was more how do you do this..then OH NO there are not other ways to do this.
    So I have a page with a chart region. this chart will have 3 Y Axes which prohibits the use of the default XML.
    So..
    I have the following Javscript:
    function getdata(whichchart) {
      var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=VM_XML_GENERATION',0);
            get.add('WHICHCHART',whichchart);
            gReturn = get.get('XML');
      get = null;
    Which is called when the page loads by a dynamic action:
    getdata('production');
    When the javascript is called as you can see it fires off:
    declare
       chart_series_data VARCHAR(32767);
       type array_cols is varray(7) of varchar2(100);
       array array_cols := array_cols('VM_HOSTS_NUM','VM_NUMBER','VM_PHYS_MEM','VM_VIRT_MEM','VM_CPU_COUNT', 'VM_TOTAL_DISK','VM_PROVISIONED_DISK');
    BEGIN
    --IF :WHICHCHART IS NULL THEN
    --RAISE_APPLICATION_ERROR(-20001,'Chart variable not set');
    --END IF;
    chart_series_data := null;
    chart_series_data := '      <data>'||chr(10);
    chart_series_data := chart_series_data||  '        <series name="Hosts Number" type="Line" color="0x1D8BD1" >'||chr(10);
    for c1 in (SELECT VM_REPORT_DATE LABEL,VM_HOSTS_NUM from TABLE where VM_REPORT_DATE between add_months(SYSDATE,-24) and SYSDATE and lower(VM_DCNAME)=lower(:WHICHCHART) )
    loop
    chart_series_data := chart_series_data || '<point name="'||c1.LABEL||'" ';
    chart_series_data := chart_series_data || 'y="'||c1.VM_HOSTS_NUM||'"></point> '||chr(10);
    end loop;
    chart_series_data := chart_series_data|| '      </series>'||chr(10)||'</data>';
    :PROD_DATA := chart_series_data;
    END;
    The : production variable at the end of this I want to change the name of based on the value I'm sending of WHICHCHART from the javascript. I hope this is clearer now.
    AGAIN this is not really a need. It is a want to be able to create dynamic bind variable names going forward.
    Thanks

  • Can I override Pro*Fortran's limit on Fortran variable name lengths?

    The Fortran standards put a 31-character limit on the variable names in Fortran code. Some compilers allow you to exceed this as a compiler extension, and, unfortunately, our code has places where we actually do... The present software compiles and runs under with the Ingres 9.2 RDBMS, but we're starting the process of porting the code over to Oracle 11g.
    The Pro*Fortran (we have release 1.8.79.0.0) precompiler only accepts the first 31 characters of a long var name (yes I found that limitation stated in the Pro*Fortran Precompilers guide). What I am wondering is if there is any way to override that and allow a longer name to be used. The Sun studio compiler accepts it, just not the precompiler. Searched the docs and found nothing about overriding things like this.
    If necessary, yes I can shorten the variable names. I'm just trying to minimize the amount of code changes required.
    Jim

    You are correct.
    5 lines below the QUERY DATA SOURCE NAME block property line
    is the ‘where clause’ line
    It already had FAC_ID = :FACILITIES.ID
    I found that if I added my :Blk_name.Pass_cd_num
    I could see it my new bind variable in a system.last_query display.
    I found the QUERY DATA SOURCE NAME below the ‘from query clause’ truely
    is the from clause and it will not except any :Blk_name.item_name
    (Because is is just for tables)
    But the ‘where clause’ property line will except bind_variables
    :Blk_name.item_name is successful in the where clause.
    (where Capturing_devices table being the block’s base table)
    -- **FROM**
    SET_BLOCK_PROPERTY('EMISSION_POINTS',QUERY_DATA_SOURCE_NAME,
    'EMISSION_POINTS A,
    EP_MODES B,
    CAPTURING_DEVICES,
    CONTROL_DEVICES CD');
    -- **WHERE**
    SET_BLOCK_PROPERTY('EMISSION_POINTS', DEFAULT_WHERE,
    'A.ID = B.EP_ID AND
    B.ID = CAPTURING_DEVICES.PARENT_MODE_ID AND F
    CAPTURING_DEVICES.CD_ID = CD.ID AND
    CAPTURING_DEVICES.CD_ID IS NOT NULL AND
    CAPTURING_DEVICES.PARENT_MODE_ID IS NOT NULL AND
    CAPTURING_DEVICES.STACK_ID IS NULL and
    B.FAC_ID = :FACILITIES.ID and CD.NUM = :emission_points.cd_id_num');
    --**ORDER BY**
    SET_BLOCK_PROPERTY('EMISSION_POINTS',ORDER_BY,
    '(A.NUM, C.PARENT_MODE_ID, C.CD_ID)');
    EXECUTE_QUERY;
    I still get a FRM-40505: Oracle error: ‘unable to perform query’
    (I know its because of the way it is coded),
    But I did learn bind variables can work in the where clause.
    Also I tried using the hidden field like you suggested.
    If you put char character field in a where clause it will come out in quotes
    So I assigned it to a block.hidden_item (number) like you suggested
    that did strip off the quotes.
    That left me with passing the value of 31, I need to pass 0031
    I tried to do a LPAD to the value left pad it with zeroes
    But that did not work.
    I went back to my effort in using a cursor loop to populate the block
    Thanks

  • Which is worse: awkwardly long or vague/arbitrary variable names?

    I'm programming in C++, but that shouldn't matter.
    I'm working on a small chunk of code that is a module for a much, much larger project. Part of my code is to make several hundred histograms and then run some statistics over them.
    My dilemma is that there are so many, that naming them is becoming difficult. So, I opt for incredibly long, cumbersome names rather than short arbitrary names. Heck, even I wouldn't know what was going on if I just named them "histo1, histo2." Instead I name them things like "MomentumTimesDeltaPhiEta1" which MIGHT make sense to someone who is working on another part of the project.
    And actually, that wasn't a real example. Some of my names are longer than that. Is that normal? I have programmed in C++ for a year, but I'm still not good at programming etiquette, so my code looks clumsy.

    Local vars can be short, if you find the need to give further explanation, comment. Try to give meaningful names more for class atributes, interfaces, and where a variable name can help documenting the code itself. E.g. (Pseudo-code, as I don't remeber a lot of C++):
    Instead of:
    z = sqr(a^2 + b^2)
    This is better:
    // Pythagorean theorem
    z = sqr(a^2 + b^2)
    This is even better:
    hypotenuse = sqr(catheti_a^2 + catheti_b^2)
    If you find yourself using incredible long variable names, it's a signal that your program is too flat, and you need to start refactoring it into a function, class, or using a namespace.
    So, e.g:
    namespace Geometry {
    function Hypotenuse(float a, b) {
    return sqr(a^2 + b^2)
    The code expresses a lot more meaning, while staying concise.
    Edit: I forgot square root
    Last edited by freakcode (2008-08-06 19:49:58)

  • Using a variable's definition as a variable name

    I have a string variable with definition I need to use as a
    variable name.
    For example, this is super simplified:
    var newVariable = 'it is working';
    var partOne:String = 'new';
    var partTwo:String = 'Variable';
    var partThree = partOne + partTwo;
    trace("my variable is " + partThree);
    Instead of tracing partThree as literally partOne + partTwo
    (which traces "newVariable") i'd like it to trace the
    Definition of partOne + partTwo (which is "it is working").
    I hope this makes sense, help or advice is
    appreciated.

    ...
    var partThree = this[partOne + partTwo];
    trace("my variable is " + partThree); //will trace: my
    variable is it is working
    TS

  • Is it possible to add a property using variable in variable name?

    I want to query for a list of virtual machines within a folder, then create a menu of the host names using forms.  Since the list of machines is subject to change, I want to build the list each time the script is run, rather than build off a static
    list. 
    For each virtual machine I need to create the list of variables below:
    $hostnameX = New-Object System.Windows.Forms.checkbox
    $hostnameX.Location = New-Object System.Drawing.Size(10,20)
    $hostnameX.Size = New-Object System.Drawing.Size(100,20)
    $hostnameX.Checked = $true
    $hostnameX.Text = "Type"
    $hostnameX.Controls.Add($hostnameX)
    The location and size values need to be incremented but I think I can figure that part out.
    I can use New-Variable to generate the initial variable. But I receive errors using the same method to try to create a new property for the variable.
    $VMS = Get-Cluster MyCLUS | Get-vApp "My vApp" | Get-VM | Select Name,PowerState | Sort Name
    For ($i=0; $i -lt ($VMS.count); $i++)
    $VMS[$i].Name
    $VMGUEST = "$($VMS[$i].Name)" -replace("-","")
    New-Variable "CB$VMGUEST" "New-Object System.Windows.Forms.checkbox"
    New-Variable "CB$VMGUEST.Location" "New-Object System.Drawing.Size(10,20)"
    In the above, $CBVMGUEST1 =  New-Object System.Windows.Forms.checkbox which is what I want,  but $CBVMGUEST1.Location is not set.
    Is there way to add a property using a variable in the variable name?  Or any other suggestions on how to tackle this issue?

    Hi,
    maybe another approach is a bit easier.
    Use a hash-array like
    $CB = @{}
    $CB[$VMGUEST] = New-Object System.Windows.Forms....
    $CB[$VMGUEST].Location = New-Object System.Drawing....
    Mit freundlichen Grüßen Jens Kalski
    That's the correct answer.  Anytime you find yourself wanting to create variables named "Widget1", "Widget2", "Widget3", etc... it's a pretty clear indication that what you really need is a collection object of some sort.  That might be an array,
    a hashtable, or any other data structure for holding other objects, depending on your specific needs.

  • Could not parse the file contents as a data set. There were too many variable names in the first line of the text file.

    Could not parse the file contents as a data set. There were too many variable names in the first line of the text file.

    What are the Variables settings, what is the text file’s content, …?

  • How do I create a variable name on the fly?

    Hi,
    If I have a String containing a value, how do I create a variable name using that value during program execution? That is if I have
    String fred = "newvar";
    How do I then create a new String with the name "newvar" (using the contents of fred)? I will never know what the content of fred is until this point. What I'd like to be able to do is something like
    String fred.subString(0) = "a new value";
    Obviously this won't work but if it did the statement would evaluate to something like
    String newvar = "a new value";
    Appreciate any help you can give,
    Dave.

    Here u go:
       private JCheckBox AddCheckBox( String strText, int nTextID )
          JCheckBox checkbox = null;
          Class checkboxDefinition;
          Class[] stringArgsClass = new Class[] {String.class};
          Constructor stringArgsConstructor;
          Object[] stringArgs = null;
          String arg = "";
          arg = "CheckBox" + nTextID;
          String label = new String(arg);
          stringArgs = new Object[] {label};
          try
            checkboxDefinition = Class.forName("javax.swing.JCheckBox");
            stringArgsConstructor = checkboxDefinition.getConstructor(stringArgsClass);
            checkbox = (JCheckBox) createObject(stringArgsConstructor, stringArgs);
            checkbox.setName(label);
            checkbox.setText(strText);
            checkbox.setSize(new java.awt.Dimension(CQuestionBase.PAGEWIDTH, 21));
            checkbox.putClientProperty("1",new Integer(nTextID));
            checkbox.setVisible(true);
          catch (ClassNotFoundException e)
            System.out.println(e);
          catch (NoSuchMethodException e)
            System.out.println(e);
          return checkbox;
       }This code was based on an example I found about two years ago. You can use the same methodolgy to create objects of any kind. Again, look at java.lang.Reflect.

  • Variable Names

    Hi
    Im trying to write a simple loop that will create n amount of data types by using a for loop
    for (int i=0;i<5;i++)
         MySet set+i=new MySet();
         }where it says MySet set+i i want it when it executes to read set1,set2,set3,etc so the variable name is the word set plus the number that i equals.
    set+i doesnt work, set.i doesnt work and set&i doesnt work. anyone know what it should be?

    You can't do this in Java. But you can declare an array and use the index to refer to each set like
    final int N = 5;
    MySet[] set = MySet[N]; // array of MySet
    for (int i=0; i<N; i++) {
       set[ i] = new MySet();
    }// set2 for example is now set[2].

  • Using variables as variable names

    Hello (me again)
    I know I can use this[variable] to evaluate a variable name
    so it can be used for such things as referring to a movie clip
    e.g
    this[variable]._x=100;
    However... I'm trying to create movieClips with:
    var MovieClipName:MovieClip = new MovieClip()
    which doesn't work if I use this[variable] instead of
    MovieClipName.

    Thanks,
    I'm having real problems. I'm looping through my movieclips,
    as I'd like to load content into them one by one..proceeding to the
    next after the first has been loaded.
    At the moment I have...
    for (var i=1; i<totalImages +1; i++)
    this["image" +i].loadMovie("image" +i +".jpg");
    bLoaded=0;
    bTotal=this["image" +i].getBytesTotal();
    while (bLoaded<bTotal)
    bLoaded=this["image" +i].getBytesTotal();
    This preloader isn't working..as the other images start
    loading before the first has completed..bTotal always seems to be 4
    which is the number of bytes of an empty movie clip.
    How odd

  • Dynamically creating variable names in javascript

    Hi.
    I have to create variable names dynamically in JavaScript.
    My JSP file accesses information from Database and forms a String corresponding to the information received.
    This String is passed to a JAvaScript function that should CREATE a variable with that NAME.
    For Ex:
    My database access resulted in a single row...
    id name sal
    34 John Smith 38000
    the resulting VARIABLE NAME should be Menu34. 34 comes from the database result.
    Is there any function to dynamically create a variable name in JavaScript?
    Thanks in advance.

    The JSP is printing the contents of an HTML page, and Javascript code can be part of that output...
    So you would just write out the stuff, something like this....
    <script>
    <% while(rs.hasNext()) { %>
    var Menu<%= rs.getInt("id") %> = '<%= rs.getString("name") %>';
    <% } %>
    </script>
    In the browser, it'll just look like another long list of Javascript variables.

  • Dynamic Variable Names

    Okay, I just need to figure out how to make dynamic variable
    names. In this case, I have a loop, and inside the loop I need to
    create a new array for every iteration of the loop. Something like
    <cfloop from="0" to="10" index="i">
    <cfset LoopArray#i# = Some Value>
    </cfloop>
    But that doesn't work. How can you make dynamic variable
    named? I think it's probably something to do with evaluate or DE,
    but I don't know how to use them, and the livedocs make no sense to
    me. Thanks!

    On Thu, 22 May 2008 17:14:42 +0000 (UTC), kenji776 wrote:
    > Thank you both for your replied, I did manage to find a
    solution (the same one
    > posted by JR "Bob" Dobbs). Pretty much just looks
    like...
    >
    >
    > <cfloop from="1" to="3" index="i">
    > <cfset LinkResults["#i#"][1] = "Player 1's Move
    ID">
    > <cfset LinkResults["#i#"][2] = "Player 2's Move
    ID">
    > <cfset LinkResults["#i#"][3] = "Damage to player
    1">
    > <cfset LinkResults["#i#"][4] = "Damage to player
    2">
    > </cfloop>
    From your values, you don't want a two-dimensional array
    (which although
    you're actually building LinkResults as a struct, with the
    sequential
    numeric keys, it's basically an array), you want an array of
    structs, eg:
    LinkResults
    .player1.moveId
    LinkResults.player1.damage
    What is "i" actually counting through? IE: from 1-3 things...
    which are...
    what?
    Adam

  • Dynamic Variable Names in OpenScript

    Is there a way to use dynamic variable names? What I mean by this is that the variable name in the file could be:
    Name1, Name2, Name3, etc.
    I may want to loop through these by saying something like:
    For i = 0; i < iLoop; i++
    String sFieldName = "{{ViewList.Name" + Integer.toString(i) + "}}";
    JOptionPane.showMessageDialog(null, "sFieldName: " + "{{ViewList.{{sFieldName}}}}");
    I don't want it to use the literal string of {{ViewList.Name1}}, but rather, I want to use the value from the DataBank for Name1. Thanks.
    -John

    Nishanth,
    Thanks for your suggestion. Unfortunately, this is not a simple variable replacement. I want the name of the variable to be dynamic in nature. Imagine that I have 5 variables in the files named:
    Name
    FoodPref1
    FoodPref2
    FoodPref3
    FoodPref4
    I would like to loop through these and construct the variable name dynamically so it would be something similar to:
    for i=1 to 4; i++
    sFoodPrefVar = "FoodPref" + i;
    getVariables().set("FoodPref",sFoodPrefVar);
    JOptionPane.showMessageDialog(null, "Your Food Pref is: " + {{FoodPref}} + "\n");
    This is pseudo code, but it would theoretically loop through the 4 food preferences. Thanks.
    -John

Maybe you are looking for

  • I rented a movie using iTunes on my MacBook Pro, but it won't move to my first Generation Apple TV

    I justed downloaded a Rented Movie from iTunes on my MacBook Pro. I did it through United Airlines e-miles to get credits. Now, when I try to move it from the  Rented Movies to the On "Apple TV" box on my Apple TV box, it stays in it for no longer th

  • Block purchase requisition after purchase order created

    Hi, We have the requirement that users cannot modify a PR after a PO has been created. Do you know if there is a standar message or someway to do it? Some message similar as 06 648 but not only for quantity. Thanks in advanced

  • Loading multiple UDAs to essbase.

    I have been trying to load multiple UDAs to one essbase member during the load. But have not been able to do so. Anyone here has tried that? If so would you please share your insight. TIA, PHR.

  • Which EXPORT should I use to move photos to another iphoto library ?

    Hi! I have 3 macs and one main one that has my 13000 photos in iphoto. I want to take the ones I EDITED in iphoto 9.2 in the imac running snowy which is just 375 photos, and export them onto a disc and sneaker move them to my other imac running 9.2 a

  • Cisco UCS and NetApp MetroCluster

    Hi all, Anyone with any thoughts re this: Dual site setup with NetApp Fabric MetroCluster (two storage controllers stretched over fiber links) Two Nexus 5000 switches at each site, so we have two FC fabrics, stretching both sites (as required for Met