Calculation of relative position from dynamic data

I have developed this code for plotting the voltage from the PSD(Position Sensitive detector) in terms of position in LabVIEW. It gives me the exact map of the position of the LASER beam on the PSD, on the graph in LabVIEW.
Now what I need to do is calculate out the relative displacement between two positions of the spot. Suppose at time t1 the position is at A(x1,y1) and then at time t2 it moves to B(x2,y2). I know the mathematical formula for the displacement from A to B.
But my problem is how do I get the values of (x2,y2) and the previous position value of (x1,y1) dynamically. I need to do this continously al long as the experiment gos on and then also save it.
Thank You for the help.
Attachments:
Untitled_3.vi ‏344 KB

Burhanuddin wrote:
Thank You for the reply Sir, but the problem is how do i compare the values of x,y. I am not able to extract the vales from the graph/array for 2 consequtive times.
After you use the 'Split signal' function, right after your 'DAQ Assistant', you should have a signal of X values, and one of Y values.
Convert each of these signals to type DBL. They should now be 1D arrays of type DBL.
Then, you can do the following, since For Loops auto-index:
Edit: In my example, I switched the X and Y inputs ,
however, in this circumstance, it doesnt matter for the formula used.
Either way, in your VI you could correct that if you want.
Message Edited by Cory K on 03-27-2009 11:56 AM
Cory K
Attachments:
XY arrays.PNG ‏9 KB

