Structure of a variable

Gurus,
      Can some one explain to me the Structure of a variable like what is L_S_RANGE-LOW , L_S_RANGE-HIGH , L_S_RANGE-SIGN , L_S_RANGE-OPT etc and what are the possible values for L_S_RANGE-SIGN , L_S_RANGE-OPT.
        What is E_T_RANGE.
Thanks

Hi Shiv,
Here is an example
you want to include dates from 01.01.2006 to 02.02.2006
that would be:
sign = I
opt = BT
low = 20060101
high = 20060202
and if you want to show everything except that period you would change the I for an E (exclude that period).
Hope this helps.
Regards,
Diego

Similar Messages

  • Structure événement variable réseau

    Bonjour à tous,
    Dans un VI, je souhaite que le code ne s'execute que si la valeur de la variable change. J'utilise donc un bloc event. Cepedant, j'aimerais qu'un évènement soit associé à une variable partagée réseau. Est-ce possible de configurer un tel évènement sans qu'il n'y ait le contrôle sur la face avant ? Merci d'avance.
    Gautier
    Pièces jointes :
    VarTest.lvproj ‏2 KB
    VItest.vi ‏11 KB
    BibliothequeTest.lvlib ‏2 KB

    Franchement, je n'ai jamais utilisé de "variable partagée réseau" ...  
    mais ... "la théorie étant toujours la théorie" ... ceci ne pourrait-il pas convenir ?
    Si la valeur de la "variable réseau" est différente de sa valeur précédente,
    alors un "User Event" est généré et "code" est exécuté ... ce, avec un échantillonnage toutes les 50ms
    (peut-être penser à initialiser le shift-registre avec la valeur d'entrée de "variable réseau")
    (le laisse la main à d'autres pour confirmer ou infirmer la validité de ce code ...dans le cas particulier d'une variable réseau)
    Pièces jointes :
    toto.vi ‏14 KB

  • How to read shared variables inside event structure ?

    Hi,
    I have a problem that my shared variables do not update inside event structure. The program(s) I am trying to get working is seen in the attached screenshot. It works as follows:
    0. I start the vi that is unsquared.
    1. I write a string to a shared variable using vi in red square. I make sure that its updated using write-wait-read.
    2. I run the other vi (blue square), this changes the boolean shared variable.
    The unsquared vi has been running the whole time, it has event structure bind to boolean shared variable change (the one in blue vi). After I have runned the blue vi, the unsquared vi should change the indicator values to match the ones in red vi. However I have to start the blue vi multiple times to get it to change, sometimes even 6 times.
    Also, when I change the value in red vi to a third value and start blue vi multiple times, the unsquared vi shows all the variables. I.e. I put "cat" to red then start red, put "mouse" to red then start red,... and then start clicking blue... Unsqured shows cat, mouse,..., dog (dog is the default).
    How can I force the shared variable to update inside event sructure. I want the current value of the variable, not some historical values.
    Attachments:
    Screenshot-5.png ‏108 KB

    Found the buffering... disabling it solved the problem... thanks.
    FYI, there is another solution that I just found out... attached. Adding timeout to the event structure and the variable read outside the event structure... This makes the shared variable strings (one that is read outside and the otherone that is read inside) different.
    Could someone explain why the variables are in different state even if they are used in the same place and looped with 10ms intervals?
    Juha
    Attachments:
    Screenshot-6.png ‏110 KB

  • Variable Substitution  need to define pay load for the following structure

    Hi All
    Please help me for defining the pay load for the following structure for the Variable Substitution 
    for genearing the file dynamically fro the payload
    Target structure is like this
    MT_RFQ_IND_IDOC_MYSPACE_TARGET............> my message type
        <HEADER>
              < FileName>
              <INDI>
              <RFQNO>
              <DOCUTYPE>
       < ITEM>
              <FEILD1>
             <FEILD2>
             <FEILD2>
    please help me
    thanking you
    Sridhar

    Hi,
    should this var1 given in any data type of my IR - No
    in variable substitution, in value give the complete thing which i said above in italics i.e. payload:MT_RFQ_IND_IDOC_FILE_TARGET,1,hEADER,1,FileName,1
    which user you used for CPACache refresh - it can only be done by XIDIRUSER.
    Regards,
    Rajeev Gupta
    Edited by: RAJEEV GUPTA on Feb 6, 2009 7:34 AM
    Edited by: RAJEEV GUPTA on Feb 6, 2009 7:35 AM

  • Formula variable in structures

    Hi,
    My report displays material wise (With Hierachy) actual ,budget,LE Quantities in YTD, QTD.(  I used Structures.)
    I am using 2 formula variables  to derive no of working days in month, no of working days gone based on the given input selection variable date(sy-date). formula to find % month gone (i.e no of working days gone/no of working days in month *100)
    I used the variable exit code and derived properly ,It is coming fine.But  I have to display this values only once in the report.
    If I use one more structure actual selection variable is itself is not coming when i execute the report.
    Could you please suggest in this issue.
    Thanks ,
    Joseph

    Hi,
    Please read the following:
    BEx Query Designer: Creating formula variables
    You have loaded data into your InfoProvider. To be able to use sign reversal in reporting, you have to define a formula variable in the query definition:
           1.      You are in the Query Designer. Under Key Figures, use the context menu to choose New Formula. The Formula Builder opens.
           2.      Under Formula Variables, choose New Variable from the context menu. The variables wizard appears.
           3.      Enter a name and a short text for the variable. Choose Replacement Path as the processing type.
           4.      Choose your hierarchy basic characteristic.
           5.      Choose Hierarchy Attribute as the replacement. The attribute Sign Reversal is automatically displayed.
           6.      Save your formula variable. When defining the formula variable, you get the factor 1 or –1, with which you can multiply the required key figure.
    Regards,
    Subha
    If you find it useful, pleae grant me points

  • How to view fault schema under variable structures in alsb

    We are not able to view the fault element in our alsb flow under body variable and when we get the error in test console the error comes in bea fault schema,but we want the error in our own defined fault schema.Pls. guide.
    Below are the steps we followed to create a wsdl.
    Steps:
    1. We created a webservice project in workspacestudio and generated a wsdl.
    2. Then we have added a fault element manually in that wsdl.
    3. Now we have generated a webservice from that modified wsdl.
    4. Again we have generated a wsdl from webservice created in step 3.
    5. step 4 wsdl is tested and running well on server.
    When we try to configure that service as Proxy/Business service in ALSB and view the XPATH Expression Editor, we are not able to view Fault element under variable structures under body variable as shown below.But when we see the design view of our running wsdl in workspace studio it shows the fault element.How to get the fault element in variable body so that we can view the error in our logs in our defined Fault schema instead of BEA fault schema.WDSL is enclosed as an attachment.
    Thanks in advance.

    Have you tried using the "Log" action in your pipeline proxy and log for $body and $fault. This will defin return the $body and $fault if these were parsed correctly

  • In a RT motion and data system, what is the best variable handling structure(s)?

    I built a system that applies motion control to two axes and also takes data from a third axis encoder. 
    The program structure is parallel timed loops (one motion control loop, one data collection loop, one host communication loop) with front panel.
    This is targeted to a RT target; there is no host program.
    Now I am using global variables to pass information between the loops and for exchanging information with the front panel indicators and controls.  I think this is a suboptimal solution.  I am considering the following changes:
    1) For communicating variable values (such as commanded velocity and position) to the motion loop, I will replace the global variable structures with onboard variables in the motion card memory.
    2) For saving the data collected from the third axis, I will use an RT-FIFO structure in the RT controller memory.
    3) I will eliminate the front panel from the RT program and create a separate user interface program targeted to the host PC.  Communication between these programs will be accomplished using the Simple TCP/IP Messaging Protocol as described in this document:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/0986799C984500F886256F170079411E
    Global variables will be replaced with Motion onboard variables.
    Before I start this chore, am I following the best practice?  Any advice on improving any aspect of this plan?
    My System:
    Windows XP on P4 PC ethernet to
    PXI-8187 RT Controller
    PXI-7350 Motion Control board
    (2) servo axes with quadrature feedback
    (1) additional quadrature encoder used as measuring probe
    I do not have a DAQ card in this system.
    Thank you!
    Laine

    Thanks Kristi.  I understand your recommendation.
    Some of my variable instances are 4 or 5 SubVIs deep.  For instance, the main high priority loop calls MOVE.vi which calls CALC_ANGLE.vi, which calls CALC_MOVETIME.vi which calls CALC_VELOCITY.vi which uses the variable Initial_velocity.  If Initial_velocity is received from the host in the main program, passed to the high-priority loop using an RTFIFO, then bundled and kept in a shift register, what is the best way to get that information down where I need it?
    Not only will I have to redeclare the RT-FIFO in each subVI, but I will also need to pass the reference value cluster down the chain as well?  This sounds messy and computationally expensive to me.  So my choices might be
    1) Eliminate subVIs and bring everything to the top.  This is a rather large program, so could make quite an extensive top vi if all code is in one place.
    2) Use onboard variables to store and pass values.  Are these less deterministic than RTFIFOs?  What is their primary purpose if not to pass data, or are they just to be used with motion card onboard programming?
    3) Use global variables, but I think these are not deterministic.
    4) Bite the bullet and pass the variable cluster down through the SubVI chain.  Is there an easier way to do this than what I describe above?
    Have I made any bad assumptions or overcomplications?
    Thanks.
    Laine

  • How to find out, if a dynamic genereated structure already exists in DDIC?

    Good morning developers,
    can you help me with that above mentioned problem?
    I'm about to write a report which manages to change tablecontrol(s) to alvgrids.
    My current problem is, that i read all fields of a tablecontrol and generate its <b>structure</b> dynamically ( temporary just during runtime of the report, not stored yet ).
    Now I have to know, if this generated structure already exists in the DDIC, or not.
    If not, i have to create a type of my generated structure and store it in the DDiC.
    I know that there s a FM called <b>"COMPARE_STRUCTURE_DATA"</b>.
    But i think i have to know the name of the existing structure in DDiC.
    Is there also a way for a recursive search in ddic?
    If not:  when i read the fields of my tablecontrol from the DDiC, i read from ddic-table D021S. In its field "FNAM" it contains for example SFLIGHT-carrid ( <table><column> ).
    I could split 'FNAM' into table and column. How do i search for the structuretype of a table?
    Thx for your replys, post points waiting
    Regards
    Basti

    Hello Bastian
    All dynpro fields (including table controls) are either based on DDIC structures of program variables. Thus, the following coding will return you the required answer.
    *& Report  ZUS_SDN_RTTI_IS_DDICTYPE
    REPORT  zus_sdn_rtti_is_ddictype.
    TYPE-POOLS: abap.
    TYPES: BEGIN OF ty_s_line.
    TYPES:   field(3)  TYPE n.
    TYPES:   flag(1)   TYPE c.
    " INCLUDE TYPE knb1.
    TYPES: END OF ty_s_line.
    TYPES: ty_t_line    TYPE STANDARD TABLE OF ty_s_line
                        WITH DEFAULT KEY.
    DATA:
      gs_line    TYPE ty_s_line,
      gs_knb1    TYPE knb1,
      go_tabdescr      TYPE REF TO cl_abap_tabledescr,
      go_strucdescr    TYPE REF TO cl_abap_structdescr.
    START-OF-SELECTION.
      go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_line ).
      IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
        WRITE: / 'gs_line is a DDIC type'.
      ELSE.
        WRITE: / 'gs_line is not a DDIC type'.
      ENDIF.
      SKIP.
      go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_knb1 ).
      IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
        WRITE: / 'gs_knb1 is a DDIC type'.
      ELSE.
        WRITE: / 'gs_knb1 is not a DDIC type'.
      ENDIF.
    END-OF-SELECTION.
    However, if a dynpro field is based on a type defined within the program the situation may be more complex if the type includes DDIC structures (as shown above). But I am sure you will master this obstacle.
    Regards
      Uwe

  • Is there a way to create a structure or a local class inside of another?

    In VB you can create a private type I believe in C++ it's called a struct I was wondering is there a way with Java to create a local class or structure to store variables in a group inside of another class. I'd rather have them in an structure for readability.

    you can do something like this.
    public class MyStruct {
    public String name;
    public int number;
    public double value;
    public class Test {
    private MyStruct struct = new MyStruct();
    private void setValue() {
    struct.name = "my name";
    struct.number = 1;
    struct.value = 20.0;
    public void setStruct(MyStruct newStruct)
    struct = newStruct;
    };

  • Variable offset not working

    Hello Experts -
    I have a structure and a variable with single-value entry. The variable is on 0CALMONTH.
    If user input 06/2007, I wanted to see information for 06/2007, 05/2007, 04/2007. I'm using a variable offset. But my report output is always for 06/2007. I have data for 05/2007 and 04/2007 also.
    In the column header, it shows 04/2007, 05/2007 and 06/2007 but there's not data.
    Can someone please help me with this? What am I doing wrong?

    If you can see the offset result in header then it will surely work for data also.
    If u have a key figure amount.
    Then you need to restrict this figure for user inputed months variable - offset.  i.e different restricted figures for different months.
    I hope this is clear to you, if not then do let me know.
    Thanks
    Dipika

  • Using a dot "." in defining/scoping variables

    I've always felt it was a best practice to scope EVERY CF
    variable and still do. However, a new co-worker to me feels that
    using a DOT in variable names could cause problems. I completely
    disagree but would like others opinions. To me scoping variables is
    absolutely a best practice.
    She specifically referred to the article below but to me the
    point of this article was about using "primitive" variables such
    as: "var1.var2.var3".
    http://www.coldfusionmuse.com/index.cfm/2006/3/14/dot.operator
    Looking forward to others opinion especially seasoned CF
    folks from Adobe.

    NUHuskers65 wrote:
    > I've always felt it was a best practice to scope EVERY
    CF variable and still
    > do. However, a new co-worker to me feels that using a
    DOT in variable names
    > could cause problems. I completely disagree but would
    like others opinions.
    > To me scoping variables is absolutely a best practice.
    >
    I think this co-worker misunderstood the point of that
    article as
    surmised in its last paragraph, and I quote:
    "The solution is to avoid using dotted notation for primitive
    variables.
    Only use dotted notation for variable naming when you intend
    to create a
    structure."
    All variable scopes in modern, aka MX, aka Java Based,
    ColdFusion are
    structures. You use the dot [.] character to specify the keys
    of
    structures. So you are doing what you are supposed to do.
    This article refers to older versions of ColdFusion where all
    the
    variable scopes where *not* structures and you could get away
    with dots
    in your primitive, i.e. non-structure, variable names. It
    also tells
    how one can still do this by using array notation.
    This is a bad practice and should be avoided for the very
    reason that in
    modern ColdFusion, dots are meant to be interpreted as
    structures. It
    does not say to not even use dots for these structures where
    they are
    meant to be used.

  • Always hided elements in structure (SAP BW query) are "activated" in WebI

    Hello WebI-experts
    We have an interesting challenge to get resolved, hopefully you can help us.
    As datasource we use a SAP query with two structures.
    One structure contains a variable (variable 0CMONTH of character 0CALMONTH) which is only relevant for the initial prompt, e.g.: 03.2010.
    This prompting variable itself has the property of "Always Hide" under Display setting.
    All the other elements of this structure have the setting "Always Show".
    The Universe on this SAP BW query already shows NOT the elements of this structure. It "only" shows the structure itself as dimension (icon).
    When designing a WebI query and executing it the result is:
    Showing the values for all the elements with property setting "Always Show" AND wrongly also the only one with "Always Hide". It is required to exclude the "Always Hide" element of the structure from the reporting view.
    Questions:
    1.) Are there any means to show the elements of the SAP BW query structure in the universe and therefore also in the WebI query? If there are no means....then question 2.
    2.) How can we exclude the "Always Hide" element of the structure from the reporting view?
    Thanks for any advise.
    Chäsitzer

    Hi
    I have altered the SAP BW query in the following manner:
    The "always hided" element in the structure of the query has been erased.
    The current structure only consists of 0CALMONTH variables, 0CMONTH, which itself are off-set ones, e.g.
    STRUCTURE in the query: (consists of 12 months)
    current month (variable 0CMONTH)
    current month -1  (variable 0CMONTH, off-set -1)
    current month -2  (variable 0CMONTH, off-set -2)
    current month -3  (variable 0CMONTH, off-set -3)
    current month -4  (variable 0CMONTH, off-set -4)
    current month -5  (variable 0CMONTH, off-set -5)
    current month -6  (variable 0CMONTH, off-set -6)
    current month -7  (variable 0CMONTH, off-set -7)
    current month -8  (variable 0CMONTH, off-set -8)
    current month -9  (variable 0CMONTH, off-set -9)
    current month -10  (variable 0CMONTH, off-set -10)
    current month -11  (variable 0CMONTH, off-set -11)
    The universe itself consists "only" of this structure, the 12 months off-set variables are not displayed respective editable.
    How can we display the exact 0CALMONTH variable values, counting down from the current month, in our WebI report, e.g.:
    Rows of WebI report SHOULD show:
    Nov 2010
    Oct 2010
    Sep 2010
    Aug 2010
    Jul 2010
    Jun 2010
    May 2010
    Apr 2010
    Mar 2010
    Feb 2010
    Jan 2010
    Dec 2009
    Thanks for your help.
    Chäsitzer
    Edited by: Chäsitzer on Nov 5, 2010 3:41 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:42 PM
    Edited by: Chäsitzer on Nov 5, 2010 3:43 PM

  • Generic reporting on SQL variables using sqlgls() /Pro*C

    Generic reporting on host/SQL variables using sqlgls()
    I use sqlgls() in Pro*C 8.1.7 to get the last SQL statement that was parsed.
    It returns something like this.
    "select distinct QTY ,CHAPTER into :b0:b1,:b2:b3 from PT ,PU ,UIN U ,EU where (PART=:b4 and PU.PART=:b5) ....."
    I would like to see what the values are for each input variable e.g :b4 and :b5
    Is there any generic way of reporting what these values are rather than explicity writing code for each individual SQL statement?
    Is there a Pro*C method that gets the values of :b4 and :b5??
    We are recording the last SQL statement to a text file but cannot see what the values are that caused the SQL query to fail.
    Please contact me at [email protected]

    My answer is only for 1. problem (about ORA-01458)
    I think that you use declaration for cursor C0 with a varchar
    variable before you ininitialize length (member .len of varchar
    structure) of this variable.
    It's famous that many errors come from uninitialized varchar
    variables in Pro*C.

  • Question about shared variables and report generator

    I have a project with about 200-250 shared variables and at every 12 hours i want to make a report containing information about some boolean and double front panel variables linked to the shared variables... Now, i've tried with both the "Write Trace to SpreadSheet File" function from DSC->History and with different functions from NI Report Generation Toolkit. My problem is this: i would like to get my xls file to contain just the timestamps when my shared variable changed value. As it is, the number of rows in the file depends, obviously, on the sampling interval given as input. As an example, in 12 hours, my shared variable would change value maybe 5-6 times. Thus i would like my xls file to contain just 5-6 rows with those 5-6 changes. If i set the sampling interval to say, a matter of seconds, that would mean too much unneeded information in my xls file. Instead, if i set it to let's say 15 minutes, i would probably lose the moment the shared variable changed value. Is there a way for me to achieve my desired functionality with functions from DSC or Report Generation Toolkit? Thanks in advance, Sabin 

    Hi Mike and thanks for the reply. Actually, my first idea was exactly this: in an event case structure, whenever my variable changed value, i would retain the relevant data in an array and then at the 12 hour period write all of it in a report. However, my boss deeemed it memory unefficient and compelled me to use only one function. Thus my predicament... If you have more advice on this new info, i would be grateful... Cheers, sabin

  • RTTS - Dynamic Structure/Type Generation

    Hi,
    my apologies if this question has been asked before and in the wrong forum.
    Is it possible to dynamically create a structure/type of variable length without using a fixed type? e.g. I want to create a structure with 4 'fixed' fields followed by a number of variable entries dependent upon an external source. I would normally do something like ..
    types : begin of ty_data,
                  matnr         type matnr,
                  werks         type werks,
                  lifnr             type lifnr,
                  menge_01  type menge_d,
                  menge_02  type menge_d,
              end of ty_data.
    data : it_data    type sorted table of ty_data with unique key  ...
    I want to define he whole structure dynamically at runtime.
    Could someone point me to a blog/bar/exit or better still give me an answer?
    Thanks in advance

    Hello Terry
    Of course you can create all kinds of structures / table types dynamically, e.g.:
    [Creating Flat and Complex Internal Tables Dynamically using RTTI|https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI]
    Your external source must provide you with the meta-data about the structure. This you can use as input for RTTI in order to create your dynamic data objects.
    Regards
      Uwe

