Query offset value

Hi query experts,
in query properties there is an OFFSET value char is there?
wat is the use and function and application of OFFSET value?
could u explain with one example?

Hi,
Offset is used to define the time gap between the present time and time variable.
For Eg:Requirement is like i want to display the values for the current month and for previous month in 2 columns then,
If i enter calmonth 06.2010 for variable CALMNTH in query i want to show 2 columns -one with 06.2010 data(col1) and another with 07.2010 data(col2).
So in col1 i restrict 0calmonth with CALMNTH and for col2 i restrict with CALMNTH-1.to get CALMNTH-1 i right click on the variable CALMNTH and set offset as -1.
[Examples of Offset|http://blog.csdn.net/lvzhqi/archive/2008/05/05/2394168.aspx]
Hope this helps
Regards
Kp

Similar Messages

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

  • How to get the offset value in the Bex customer exit?

    Hello Friends,
    I have defined an offset on a variable in the query definition.
    I wish to capture this offset value  in the Bex variable customer exit .
    Does anyone how to get this??
    Thanks,
    Gautam

    I dont think you can capture the offset applied value in a exit as the value is dependent on the variable itself and nothing to capture the result after the offset has been applied.
    why dont you capture the variable value itself and apply the logic to do an offset in the customer exit?

  • How to change a Characteristic Offset value with a User Entry?

    I have the characteristic "Calendar Day" with the following restriction
    Between
    FROM:  "Current Calendar Day (SAP Exit ) - 60"
    TO:       Current Calendar Day (SAP Exit)
    60 is the Offset value, this will allows to displays current day and 60 days on the past.
    I want to make the offset value dynamic by using a variable that can be modified by the user, so if the user want to display a year then type 365.
    Here is an screenshot of the Query
    http://farm3.static.flickr.com/2173/2274553449_3c8d0d28a0_o.jpg

    Seems like I misunderstood you, I didn't think about making dynamic the offset value.
    The only way to acheive your requirment is to create a variable with user enter for 0CALDAY and when the user enter a specific date, you display only dates greater than those user entry date, but this case the user will enter a date instead of offset.
    Secondly, if you want the user to enter offset, then create a condition and condition variable in your query and depending on user entery, you display the results.
    hope, either one will work for you.
    thanks.
    Wond

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • How to retrieve query string value from the URL in my portlet

    Hi,
    When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
    My URL will look like this.
    http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
    Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
    Please help me regarding this.
    Thanks in advance.
    Thanks,
    sreekanth.

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

  • How to assign a query retrived value to a user defined  object in a table

    how to assign a query retrived value to a user defined  object in a table

    Rajeshwar,
    If you use the "Search" feature in this forum, you should be able to find helpful links to similar questions.  You could also look at the RecordSet and DoQuery documentation in the SAP Business One SDK Help Center documentation to assist you with your question.
    HTH,
    Eddy

  • Change Offset value of input node in APO order

    Dear experts,
    in order to accomodate overlapping scenario in APO I calculate and update offset value of input nodes of apo planned orders. To do so I use BADI /SAPAPO/RRP_SRC_EXIT method RRP_USEX_PLORD_CREATE. I activate the BADI using heuristic SAP_PP_021. it works fine for APO planned orders. However It is not possible to change production order nodes.
    I have tried using a heuristic (copy of SAP_PP_012) that uses Function Module /SAPAPO/RRP_LC_ORDER_MODIFY. However I can not change orders as I got a livecash error.
    I also tried /SAPAPO/RRP_LC_ORDER_CHANGE. In this case I did not have LC error but I still order offset value was not changed.
    do you have any idea on how to proceed? What I really want is a method to change input nodes of production orders in APO.
    Thank You,

    Hi Anup,
    In customer exit variable you will have to populate your 0FISCPER characterstics,
    You can populate it based on system date, use the FM DATE_TO_PERIOD_CONVERT and you will get current period based on your system date and Fiscal Year variant.
    After that you can just modify these values. and populate your 0FISCPER characteristics.
    If you have to do this calculations based on user input date then follow the same procedure but instead of system date you will have to pass the date entered by customer to this FM.
    Refer the following sample code snippet,
    IF i_step = 2.
          DATA:l_vy7(4) TYPE c,
               l_vm7(3) TYPE c.
          CLEAR: l_s_range,loc_var_range.
          LOOP AT  i_t_var_range    INTO  loc_var_range   WHERE  vnam = 'input var'.
            call the FM convert to period here and give user input date.
            l_vy7 = l_vy7 - 1.
            l_vm7 =  loc_var_range-low+4(3).
            CONCATENATE l_vy7 l_vm7 INTO loc_var_range-low.
            l_s_range-low      = loc_var_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'EQ'.
            APPEND l_s_range   TO   e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Regards,
    Durgesh.

  • BEx Query Analyzer Value Display of +/- Sign

    The KeyFigure values in the BEx Analyzer are being displayed as 512.740000000-  with a negative sign in the back. I tried to change the settings in Bex Query Designer -- Query Properties -- Value Display to "Before the Number -123.45" setting. It looks like it doesn't have any effect.
    Please let me know if I need to change the setting from the backend, we are on BI 7.0.
    Venkat

    It should work. Try to refresh the query if not come out of Bex and Relogin. This should fix

  • Offset values for fisc year /period

    Hi
    normally period values will be 16, and 4 is additional
    how can u use offset values if i need to use last 12 fiscyear/period?
    offset values are not working

    Hi,
    Here you need to define all your offset value's logic in the code itself, so that there is no need to provide your offset values to the variable.
    Hope this helps..
    Rgs,
    Ravikanth.I

  • Sys_refcursor not fetching any data although query returns value

    hi!!!
    I am using sys_refcursor to return columns,and using below procedure to do so.Although data is there in table_1 and table_2.
    PROCEDURE test_pro(abc_date N DATE,
    cur_get_data OUT sys_refcursor
    OPEN cur_get_data
    for
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    IF cur_get_data%rowcount=0
    then
         raise e_error;
    END if;
    EXCEPTION
         when e_error
         then
              ------no_data_found;
         when others
         then
    --------(giving SQL error with error code);
    END      test_pro;
    while running below sql in sql window of pl/sql developer fetching
    data
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    so can somebody please put some ideas what cud be the possible reason for this??

    Welcome to the forum!
    Unfortunatley you posted to the wrong forum. This question belongs in the SQL and PL/SQL forum.
    PL/SQL
    >
    sys_refcursor not fetching any data although query returns value
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    >
    A cursor doesn't fetch data - your code has to do that. The code you posted doesn't have any FETCH statements so no data will be fetched.
    There is no problem using 'IF cur_get_data%rowcount=0' but it will always be 0 in your code because you are not fetching any data.
    I'm guessing that you are trying to determine if there are any rows for the query. That isn't going to work since a cursor doesn't fetch rows.
    You just have to return the cursor to the caller and the caller will have to perform at least one fetch to see if there are any rows.
    If the above answers your question the just mark the question ANSWERED. Otherwise, since you have posted in the wrong forum
    1. repost the question in the SQL and PL/SQL forum
    2. Edit this post to add a link to the new thread in the other forum
    3. Mark this question ANSWERED so people will follow up in the other forum.
    Thanks.

  • How to query registry value?

    hi all,
    using which class or function that i can query the value in some specific registry key?
    thanks

    There's a preferences API that under Windows currently uses the registry, but it isn't able to get other trees' values (and is not guaranteed to keep using the registry - it well could change in future releases). If you want to have access to the complete registry (which I think you want), you should use either JNI or one of the implementations that circulate around the web (search for that).

  • Offset Value - ColorMatrixFilter

    Hello all,
    Please excuse me if this is the wrong part of the Flash forum to post in, or if I did not correctly follow to forum guidelines.
    I have searched for some time now for more information on the Offset Value from the ColorMatrixFilter.
    I'm writing a paper on 'Matrices within Image Manipulation', and I'm using Adobe Photoshop and Flash as my "base".
    I have read http://www.adobe.com/devnet/flash/articles/matrix_transformations_04.html this page, but I still have some questions,
    concerning what exactly this value does?
    I have no real knowledge about Flash, or any other Adobe Products for that matter, but  it's rather important I understand what I write down in my own paper!
    Thank you in advance for any replies!
    - Wesley

    the key part of the colormatrixfilter is:
    redResult = a[0] * srcR + a[1] * srcG + a[2] * srcB + a[3] * srcA + a[4]
    greenResult = a[5] * srcR + a[6] * srcG + a[7] * srcB + a[8] * srcA + a[9]
    blueResult = a[10] * srcR + a[11] * srcG + a[12] * srcB + a[13] * srcA + a[14]
    alphaResult = a[15] * srcR + a[16] * srcG + a[17] * srcB + a[18] * srcA + a[19]
    there are 4 lines of code that you need to understand.  each line can be considered independent of the other lines.  once you understand one line, you'll understand them all.
    the first line yields the red as a function of the starting r,g,b,a and the top row of the colormatrixfilter.   there's nothing more to understand about that first line.  the remaining lines are no different except they yield different end-colors and are a function of the same starting r,g,b,a and a different row of the colormatrixfilter.

  • Offset value

    HI,
    in the FM of BAPI_ISUPROFILE_UPLOAD if i want to pass +1.5 hours as the offset value  then how will i do? Sinse the field is of length char-3.Is there any NOTE regarding this.
    Edited by: saun_abap22 on Apr 1, 2011 8:39 AM

    Why do you want 1,5 hour offset in the BAPI?
    Do you want to have a day starting at 01:30:00 and ending 01:29:59?
    Just define your profile (in the profile header) with the correct day offset.
    Create a new profile with EEDM06 and define the day offset as 1,5 hour. Then upload your values with the BAPI using the offset there just for summer or winter.
    Alternatively you can also shift the values (from the source, eg. AMR system) so to reflect the period from 00:00:00 to 23:59:59.
    Then you won't need an offset in your profile header.
    Edited by: evolderen on Apr 4, 2011 1:19 PM

  • How to query a datetime field with a datetime offset value

    Hi Experts
    I have a problem where I want to query a date time field with a value with a date time offset, and convert the value to the stored timezone.
    The functionality I am after is that the user enters the value 30/08/2011 22:14:46 -4:00 and the report converts it into the timezone of the stored field and performs the query using the date time filter and the local equivilent of the date time entered.
    Has anyone had experience in date time offsets and OBIEE?
    suggestions appreciated.
    Cheers

    Hi,
    Use below one
    cast the timestampadd (sql_tsi_year, -1, timestampadd (sql_tsi_day, -1, current_timestamp)) to a date and see if it
    drops the current time stamp and makes it 00:00:00
    Thanks
    Deva

Maybe you are looking for

  • Photoshop Elements 4 - Editing

    I have had Photoshop Elements 4 for a number of years now, which I have used without problem.  However today I am unable to access editing.  It just comes up with "Attempt to access invalid address" and then it says "unable to connect to editor appli

  • Adobe Reader V 9.3.3 Update Available Today

    Since the fix for Adobe Reader and Adobe Acrobat are now available, what version is required to be installed to use this update? It would be so helpful to have a fix that could be installed over 9.3.0. Recent updates and fixes have required multiple

  • How to transfer songs from pc to Ipod?

    We finally got the pc to recognize the ipod after restarting the service and it will let us sync but it's puttting the songs she has on her ipod to my computer.  We just want to add one simple song ..why is this so difficult?  It took me an hour to g

  • Is their a way to turn on auto-capitalization of the first letter of every word??

    i want da first letter to be in caps without me pressing caps lock or using shift i.e Like This But Without Using Those Two Keys

  • Not able to configue instance in BPM 9.24

    Hi , I have uninstalled BPM 9.22 and trying to install BPM 9.24, however when I am configuring instance then I found some new option like - filling truststore /keystore path, password etc, so I am not able to understand what to fill here and what opt