Bex variables with offset

I've created a query with a period structure that contains 12 periods. Using a variable and a offset I'm able to key in for example 012/2006 and get the "actuals" using a restricted key figure for month 1-12 of 2006. That seemed straight forward. Were I am confused is if I wanted the users to key in 010/2006 and get months 1-10 or by using the same query key in 04/2006 and get months 1-4. I'm hoping someone can explain if possible.
Will award points as always.
Thanks
Richard

Use an interval which says:
Fixed value 'Period 1' to variable value 'entered by user'.
You can mix values and variables in an interval.
But you can't use a fix structure where you created a key figure for each month. You would have to use a drilldown instead for 0FISCPER.
Regards,
Beat

Similar Messages

  • Replacement path variable with offsets

    Hi experts,
    I have the requirement to report receivables (open items) historically by fiscal year / period.
    More precisely, each period should show the open items that are open at the end of the period.
    Example:
    001.2010 (shows open items from 31.01.2010)
    002.2010 (shows open items from 28.02.2010)
    ...etc.
    The idea is that the user enters a fiscal year/period using a manual entry variable.
    The open items should be calculated as follows:
    KF: Amount
    Posting Date <= Variable
    Clearing > Variable or unassigned
    Variable is a replacement variable that is replaced by attribute "Date To" from the user entry Variable (Fiscal year period)
    E.g. if the user enters 008.2010, then this value is automatically replaced by 31.08.2010.
    Generally this works.
    However, to view the values for the last 12 months, a structure is needed consisting of 12 elements with offsets in order to show the 12 months prior to the selected period (e.g. 001.2010 - 002.2010 - 003.2010 ....etc.)
    The problem is that the replacement only considers the user's variable entry and ignors the offsets.
    Example:
    User enters 008.2010.
    In the column strucure I show 3 months 006.2010, 007.2010, 008.2010.
    Then all columns would show items open on 008.2010 - the offsets are ignored.
    Any idea, why this happens and how it can be resolved?
    This problem has given me a headache for days.
    Your help is much appreciated.
    Thanks and regards,
    Alex
    The user should be able to enter a fiscal year / period and

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Fill BEx Variable with more than one value via Custom Exit

    Dear SDN comunity,
    I want to fill a BEx Variable via a custom exit. My problem is, I don't know how to fill this variable with more than one value.
    I try to give you some background info based on an exaple:
    <u><b>Variable-Details</b></u>
    <b>Type of Variable:</b> Characteristic Value
    <b>Variable Name:</b> ZCCD
    <b>Description:</b> Company Code Selection
    <b>Processing by:</b> Custom Exit
    <b>Characteristic:</b> Company Code
    <b>Variable Represents:</b> Multiple Single Values
    <u><b>This is the used ABAP code:</b></u>
    WHEN 'ZCCD'.
    CLEAR l_s_range.
    l_s_range-low = '2002;2004'.
    l_s_range-sign = 'I'.
    l_s_range-sign = 'EQ'.
    APPEND l_s_range TO e_t_range.
    <u><b>The system returns this message:</b></u>
    Value "2002;2004" is too long for variable ZCCD
    appreciate your help!
    //michael

    Eugene, Marcus
    it works now, thx a lot!
    Please find attached the final code:
    CLEAR l_s_range.
    l_s_range-low = '2002'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR l_s_range.
    l_s_range-low = '2004'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    (Delta to Marcus's code is bold)

  • Variables with Offsets in Cache

    Hi Guys,
    I have a number of queries that I want to cache the current week, plus the last 4 weeks, each night.
    I have the variable for current week working but how do I create offsets of this in the 'Filling OLAP Cache' in Info Broadcasting?
    Regards
    Scott

    Thanks for your reply. I guess after looking into the problem yesterday I found out that if the changes are made to the project that will be executing then the changes in static String are detected but we have 3 projects in addition to the project with web module (all projects sit in the same workspace). If the static String in one of the project is changed the change is not reflected when the web module is run. As the additional projects are domain objects they are not supposed to be run by themselves only to be called by the web project. We have tried building every project before running web module that does not help. So, any thoughts how this situation can be remedied. BTW- we have just moved all our development to JDeveloper and are loving it.
    Glad to hear that you are loving JDeveloper. Right now your workaround is to Build each of the projects. For the next release we will have a Build Workspace command which will build all of the projects in the workspace.
    Part of the problem, is that your static String (probably final), is getting inlined by the java compiler (this is normal for final values), and therefore not getting updated since it lives in a different project.
    You could not make it a constant (final static) value, and make a static method to get the value, or just remember to build all of the projects for now. With the release later this year, Build Workspace will work nicely for you in this situation.
    Thanks,
    Rob

  • Variable with offset error

    Dear gurus,
    On my query i have a variable V1 ( user input ) for the period char ( 0fiscper3 ).
    I need to have a column with values from period imputed on V1 + 1 until period 13, but when user inputs on V1 value 12 ( 12 + 1 = 13 ), values for period 1 to 13 are displayed. If i fix on the column period 13 - 13, no values are displayed ( its correct ).
    The only thing that i remind is that period 13 does not have values, so system goes to next period with values ( period 1 ) and goes until period 13.
    Does this makes any sense? Does anyone knows what i am doing wrong?
    Please help.
    Best regards,
    Vitor

    Hi Vasco,
    check your user exit code in CMOD. keep a "IF" Condition like the fiscal/period should be less than 13.
    IF Fiscper < 13.
    hope this helps.
    With Regards,
    Ravi Kanth

  • Customer Exit Variblae with Offset

    Hello Everyone,
    Can any one tell me whether we can use offset on Customer Exit Variable or no?
    I have
    Variable 1. Calmonth_01 in first Column which is also input varialble.
    Variable 2. Calmonth_02 is second Columnt which is Exit  Variable on which offset is not applied.
    From third Column i m using second variable with offset.
    According to me it has to work. but i m report it is not working.
    Plz help.

    Hi,
    If you have any Input Variable on 0CALMONTH and based on the input month if you want to display the reports either + or 1 Months then you can use Off Sets it will work, no need to go for Customer Exit Variables.
    1. Create a User Entry Variable on 0CALMONTH eg name of variable = ZMNTH
    2. Restrict the Keyfigure with ZMNTH in column one.
    3. Restrict the Keyfigure with ZMNTH-1 in column two, it will display Previous month data based on Input month
    4. Restrict the Keyfigure with ZMNTH+1 in column three, it will display next month data based on Input month
    Steps 3 & 4 are using Off Sets only.
    For any Customet Exit variables see
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • Replacing Bex variables

    We are on BI 3.5
    Is there a way to replace an existing Bex variable with another one via program (custom or SAP), function module etc ...Is this feature available in BI 7.0 ?
    We have quite a few queries which uses variables of processing type '6' and we would like to replace it with another type.
    Of course hard way is change it manually.
    Thanks in advance .
    Hitesh Mehta

    Dear Hitesh,
    As I understand your question, you want to fill one variable by using another. You can do this using a customer exit variable. Lets say you have a variable (V1) created on 0CALDAY and this is displayed to the user for manual entry. Uing this you can fill another variable (V2) created on say 0PSTNG_DATE.
    You can try creating a replacement path variable V2 on 0PSTNG_DATE and try filling it with V1. However, I am not sure whether this will work in 3.5.
    Alterntively you can create a customer exit variable V2 on 0PSTNG_DATE and fill it using V1. You can use the following code in CMOD:
    DATA: LOC_VAR_RANGE TYPE RRRANGEEXIT.
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    WHEN 'V2'.
    IF I_STEP = 2.
      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'V1'.
        CLEAR L_S_RANGE.
        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,
    Prem.

  • BEx Analyzer: Formula Variable with Replacement path change Month with Day

    Hi experts I'm facing this issue in BEx Analyzer.
    I need to have some dates in format DD/MM/YYYY in Index Structure, in order to do this I've created a formula variable with replacement path referenced to 0CALDAY characteristic.
    The formula works but it behaves in a strange way:
    if the day is higher than 12 the displaied result is correct (DD/MM/YYYY)
    if the day is lower or equal 12 the displaied result is wrong (MM/DD/YYYY)
    I'm on BW 7.01 SP6 and BEx Analyzer 7.10 SP12, excel 2007.
    anybody has faced this issue before?
    any help will be appreciated
    Daniele Cortopassi

    Hi Daniele,
    This seems pretty strange. Pls. redo validation with the dump data, as being a flat struture BEx does not apply any logic changes. May be it might have been MM/DD/YYYY format as in workbooks. Else you may change the property of 0calday display as "Text". Business Explorer > Display > KeyMaster Data/Texts > Texts (Plese check this option). If you are using some text table you may maintain the same using BI0/TCALDAY (Similar to BI0/TCALMONTH2). Guess it should be an excel based issue; if not you may try the same in WAD/Report designer to verify the nature of the issue. If you don't face these inconsistencies in WAD/RD then you may change excel formatting options. Lastly, please let us know if the infoobject has some predefined settings in RSA1 > Infoobject > (BEx) Properites.
    Thanks,
    Arun Bala

  • BeX Variable:Strange problem with InfoObject CHAR 60

    Hi everybody,
    I've created an infobject custom (lenght:60 char).
    In Bex I've created a variable (type select option) but when I choose a value of 60 char from match code, it's truncated and I obtain an error message (BRAIN 643) because this value isn't in master data table.
    Thanks in advance.

    Hi Riccardo,
    unfortunately the problem hasn't solution on BEX side.
    Here full answer from SAP:
    Hello,
    We analyzed the issue on our testsystem and found out that it is
    not possible to enter more than 45 characters in the selection screen inBEX analyser.
    Even though the length may be defined as 60 characters, it takes only
    the first 45 characters and truncates the remaining
    characters.
    Similar thing happens when we run the query and try to retrieve the
    variable value. Now when we select a value which is greater
    than 45 characters, it truncates the extra characters and then fills
    the text box for that variable with truncated value.
    But now that we do not have this value in the master data table
    it generates the error message.
    Even if you try to copy and paste the value in the variable pop up
    screen it truncates it to 45 characters.
    Please note that this would happen only when you run the query in
    BEX Analyser(as in this case screens are rendered by basis) and not WEB.To verify this you can run the same scenerio in WEB (HTML) mode and see
    that it works fine because in this case screens are rendered in BW
    which can have length greater than 45 characters.
    So I would suggest you to run such queries (which has variable values
    exceeding 45 characters)in HTML and not Bex analyser,or refrain from
    using values exceeding 45 characters.
    As we spoke to our development, this would not be fixed in future support packages.
    Therefore,I would suggest you to either use characteristic values upto a maximum of 45 characters or use WEB/HTML to run queries with suchscenerio.
    I hope this resolves the issue.
    Thanks for your understanding and cooperation and I´m sorry that I can´t give you a better answer.

  • Webi  Bypassing BEx Authorization Variable with SAP Exit

    BEx query has Hierarchy Node Variable with Authorization as processing type. Its set as User Input ready
    When the Webi report is refreshed, the LoVs appear as per the Authorization. However, if user doesn't select any value (pushes from right to left in variable screen) he gets NOT_AUTHORIZED error. Which is not intended, it should check the authorization in the background via SAP exit and populate the result. This is how it runs inBEx query.
    However, in Webi it's giving NOT_AUTHORIZED error? This is how the product is designed to work or is it a bug.
    I see several forum threads and SAP KBAs/notes but they are not answering my question. Could anyone please help.
    I am ready to provide more details on this error.
    Thanks,
    Tilak

    Hi,
    this is how authorization variable would work in any of the clients and not just Web Intelligence.
    You created an authorization variable which is configured as "read for input", so the user is getting prompted.
    So In Web Intelligence the LoV shows up.
    if the user does not select a value, then you are not sending a value, so you basically asking for all data and you are not allowed to see all data and therefore you are getting the message "no authorization".
    if you are making authorization variables as ready for input then the user needs to select the proper values - regardless of the BI tool.
    if you want the authorization to be check in the background then the authorization variable should be configured to not have ready for input.
    regards
    Ingo Hilgefort

  • Zero Suppression Not working in Bex Query with Formula Variable

    Hi Friends,
    I have a peculiar issue here. We upgraded from 3.5 to 7.0 recently. Some of our Bex queries have been behaving abnormally after this. In these queeries,
    we have some key figures which use formula variables (ready for input and mandatory) in 3.5. User can enter either 1 or 0. The actual key figure is multiplied to the formula variable so, the entire column gets the actual key figure value if the user enters a value '1' and the gets the value 0 if the user enters '0' in the formula variables. Zero suppression is activated on the rows and columns and this report. This technique was used successfully to show/hide a column.
    After upgrade, the same query works but, the zero suppression is not working. When the user enters a value of '0' in these formula variables, all the entries in the column for the key figure are displayed as 0 but the column is still displayed. It is like the zero suppression setting is not active at all.
    I created one of those queries in Bex 7.0 to see if that works but, the issue still exits. Have anyone come across this kind of a scenario? Please get back to me if anyone has any idea on this situation.
    Thanks and Regards
    Subray Hegde

    Which SP level are you at in BI 7? There is an OSS Note that would need to be applied if you're on lower than SP10. That note is:
    [OSS Note 964756 - Formula variables with replacement from difference in BI 7.0|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=964756]

  • Refreshing Hierarchy node variable in BEx query with change in hierarchy

    Hi all,
    We have used a hierarchy node variable on Characteristic ZECCSAC (user-defined) and used it in a BEx query with default value set to a particular node value. Upto this, it is working fine.
    The hierarchy used in the query, with the hierarchy node variable, was later changed ( and in future it can undergo changes ). Since the number of records in the hierarchy are changing, the nodenames of the hierarchy nodes are changing. But the hier node variable default value is still set to the earlier nodename for that node description. So at runtime it is giving an error "ECCS Account Number is invalid"!
    Can anyone suggest how to refresh a hierarchy node variable default value each time a query is run so that the latest nodename is always taken ?
    Quick reply will be appreciated.
    Thanks

    Hi,
    You get this with User exits.
    Thnaks

  • Creating variable with the user Authorization in BEx

    Hi gurus,
    i want to create a variable with user authorization in BEx. Can any one please tell me the steps to create the variable for authorization.
    Thanks in advance
    sandy

    Hi,
    Please take a look and refer the section Use of Variable filled Authorizations(User Exit)
    Advanced Features of SAP BW Reporting Authorizations
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    Hope this helps.
    Cheers,
    Gimmo

  • Hyperlink Webi Report with BEX variable

    I have a bex query with a selection variable.
    It becomes a yellow filter in my BO Universe which I can use as a query prompt.
    Question is, can I pass the value of that Bex Variable/ BO yellow filter from my parent report to my child report using OpenDoc.
    When I try, the child report bombs and I receive an error message.
    FYI, I am able to pass the values of BO Query Prompts from my parent report to my child report.   The issue is with BEX variables?
    Is there a solution?  Can this be done??
    Thanks
    Using BO XIR3.1
    Edited by: Tom Sidor on Aug 31, 2009 7:49 PM

    Stratos,
    Thanks for your reply.
    My BO Webi report is based off a BEX Query, which generates the Universe used for my BO Report.
    The Bex Query has a Variable Prompt that becomes a Filter/Prompt in my BO Universe & Report.
    Here is the OpenDoc URL for this
    "<a href=\"/OpenDocument/opendoc/openDocument.jsp?sDocName=MFD1-OrderHeader&sType=wid&sPath=%5BMarketingAnalysis%5D&lsSReporting Start Date:="[DT CMB]"&lsSReporting End Date:="[DT CME]"&lsSSKU:="([L01 Material Key])[CHP][CCP][UTP][MSP*][PRDP][CTP][PTP][DIVP][REGP][STSP][STZP][ATP][OPP][ORP][STCCP][ONP]"\" title=\"Order Header Drill Down\" target=\"_blank\" nav=\"web\">"[Orders Placed CM]"</a>"
    The embedded  variable, in the URL above,  for the Bex Query Filter is below
    Variable - [PRDP]
    =If(IsPromptAnswered("Product:");"&lsMProduct:="URLEncode(UserResponse("Product:"))"")
    This is the Where Clause from the Condition properites of  Bex Query Varible in the Universe (yellow filter)
    <OPTIONAL><FILTER KEY="[!V000002]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="@Prompt('Product:','A','Material2 with updash\LovHierNodeL03 MaterialBase',multi,primary_key)"/></CONDITION></FILTER></OPTIONAL>
    All my other WEBI Query prompts pass just fine.  The problem again, is trying to pass a SAP BW Variable that is contain in the Bex Query.
    I receive an error (WIS 10901)on my child report when I try to execute the drill down from the Parent report when I populate the Bex Variable Prompt on My BO Webi Parent Report.  (again this only happens with the BEX variable, all other prompts work fine and pass the values with no issues).
    Thanks for any help you may provide.
    Tom

  • Is it possible to use variable with interval in BEX for filter or pl funct.

    Hi,
    we have filters in which variables with interval are being used, as well as planning functions in which a variable with interval should be used.
    In the planning modeler everythings works fine. But I have problems to fill values for these type of variables. The error message "specify a value for variable xxx " is always generated. I know it is possible to do this (with VAR_LOW & VAR_HIGH instead of VAR_VALUE).
    Can someone please help?
    regards
    D

    Hello Dries,
    yes, it's possible. You have to use VAR_VALUE_LOW and VAR_VALUE_HIGH.
    Regards,
    Marc
    SAP NetWeaver RIG

Maybe you are looking for

  • Old Home Movies conversion help needed! Please!

    I have about 18 hours of various movies that had been built in Pinnacle Studio (transitions etc.) on a PC Computer. There is no disc chaptering and this is a PC only program. I want to bring them over to iMovie or another program on my new iMac and h

  • Issue in accessing the hana from laptop

    Hello Experts, I am new to Hana . I have an cloud share account and trying to access the Hana studio from laptop. But I am getting the error "The system Can't be reached" Help me in this and thanks in advance. Regards, Suresh

  • Error starting IntergratedWebLogicServer

    hi am on window xp and using oracle 11g database and my WebLogic Server Version: 10.3.4.0, am having problem when running Intergrated WebLogicSever my error log is *** Using HTTP port 7101 *** *** Using SSL port 7102 *** "C:\Documents and Settings\De

  • IDoc Error IDocs showing the status 53 "Application Document Posted".

    Hi All IDocs showing the status 53 "Application Document Posted". But values are not updated in SAP. Plaese sugggest on this, Thanks Ajit K Barik

  • Workflow performance issue or not?

    Hello experts!!!!!!     when several workflow instance is in process and waiting for a document status change to occur, will it be a performance issue?     I have a scenario in which my workflow is triggered when a document is created, it goes throug