Conversion of 0Fiscper to 0Calmonth in Query

Hi all
We are using 0Fiscper , fiscal year / period as a standard in all the Reports in BI . all the Variables are also based on it.
But the some New users want to see the Data in terms of Calmonth .
Since all the variable & data in the Cubes are containing only Fiscper & no Calmonth, so we cant change them at all to include 0calmonth
Is it possible to have 0Calmonth in the Query using it as a display attribute of 0Fisper or something like that ?
Regards,
ramesh

At my previous client Fiscal Period was  = to Cal Month it was just offset by X number of months.  They did not use more than 12 periods and they all closed according to the calendar.  In this case we could have masked FP to CM in the query using a structure.  I guess if you can define all the rules then you could build months based off of days in a structure too.
As for the selection variables I guess it would not be possible without a user exit.  With an exit though you could do it like this:
Build an Object in BW called "MONTH" and populated manually with months.
Build a new variable based on this month object
Build a new variable based on period
Build a user exit routine that takes the inputted month and (translates it to period and then) passes that value to the variable for period.
Use that new period variable in your structure or restrictions.
*the translation step would only be needed if your PP were not a simple offset which can be done in a query formula.  Of course you'd still need rules that can programaticaly define the difference between a period and a month.
null

Similar Messages

  • Currency conversion by Calendar month in the query?

    Hellow...
    Users want DB currencies when executing query at first. And then want to change currency conversion by Calendar month in the query, if navigating by target currency. Tried as created TEST Currency Translation Key. Database currency is different currencies.
    Appreciate your help.
    Don.

    Hi,
    Create Currency conversion type using Trans: RRC1.
    1.Specify your Exchange rate type.                     
    2.Dynamic Exchange rate type
    3.Source curency from data rec.
    4.Fixed currency say USD.
    5.Select Variable Time reference "Start Month" and Special Info Object - 0calmonth
    Secondly In the key figure field to be converted in the query,   select properties - select the currency conversion key name .
    Thanks,
    Nagesh
    Sony Singapore

  • Restrict a ratio on different time object 0FISCPER and 0CALMONTH

    Hi all,
    I'm trying to build a query on debitor accounts .
    I have to select ratio Amount (0DEB_CRE_LC) on Posting Date LE filled Date and the clearing date GT filled Date.
    The issue is that the posting date is type 0FISCPER (ex: 2009008)  and the clearing is type 0CALMONTH (ex 200908).
    0FISCPER and 0CALMONTH are not in the same dimension.
    0FISCPER is in columns and the amount ratio is in line.
    Filled date is type 0FISCPER.
    I wondering if it's possible to create a replacement variable to do this selection or a variable exit or anything else ?
    Thanks for your help.
    Edward
    Solved myself
    Edited by: Edward Plaisance on Aug 19, 2009 2:23 PM

    Hi Man
    How to connect 0FISCPER and 0CALMONTH in diferente querys for web application?
    Thanks
    Cristopher

  • Curerency conversion for a Formula in the query designer

    Hi
    I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
    Source Currency = SAR
    Target Currency = USD
    So how can i do the curerency conversion for a Formula in the query designer.
    pls let me kow
    kumar

    Hi,
    If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    Regards.

  • Currency Conversion type not visible in the query

    Hi ,
    I created one currency type conversion   Z_INR
    exchange rate type : M
    Exchange rate from infoobject : zexch_rate(key fig)
    source curr from data record
    Fixed target curr : INR
    Variable time reference  : A to Exact Day
    Special info object : Ztr_date (Transaction date)
    it got saved succesfully but wen i try to include  this in the query its not visible there . can anyone let me know why this problem is coming
    help will be appreciated .
    i also included rate and date in the query still not visible

    Hi,
    Create Currency conversion type using Trans: RRC1.
    1.Specify your Exchange rate type.                     
    2.Dynamic Exchange rate type
    3.Source curency from data rec.
    4.Fixed currency say USD.
    5.Select Variable Time reference "Start Month" and Special Info Object - 0calmonth
    Secondly In the key figure field to be converted in the query,   select properties - select the currency conversion key name .
    Thanks,
    Nagesh
    Sony Singapore

  • 0FISCPER and 0CALMONTH are considered as CHAR in Webi

    Hi experts,
    We're facing an issue while creating a BO Universe on a Bex Query.
    Our dates are recognized as dates except for 2 :
    0CALMONTH and 0FISCPER are considered as CHAR (I think because they are in format MM.YYYY).
    Because of that we can't use a prompt to select an intervall and we can't sort them
    (the sorted list will be 01.2008, 01.2009, 02.2008, 02.2009 instead of 01.2008, 02.2008, 01.2009, 02.2009)
    Does anyone knows how to resolve that problem.
    Thanks in advance.

    Hi,
    and NUMC means alphanumeric. NUMC means numeric characteristics > it is a character - not a number.
    pretty sure you also have the key - which could be 012010 for January 2010. if so you can easily convert the key in the report to a numeric value.
    or the other option would be to make it 201001
    Ingo

  • Report conversion tool--Can we modify the query

    Hi all,
    I have some freehand SQL reports converted into WebI reports. I understand that report conversion tool, creates a new universe for each of the freehand SQL report. But if I try to edit the query, like add a filter condition, an error pops out.
    Is it possible to edit the query if we convert freehand sql reports into webi reports?
    Regards
    Ash.

    Hi,
    Yes it is possible to edit the query for the converted free hand sql query.
    If you see any problem while editing the SQL of the converted report, do a refresh once and try.
    Adding query filter also works fine.
    Issue from your end could also be due to security settings.i advise to revisit the security once and make sure all appropriate rights are available for the user.
    Thanks,
    Sri

  • How can i determine if a UOM conversion is being used in a query?

    I need to find all the queries that are using a QTY UOM conversion.  i tried to do a where used and it didn't return anything.

    Hi,
    Check function module RSZ_I_BASIC_CHA_WHERE_USED
    also check this (try the program)
    Where-used list of an attribute (either display or navigational)
    From AHP
    Hope it would help.
    Regards,
    Satya

  • Partioning

    hai
    can u tell about logical and physical partioning?when u go for that

    Hi,
    Logical Partioning is when you create several cubes with the exact same structure and you load data in them with different values for one or a combination of several characteristic values. For instance imagine you have a scenario ending with a total number of records of 1'200 mio records over 10 years of operation which would be a quite huge number of records for one single InfoProvider (not easy to handle and performance probelms); you decide then to partition logically this cube with 0CALYEAR resulting in one cube per year; each cube will then have 120 mio records. You will then query this data via a multiprovider having all these cubes.
    Physical partitioning (ORACLE): the fact table of an infocube are themselves organized and splitted into partitions; this is only possible with 0FISCPER and 0CALMONTH; when querying such a fact table on one month, your RDBMS will take advantage of this partitioning by selecting less data. Partition pruning will also be an advantage if you are using Oracle. I recommend to systematically use the physical partitioning whenever it is possible.
    hope this helps...
    Olivier.

  • 0FISCPER Restriction in Query Designer

    Hi All,
    We are on BI 7.0 -- SP 17 .
    Issue: When 0FISCPER is restricted in Query Designer it shows only one value (Period 00 0000 ) as opposed to values in Master data values. We went to SP 10 to 17 recently and since then this issue croped up.  Any thoughts will be appreciated.
    Tasks taken care:
    1.Transfered global settings from Source system T009 table is consistent.
    thanks
    Mr.BI

    Mr. BI,
       Did you resolve the issue?
    The problem exists with filter value selection based on  " Values in Master data table" .
    When the setting is changd in Info object mantenance to "Only values in Info provider"  you can see values for Fiscal year/peiod.
    Jaya
    Edited by: Jaya Mogali on Jul 11, 2008 9:00 PM

  • How to get 0calmonth from 0fiscper

    hello all,
    I have 0fiscper and 0fiscvarnt coming from all my datasource but in my report I need "Actuals for current month" so i guess I have to have 0calmonth in my cube how can I map 0fiscper to 0calmonth. Can I just add 0CALMONTH in infocube and map it to 0fiscper with some sort of update routine. do I have to delete all the data in the cube first then add the 0calmonth and map it to 0fiscper ?
    Thanks very much in advance

    Add 0calmonth to your communication structure.
    Now,In transfer Rule Mapping.
    Click "TP" button of 0CalMONTH whihc is not mapped to any field.
    Now create a routine.
    Select all field,
    Write code...
    data: cal type /BIC/OI0calmonth.
    'use this function module to convert 0fiscper to 0calmonth.
    CALL FUNCTION 'UMC_FISCPER_TO_CALMONTH'
    EXPORTING
    I_PERIV = trans_structure-/bic/0fiscvarnt
    I_FISCPER = trans_structure-/bic/0fiscper
    I_CALMONTH_ICHANM = ''
    IMPORTING
    ES_CALMONTH = cal
    EXCEPTIONS
    date_invalid = 1
    OTHERS = 2.
    result = cal.
    Hope i m clear...
    Get back to me..if code does work...
    Regards,
    San!

  • Query Designer Exchange Rate

    Hi All,
    I have setup my own BI currency conversion type which i am using in my reports to convert from Euro to USD.
    This currency conversion type is one flat rate so that for each specific month of my report it uses the same rate.
    I am now maintaining a different rate for each month and I am looking to use this different rate for each month in my query by making my currency conversion type into a 'Variable Time Reference'.
    This works well for fields in the format Fiscal Year Period(0FISCPER) and Calendar Month(0CALMONTH) e.g. 001.2010.
    My problem is that my report columns are not in this format, I am using a combination of both 0FISCYEAR and 0FISCPER3 in the column selections seperately and therefore I am having an issue making this conversion type into a time reference variable as in the transaction RSCUR I seem to only have the option of using 0FISCPER or 0CALMONTH.
    Any ideas on how I can make this work when the year and month are seperate fields?
    Thanks
    Flash

    Hi,
      You will have to design two currency translation types for T and T+1.
    This design you should do in rscur transaction.
    But you should be maintaining the currency rates in ob08 table in BI.
    In rscur,you define your two currency translation types..Then these two
    currency translation types(say x and y) has to be used with keyFigure
    selling price..When you add selling price in keyfigure column, you can
    see one currency translation tab for that key figure..add x as the currency
    translation type.Similarly you can do for y too..
    Please assign points if it helped you

  • Query Designer - Variables - Replacement Path

    I need a help.
    In one query I need to select some data from the current Period until yesterday.
    In another query I need to select the same data, but from the current Month until yesterday.
    I created 2 restricted key figures:
    SEL_PERIOD restricts 0FISCPER by the variable 0FPER, wich is an exit SAP for current Period.
    SEL_MONTH restricts OCALMONTH by the variable 0CMONTH, wich is an exit SAP for current Month.
    Now in both RKFs I want to restrict 0CALDAY from the beginning of the Period or Month until yesterday.
    I found this variable 0DAT, wich is an exit SAP for current day.
    I'm trying to create an interval variable, type replacement path, with From Value not filled and To Value filled with 0DAT - 1.
    But it doesn't work, Query Designer points that 0DAT is not an allowed source for the target variable.
    And the documents that I searched state that "the target variable must represent a single value" and "the source variable must be input-ready".
    Does anyone have a suggestion on how I can restrict 0CALDAY, for this specification ???
    Thanks in advance.
    César Menezes
    Edited by: César Menezes on Jun 25, 2011 11:51 PM
    I forgot an important point:
    Sometimes I need current Period or Month, in other cases I need the same Period or Month from last Fiscal Year or Calendar Year.
    No problem with 0FISCPER and 0CALMONTH, I can off-set the variables by -12.
    But I would like a help on how to do it with 0CALDAY.
    Example: today is 25.06.2011. In some cases I need to restrict until 24.06.2011, in other cases I need to restrict until 24.06.2010.

    Hi Ceaser,
    This is a generic explanation to your scenario. Please make some changes as per your requirement. Just to give you some idea......................
    We  need to manipulate u201CKey Dateu201D values to achieve required analytics.
    Step 1: As a first step, create a variable on u201CSales Dateu201D (or whichever date is used for Sales Date) field (ZPDATE) with user input. It was meant to capture u201CKey Dateu201D through user entry.
    Step 2: Create a restricted key figure on Sales & restrict it on u201CKey Dateu201D value to get first analytics need i.e. u201CSales on Dayu201D.
    Step 3:Next step was to manipulate the value of u201CKey Dateu201D on which I could restrict u201CSalesu201D (Key Figure) again and again to get other values.
    Step 4: Create a new variable (e.g. ZPUTMNTH) and assigned it to be filled up by Customer Exit. (For simplicity purposes only u201CMonth to Dateu201D value is explained below. Same procedure can be repeated to fulfill other needs. Though in code section, ABAP code is available for almost all the variables)
    Create Variable
    Step 5:  Create one variable (ZPUTMNTH) for u201CMonth to Dateu201D with processing by u201CCustomer Exitu201D. This variable was created on u201CDateu201D characteristics.
    Sample ABAP Code
    *& Include ZXRSRU01
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    Data: v_loc_date type d.
    Data: v_loc_date1 type d.
    Data: v_loc(4) type c.
    CASE I_VNAM.
    to calculate "month to date" user input is "Calday" Key Date
    WHEN 'ZPUTMNTH'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)
    L_S_RANGE-LOW+6(2) = '01'. u201C low value e..g. YYYYMM01 (20060601)
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to Calculate no of days up to "month to date" (user input Calday Key date)
    WHEN 'ZDAYMTH'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW+6(2). "YYYYMMDD - DD will indicate the no of days
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to calculate Previous year "month to date" (User input Calday u2013 Key date)
    WHEN 'ZDAYPMTH'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-LOW(4) = L_S_RANGE-LOW(4) - 1. "low value previos year
    v_loc_date = L_S_RANGE-LOW. "take input value in another variable
    L_S_RANGE-LOW+6(2) = '01'.
    L_S_RANGE-HIGH = v_loc_date. "high value = input, taken into another variable
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to calculate "year to date" (User input Calday u2013 key date)
    WHEN 'ZPUTYEAR'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
    L_S_RANGE-LOW+4(4) = '0101'.
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to calculate "Previous year to date" (User input Calday u2013 key date)
    WHEN 'ZDAYPYR'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-LOW(4) = L_S_RANGE-LOW(4) - 1. "low value previos year
    v_loc_date = L_S_RANGE-LOW. "take input value in another variable
    L_S_RANGE-LOW+4(4) = '0101'.
    L_S_RANGE-HIGH = v_loc_date. "high value = input, taken into another variable
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to calculate "Previous year" User input Calday u2013 key date
    WHEN 'ZPYEAR'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    v_loc = LOC_VAR_RANGE-LOW(4) - 1.
    L_S_RANGE-LOW = v_loc. "low value previos year
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    to calculate No of Days - "year to date"
    WHEN 'ZYRDAY'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZPDATE'.
    CLEAR L_S_RANGE.
    v_loc_date1 = LOC_VAR_RANGE-LOW.
    v_loc_date = LOC_VAR_RANGE-LOW(4). "low value, e.g.200001
    v_loc_date+4(4) = '0101'.
    L_S_RANGE-LOW = v_loc_date1 - v_loc_date. "get the difference between current date & first date of year
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    Save and Activate the Include.
    Go back to Exit and activate again.
    Go back to Project and activate again.
    Variable (ZPUTMNTH) is ready (its values filled up with the manipulation of u201CKey Dateu201D) to be used in query to restrict Key Figure u201CSalesu201D on it and get u201CMonth to Dateu201D (MTD) Sales Value.
    Regards,
    Suman

  • Currency Conversion - YTD - for experts

    Hello,
    I have following scenario in BEx.
    YTD BEx variable with "From" and "To" value.
    Example: User enters: 02.2007 - 05.2007 and wants to convert in USD.
    The requirement is that all months (02.2007, 03.2007, 04.2007 and 05.2007)
    are converted with the currency conversion of 05.2007 (in this example).
    In rrc2 I saw as time reference: "Fixed time reference" and "Time Base from variable".
    Where can I create a variable for "Time base from variable"?
    In cube I have 0FISCPER and 0CALMONTH.
    Any idea?

    Create a step 2 OLAP variable in cmod based on Fiscal Period - this then gets the data from the To section of the YTD BEx variable
    Then use this variable in Time Base from Variable

  • Running query report times out

    All,
    At my customer we have a BW3.1 system.
    When running a query using ta rsrt it times out after 1 hour. The query/report should be done in 5 minutes but somehow it gets stuck.
    With an SQL trace we see no queries and in the Dialog work process we do not see any update on new records being read.
    When its started it starts building/reading a temporary table: BI0/03010 but its get stuck and times out eventually.
    We also ran the drop temp tables job and rerun the query, however this does not help.
    Does anyone have any ideas where to look?
    Grt,
    Sjoerd

    Run ti through RSRT in debug mode and display the SQL run schedule - then go and look at the query execution path
    If your cube is partioned try and make sure you get the partioning object into the where clause (ie 0fiscper or 0calmonth) - if you cant get it on a selection screen - try and derive it in a cmod in a filter
    Next - check that the database stats are current for the entries in the query
    Go to the query exection path and click on the tables - they will give you the last statistics date
    Updating the db stats can have a dramatic effect on the order you see in the query execution path
    The temp table is probably a hierarchy build - these are a nightmare for large hierarchies - but go with the other things first

Maybe you are looking for