Breaking up of Budget into quarters

hi All,
I am trying to build reports.
I have a KF called 0AMOUNT, which has budget data and also carries information about the Fiscal Year/Period in the format like ( 001/2006, 002/2006.. so on till 012/2006)
So 001/2006-003/2006 accounts for Quarter 1 and so on for other quarters.
I am creating a RKF restricting 0AMOUNT to Fiscal Year/ Period and using my own user defined Varible, which prompts the user for the quarter he wants and has default value ( say 001/2007- 003/2007 for Quarter 1 of Year 2007)
So totaly 4 RKF's and 4 Variables.
problem is that, when i execute the report it prompts the user for all the quarters and suppose if he wants to get the breakup for 2008, he has to enter all the quarter's value in the variables again. and then execute.
Not looking good.
I m sure client wont like it.
is there any way out for me!!!
any help would be GREAT
thanks

Hi Arun,
     Create a structure as mentioned below.
<b>Columns:</b>
In the frist column,
  Amount
  Fiscal Period - Restrict this with a variable for quarter.
       The variable should not be ready for input and no default
     values. (ZQUARTER1)
Similarly other three columns.
(let the variable in them be ZQUARTER2, ZQUARTER3, ZQUARTER4)
Now as a fifth column, in the new selection drag the Amount keyfigure
and Fiscal year. Create variable for Fiscal year which should be ready
for input, can give default value also.
<b>Now check the code for exit below.</b>
DATA: W_I_T_VAR_RANGE_IN LIKE RRRANGEEXIT.   
DATA: YEAR(4) TYPE C.                     
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: L_YEAR    LIKE T009B-BDATJ.
DATA: L_PER     LIKE T009B-POPER.
CASE I_VNAM.  " Variable name
   WHEN 'ZQUARTER1'.
     READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'
     INTO W_I_T_VAR_RANGE_IN.
     YEAR = W_I_T_VAR_RANGE_IN-LOW.
        CLEAR L_S_RANGE.
     CONCATENATE YEAR '001' INTO L_S_RANGE-LOW.
     CONCATENATE YEAR '003' INTO L_S_RANGE-HIGH.
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT  = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
   WHEN 'ZQUARTER2'.
     READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'
     INTO W_I_T_VAR_RANGE_IN.
     YEAR = W_I_T_VAR_RANGE_IN-LOW.
        CLEAR L_S_RANGE.
     CONCATENATE YEAR '004' INTO L_S_RANGE-LOW.
     CONCATENATE YEAR '006' INTO L_S_RANGE-HIGH.
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT  = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
   WHEN 'ZQUARTER3'.
     READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'
     INTO W_I_T_VAR_RANGE_IN.
     YEAR = W_I_T_VAR_RANGE_IN-LOW.
        CLEAR L_S_RANGE.
     CONCATENATE YEAR '007' INTO L_S_RANGE-LOW.
     CONCATENATE YEAR '009' INTO L_S_RANGE-HIGH.
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT  = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
   WHEN 'ZQUARTER4'.
     READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'
     INTO W_I_T_VAR_RANGE_IN.
     YEAR = W_I_T_VAR_RANGE_IN-LOW.
        CLEAR L_S_RANGE.
     CONCATENATE YEAR '010' INTO L_S_RANGE-LOW.
     CONCATENATE YEAR '012' INTO L_S_RANGE-HIGH.
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT  = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
ENDCASE.
you just need to make some changes depending upon where you are using it.
I hope this will work out.