Similar Messages

  • Time stamp from dynamic data

    I trying to write dynamic data to a file using Express VI (Write LabView Measurement file). The dynamic data comes straight from a simulated Signal Express VI. The signal part of the dynamic data is written correctly but the time stamp is what appears to be float counting the seconds since the Write LabView Measurement file Express VI was started.
    I have configured the Simulate Signal VI Time stamp to absolute data and time option.
    This should be dead simple but it just do not work!
    Any suggestion to what I might do wrong?
    I do expect that the time stamp would be written as two columns one for date and one for time.
    Thanks,
    Soren T. Jensen

    The timestamp is written in the header of the file. The time and date entered there is the time and date that you are looking for. The timestamp written next to each piece of data is indead a relative value. It is the delta from the timestamp in the header to the time that datum was collected (created). The reason for this is that timestamps are quite large in bytes, especially if you break out the time and date in strings. Just stamping the header and providing the offsets is much more efficient.
    If you choose to not provide a header, I think that the timestamp will be lost entirely. I think that this is probably wrong, but I am uunsure what should be done to correct it.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Relative Position from RIGHT edge

    Hi
    Is it possible to set the relative position of a table from the RIGHT edge of an element?
    I have 2 tables in my report, and want to ensure there is always a nice gap between the 2 tables. Problem is, the width of the 1st table is not fixed if I allow some of the columns to have AUTOWIDTH on.
    In theory, I can set the 1st table to be a set width, but this would potentially mean a lot of white space when the data doesn't completely fill the cell. If I had it fixed width, then the positioning of the 2nd table is not problem.
    In the dropdowns for relative position, I only see TOP and LEFT edge as an option.
    Alternately, I need to be able to enter a variable as the offset, and have that variable work out the width of table 1.
    Any ideas?
    Cheers,
    Andrew

    Now you just went and made me look really really stupid
    My "problem" was that I was always selecting the "From The" setting first, and then the reference block. When I first open that dropdown, I only see Top or Left as options. Once I selected Block1, then Right magically appeared and does exactly what I wanted.
    I can't believe I never saw this <hangs head in shame>.
    Cheers,
    Andrew

  • Calculating fractions of hours from time date range

    Hello friends,
    I'm using sql server 2008 r2 and I have a table called attendance with the following fields
    attendance_no    int
    attendance_date    date
    attendance_timein    time(7)
    attendance_timeout    time(7)
    emp_id    int   
    and another table called employee with the following fields
    emp_id int
    emp_name  varchar(50)
    emp_tel  varchar(50)
    I need to calculate the total minutes worked as well as total hours worked for each employee with in a specified date range and I created the below query which working fine but it is not calculating the  fractions of hours, I mean when an employee works
    for example 7 and half hours, its showing just 7 hours instead of 7.5 hours.
    SELECT a.attendance_date As 'Date',e.emp_id As 'ID',e.emp_name As 'Name',e.emp_tel As 'Telephone',left(a.attendance_timein,8)[Time in],left(a.attendance_timeout,8)[Time out],
       + CAST(DATEDIFF(second, attendance_timein, attendance_timeout) / 60 AS NVARCHAR(50)) As 'Total minutes',
       CAST(DATEDIFF(second,attendance_timein,attendance_timeout) / 60 /60 % 60 AS NVARCHAR(50)) As 'Total hours'
        from attendance a join employee e on e.emp_id=a.emp_id and a.attendance_date between '2014-11-06' and '2014-11-08'  and e.emp_tel='65098009'
    I would appreciate any help about this.
    Thanks in advance
    Mohamoud

    If I understand correctly, according to
    Mohamoud's data sample, there is already Total minutes in the input (the above
    table Mohamoud posted)
    and all he need is a simple convert to decimal and the divided by 60.
    select [Total minutes] / 60.c
    Mohamoud,
    is that correct?
    The result show that you might need some rounding. for example 31/60 is 0.516666 while you show us 0.5
    Please clarify if you need rounding and how many characters after the dot you need (this can be done using declaring decimal(x,y), converting, or multipla and using floor function, etc')
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Site refreshed from dynamic data.

    I have a site stubb out that has multiple accordian canvases
    each containing a tree. In my header area I have a combo box that
    give you a list of clients. When you select a new client, I want to
    reload all the trees in each accordian cavas with that clients
    data.
    I have played around and am able to do this setting a click
    event on buttons that will call the send method on my HTTPService
    object, and it appears to work, but I dont have a lot of control
    over the data, and my implementation is pretty "clunky".... I am
    looking for high level suggestions as to a best practice to
    dynamically load data via http calls and refresh page data.
    I am not very well versed in Actionscript, but am wondering
    if I should be building a majority of the site through actionscript
    objects instead of mxml. This will be a much bigger learning curve
    for me, but I am assuming it will give me a much more flexible
    site.
    Please let me know if you have any comments or resources that
    describe what I am trying to do... Thanks, Mike

    hi
    Working with flex involves learning at least 2 languages, the
    flex language both mxml and actionscript and usint it in a
    combination, but to have a dynamic site you also need to know a
    backend language like C# or VB.NEt, PHP , also is useful to know a
    little about Databases, because if you want a dynamic site it will
    involve data for sure and where do youget data from? A database.
    You will build much of your site in actionscript that is a certain,
    because mxml is very good but itself is not sufficent to do
    everything you want.

  • Calculations for 6 months from todays date

    Need to calculate the total of all the months starting from today's date for the next 6 months from the current date.
    For ex
    Month              Total
    01.07.2008         10
    01.08.2008         20     
    01.09.2008         50          
    01.10.2008         72
    01.11.2008         85
    01.12.2008         15
    Please advice how to work on this.
    Can we use ranges?
    Thanks in advance.

    Hi dolly,
    Ref this code.....
    TYPE-POOLS  :
                  slis.
    TABLES      :
                  pernr.
    INFOTYPES   :
                  0000,
                  0001,
                  0002.
    TYPES       :
                  BEGIN OF t_final,
                    srlno  TYPE i,                "Serial No
                    pernr  TYPE p0000-pernr,      "Employee No
                    vorna  TYPE p0002-vorna,      "First Name
                    nachn  TYPE p0002-nachn,      "Last Name
                    btrtl  TYPE p0001-btrtl,      "PERSONAL SUB AREA / SEGMENT
                    btext  TYPE t001p-btext,      " SEGMENT DESC
                    begda  TYPE p0000-begda,      " JOINING DATE
                    pdate  TYPE p0000-begda,      " Probation period date.
                  END OF t_final,
                  BEGIN OF t_t001p,
                    btrtl TYPE t001p-btrtl,
                    btext TYPE t001p-btext,
                  END OF t_t001p.
    DATA        :
                  v_year(4) TYPE n,
                  v_year1 TYPE i,
                  count   TYPE i,
                  v_mont(2) TYPE n,
                  v_dt(2) TYPE n,
                  v_date(8),
                  it_final TYPE STANDARD TABLE OF t_final,
                  it_temp  TYPE STANDARD TABLE OF t_final,
                  it_t001p TYPE STANDARD TABLE OF t_t001p,
                  wa_t001p TYPE t_t001p,
                  wa_temp  TYPE t_final,
                  wa_final TYPE t_final.
    ALV Grid Declarations                                               *
    DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
           wa_fieldcat LIKE LINE OF it_fieldcat,
           wa_layout TYPE slis_layout_alv,
           it_sortcat TYPE slis_t_sortinfo_alv,
           wa_sortcat LIKE LINE OF it_sortcat.
    START-OF-SELECTION.
      PERFORM fill_itabs.
    GET pernr.
      rp-provide-from-frst p0000 space '18000101' '99991231'.
      IF pnp-sw-found = 1.
        IF p0000-stat2 = 3.    " Checking for status.
          MOVE  :
                p0000-begda TO wa_temp-begda,
                p0000-pernr TO wa_temp-pernr.
          rp-provide-from-last p0001 space pnpbegda pnpendda.
          IF pnp-sw-found = 1.
            MOVE  :
                    p0001-btrtl TO wa_temp-btrtl.
            CLEAR : wa_t001p.
            READ TABLE it_t001p INTO wa_t001p WITH KEY btrtl = wa_temp-btrtl.
            IF sy-subrc = 0.
              MOVE : wa_t001p-btext TO wa_temp-btext.
            ENDIF.
          ENDIF.
          rp-provide-from-last p0001 space pnpbegda pnpendda.
          IF pnp-sw-found = 1.
            MOVE  :
                    p0002-vorna TO wa_temp-vorna,
                    p0002-nachn TO wa_temp-nachn.
          ENDIF.
          APPEND wa_temp TO it_temp.
          CLEAR : wa_temp.
        ENDIF.  "if p0000-stat2 = 3.
      ENDIF.  "if pn-sw-found = 1.
    END-OF-SELECTION.
      PERFORM process_data.
      PERFORM build_catalog.
      PERFORM display_data.
    *&      Form  PROCESS_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM process_data .
      LOOP AT it_temp INTO wa_temp.
        IF wa_temp-begda+4(2) >  6.
          v_year = wa_temp-begda(4) + 1.
          v_mont = wa_temp-begda+4(2) + 6.
          v_dt   = wa_temp-begda+6(2).
          IF WA_TEMP-BEGDA+4(2) = '08'.
            IF wa_temp-begda+6(2) = '29' OR
               wa_temp-begda+6(2) = '30' OR
               wa_temp-begda+6(2) = '31'.
              v_dt = '28'.
            ENDIF.
          ENDIF.
            IF v_mont > 12.
              v_mont = v_mont - 12.
              CONCATENATE v_year v_mont v_dt INTO v_date.
              MOVE : v_date TO wa_temp-pdate.
            ENDIF.
          ELSE.
            v_mont = wa_temp-begda+4(2) + 6.
            CONCATENATE wa_temp-begda(4) v_mont wa_temp-begda6(2) INTO v_date.
            wa_temp-pdate = v_date.
          ENDIF.
          MODIFY it_temp FROM wa_temp .
          CLEAR : v_date, v_year, v_mont.
        ENDLOOP.
        LOOP AT it_temp INTO wa_temp WHERE pdate BETWEEN pnpbegda AND pnpendda.
          MOVE : wa_temp-pernr TO wa_final-pernr,
                 wa_temp-vorna TO wa_final-vorna,
                 wa_temp-nachn TO wa_final-nachn,
                 wa_temp-begda TO wa_final-begda,
                 wa_temp-btrtl TO wa_final-btrtl,
                 wa_temp-btext TO wa_final-btext.
          CASE wa_temp-pdate+4(2).
            WHEN '04' OR '06' OR '09' OR '11'.
              IF wa_temp-pdate+6(2) > '30'.
                CONCATENATE wa_temp-pdate(4) wa_temp-pdate4(2) '30' INTO v_date.
                MOVE : v_date TO wa_final-pdate.
              ELSE.
                MOVE wa_temp-pdate TO wa_final-pdate.
              ENDIF.
            WHEN '02'.
              v_year1  = wa_temp-pdate+(4) MOD 4.
              IF v_year1 = 0 AND wa_temp-pdate+6(2) > '29'.
                CONCATENATE wa_temp-pdate(4) wa_temp-pdate4(2) '29' INTO v_date.
                MOVE : v_date TO wa_final-pdate.
              ELSEIF v_year1 NE 0 AND wa_temp-pdate+6(2) > '28'.
                CONCATENATE wa_temp-pdate(4) wa_temp-pdate4(2) '28' INTO v_date.
                MOVE : v_date TO wa_final-pdate.
              ELSE.
                MOVE wa_temp-pdate TO wa_final-pdate.
              ENDIF.
            WHEN OTHERS.
              MOVE wa_temp-pdate TO wa_final-pdate.
          ENDCASE.
          count = count + 1.
          MOVE : count TO wa_final-srlno.
          APPEND wa_final TO it_final.
          CLEAR : wa_final, v_year1 , v_date.
        ENDLOOP.
      ENDFORM.                    " PROCESS_DATA
    *&      Form  BUILD_CATALOG
    FORM build_catalog .
      DEFINE m_fieldcat.
        add 1 to wa_fieldcat-col_pos.
        wa_fieldcat-fieldname = &1.
        wa_fieldcat-tabname = 'IT_FINAL'.
        wa_fieldcat-seltext_m = &2.
        wa_fieldcat-outputlen = &3.
        append wa_fieldcat to it_fieldcat.
      END-OF-DEFINITION.
      m_fieldcat 'SRLNO' 'S No' '8' .
      m_fieldcat 'PERNR' 'Employee No' '15'.
      m_fieldcat 'VORNA' 'First Name' '15' .
      m_fieldcat 'NACHN' 'Last Name' '15' .
      m_fieldcat 'BTRTL' 'Segment' '15' .
      m_fieldcat 'BTEXT' 'Segment Desc' '15' .
      m_fieldcat 'BEGDA' 'Date of Joining' '15'.
      m_fieldcat 'PDATE' 'Probation End Date' '15' .
    ENDFORM.                    " BUILD_CATALOG
    *&      Form  DISPLAY_DATA
    FORM display_data .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
       is_layout = ls_layout
          it_fieldcat = it_fieldcat
       it_sort = it_sortcat
      TABLES
        t_outtab = it_final.
    ENDFORM.                    " DISPLAY_DATA
    *&      Form  FILL_ITABS
    FORM fill_itabs .
      SELECT btrtl
             btext
          FROM t001p
          INTO TABLE it_t001p.
    ENDFORM.                    " FILL_ITABS

  • Calculating Previous Month(s) From Current Date

    Greeting JavaScripting Gurus!
    I would like to ask for some assistance on Date Calculation.
    Here is my current scenario:
    The user inputs a date mm/dd/yyyy ("DateField")
    The powers that be over here are asking for the "DateField" to then calculate these items:
    "DateField" minus(-) 12 months = mm/yyyy ("12MonthsAgoDateField")
    "DateField" minus(-) 18months = mm/yyyy ("18MonthsAgoDateField")
    "DateField" minus(-) 36 months = mm/yyyy ("36MonthsAgoDateField")
    and so on...
    I've read some of the Date Calculation posts, but could no seem to find anything that fit this scenario.
    I freely confess my javascripting ability is very minor.
    I would greatly appreciate any help in scripting this.
    Thank you!

    Unfortunately the numbers of days in a month or year are not the same for all months or years, so the get and set date methods might not work. Fortunately there are the getMonth() and setFullYear() methods for getting or setting the month or year for a given date.
    For the "On Blur" action for the "DateField" you can use:
    function GetField(cName) {
    // get a field object with error catching;
    var oField = this.getField(cName);
    if(oField ==  null) app.alert("Error accessing field named: " + cName, 0, 0);
    return oField;
    } // end GetField function;
    function AddMonths(oDate, nMonths) {
    // add nMonths to oDate object;
    oDate.setMonth(oDate.getMonth() + nMonths);
    return oDate; // return adjusted date object;
    } // end AddMonths;
    function Scand(cFormat, cDate) {
    var oDate = util.scand(cDateFormat, event.value);
    if(oDate == null) app.alert("Error converting " + oDate.valueAsString + " with format: " + cDateFormat, 0, 0);
    return oDate;
    } // end Scand functon;
    var cDateFormat = "mm/dd/yyyy"; // format for date strings;
    // event value is the start date string;
    // 12 months ago;
    var o12MonthsAgo = GetField("12MothsAgoDateField")
    var oDate = Scand(cDateFormat, event.value);
    oDate = AddMonths(oDate, -12) // subtract 12 months;
    o12MonthsAgo.value = util.printd(cDateFormat,oDate);
    // 18 months ago;
    var o18MonthsAgo = GetField("18MothsAgoDateField")
    oDate = Scand(cDateFormat, event.value);
    oDate = AddMonths(oDate, -18) // subtract 18 months;
    o18MonthsAgo.value = util.printd(cDateFormat, oDate);
    // 36 months ago;
    var o36MonthsAgo = GetField("36MothsAgoDateField")
    oDate = Scand(cDateFormat, event.value);
    oDate = AddMonths(oDate, -36); // subtract 36 months;
    o36MonthsAgo.value = util.printd(cDateFormat, oDate);
    // and so on;
    Since getting a field object, converting a date string to a date object and adjusting the date object using the getMonth and setMonth methods are repeated several times I have used functions so the repeated code could be reused.

  • Extract data point from dynamic data based on time index

    My goal here is to find out what the frequency of pulses from object B is given an input to object A, and not only that, but what the frequency is at a particular moment in time.
    While in this example, the DAQ Assistant reads the data and will show it nicely on a time-indexed graph, the convoluted mess above is the only solution I have thus come up with to extract a specific item from that set of data. I was/am hoping there is a more elegant solution. However, I can confirm via other sources that the data from the DAQ Assistant is incorrect, possibly/probably because the DAQ units being used are on different chassis, using different counters (I've got to work with what I've got available) and won't cooperate in the same while loop.
    In this example, the data being read is correct, I cannot display the result on a graph (nothing shows up, but the autoscale of the Y axis seems to work), and the VI occasionally (but not always) ends on an Error -200474: Timeout (with the signal no longer being sent to object A, I don't expect any pulses from object B). I would like to have both the graph and the value (data point) at time index, like I was getting in example one, but the correct data, as I was getting in example two.
    Code for both examples is attached.
    Attachments:
    sample.vi ‏105 KB
    sample2.vi ‏106 KB

    In this example, the data being read is correct, I cannot display the result on a graph (nothing shows up, but the autoscale of the Y axis seems to work)
    Check out the acquisition mode of DAQ assistant,  Its configured to 1sample (on demand) which means that graph is plotting only 1 sample (only 1 data point) which you are unable to see.  Modify the settings to acquire greater samples so that a plot can be seen on the graph or use chart to plot the points which has history with it.
    The terminology "object A and B" that is used is not clear and what it is pointing to (while loop or the images itself).
    The second figure there is a data dependancy between 2nd while and 1st while loop.  Try using standard LabVIEW Design patterns
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • Time calculation from one date to some other date

    Hello,
    I want to time calcualtion from one date to other date period.
    for calculating total hr's from one date to other date.plz let me know the logic.
                           Date                      Time
    Eq:  1st date:   22.05.2008             01.10.00
          2nd date:   25.05.2008             12.10.00
    I want the total hrs from 22.05 to 25.05 like i need result as
    from 22 to 25 total hrs based on the time given.

    Hello,
    Instead of FM..We can achieve by the following program...
    REPORT YRT_TEST1.
    parameters : date1 like sy-datum,
    date2 like sy-datum.
    data: days(3) type n.
    data: years(10) type p decimals 3.
    start-of-selection.
    days = date2 - date1.
    years = days / 365.
    write: / days,
    years.
    Now Multiply 24  to days to get hours and the multiply with 60*60 to get the seconds
    ***************Reward points,if found useful

  • Create PDF from dynamic content link?

    How can I make a button [download PDF] wich creates a PDF
    from the content & the images of a dynamic posts..?
    Is there an extension to download which creates this more
    easy? I have the developer box.. is there something there?
    Thankx for any tips.

    Ullitasch wrote:
    > How can I make a button [download PDF] wich creates a
    PDF from the content &
    > the images of a dynamic posts..?
    > Is there an extension to download which creates this
    more easy? I have the
    > developer box.. is there something there?
    > Thankx for any tips.
    What server language are you using? I have used a server
    component
    called www.asppdf.com which is fairly expensive, but can
    create PDFs on
    the fly from dynamic data. Its comlex, but worth the effort.
    There are other solutions for PHP and CF, but no extensions,
    so will
    need some serious coding.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html
    How To Report A Bug To Adobe
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Convert "1D array of dynamic data" to "Dynamic data" after auto-indexing with loop

    Hi -
    I have a question about how exaclty auto-indexing works with the Dynamic Data type when exiting a while loop. I'd like to use the DAQ assistant to record data through an analog input (on the MyDAQ) and then replay that data through an analog output. This works fine if I use the DAQ Assistant to record data for a set amount of time:
    However, I run into trouble when I try to use a While loop with a stop button to record data for an arbitrary amount of time. I set the dynamic data tunnel out of the While loop to "Indexing", but then when it exits the loop, it becomes "1-D Array of Dynamic Data" instead of just "Dynamic Data", and get a broken wire when I try to connect it to the input of the DAQ Assistant. I've also tried converting the dynamic data to Array and Waveform data types inside the loop, but have the same issue (they become 2D Array and 2D Array of Waveform respectively when leaving the loop). Try as I might using blocks like Convert to/from Dynamic Data Type, or Array Subset, I'm unable to get them back down to just Dynamic Data or Waveform, which will be accepted by the DAQ Assistant:
    One other small note - I'm not sure if using the "Build Array" function with a shift register accomplishes exactly the same thing as just auto-indexing an array out of the loop - so I've tried both, but still have the broken wire issue.
    I'm assuming this is just a simple issue of using the right block to convert "1D Array of [Something]" to just plain [Something]. Any help appreciated.
    Attachments:
    PWM_FlatSequence.vi ‏101 KB
    PWM_FlatSequence_While.vi ‏129 KB

    I have been facing problem for all temperature values placing the Write to Measurement File outside the Loop. 
    In Error message it says" Source: 1D array of dynamic data and Sink: Dynamic data".
    Is there any means of convering 1D array of dynamic data to dynamic data?
    I would highly appreciate any help.
    Attachments:
    Temperature Logger.vi ‏110 KB

  • Attaching a Cluster of 2 elements data type to dynamic data type wire.

    Hey Folks,
    How do I attach a cluster of 2 elements data type of wire with a Dynamic data type wire?
    Or a Build XY Graph to a curve fitting2.
    Thanks for the help.
    Ty

    Hi Ty,
    Try to use the "Express-VI Curve Fitting" which is at: Functions-> Signal Analysis -> Curve Fit.
    You have to put this VI before the "Build XY Graph".
    Otherwise, u can convert the siganls types by using the "Convert from Dynamic Data"
    which is at : Functions-> Signal Mamipulation -> Convert from Dynamic Data.
    Hope it Helps....
    The Bush-Man

  • Compare scalar value to dynamic data

    I am trying to compare a scalar number input in the front panel to a dynamic data set(from DAQ) and return a boolean true if the condition is met. How can I compare one value to each data point in the acquisition data set?

    You can use the Convert From Dynamic Data and convert to a 1D array. The comparsion functions work with an array as one input and a scalar as another. The output is a Boolean array - the results of each element in the array to the scalar. I think you can also use the Comparison Express VI but I have seldom used any of the Express functions so I'm not sure about that.

  • How to use Dynamic date calculation in some transactions.

    Hello everyone.
    I have to create some dynamic variants using the dynamic date calculation. The problem is that in some transactions it´s not possible to use some variables that can round a value. For example: in transaction /SAPAPO/MC90, I need to fix 3 months in the horizon like this: From date: 01.01.2009  To date 31.03.2009. The current month is 01.01.2009. Next month the current month will be february, so the horizon would be 01.02.2009 to 30.04.2009.
    In 5.1 version, it´s impossible to fix the months, because the options that appear in the match code are:
    Current Date
    Current date +/- ??? days
    current date +/- ??? work days
    First day of current month
    nth working day of current month
    First day of next month
    First day of previous month
    Last day of previous month
    Last Day of the Current Month
    Does anybody knows how to do this? This is happening in other transactions to.
    Thanks a lot
    Regards
    Angela

    I am not sure where you are looking for..but here is what I can do it in MC90 Tcode:
    1. when you try to save the variant, in the variant screen check the two boxes under "Current date" field for Selection Variables attributes "L"
    2. Then click on Selection variables option and click on the "D" variable so that it turns to green
    3. Drop down in the first current date field, select "Current +/- ??? days. here if you want to start from today's date maintain 0 days
    4. In the second Current date field maintain 90 days in "Current +/- ??? days.
    5. save it
    please let me know if I misunderstod the issue

  • Fiscal Calendar in Report Variant Dynamic Date Calculation

    We are switching from the standard calendar to a 4/4/5 calendar for our fiscal calendar. We have a number of batch reports that use dynamic date calculation in the variant to get Month-To-Date or Previous Month date ranges. Is there a way to convert these variants to use the new FiScal calendar instead of the regular calendar?

    thanks to answer , praveen.
    I know, VARI has name of FM , but not has Calendar ID.

Maybe you are looking for

  • HT4623 iPhone 4 not working after iOS 6.0.1 update

    I have just updated my phone to iOS 6.0.1, however after the phone updated, it no longer switches on and I just have a grey screen. When I try and plug the phone into iTunes, it does not recognise anything. Is this likely to be a problem due to the u

  • ColdFusion 9 suddenly won't consume Web Services...

    Ok, the weirdest problem has cropped up, and I'm hoping someone will have a solution... Suddenly none of the Web Services we're consuming will work from our production server... Our test-server, locally-hosted, will consume all these web-services jus

  • Work around for JSF lack of XHMTL standards

    Has anyone come up with a work around for the fact that JSF cannot produce XHTML documents? Anyone know why they went this route? Thanks, David

  • Image quality in ImageIO.write();

    Hello, Ive made a prog to convert a BufferedImage into a jpeg and write the jpeg to file: ImageIO.write(image, "jpg", file); does anyone know how i can specify the encoding quality? Thanks, Jim

  • Chart series lines going over each other

    All i have a chart with 3 series, how do i get it so that the lines are all separate, at the moment they go over each other and i can't see each of the three, i know that some of the values are the same, and some are near to each other, but how do i