Maybe you are looking for

  • Saving new events

    After half a year of trouble free using iphoto, new events are not stored when i close iphoto. It may be a coincidence, but this trouble started when i tried to shate the library with other accounts. But the trouble remains after is stopped this. Can

  • Possible bug in Edge (for strange users ;-)

    I created a slideContainer object on the stage by creating a rectangle, sizing it to the stage size and use it to load other symbols into. Given my flash experience, I created the symbol, then went in and deleted the rectangle thinking I'd leave the

  • Error Code 1000- Help please-- newborn photos at stake!

    I downloaded the Shutterfly plug-in and then iphoto never opened again. Shutterfly helped me erase the plug-in and now claims any error is with iphoto... All I get is "error code 1000". Can anyone help me save the pictures of my newborn that I haven'

  • Zone's vm+rss usage

    I have two limits set, one for swap and one for rss in a Solaris u4 zone. How do the applications behave in this environment? If I have 128mb capped-memory (rss) set, and I set swap to 256mb. Do the applications start eating swap once the 128mb gets

  • RTP  and RTSP

    I have 2 question want to ask: 1)Is RTP and RTSP can pass through firewall? Or can you tell me which TCP port no. be used for RTP and RTSP protocol? 2)Also,Is this possible to transfer video data thro' http protocol?