Buckets

Hi -
I am trying to extend our fiscal calendar using some analytical sql as it does not fall into some of the standard built-in date functions.
below is the code for what i need, any other suggestions for producing this is appreciated (I seem to have it but am mostly curious as to other, better and easier methods)
Trying to:
a) create week_bucket - 7 day intervals is 1 week, partitioned by year
b) create a month_bucket - follows a 5-4-4 per quarter per year (in other words the first month of each quarter has 5 weeks and the other 2 months have 4 - a quarter = each 3 months interval/yr).
c) create the quarter_bucket - week 1-3 = q1, 4-6 = 2, etc (note: not shown)
with c as(
select to_date('31-DEC-2010') + rownum dy, extract (year from to_date('31-DEC-2010') + rownum) yr
from dual
connect by level <3000
order by dy
select dy, yr,
-- row_number() over (partition by yr order by dy) as cnt,
ceil(row_number() over (partition by yr order by dy)/7) as week_bucket,
case when (ceil(row_number() over (partition by yr order by dy)/7)) < 6 then 1
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 6 and 9 then 2
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 10 and 13 then 3
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 14 and 18 then 4
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 19 and 22 then 5
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 23 and 26 then 6
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 27 and 31 then 7
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 32 and 35 then 8
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 36 and 39 then 9
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 40 and 44 then 10
     when (ceil(row_number() over (partition by yr order by dy)/7)) between 45 and 48 then 11
     when (ceil(row_number() over (partition by yr order by dy)/7)) >48 then 12
     end as month_bucket
from cthanks!

I may be way off on what you're trying to accomplish here, but have you looked into using the following?
ME_XE?select to_char(sysdate, 'Q'), to_char(sysdate, 'W'), to_char(sysdate, 'MM') from dual;
TO_ TO_ TO_CHA
4 3 12
1 row selected.
Elapsed: 00:00:00.01
Q for quarter
W for week
MM for Month
For requirement A, in order to partition by year you would need to append in the YYYY portion of the year in question...

Similar Messages

  • How to activate the ATP buckets in APO?

    Hi,
    We are in the process of changing the ATP buckets in our APO system.
    I know the Path in the configuration:
    Advanced Planning and Optimization -> Global Available-to-Promise (Global ATP) -> General Settings -> Maintain Global Settings for Availability Check
    On the left side you will get three sections:
    Global Settings
    ATP Buckets (Active)
    ATP Buckets (Planned)
    I can change the values in (example field Shift Receipt Bucket) the ATP Buckets (Planned) section and save it with a transport. Now the question is how to activate the buckets. Is there another transaction for this? SAP Help doesn't specify how to activate.
    Any ideas are highly appreciated.
    Thanks,
    Mahesh

    Hi,
    To activate the buckets one need to check the box 'Current' in the options under ATP Buckets (Active). Also, as referred earlier by Dipthi do look up the documentation under:
    SAP Advanced Planning and Optimization (SAP APO) -> Global Available-to-Promise (Global ATP) -> Settings for Global ATP -> General Settings for Global ATP ->Definition of Buckets for ATP Time Series ->Activation of Bucket Parameters for ATP Time Series.
    The details are as beneath:
    Use
    If you change bucket parameters (see Definition of Buckets for ATP Time Series), these must be activated subsequently for the ATP time series.
    Features
    The system activates the bucket parameters in the following situations:
    Since activation in each of the situations described below leads to downtime, you should change bucket parameters less frequently than other Customizing settings.
    ·        Creating the active planning version for a client using transaction /SAPAPO/MVM
    If you set up a system again, you should process the bucket parameters before you create the active planning version. The bucket parameters are thus activated automatically.
    ·        Initializing SAP liveCache for all clients using transaction LC10
    In the case of an upgrade, you should process the bucket parameters before activating SAP liveCache. The bucket parameters are then activated automatically.
    ·        Executing the report /SAPAPO/OM_ATP_REBUILD_TS
    The system only rebuilds the ATP time series here.
    In this case, the SAP liveCache administrator must execute the following steps:
                                a.      Shut down SAP liveCache.
                                b.      Replace the com-file registration:
                                                      i.       At command line level, go to the SAP subdirectory of the SAP liveCache installation.
                                                    ii.       Under Microsoft Windows, save the original registration files SAPAPO.lst and SAPATP.lst (UNIX: libSAPAPO.lst and libSAPATP.lst), for example, by renaming or copying to another directory.
                                                   iii.       Under Microsoft Windows, rename the registration file SAPAPO_REBUILD.lst as SAPAPO.lst (UNIX: libSAPAPO_REBUILD.lstas libSAPAPO.lst) or copy it to another directory.
                                                   iv.       Under Microsoft Windows, rename the registration file SAPATP_REBUILD.lst as SAPATP.lst (UNIX: libSAPATP_REBUILD.lstas libSAPATP.lst) or copy it to another directory.
                                c.      Launch SAP liveCache.
                                d.      Execute the report /SAPAPO/OM_ATP_REBUILD_TS.
                                e.      Shut down SAP liveCache.
                                  f.      Replace the com-file registration by replacing the registration files SAPAPO.lst and SAPATP.lst (UNIX: libSAPAPO.lst and libSAPATP.lst) with the original versions under Microsoft Windows.
                                g.      Launch SAP liveCache.
    Regards
    Vinod

  • Photoshop CC 2014 Paint bucket doesn't work

    I am just trying to fill a layer with the foreground color using the paint bucket.   I have the layer set to Normal 100% opacity and the paint bucket set to foreground 100% opacity, Normal mode. But I get zero. No color at all. The layers panel does show the color, just not the screen.
    Also--no color in the paint brushes and no pattern fill. Basically nothing paints on that layer.
    If I unlock the background layer and make it editable, I can use the paint bucket and brushes on that layer, no problem. But not on any layers above that.
    If I drag the background layer up to make it the top layer, I can paint on it one time.  If I change color, change tools, or start another layer. the bucket, brushes, etc. cease to work on that layer.  The only way to paint on a layer is to drag it down to make the bottom layer on the stack and paint on it there.
    For my purposes, this makes CC 2014 absolutely maddening, close to useless. Help!!!  I have been using PS for years and never had this problem til 2014.
    PS CC 2014, Win7 64 Wacom Intuos. Art pen. "Use windows ink" checked.

    Chris, Thank you soooooo much. I would never in a million years have guessed this was the problem. As it was, it took a few hours to find the drivers, install them and recalibrate my monitor. The bucket and brushes are behaving as they should on all layers. Saved so much time, missed deadlines. You have no idea.

  • History and Future Bucket of the Data View

    Hi Experts
    As per my Client Requirement Planning for the Next year Jan 2010 u2013 Dec 2010 which Starts in the second Quarter of the Year 2009.
    They need historical data (Historical Time Bucket) of Last 3 years in the monthly bucket and Future bucket for Jan 2010- Dec 2010.
    My query in this regard to design Data view which  need to Show Historical periods of Last 3 yrs from current month and Future Bucket as Jan 2010-Dec 2010 to input the Forecast.
    The next planning Cycle would start in the second Quarter of the 2010 to forecast for the Jan 2011 to Dec 2011. When they plan for the Year Jan 2011 u2013 Dec 2011 the data views should be automatically roll or update with future bucket Jan 2011-Dec2011 and History Bucket with three years in the monthly bucket from the Current Month.
    Please give your Valuable Suggestions with regard to above requirement.
    I tried by Giving Planning Start Date as 01.01.2010 , but it is not fulfilling the above requirement.

    Hi Anuradha
    Thanks for you quick reply.
    Assume that we are in the Month of June 2009, My planners start the planning process  for the Jan 2010 - Dec 2010.
    If i take 1 year it wont help me , Future Buckets will be till May 2010.
    If i take 17 Months as the Future Buckets , Future buckets are displayed till Dec 2010.
    Till June 2010 In between Planners can have Revision , and may again change the Forecast.
    Suppose Assume that we have revision in the month of March 2010 , Here Future Buckets are displayed till October 2011.
    How to make my data view time bucket in the synchronized with future Periods.
    Thanks in Advance
    Mani

  • Key figure display in planning book with respect to Time bucket profile

    Hi,
    I am loading a key figure to planning area from the info cube for the current month. When I review the key figure in planning book with monthly time bucket profile it shows 85 for the current month. In the same planning book with weekly bucket profile, it shows 55 from the current week and future weeks and the remaining 30 goes into the past weeks of the current month.
    How to make the total quantity 85 to show in the current and future weeks only.
    thanks and regards
    Murugesan

    Hi Murugesan,
    Within the Planning Area, the data is stored at the lowest level granularity that you maintain in storage bucket profile. Then during display, system will decide what data to show depending on what kind of time bucket profile you use in the planning view, and the time based disaggregation that you maintain for Key Figure.
    In this below case, what time characteristic do you have in cube? Is it date, week or month?
    If it's date, check how much KF data is maintained on the dates which belong to week which has days both in this month/last month e.g. if I talk about Dec 2011, how much data is stored 1,2,3 & 4 th of Dec, 2011.
    This data would appear in Dec in monthly view, but in week, it would appear in the week starting 28th November.
    If data is maintained in cube in weeks, then you need to calculate how time based disaggregation would show it to you in months.
    If it's months, then you would need to find out how much data would go to the days in the past week of the month.
    The time based disaggregation may be causing you some issues, but in that case, I would not expect 30 out of 85 to go in the past week, unless you have data in cube in days.
    Data shown in weekly view for week starting 28th Nov should ideally be a small proportion of 85, unless you are using a time stream/fiscal year variant, due to which most of December is in holidays.  The only other exception I can think of is that you have data in teh days mentioned above.
    It would be best to help the business understand this disaggregation logic, rather than thinking of manipulating the data to shift to a later week.
    If this logic doesn't explain your situation, then please provide the date/week/month at which you have data in cube, and what quantity.
    Thanks - Pawan

  • Key Figure 0AMOUNT in buckets per CALMONTH

    Hi all,
    I have 2 key figures 0AMOUNT and PO value which I am using in columns.
    They want to see 0AMOUNT in buckets per 0CALMONTH. So I dropped 0CALMONTH also in columns.
    Now I can see 0AMOUNT per 0CALMONTH buckets wise. It also comes for PO value.
    Can I avoid the 0CALMONTH buckets for PO value. They want to see only for 0AMOUNT in buckets.
    Please assist.
    Thanks,
    Praveen Tati

    Can't be done, unless you create selection for each month for AMount

  • Time-out checking log bucket location.

    Hi,
    Earlier this month, I successfully ran the OSB Cloud Module for Amazon S3 installer. It created a "new registration for this S3 user" with a new "Registration ID". It also generated an "S3 Logging Bucket" with a name based off of my Amazon nickname which at the time of running the Cloud module installer was "javanetworking".
    $ *./osbws_install.sh*
    Oracle Secure Backup Database Web-Service Install Tool, build 2011-02-04.0001
    AWS credentials are valid.
    Creating new registration for this S3 user.
    Created new log bucket.
    Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    S3 Logging Bucket: oracle-log-javanetw-1
    Validating log bucket location ...
    Validating license file ...
    Create credential oracle.security.client.connect_string1
    OSB web-services wallet created in directory /u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet.
    OSB web-services initialization file /u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbwstestdb1.ora created.
    Downloading OSB Web Services Software Library from file osbws_linux64.zip.
    Downloaded 20744341 bytes in 10 seconds. Transfer rate was 2074434 bytes/second.
    Download complete.
    Extracted file /u01/app/oracle/product/11.2.0/dbhome_1/lib/libosbws12.so
    Since then, I have changed my Amazon nickname (https://www.amazon.com/gp/nickname/index.html"). I was hoping to re-run the Cloud module installer and have it generate a new "S3 Logging Bucket". I removed the two S3 buckets that were created in the initial Cloud module install (the data and log buckets).
    However, when I attempt to re-run the Cloud module installer, it complains that it cannot find the original "S3 Logging Bucket":
    $ *./osbws_install.sh*
    Oracle Secure Backup Database Web-Service Install Tool, build 2011-02-04.0001
    AWS credentials are valid.
    S3 user already registered.
    Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    S3 Logging Bucket: *oracle-log-javanetw-1*
    Validating log bucket location ...
    Time-out checking log bucket location.
    Please try again later.
    I even tried using the *-newLogBucket* option to osbws_install.jar so it would force the creation of new log bucket; however, it doesn't appear to do anything. It still complains about not finding the original S3 Logging Bucket.
    I thought the best option would be to "un-register" the Amazon S3 user the installer generated. There is no documented option in osbws_install.jar to perform a full "un-install" or "un-register". The Registration ID the installer creates appears to be hard-coded metadata somewhere in Amazon S3.
    +AWS credentials are valid.+
    +S3 user already registered.+
    +Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx+
    I know that the registration information is not stored with your OTN profile because I tried putting in a fake OTN username/password when calling osbws_install.jar. It doesn't use the OTN username/password because it first uses your AWSID/AWSKey to see if there is information that the S3 user is already registered. Once it determines that the S3 account is already registered, it doesn't need to log in to OTN and displays:
    *S3 user already registered.*
    I did try this and it worked for modifying the backup bucket (OSB_WS_BUCKET) but didn't appear to work for the S3 Logging Blucket (_OSB_WS_LOG_BUCKET).
    1.) Manually re-create the missing S3 Logging Bucket (oracle-log-javanetw-1).
    2.) Run the Cloud module installer so it creates the wallet, configFile, and downloads the library.
    3.) Determine list of valid parameters that can be set in the configFile:
    $ *strings $ORACLE_HOME/lib/libosbws12.so | grep '^OSB_' | sort*
    OSB_WS_BUCKET <----------
    OSB_WS_CHUNK_SIZE
    OSB_WS_HOST
    OSB_WS_LICENSE_ID
    OSB_WS_LICENSE_MAX_SESSIONS
    OSB_WS_LOCATION
    OSB_WS_PFILE
    OSB_WS_PROXY
    OSB_WS_WALLET
    $ *strings $ORACLE_HOME/lib/libosbws12.so | grep '^_OSB_' | sort*
    _OSB_WS_100_CONTINUE
    _OSB_WS_ACCESSLOG
    _OSB_WS_ACCESSLOG_CLEANER
    _OSB_WS_ACCESSLOG_RETENTION_TIME
    _OSB_WS_ALLOCBUF_DISABLE
    _OSB_WS_BASIC_AUTH
    _OSB_WS_BUFFER_READ
    _OSB_WS_BUFFER_WRITE
    _OSB_WS_CHECKER_RETENTION_TIME
    _OSB_WS_CLEANER
    _OSB_WS_CLEANER_RETENTION_TIME
    _OSB_WS_DEFERRED_DELETE
    _OSB_WS_EVENT
    _OSB_WS_IP_REFRESH_TIMEOUT
    _OSB_WS_LOAD_BALANCE
    _OSB_WS_LOG_BUCKET <----------
    _OSB_WS_PURGE_LIMIT
    _OSB_WS_RECV_BUF_SIZE
    _OSB_WS_REDIRECT
    _OSB_WS_RESPONSE_TIMEOUT
    _OSB_WS_RETRY_WAIT_TIME
    _OSB_WS_REUSE_CONNECTION
    _OSB_WS_RUN_CLEANER
    _OSB_WS_SDU_SIZE
    _OSB_WS_SEND_BUF_SIZE
    _OSB_WS_SESSION_RETENTION_TIME
    _OSB_WS_TDU_SIZE
    _OSB_WS_TRACE_LEVEL
    _OSB_WS_UPLOAD_DELAY
    _OSB_WS_USE_IPV6
    _OSB_WS_VALIDATE_CHUNK
    4.) Modify the configFile to include:
    $ *cat $ORACLE_HOME/dbs/osbwstestdb1.ora*
    OSB_WS_HOST=s3.amazonaws.com
    OSB_WS_LICENSE_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    OSB_WS_WALLET='location=file:/u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet CREDENTIAL_ALIAS=idevjhun_aws'
    OSB_WS_BUCKET=idevelopment-oracle-backups
    _OSB_WS_LOG_BUCKET=idevelopment-oracle-log
    So,
    1.) Is the *-newLogBucket* option broke or an unimplemented method?
    2.) Is there a way to "un-register" or modify the S3 registration information so that the Cloud module installer will register a new S3 user? (i.e. starting from scratch)
    It would seem to me that a user might want to completely uninstall and un-register at some time in the future.
    3.) Where is the "Registered S3 User" metadata stored?
    4.) Can you specify the S3 Logging Bucket (and data bucket) during the install?
    There is a similar post which the user ran into the same issue when removing the S3 Logging Bucket.
    https://forums.oracle.com/forums/thread.jspa?messageID=4581188
    Best regards,
    jeff

    Hi again,
    my problem seems to be caused by us having deleted the bucket at an earlier stage. When we ran the installer script again, the installer was confused by this, and was not able to re-create a bucket.
    Rune

  • Can I report on the AGE of open Work Items? How? Group into Buckets?

    Is there a way to report on the age of open work items?
    Perhaps a bar graph that has several buckets.
    a.    Over 364
    b.    180 to 364
    c.    90 to 179
    d.    1 to 89
    And then a COUNT in each bucket. 
    For example, if a Work Item is open longer than 364 day, it would appear in bucket "a" as a count of 1.  Say there are a total of 45 Work Items that were opened older than 364 days, then "45" would appear in column "a" now say that there are 100 work items open that are 1 to 89 days old, then 100 would appear in the "d" bucket.
    Make sense?  How can I report like this?

    Hi mrpeepers,
    You can use following MDX script when you create this report that uses TfsOlapReportDS
    with
    member [Measures].[Age]
    As
    IIF([Measures].[Current Work Item Count]>0,DateDiff("d",cdate([System_CreatedDate].[Date].CurrentMember .name),Now()),null)
    member [Measures].[AgeRange]
    as
    case
    when [Measures].[Age] >70 then 70
    when [Measures].[Age] >60 then 60
    when [Measures].[Age] >50 then 50
    when [Measures].[Age] >40 then 40
    when [Measures].[Age] >30 then 30
    when [Measures].[Age] >20 then 20
    when [Measures].[Age] >10 then 10
    when [Measures].[Age] >0 then 0
    when [Measures].[Age] <0 then -1
    else null
    end
     SELECT
     non empty
     {[Measures].[Current Work Item Count],[Measures].[Age] ,[Measures].[AgeRange]}
     ON COLUMNS,
     [System_CreatedDate].[Date].[Date].AllMembers on Rows
     FROM [Current Work Item]
    And then, drop a Chart to report designer, select “Current_Work_Item_Count” as datafield,  AgeRange as category field.
    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Sincerely,
    Ruiz Yi

  • 0FIAP_C03 Cash Mgmt Amounts into Due Date Buckets

    Using Cube 0FIAP_C03 A/P Payables in BW3.5 and Query Designer. I have a need to take the open items and ‘group’ them by days past due.
    First step I created a new key figure to take today’s date (key date) and subtract the net due date. This provides a numeric value of the days past due. So far, so good.
    Then I created another key figure that was the days past due divided by 7 and I displayed the output with zero decimals. This appears to get the buckets, but I can’t find a way to display/group the amount by these buckets for the report. But I can’t find a way to get the Amount (doc currency) to show in buckets (columns) like current, 1-7 days past, 7-14, etc.
    All thoughts appreciated, I may of headed in the wrong direction when there is another approach. Thanks.

    Hi Simon,
    I dont know how relevant this question related to this thread but....... I am working on Inventory Aging and using the query ZQ_ZMMIC03_SRM006. And here theres nothing like buckets and time frames, and for a specific material if we check the material aging it is giving in percentage value. I am not sure how this % is caluclated. Could you please take me out of this confusion. I am attaching the Link wht I am talking about and I couldnt understand what it exactly defines about the Inventory aging
    http://help.sap.com/saphelp_crm50/helpdata/en/69/8693404f673028e10000000a1550b0/frameset.htm
    I appreciate your help
    Shane

  • How to change AR aging 4-bucket report to 7-bucket

    hi 2 all
    how to change AR aging 4-bucket report to 7-bucket  in oracle apps r12 . in AR module 7 bucket report also exist but it include all collection (applied & unapplied) my requirement is that aging create on applied collection just like 4 bucket. thanks
    Regards ,
    Zulqarnain.

    the planning book transport as mentioned by Ian will get your time bucket profiles   to production
    ....along with macros
    Producton systems are usually closed to make planning book changes (the system would be locked - its not an authorization issue)
    its better to transport the planning book with the correct time bucket profile
    P,S: there is a quick and dirty way to make the change you want though without going though the transport...  but if you can transport... do that

  • How can the dunning letter shows O/S amt and corresponding aging bucket?

    Hi,
    I am going to implement the dunning letter setup in R12. Our user request to have the dunnng letter layout which should show all regular dunning details but also the aging info of the outstanding invoices, i.e. which aging bucket the outstanding amount will be shown. Anybody have idea and help? Thanks a lot.
    Edmond

    Thank you Nagarajan.  I have a dunning letter created in Crystal Reports for our client.  It is fairly limited in scope, it just has the customer name and address, invoice numbers and dates, amounts due and the text they wanted in it.
    I can import it into B1 9.0 and set it as the default for Dunning Letter #1 and it runs, but unlike other formats where there is a DocEntry and/or ObjectID and a ?DocKey@ or ?ObjectId@ parameter, how do I limit the report to just one customer?  Typical document layouts run for the document that's on the screen.  In the dunning process, the report runs once for every customer when the Dunning Letter Method is set to "One Letter per BP".  I have to limit the report to one customer at a time.  Right now, each dunning letter based on the Crystal report is identical and it contains all the data for every customer.
    So, does anyone have any ideas for what selection criteria needs to be included in the Crystal report to have it select just one customer from the dunning wizard tables?  Thanks.
    Michael
    Edit: I created a ?WizardID@ parameter and a ?CardCode@ parameter to limit the report to a single dunning wizard event and a single customer.  While it works fine in Crystal itself, it doesn't work in B1 at all.  I had thought that by limiting the report in this way, it would only create dunning letters for a single customer.

  • Customize AP Trial Balance XML Data Definition for adding Aging Buckets

    Hi
    I have to customize AP Trial Balance Report XML Data Definition Template for adding Aging Buckets & Supplier details in R12 , Could you let me know how i can modify XML file?
    Thanks
    Pravin

    Hi,
    My requirement is different from the one which is in below link.
    I need to add Aging Buckets & Supplier details to AP Trial Balance report (R12) , here i need to modify the XML Data definition template.
    Please help me, very urgent.
    Thanks
    Pravin

  • Manual input for Date offset Buckets in Due date analysis 0FIAR_C03

    Hi Experts,
    I have a requirement where i need to provide a manual input selection to fill offset values of dates for due date analysis.
    For example, current standard report 0FIAR_C03_Q0005 provides data with buckets of 0 days, 1-30 days, 31-60 and so on. Instead of this we need to define this bucket as manual input field and based on that the due date report should fetch the data like as if a user enters 7, 14, 21, 28 and so on till last option as 999 in 6 to eight variables provided than the report should come in buckets of 0-7, 8-14, 15-21 and so on.
    How can i achieve this with BEx.
    -Kushal

    I'm considering you are running this report on a daily basis. Under this assumption, you may create a Key Date Varaible in BEx Query Designer. SAP BEx offers a very useful concept called Key Date. Purpose of Key Date is to execute your report as of today's date (sy-datum) based on a variable. You may create variables also on 'Key Date' & use this variable as subsequent your offsets in the row/col structure. This gives you a better leverage from ABAP side. For such bucket scenarios, your defined variable will give you option to choose input date which can be customized to choose sy-datum as the current date.
    There's no necessity for user to define bucket limits for each level. As per the statements, its obvious the values are multiple of ZOFFSET (The offset provided by users). We can use a simple Customer Exit Variable. We need to first capture the value of ZOFFSET:7. Using CMOD, we can write the custom exit returning a value which gives the bucket range. Another input also must be passed to the exit program to capture 'How many lines you need to process/iterate?'. Say, you create a small formula variable to capture the # of slabs: ZSLABS.  I've just written a basic skeleton. Pls. incorporate your requirements as necessary.
    CASE I_VNAM
    WHEN 'XXXX'.     
         IF I_STEP=2 +(i.e.after popup!)+
              READ TABLE I_T_VAR_RANGE INTO L_S_RANGE WITH KEY VNAM='ZOFFSET'.
    FOR (ZTEMP_I=0; Z_TEMP_1 <= ZSLABS; ZTEMP_I++)
         IF SYSUBRC=0
              CLEAR L_S_RANGE.
              L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).      +This is YYYYMMDD+
                        ZOFF_PREV = L_S_RANGE-LOW + 1.
              ZOFFSET = ZOFFSET * ZTEMP_I.
                   IF(ZOFFSET) IS INITIAL.     
                        L_ST_RANGE-HIGH = SY-DATUM.
                        L_S_RANGE-LOW+6(2) = ZOFFSET.          +Just filter only DD from YYYYMMDD+
                   ELSE     
                        L_ST_RANGE-HIGH = ZOFF_PREV.
                        L_S_RANGE-LOW+6(2) = ZOFFSET.
                   ENDIF.               
              L_S_RANGE-SIGN='I'.
              L_S_RANGE-OPT ='B'.
              APPPEND L_S_RANGE TO E_T_RANGE.
    END FOR +(Not sure about For loops; but you may similar logic using normal do/while loops too...)+     
    ENDCASE
    There may be a few errors in code. Pls. review them & let me know your comments. 
    Typos regretted. Thanks!
    Edited by: Arun Bala G on Oct 16, 2010 12:44 AM

  • Create a new button in Financial Planning of the bucket

    Dear experts,
    We need to create a new button in the bucket financial information in order to when a user click on it, a report is executed, Does anyone know the steps needed to create the button and be showed in the bucket financial information?
    Thanks,
    Sara

    Hi Amit,
    Thank you ver much for your help. I tried this option and it works. The problem is this button is already configured at item level and we have no idea where is configured . We would like to retrieve it to copy in the bucket.
    It is not configured in the launchpad and it is not configured in the webdynpro, if it is not there where can be configured/developed?
    Is there any list of all buttons of the system?
    Thanks again for your help,
    Sara

  • My new blank file is suddenly gray and paint bucket no longer works correctly.

    Photoshop Elements 10.  I started a new blank file, which opened white, as usual.  I enclosed the file with the rectangular marquee tool, and used the paint bucket to fill the background with a brownish color I choose, except it filled with gray.  I looked to be sure the color mode was RBG color, and it is.  After a frustrating couple of attempts to change the color, I thought of a work around and just created a new layer and colored it, but, when I tried to change the color again, the paint bucket would not respond, so I created another layer and the paint bucket then changed the color for me again.  However, I really would prefer it work the way it did before, instead of creating unnecessary layers to do the job.  I insert a screen shot, if it helps.  Any help resolving this would be appreciated.

    I clicked on the arrow and reset the tool.  I also reset the transparency setting in preferences, which was the only color related setting I saw there, to no avail.  I opened another new file, same result, dumping the paint bucket produced only a grayscale color.  Thanks for the suggestion, however. 

  • How to select a shape from pen tool for paint bucket

    I was under the notion that I could make a shape with the pen tool and if I closed the the shape it would then be selected in a way that would allow me to color the interior with paint bucket.
    However, when I splash the paintbucket inside my shape, it paints the whole layer, not just the part inside my shape.
    Obviously I don't understand how it is supposed to work.
    Apparently I've gone at this the wrong way.. I want to create a freeform shape, that once created will be a selected region in the same way a rectangle or elips would.
    What is the best way to do that?  I'm shooting for thought bubble sort of shape, something along the line of the outline of an egg, but with a tail at one end.

    Added tips from Tip Merchant ($200 consulation fee)
    - on mac - command/ numeric keypad Enter turns the path into a selection. Option delete then fills.
    - an action can be setup to bring up Fill Path from the Path panel menu. Just pressing enter fills with FG color
    These are ways to avoid he paths panel altogether. Best way may be to use the TINY fill path icon in that panel as was pointed out by John

Maybe you are looking for

  • Explorer Software for Mac

    Does the ZEN Explorer software work with Mac, or is there a similar Mac version? Thanks.

  • ERROR: -1639 INVALID COMMAND LINE ARGUMENT

    Trying to install software for Shuffle that Santa brought and get this error messsage... "Error: -1639 invalid command line argument. Consult the windows Installer SDK for detailed command line help." Install stops at this point. SOMEONE HELP... My k

  • FI-CO Configuration "Urgent Help"

    Hello SAP Gurus, Simulate Inventory Mgmt; Entry of Simulation Data Plant appears as error. Can any of you help in rectifying this . My plant # is not showing in the drop down menu. If the plant was not created let me know the path and how to rectify

  • Cannot stop Oracle job

    Hi there, I have a scheduled backup job which set to run daily, for some reason or another it has failed and it's current status is skipped and has been so for the last couple of days. I have tried to stop the job, but it sill remains there in the sa

  • ESA scanning for a file inside of a zip inside of another zip.

    There is a new file-encrypting ransomware called CTB-Locker going around that places a malicious .cab file inside of a .zip file inside of another .zip file.  Two questions: 1) How far will an ESA scan depth wise into zips inside of zips. 2) Is a .ca