Similar Messages

  • Breaking up of Budget into quarters and displaying in Bex

    hi All.
    I am new to SAP BW.
    Trying to create some queries.
    In my BW System we have a keyFigure called Budget and now the requirement is to Break it up into Respective quarters and display it.
    we have time characteristics as
    1.Fiscal Year
    2.Fiscal Year/ Period
    3.Fiscal Year Variant
    4.Posting Period
    so, do i create a RKF and if yes, which time characteristics to be used.
    any kind of help would be great!!
    thanks a lots
    Arun

    Hi Rohini,
    Thanks very much your answer really helped
    but still i want to understand some more things.
    Previosly when i said tht i created variables for each quarter, i created the Fiscal Year variables itself.
    <i>Instead create 4 Fiscal Period Var</i>
    does this mean the same. what i did was Created New RKF --> Select the KF and the select the Fiscal Period --> Restrict the Fiscal Year. Then created 4 new Variable's with default variables with following properties
    1.Processing By : User Entry / Default Value
    2. Characterisic: Fiscal Year / Period
    3. variable Represent : Interval
    4. Variable Entry is : Optional
    and ticked Ready for input.
    Then I selected Default Value : 001/2006 To Default Value as 003/2006 for FVAR1 and 004/2006 To 006/2006 for FVAR2 and so on for other two quarters.
    Now Stil when the query runs it asks for the Four varibles input. But the default values are same as I mentioned and I think its ok.
    The concerns are
    1.is the procedure correct?
    2. is there any other way so that Bex doesnt prompt the user to enter the values?
    3.Now we are taking the specefic case of Year 2006, ( i.e we are hardcoding in the query ) now if the user wants to have the quarter wise budget for 2007 this wont help rite.
    what can be done to solve these..
    Thanks in advance
    Arun

  • "Save as PDF" breaks up the document into multiple PDFs

    Ever since my Lion install, when I open a doc in MSWord and try to "Save as PDF", it breaks up the document into multiple PDFs, not one saved PDF. Haven't seen this problem before. Anyone else experiencing this new "feature"?

    What version of Word?  It's working fine with my Word 2011 on Lion.  (version 14.1.2.  Applied SP1 and the .2 update.)
    A workaround would be to print, then select the PDF dropdown in the lower corner of the print window.
    Otherwise, you'll probably want to ask in the Microsoft forums, as Save As is using Word's programming code, not OSX's code like it does with the print function.

  • Breaking up the weblogs into different categories

    It will be really nice to break up the weblogs into different categories based on technical areas(kind of like forum but not that many categories). There could be one category where all the general discussion weblog could be posted. I think this will generate more traffic towards weblogs. Right now lot of the technical weblogs are getting lost among the general content. Just a suggestion. Love to hear back from SDN members.

    Hi Sing,
    Once in a while this request comes up and I have the same reaction as Craig has. It's there, just select Topics and every one of them has it's own page.
    For example here is the EP page:
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/weblogs/topic/22
    Your latest Weblog still on top although there were many other posts on the most recent weblogs page.
    It makes me think how we could better make it available to people. The weblogs as well as the link on the main EP page is directly to this page.
    Not sure what else can be done, besides a Weblog pointing it out again.
    Best, Mark.

  • Splitting values into quarters by date ?

    Just looking for some advice on how to do this
    I have 3 columns
    date_entered | value | flag
    I have made a view called quarters_vw
    date_entered | value |flag | quarter_1_2012 | quarter_2_2012 | etc...this goes on until quarter_4_2013
    lets say i have a value in the view like
    1000
    I want to split this between 4 quarters which is no problem, but it has to be split based on when entered.
    So...if entered in quarter 1, it would be divided by 4 into quarter 1-4, but if it is entered in quarter 2, it would be divided by 4 into quarters q2_2012 to q1_2013, and so on.
    If entered in q4 of 2012, would be split into q4_2012, q1_2013,q2_2013,q3_2013. also if entered in q4_2012 , that means q3_2012,q2_2012, and q1_2012 would need to be 0.
    this all happens only if the flag ='YES'
    if the flag ='NO' then the value just goes into the quarter of when it was entered. no splitting it up.
    any ideas how to do this ?
    ---------ok, will post my sql and sample data

    Remember, I'm the one with no Database at hand (please bear with me), so maybe something like
    select date_entered,value,flag,quarter
      from (select date_enrered,
                   case flag when 'YES'       /* you might want to use the fourths */   
                             then value / 4   /* finite number of decimals if value not divisible by 4, but round(value,2) might not sum to value_entered*/
                             else value
                   end value,
                   flag,
                   case flag when 'YES'
                             then to_char(add_months(trunc(date_entered,'month'),3 * (level - 1)),'yyyy_q')
                             else case when trunc(date_entered,'month') = add_months(trunc(date_entered,'month'),3 * (level - 1))
                                       then to_char(trunc(date_entered,'month'),'yyyy_q')
                                  end
                   end quarter
              from your_table
            connect by level <= 4
    where quarter is not nullRegards
    Etbin
    Edited by: Etbin on 3.5.2012 11:14
    This (although inefficiently) seems to work
    with
    your_table as
    (select trunc(sysdate) - 100 date_entered,5000 value,'YES' flag from dual union all
    select trunc(sysdate),6000,'YES' from dual union all
    select trunc(sysdate) + 100,7000,'YES' from dual union all
    select trunc(sysdate) - 50,7000,'NO' from dual union all
    select trunc(sysdate) + 10,6000,'NO' from dual union all
    select trunc(sysdate) + 100,5000,'NO' from dual
    select distinct date_entered,value,flag,quarter
      from (select date_entered,
                   case flag when 'YES'       /* you might want to use the fourths */   
                             then value / 4   /* finite number of decimals if value not divisible by 4, but round(value,2) might not sum to value_entered*/
                             else value
                   end value,
                   flag,
                   case flag when 'YES'
                             then to_char(add_months(trunc(date_entered,'month'),3 * (level - 1)),'yyyy_q')
                             else case when trunc(date_entered,'month') = add_months(trunc(date_entered,'month'),3 * (level - 1))
                                       then to_char(trunc(date_entered,'month'),'yyyy_q')
                                  end
                   end quarter
              from your_table
            connect by level <= 4
    where quarter is not null
    order by 1,4Edited by: Etbin on 3.5.2012 12:12
    A quick and dirty recursive with solution with roundoffs compensation
    with
    your_table as
    (select trunc(sysdate) - 100 date_entered,5555.55 value,'YES' flag from dual union all
    select trunc(sysdate),6000,'YES' from dual union all
    select trunc(sysdate) + 100,7000,'YES' from dual union all
    select trunc(sysdate) - 50,7000,'NO' from dual union all
    select trunc(sysdate) + 10,6000,'NO' from dual union all
    select trunc(sysdate) + 110,5000,'NO' from dual
    quarters(i,date_entered,value,flag,quarter) as
    (select 1,date_entered,value,flag,null
       from your_table
    union all
    select i + 1,
            date_entered,
            case when flag = 'YES' and i = 1
                 then round(value / 4,2)
                 else value
            end,
            flag,
            case flag when 'YES'
                      then to_char(add_months(trunc(date_entered,'month'),3 * (i - 1)),'yyyy_q')
                      else case when trunc(date_entered,'month') = add_months(trunc(date_entered,'month'),3 * (i - 1))
                                then to_char(trunc(date_entered,'month'),'yyyy_q')
                           end
            end
      from quarters
    where i <= 4
    select q.date_entered,
           case when q.rn = 1
                then q.value + y.value - q.rt
                else q.value
           end value,
           q.flag,
           q.quarter
      from (select date_entered,value,flag,quarter,
                   sum(value) over (partition by date_entered,flag order by quarter) rt,
                   row_number() over (partition by date_entered,flag order by quarter desc) rn
              from quarters
             where quarter is not null
               and i > 1
           ) q,
           your_table y
    where q.date_entered = y.date_entered
       and q.flag = y.flag
    order by 1,4

  • When I capture from tape, express 4 now breaks my captured material into separate shots, an icon in the browser for each. Before it captured the whole clip till I hit escape, and created just one Icon. How to i get back the way it was.

    When I capture material from tape with final cut express 4, it used to create one icon for the whole clip. Now, when i capture, it breakes  the material down into many browser icons, shot by shot. I dont want that. How to I return to what I ahd before/

    What you describe is normal behavior for HDV capture using FCE.
    DV captures as one clip or may split the clip if there are timecode breaks on the tape.
    HDV always breaks clips at the shot changes using FCE.
    HDV cameras can downconvert to DV even if HDV was used to record the footage so it's important to know what the camera outputs during FCE capture.
    Maybe this is why you have had mixed results with the differing capture windows?
    Al

  • Breaking a long clip into 'sub-clips'

    So, I have a long clip that I've imported from, say a single long shot at an event.  I want to break that clip up into what used to be subclips.  I want to be able to treat those subclips as if they were clips - I want to be able to give them names, organize them in folders and I want to be able to drag them onto the timeline.
    My question is, how does Apple think we should be doing this?  The way that I see recommended around the web is:
    Select your 'master' clip. 
    Set In and Out points.
    Bring up the keyword editor.
    Enter a new keyword for that 'subclip'
    Doing this allows you to organize each 'subclip' by the keyword that's assigned to it and, by 'expanding' the master clip in the clip window, you can see the subclips/keywords in that master clip and you can drag them onto the timeline.
    There are big issues with this, however. 
    There is no easy way to organize these subclips.  Lets say I make 40 subclips (keywords) from a master clip.  I then organize them into folders, 20 per folder, according to how I want them grouped. When I select a folder, I see a list of 20 clips - all named the same ... they are all named after the master clip!  I have no way of telling which clip is which without individully exanding each clip!  I could go back to the actual master clip by looking at it under the Event and exanding the master clip to see the list of all the 'keywords' - but then I have no way of orgainizing them - they're all just under that master clip.
    What I want is not a 'keyword' - which is essentially a reusable identifier, used in this work-around as a single-use identfier - but a way of making parts of a master clip funtionally equivalent to the original master clip.  Just because I shot some things in one take - especially with event videography - that doesn't mean I want them grouped together for editing.  As far as I can see, there is no way to dissociate these subclips from the original master clip for the purposes of working with them.
    This is basic functionality ... so am I missing something?  What is the non-workaround way of doing this?
    Here is another explanation of the issue by a kindly blogger:
    http://fcpxquirks.tumblr.com/post/7122539715/so-far-the-biggest-workflow-problem -in-final-cut-10-0
    Thank you!
    A

    Well, the difference is you can't do anything, like drag to the timeline or scrub, with the names in the library pane, only in the clips pane. 
    But you're right, that does suggest an improvement over using the folder to reveal the (sub)clips in the clip pane.  I could drag the library pane as wide as possible so I can see as much of the 'subclip names'/'keyword collection names' as possible.  Then expand the folder I want in the library pane, revealing those names.  Then I click on the subclip/keyword I want, which reveals the (sub)clip in the clips pane. I can then drag it to the timeline or scrub it etc there.  That's probably also an improvement over expanding the master clip in the clips pane, though still a right hacky pain.
    I really don't think that being able to create subclips is an either/or with keywords.  They fullfill different needs.  Keywords do what they do well, but we still need the ability to create subclips, both from a logical workflow point of view and from a practical point of view, given how inconvenient this hack with keywords is.  It should be 5 step process ...
    1. You shoot your video, stopping and starting how it suits you at the during the shoot.
    2. You import the video.
    3. You break it up into clips for editing convenience.
    4. You label and group and fine tune those clips with the keywording system.
    5. You edit.
    The ability to non-hackily do Step 3 is missing in Final Cut Pro X, it seems.

  • I am working on a book in the book module of Lightroom. When I started, I didn't realize that there was a limit of 240 pages. I am going to need to break this book up into two books now. Is there anyway to move pages from one book and create a new book wi

    I am working on a book in the book module of Lightroom. When I started, I didn't realize that there was a page limit of 240 pages. I am going to need to break this book up into two books now. Is there a way to take pages from one book to start a second book without having to "redo" the pages again in the new book?

  • ALV grid - how to break a long string into several lines?

    I have a ALV grid, where one of the fields contains a textstring that is typically 100 characters long.
    Is it possible to break this long string into shorter strings on multiple rows?
    Kind of like in Excel, when using row break...

    Thats not possible in ALV

  • Breaking up a project into smaller units for YouTube

    Hi,
    I used FCPX and Compressor to export a 55 minute FCPX movie for YouTube. The resulting 720p file, while looking fantastic, was 4.37 gigabytes and failed to upload to YouTube. Rather than compressing to a smaller, lower resolution movie, I think I'd rather break the movie up into four separate movies and upload those smaller files to YouTube. What I am asking is this: What's the easiest way to break up my project into separate movies, using either FCPX or Compressor?
    Thanks!

    rebbi wrote:
    Hi,
    I used FCPX and Compressor to export a 55 minute FCPX movie for YouTube. The resulting 720p file, while looking fantastic, was 4.37 gigabytes and failed to upload to YouTube. Rather than compressing to a smaller, lower resolution movie, I think I'd rather break the movie up into four separate movies and upload those smaller files to YouTube. What I am asking is this: What's the easiest way to break up my project into separate movies, using either FCPX or Compressor?
    Thanks!
    You can set IN and OUT points in the timeline to export just a section of the movie.
    But since you already exported, there is an easier way. Open the exported movie in MPEG Streamclip, set an IN and an OUT point, and do Save As...; repeat with other IN and OUT. This is quick, since it does not recompress the movie.

  • How to break the PDF file into images?

    How to break the PDF file into images? There should be settings in Photoshop CS 6 that imports PDF file and break it into images.  I have a short instruction:
    2.    Open the file in Photoshop.
    3.    A new window should open to Import PDF.  Click on images, not pages  import pdf into Photoshop.doc
    4.    Select all the files shown (shift + click), Click O.K.  Four files should open on your screen.
      Was anybody successful with that?

    Whether this is available solely depends on the structure of the PDF and whether it actually contains whole images that can be extracted separately. Depending on whatgoing on in the PDF this may simply not be the case and the images have been tiled and split up in multiple "objects" whose appearance can only be retained by rasrerizing the whole page...
    Mylenium

  • Break the page name into two lines..

    Hi,
    I am trying to break the page neme into lines.For example Knowledge Management is the name of a page in Detailed Navigation and I want it to be displayed linke Knowledge and Management in two lines.I was just adding the break statement within the page name but was not successful.Any Ideas ??
    Thanks.

    I think you'll need to write your own detailed navigation to do this. There are a set of tags to make this easier...
    Cheers

  • Break a single pdf into single pdf's

    I have a 250 page pdf.  each page represents a departments information.  Is there a way to break apart that pdf into single pdf's but using part of the file to name the pdf?
    for example, if the first report has a title that contains department 123, I could extract that page and name it department 123.
    The only want I know how to break a pdf into multiple pages is to use the document / extract pages and select Extract pages as seperate files.  But when I do this it uses the name of the exiting file and adds a number to it.
    Also, i was just reading up on creating bookmarks. is there a way to set one bookmark and apply that across all other pages?
    Thanks

    Re extracting and renaming pages: This is done with a script, but it can
    only be done if your pages are consistent and the script can identify the
    text that is to be used for the file name. If you wish, you can send me
    some sample files by email ([email protected]), or share them somewhere and
    post the link here, and I'll let you know if I think it's possible.
    Re bookmarks: What do you mean, exactly? You mean you want to copy&paste a
    bookmark? No, that's not possible. But bookmarks can also be generated with
    a script.

  • Way to break up published file into several SWFs?

    I really really want to use Captivate to develop training for
    my organization but one aspect of it is in our way - the size of
    the published SWF file. We're going a lot of system simulation and
    Captivate would be a great fit - but our LMS IT dept. has a fit
    when they see the files we need to post are 6MB+. Is there a way to
    have Captivate break each slide up into it's own SWF? Like Breeze
    does to Powerpoint slides. We're looking to publish this training
    to bank branches and bandwidth is tight. You don't want a bunch of
    steaming SWFs disrupting ATM and other branch traffic.
    If not, this is a much need feature to add in version
    3.

    Hi nudoru,
    I use a similar approach to get around the all-or-nothing
    background audio looping. For each project I have three
    sub-projects.
    1. The first is the intro project - a corporate
    marketing/branding-provided AVI converted into SWF with overlaid
    title Text Animation at the end.
    2. That branches into the main "body" project which contains
    the looped background audio and main presentation content.
    3. When the body reaches the end it branches into the closing
    project consisting of a video (another AVI converted into SWF) and
    copyright notice slide.
    At the end of the closing project I can then branch back to a
    main menu/project, a website, or just stop. None of my individual
    presentations are longer than three to four minutes though, and I
    try to limit the quantity of full-motion capture that comes from
    excessive window moving and resizing. As a result, the bulk of the
    body project swf file size comes from the audio track, ~1MB/minute.
    Hope this helps!
    Andrew.

  • How to break up a String into multiple array Strings?

    How do I break up a string into a bunch of String arrays after the line ends.
    For example,
    JTextArea area = new JTextArea();
    this is a string that i have entered in the area declared above
    now here is another sting that is in the same string/text area
    this is all being placed in one text field
    Sting input = area.getText();
    now how do I break that up into an array of strings after each line ends?

    Ok I tested it out and it works.
    So for future refrence to those that come by the same problem I had:
    To split up a string when using a textfield or textarea so that you can store seperate sections of the string based on sperate lines, using the following code:
    String text = area.getText() ;
    String[] lines = text.split("\n") ;
    This will store the following
    this is all one
    entered string
    into two arrays
    Cheers{
    Edited by: watwatacrazy on Oct 21, 2008 11:06 AM
    Edited by: watwatacrazy on Oct 21, 2008 11:16 AM
    Edited by: watwatacrazy on Oct 21, 2008 11:16 AM

Maybe you are looking for

  • What is the use of creating a detail object on a measure.

    Hi Experts, In BI 4.X business layer, we can create a detail object of a dimension and as well as measure. Can you please let me know what could be the use of the detail object of a measure object? In the business layer, it is showing like this... <M

  • Using colorTrans:ColorTransform on more than one movie clip

    Hi I am very new to Flash and action script so please bare with me... I would like to be able to change the color of more than one movie clip in the same layer in the same frame. Basically I have place two different movie clips with defined instances

  • Locate SQL causes full table scans from Statspack

    Hello, In my statspack reports I see a lot of full tables scans (1,425,297) How can I locate the query that causes this ? stats$sql_plan should fit? Oracle is 9i Thank you

  • How to implement Queuing of WebService call.

    I have to implement a queuing mechanism for webservice. The scenario is like a user will invoke the client from his sytem(name:A), this webservice call is received by a server (name:B). The webservice will internally call a third system(name:C) , but

  • Easiest way to create a string with a unicode supplimentary character

    In my code I had previously been declaring some strings such as: String s = "\u1234";Now I have gotten to a point where I want to use a supplimentary unicode character like this: String s = "\u12345";This, however, does not work since Java only allow