Query - Fiscalyear/period - Display - Restricted KF

Hello Guys,
I have a requirement from the users like they will be entering the fiscal period/fiscal year in the selection screen
for example:
FisPer/Fis Year ---> 001/2009 to 006/2009
in the output I have a keyfigure called for example ZKEYFIG
it has to display like this
profit center                         001/2009    0002/2009   0003/2009  Q1  004/09 005/2009 006/2009 Q2
My question how to calculate the quarter.
Do I have to write the code in the userexit.
Please let me know .Thanks in advance for your help.
Senthil

No you don't need to write a Code assuming you have period column in your Infoprovider, if you make a small change / or you have a to write a small code.
NO Code needed :  If Period and Year are entered separately in the selection screen
Create a Restricted key figure and use this Year field variable as restriction-1
Restriction two will be a constant - Period1, Period2 and Period 3
Name this Q1
Similarly make 3 other restricted key figures for Q2, Q3 and Q4
Small Code needed if you don't have year separately
Calculate year and store that in a variable from your Selection and then use same method as explained above.

Similar Messages

  • FM to calculate fiscalyear period from current date

    Experts,
    Is there any FM which outputs fiscal year period in the format mmm/yyyy when current date is given as input. I need this coz i want to automatically calculate current fiscalyear period for a query variable..
    Thanks,
    DV

    Hi Edwin,
    When i expand the Fiscalyear Period infoobject in the query design in globval view, i donty see 0F_FPER. Does that mean it has to activated from Business Content? Or can i create a variable like that one??
    DV

  • Query Offset - Period 15

    Hello,
    i like to use an offset in my query to show quarterly results for last 2 years. My offset is always actual month - 3, -6 ... -24. Offset does work without problems. Last year we used period 15 to make changes (transition 2008 to 2009). Why doesn't my query show period 15?  How can i change my query to show period 15 without define "fix"-months ?
    Thanks for your help
    Jonas

    Thank you for the response.
    It's a custom infoobject called ZREQMONTH but defined just like 0CALMONTH. It is executing in Bex web just using the execute query button from the query designer. The strange thing is it executes o.k. in Analyzer but not in the web or in Xcelsius. There are characteristic restrictions on two other fields, a region and on vendor objects.

  • FI posting period variant restricted in OB52

    Hi,
    First all of you have HAPPY NEW YEAR 2009.
    My problem is i have multiple posting period variant (Multiple company code wise), i want to restrict posting peirod variant in OB52 i.e. one posting period variant for one company code to be open / close only by concerned user of that company code.
    pls. advice asap.
    regards,
    mahesh

    Hi
    You have multiple posting period variants (multiple company code wise).
    After the creation of posting period variant in OBBO you will assign the posting period variant to Company code in OBBP.Once you assign one posting period variant to company code , the posting period is restricted to that company code only.
    use Authorization groups if you want to restrict the posting periods to the users.
    suppose that authorization group for user A is A.
    Go to OB52 -
    >Open/Close posting periods.
    Variant(posting period variant) , Account type , From Period1(6) , Year(2008) , To Period1(6) , Year(2008) , From Period2(7) , Year(2008) , To Period(7) , Authorization Group(A)
    This means that periods 6 and 7 are accessible to Authorization group A and Period 7 is accessible to rest of the authorization groups.
    This will solve your issue.
    Regards
    Venkat

  • In a query, how to display the calendar day and the weekday in the heading

    Hi Experts,
    I am in a situation where I need to have calendar day and the weekday in a heading of a column in a query? we are in BW 3.5.
    Here is an example:
                         04.22.2007
                         Sun
    Branch 001      1,000.00
    Branch 002      2,000.00
    Branch 003      3,000.00
    in my query, this is a restricted key figure with sales qty and calendar day and I have a text variable to show the calendar day. In addition to that, the customer wants weekday as well.
    Not sure how to do this.
    Any help is much appreciated.
    Thanks.
    Jenny.

    Hello ,
          This InfoObject do not maintain the weekday ...so it is difficult to show the Weekday for a date as per the standard way.
              You need to write a Customer exit variable..and you need to use a Function Module : DATE_TO_DAY. This will convert your date to day ie 23.04.2007 = Monday.
          Note: This function module is not available in BW so try to copy this FM from R/3 system.
          I am sure this will solve ur issue:-)
                    --EnjoySAP
    Have a great day!

  • IOS 7 iPad - Safari periodically displays horizontal gray line

    Hi all, ever since upgrading to iOS 7, Safari on my iPad periodically displays a faint horizontal gray line when scrolling through some websites.  Has anyone else come across this?  The line only appears on some websites and goes away when scrolling stops.  I've seen this happen on an iPad 3rd generation, iPad Air, and iPad mini with Retina.  It appears to be the same graphic as the scroll bars in the OS, but there's no reason to scroll horizontally on these pages.
    You can see the line about 2/3 of the way down the webpage here:

    I'm on an ipad Air and have the same issue.
    The problem I see is that this horizontal scroll bar displaying in the middle of a page is a bug.  This scroll bar should appear at the bottom of the screen where scroll bars live on all other browsers, not half way up the page.
    The proof is in the Vertical scroll bar which is in the correct position, on the far right of the page.
    BTW, both scroll bars appear only when necessary which is correct.
    The issue we all share is the positioning of the horizontal bar.

  • Extending Expert Query VO but Query doesn't display in standard VO

    I need to add a new attribute to an export query VO (oracle.apps.icx.por.reqmgmt.server.GroupReqsPublicVO), but when I edit the standard VO in JDeveloper the existing query doesn't display (query is blank and no attributes are listed). I can get the query from the xml file, but does this mean there is a problem? Should I just copy the query from the xml file and use that?

    All of the info is in the standard VO xml file (ie query, attributes, etc), but when I choose Edit VO ... in JDev nothing is displayed. A similar standard VO (slightly different query) appears fine in JDev - query and attributes displayed.
    I ended up trying the following, which appears to be working (although I am still waiting on some test data from the users):
    Create new VO, extending standard
    Copied the query from standard VO xml file
    This left me with all of the queried attributes, but none of the transient attributes.
    I tried to copy the additional attributes from the standard VO xml file to the extending VO xml file in JDev, but the extending VO xml file is protected.
    Then I closed JDev, manually edited the extending VO xml file to include the additional transient attributes that are in the standard VO xml file.
    Whether it was related or not, but when rebuilding my project, it complained that it couldn't find the standard VO's Impl java file, so I decompiled the class file to produce that.

  • 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

  • Auto Query in Before Display Page Section

    The following code is querying master and detail blocks automatically in before display page section. It was working fine. But now I don't know why it doesn't work any more. Does any one know what's the problem?
    declare
    l_fs varchar2(4000);
    l_s varchar2(4000);
    L_user varchar2(4000);
    begin
    l_fs := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE');
    l_s := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_STATUS');
    L_user := portal30.wwctx_api.get_user;
    if l_fs = 'QUERY_AND_SAVE' and l_s is null then
    p_session.set_shadow_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_E_MAIL_ID',
    p_value => L_user,
    p_language => portal30.wwctx_api.get_nls_language
    WWV_MASTER_GENSYS_1(p_block_name => p_block_name,
    p_object_name => p_object_name,
    p_instance => p_instance,
    p_event_type => p_event_type,
    p_user_args => p_user_args,
    p_session => p_session);
    p_session.save_session;
    htp.p('<script>window.location.reload();</script>');
    end if;
    end;

    Hi,
    To query records before displaying and to refresh the page, you can call the same form (by using the code given below)with necessary parameters from ..before displaying page..section of your form.
    declare
    l_fs varchar2(4000);
    l_s varchar2(4000);
    L_user varchar2(4000);
    begin
    l_fs := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE');
    l_s := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_STATUS');
    L_user := 'PPP';
    if l_fs = 'QUERY_AND_SAVE' and l_s is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    window.location.href = "PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<MODULE ID>&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=E_MAIL_ID&p_arg_values='||l_user||'&p_arg_names=_E_MAIL_ID_COND&p_arg_values=%3D";
    </script>');
    end if;
    end;
    Replace <MODULE ID< with the module id of your master detail form.
    Hope this helps!..
    -Krishnamurthy

  • BI query not properly displaying in Consumer Portal - Through FPN - RRA

    Hi Everyone,
    we have implemented FPN between EP 7.0 and BI 7.0 . A role with BI reports (iview created using Bex7.0 template) are working fine in BI Portal.
    When its RRA to a users in EP-consumer portal, its not coming properly. I mean it shows some default header/Menu (like New Analysis Open, Save As, Information, Send etc..) in EP but not displaying the details of the report. Other URL iviews are working fine in RRA, just BI query is not coming properly. All pre-requisite for FPN is done properly and SSO configured.
    Appreciate if some one can provide a solution
    Thanks

    Dear Guru,
    I am also facing the same problem.  What you had faced earlier.  Can you explain the detailed solution to resolve this
    problem. BI query not properly displaying in Consumer Portal - Through FPN - RRA.
    If you can explain the solution that will be great.
    With Thanks and Regards,
    Anil Kumar.

  • Customer exit code for fiscalyear period based on system date

    Hi Experts,
    Please provide customer exit code for fiscalyear period derive based sy-datum. Fiscal year period derivie current to previous 12 periods and current to fast 12 periods.
    Thanks,
    Subbaraju

    Hi Subbaraju,
    Please use below customer exit code for your solution. Please define declarations as per requirement.
    When 'ZFPERIOD'.
    IF I_STEP = 2.
    ztoday = sy-datum.
    zfast = sy-datum + 365.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
      EXPORTING
        i_date               =  ztoday
        i_periv              = 'K4'
    IMPORTING
       E_BUPER              = PERIOD2
       E_GJAHR              = YEAR2.
    CONCATENATE YEAR2 PERIOD2 INTO FISCPERLOW.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
      EXPORTING
        i_date               =  zfast
        i_periv              = 'K4'
    IMPORTING
       E_BUPER              = PERIOD2
       E_GJAHR              = YEAR2.
    CONCATENATE YEAR2 PERIOD2 INTO FISCPERHI.
    L_S_RANGE-LOW = FISCPERLOW.
    L_S_RANGE-HIGH = FISCPERHI.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    Similar code user for your previous periods also.
    Thanks,
    Chandra

  • Query View not displaying data according to Query

    Hi,
    I have a query with current cal week vaiable set for 0CALWEEK. A Query View is created on that but everytime we have go and maually refresh the query view and save it to show the current week. Is there any setting in WAD, Queryview or the query to pick the data automatically from Query directly?
    Thanks

    Hi,
    Restrict the 0CALWEEK in the query with the variable 0CWEEK which is the current week. Then, create the view and the web template will automatically takes the current week.
    Edited by: P R on Feb 15, 2011 5:06 PM

  • MDX Query - how to display member name not alias

    <p>Hello,</p><p> </p><p>I have a number of mdx queris that i am running through thecommand prompt. The query output is displaying the member aliasinstead of name does anyone know how i can change this.</p><p> </p><p>My query looks like this</p><p> </p><p>SELECT NON EMPTY<br>{[AUM_CBAL]} ON AXIS(0),<br>{[Product].levels(0).members} ON axis(1),<br>{[Calendar].ME20050630} ON axis(2),<br>FROM AUM.Aum</p><p> </p><p>Thanks!!</p><p> </p><p>Ranee</p><p> </p>

    Assuming that you mean essmsh: this is a setting you can change. the command to change is:<BR><BR>alter session set dml_output alias off ;<BR><BR>Not sure if you can change this in EAS<BR><BR>HTH

  • Query has to display completed quarters and Data loaded month.

    Hi All,
    I have  2 issues in  BEX .
    1. I need to display  data  loaded month(0calmonth):
    Ex: Jan  2007  data has loaded in May 2007, my query has to display  for  3 months JAN 2007, Dec 2006, November 2006.
    2. completed quarters :  if we are in mid of 3 quarter, query has to display Quarter1 and quarter2 (completed)  ,nothing has to display in quarter 3.
    Thanks in advance for your inputs.

    1. you mentioned data loded month... but you are pointing Calender month that data belongs to? Are you want display based on Calender Month that data belongs to (Jan 2007) or Loded Month (May 2007) or Last Loded Month?
    2. create User Exit variable on Quarter or Month IO. in the User Exit Code, check which Quarter that current month belongs to? if it is mid of 3rd quarter, pass Quarter 1 and 2 (or for month 1 to 6).
    hope this helps.
    Nagesh Ganisetti.
    REMOVED

  • Convert 0calday to fiscalyear/period and fiscalyear in BI7.

    Hello
    Please can someone tell me the formula to convert calendar day to fiscalyear/period and fiscal year....also can someone give me links to where i can find all the formulas...any documents etc
    thanks

    Hi,
    Please check formula builder there you can find DATE_FISCPER3, DATE_FISCPER and DATE_FISCYEAR formulas which converts date to fiscal year and period.Take a look at them..
    Regards.

Maybe you are looking for

  • Syncing photo to ipad issues

    I hope some one can help me. I have an ipad3 which i wish to sync some photo files from my pc too( windows xp ). In the past this has worked fine. However i do not appear to be able to sync a whole file any longer. First attempt 150 of the 170 where

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All, I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control. In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control. Wh

  • C6280 Photo printing problems

    Any time I want to print photos on HP photo paper they come out with alot of pink and yellow - grey clouds show up as pink and light green shows as yellow.  It doesnt matter if I use the printer 'reprint photos' button or go through the print functio

  • Conflict with tiger 10.4.6 and itunes 7.5?

    I just upgraded my OSX to Tiger but now my itunes 7.5 won't work...should I just go ahead and update to 10.4.11? My machine can't handle leopard...

  • Digital Cinema Desktop Preview (RAW) - sometimes reverses fields playback

    I am running FCP 5.1.1 on Intel and monitoring the video on a broadcast CRT monitor via the Apple DVI to S-Video adapter. The control panel's external monitor settings are set up to standard PAL configuration, so one would assume that in the RAW mode