Macro Logic - Historical Inventory Calculation weekly - monthly

Hi All,
I am trying to design a macro that allows us to view only the last weeks inventory value from a weekly data view in a monthly data view. I have tried a number of different settings such as Calculation Types and different Time Based Diaggregation settings in the planing area but without success.
It would look something like this:
W1...W2....W3....W4 - (these weeks are all in M1)
10....20......32......43
M1 - the last week (W4) is the only one we want to see in M1
43
Any suggestions would be appreaciated.
Paul

Hi Paul,
Have you considerde using Time based Disaggregation type "L"
L- Read: Value from last period; Write: No allocation
When you aggregate from shorter time buckets to larger, for instance weeks to months, the system take the value from the last period and copies it to the larger time bucket. In the reverse case, the value is written to all the smaller time buckets.
You can see the same at:
http://help.sap.com/saphelp_scm41/helpdata/en/8f/9d6937089c2556e10000009b38f889/frameset.htm
Hope this helps.
Cheers!
Abhi

Similar Messages

  • Provide Logic for Day,week,month,year..

    Hi Experts,
    My Requirement is as follows...
    The field is for plant maintenance cycle in days/weeks/months/yrs. The table shows it as a floting number for MMPT-ZYKL1.
    But the transaction IP02 shows this field as a numeric field. There is some background method  being done on this field before display.Can i have the logic for Day,week,month,year..
    Could any one please provide logic for this...............will appreciated..
    Thanks ,
    vamsilakshman.p

    Hi..
    try below code.
      CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
    EXPORTING
    char_unit       = <W_MMPT-ZYKL1>
    decimals        = 0
    exponent        = 0
    fltp_value_si   = <W_MMPT-ZEIEH >
    indicator_value = ‘X’
    masc_symbol     = ' '
    IMPORTING
    char_value      = <res__number_days>.
    regards.
    laxman

  • Calculator does not work, does not add weekly, monthly or yearly correctly

    Hi I am making a calculator where the user inputs his/her income (wages, loans, other) and spending (rent, food, other). I am an if else statement to add up the input fields as the user can input the numbers according to weekly, monthly or yearly. It allos me to run the code but when I input 10 pounds in each of the 3 fields the result is 30 but it should have calculated as 10 * 4.3333333 for each of the three fields.
    The if else statement is below;
    double totalIncome = num1 + num2 + num3;
    double totalSpending = num4 + num5 + num6;
    double result = 0;
    if (op1.equals("Weekly"))
    result = num1 * 4.3333333;
    else if (op1.equals("Monthly"))
    result = num1;
    else if (op1.equals("Yearly"))
    result = num1 / 12;
    else if
    (op2.equals("Weekly"))
    result = num2 * 4.3333333;
    else if (op2.equals("Monthly"))
    result = num2;
    else if (op2.equals("Yearly"))
    result = num2 / 12;
    else if
    (op3.equals("Weekly"))
    result = num3 * 4.3333333;
    else if (op3.equals("Monthly"))
    result = num3;
    else if (op3.equals("Yearly"))
    result = num3 / 12;
    TotalIncomeField.setText( "" + totalIncome);
    THE WHOLE STATEMENT LOOKS LIKE;
    try {
    double num1 = Double.parseDouble(LoansField.getText());
    double num2 = Double.parseDouble(WagesField.getText());
    double num3 = Double.parseDouble(OtherField.getText());
    double num4 = Double.parseDouble(RentField.getText());
    double num5 = Double.parseDouble(FoodField.getText());
    double num6 = Double.parseDouble(OtherField2.getText());
    String op1 = (String)LoanComboBox.getSelectedItem();
    String op2 = (String)WagesComboBox.getSelectedItem();
    String op3 = (String)OtherComboBox.getSelectedItem();
    String op4 = (String)RentComboBox.getSelectedItem();
    String op5 = (String)FoodComboBox.getSelectedItem();
    String op6 = (String)Other2ComboBox.getSelectedItem();
    double totalIncome = num1 + num2 + num3;
    double totalSpending = num4 + num5 + num6;
    double result = 0;
    if (op1.equals("Weekly"))
    result = num1 * 4.3333333;
    else if (op1.equals("Monthly"))
    result = num1;
    else if (op1.equals("Yearly"))
    result = num1 / 12;
    else if
    (op2.equals("Weekly"))
    result = num2 * 4.3333333;
    else if (op2.equals("Monthly"))
    result = num2;
    else if (op2.equals("Yearly"))
    result = num2 / 12;
    else if
    (op3.equals("Weekly"))
    result = num3 * 4.3333333;
    else if (op3.equals("Monthly"))
    result = num3;
    else if (op3.equals("Yearly"))
    result = num3 / 12;
    TotalIncomeField.setText( "" + totalIncome);
    if
    (op4.equals("Weekly"))
    result = num4 * 4.3333333;
    else if (op4.equals("Monthly"))
    result = num4;
    else if (op4.equals("Yearly"))
    result = num4 / 12;
    else if
    (op5.equals("Weekly"))
    result = num5 * 4.3333333;
    else if (op5.equals("Monthly"))
    result = num5;
    else if (op5.equals("Yearly"))
    result = num5 / 12;
    else if
    (op6.equals("Weekly"))
    result = num6 * 4.3333333;
    else if (op6.equals("Monthly"))
    result = num6;
    else if (op6.equals("Yearly"))
    result = num6 / 12;
    TotalSpendingField.setText( "" + totalSpending);
    } catch (NumberFormatException ex) {
    }

    First of all, you are calculating 'result', but you don't use it anywhere. Instead you use 'totalIncome' and 'totalSpending', which are calculated without the daily/yearly corrections.
    Also, there are some 'else' keywords that should not be there. If (op1.equals("Weekly")) will be true, no other part of the if block for num1, num2, num3 will execute. It should look like this:
         if (op1.equals("Weekly")) {
              num1 *= 4.3333333;
         } else if (op1.equals("Yearly")) {
              num1 /= 12;
         if (op2.equals("Weekly")) {
              num2 *= 4.3333333;
         } else if (op2.equals("Yearly")) {
              num2 /= 12;
         if (op3.equals("Weekly")) {
              num3 *= 4.3333333;
         } else if (op3.equals("Yearly")) {
              num3 /= 12;
         double totalIncome = num1 + num2 + num3;
         TotalIncomeField.setText( "" + totalIncome);Similarly for the spending.

  • Weekly/Monthly Snapshot Report

    Hi,
    I have now three cubes Daily,Weekly and Monthly cubes...
    I had made copy of the daily cubes as weekly and monthly.. There is no difference as such structure wise...
    But what extra i need to do to make these weekly snapshot report and monthly snapshot report..
    Now all three cubes are added in multiprovider and multiprovider was used in the definition of the query..
    For daily cube report though, i had simply restricted infoprovider as daily cube and designed the query..
    But what about weekly and monthly snapshot reports?
    as snapshot reports are basically meant for comparing time periods how i could achive the same in reporting?
    What i am contemplating as follows:
    1) Since these are comparing different times ( for weekly snapshot, you must have at least two different weeks of data to compare ) i guess we need to include a time chararistic 0CALWEEK for Weekly snapshot, 0CALMONTH for Monthly snapshot..
    But even after including this time charactristic, how i would be comparing?
    i am not clear on how to creata a snapshot report
    What one has to do in the weekly and monthly cube to be able to compare the data on weekly/monthly basis?

    Simran,
    Weekly Snapshot means entire data has to restated against each week.
    For example to check open orders status week wise, entire open orders(till end of current week) has to restate against current week. at end of the week, need to pass remaining open orders as next weeks snap shot.
    In this way we will get snapshoting of open orders week wise. We can use these weeks to compare.
    For weekly snapshot add week to cube, and at end of each week pass current week closing balances as next week opening balances + transactions in that Week gives snap shot of that week.
    For example Check: [HOW TO HANDLE INVENTORY MANAGEMENT SCENARIOS IN BW (NW2004)|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    Snapshot scenario.
    Hope it Helps
    Srini

  • Best Practice Table Creation for Multiple Customers, Weekly/Monthly Sales Data in Multiple Fields

    We have an homegrown Access database originally designed in 2000 that now has an SQL back-end.  The database has not yet been converted to a higher format such as Access 2007 since at least 2 users are still on Access 2003.  It is fine if suggestions
    will only work with Access 2007 or higher.
    I'm trying to determine if our database is the best place to do this or if we should look at another solution.  We have thousands of products each with a single identifier.  There are customers who provide us regular sales reporting for what was
    sold in a given time period -- weekly, monthly, quarterly, yearly time periods being most important.  This reporting may or may not include all of our product identifiers.  The reporting is typically based on calendar-defined timing although we have
    some customers who have their own calendars which may not align to a calendar month or calendar year so recording the time period can be helpful.
    Each customer's sales report can contain anything from 1,000-20,000 rows of products for each report.  Each customer report is different and they typically have between 4-30 columns of data for each product; headers are consistently named.  The
    product identifiers included may vary by customer and even within each report for a customer; the data in the product identifier row changes each week.  Headers include a wide variety of data such as overall on hand, overall on order, unsellable on hand,
    returns, on hand information for each location or customer grouping, sell-through units information for each location or customer grouping for that given time period, sell-through dollars information for each location or customer grouping for that given time
    period,  sell-through units information for each location or customer grouping for a cumulative time period (same thing for dollars), warehouse on hands, warehouse on orders, the customer's unique categorization of our product in their system, the customer's
    current status code for that product, and so on.
    Currently all of this data is stored in a multitude of Excel spreadsheets (by customer, division and time period).  Due to overall volume of information and number of Excel sheets, cross-referencing can take considerable time.  Is it possible to
    set-up tables for our largest customers so I can create queries and pivot tables to more quickly look at sales-related information by category, by specific product(s), by partner, by specific products or categories across partners, by specific products or
    categories across specific weeks/months/years, etc.  We do have a separate product table so only the product identifier or a junction table may be needed to pull in additional information from the product table with queries.  We do need to maintain
    the sales reporting information indefinitely.
    I welcome any suggestions, best practice or resources (books, web, etc).
    Many thanks!

    Currently all of this data is stored in a multitude of Excel spreadsheets (by customer, division and time period).  Due to overall volume of information and number of Excel sheets, cross-referencing can take considerable time.  Is it possible to
    set-up tables .....
    I assume you want to migrate to SQL Server.
    Your best course of action is to hire a professional database designer for a short period like a month.
    Once you have the database, you need to hire a professional DBA to move your current data from Access & Excel into the new SQL Server database.
    Finally you have to hire an SSRS professional to design reports for your company.
    It is also beneficial if the above professionals train your staff while building the new RDBMS.
    Certain senior SQL Server professionals may be able to do all 3 functions in one person: db design, database administration/ETL & business intelligence development (reports).
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Urgent: need weekly, monthly report function in 6i for 10g

    Hi, we are trying to move some reports built in 6i to 10g. Need some help urgently.
    The y-axis is values, x-axis is date, if there is a value between 2 dates, , a line will connect them. If there is no value, it will skip it and try next date. I have two problems here to create same graph in 10g.
    1. The report built in 6i has a function you can specify a graphic x-axis for a time period, i.e., from date1 to date2, then choose, weekly, monthly or quarterly.... dates will be put into those period accordingly by the report builder automatically. Do we still have this kind of function in 10g?
    2. How can graph builder in 10g skip a date and jump to next date if there is no value for it? Now, if there is no value for a date, it will treat it as 0, so the line will go back to 0 in stead of move forward to next date.
    Thanks!

    Validate the parameter for null and then go for something like
    Col LIKE (CASE WHEN Parameter='' THEN '%%' ELSE Parameter END)

  • TZ of Day/Week/Month View is US/Pacific - Info Box & System TZ US/Eastern

    Just noticed this - don't think its been happening for long - probably a couple of days at the worst.
    When I create a New Event, the Time Zone is automatically incorrectly set to US/Pacific. I change it to Eastern (via Info Box) and it displays in the Info Box as Eastern, but the Daily/Weekly/Monthly view seems to remain at US/Pacific. (System prefs set to Eastern TZ).
    In addition ALL my events display in Day/Week/Month view as US/Pacific TZ, even tho Info Box TZ (and system TZ) is US/Eastern.
    For Example: Info box says event starts at 5PM goes to 9PM, Time Zone is US/Eastern. Calendar Display in Day, Week or Month shows event from 2PM to 6PM.
    This has affected every one of my events.
    I am running OSX 10.4.9,build 8P135 iCal Version 2.0.5 (1069)
    iCal Support for Time Zones turned On.
    Date/Time System Preferences appear to be OK
    System Time (measured by Menu Clock and verified by save time on a file) is OK - (Am writing this at about 2:40PM EST, Sunday 6/3/2007.
    Here's my Software Update.log
    2007-05-15 23:43:37 -0400: Installed "Java 1.3.1 and 1.4.2 Release 2" (2.0)
    2007-05-15 23:44:19 -0400: Installed "iTunes Phone Driver" (1.0)
    2007-05-15 23:44:42 -0400: Installed "X11 Update 2006" (1.1.3)
    2007-05-15 23:45:15 -0400: Installed "QuickTime" (7.1.6)
    2007-05-15 23:46:24 -0400: Installed "Security Update 2007-004 (PowerPC)" (1.1)
    2007-05-16 00:51:49 -0400: Installed "J2SE 5.0 Release 4" (4.0)
    2007-05-16 01:21:55 -0400: Installed "Java for Mac OS X 10.4, Release 5" (5.0)
    2007-05-31 01:21:19 -0400: Installed "Security Update (QuickTime 7.1.6)" (1.0)
    2007-05-31 01:23:41 -0400: Installed "Security Update 2007-005 (PowerPC)" (1.1)
    2007-05-31 01:24:42 -0400: Installed "iTunes" (7.2)
    Looked in various logs but didn't see anything that seemed suspicious to me.
    Help or suggestions about where to look to uncover solution to this mess appreciated.
    Mini - 1.42 Mac OS X (10.4.9) 1Gig (self installed)

    It was US/Pacific -
    I just changed it to US/Eastern and everything seems to work correctly now. I never even noticed that setting before - I guess I may have reset it by accident?
    I see you're from Bristol, UK. A friend told me a few hours ago that he has to make a business trip there sometime this summer and was thinking about bringing his family (from Boston, USA). We were not too clear on English geography tho - is Bristol a decent family vacation destination?
    Mini - 1.42 Mac OS X (10.4.9) 1Gig (self installed)

  • Disconnected Slicer in PowerView - Hour | Day | Week | Month | Year | Max

    I want to create a Power View chart in Power BI with the Minute/Hour/Day/Week/Month/Year filters:
    Workbook can be downloaded at:https://www.dropbox.com/s/r00btg5zb8snohz/Disconnected%20Slicer%20Demo.xlsx?dl=0
    when MINUTE is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 60 seconds (from current time) with 5 or 10 seconds interval.
    when Hour is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 60 minutes (from current time) with 5 minutes interval.
    ex: 10:00AM 10:05AM 10:10AM ...................................11:00AM
    when DAY is selected the chart should display:
    Total Number of Msgs vs. X-axis showing last 24 hours (12AM to 11:59PM with 1 hour interval)
    when WEEK is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 7 days from current datetime stamp with 1 day interval.
    when MONTH is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the 30 days from current datetime stamp with 1 day interval
    when YEAR is selected the chart should display:
    Total Number of Msgs vs. X-axis showing the last 12 months from current day with 1 month interval
    It would be great if the PowerView chart can be made to look something like this:
    shown in the below link:
    When '5 Day' is selected the values in the Y axis and X axis change automatically.
    Here's the link:
    https://www.google.co.in/search?&biw=1600&bih=799&sclient=psy-ab&q=google+share+price&oq=google+share+price&gs_l=serp.3..0l4.148.192.3.270.2.0.0.2.2.0.0.0..0.0.msedr...0...1c.1.60.serp..0.2.11.Jf8jXyUgmDA&pbx=1&bav=on.2,or.r_qf.&bvm=bv.82001339,d.dGY&ech=1&psi=qcGPVJmeJoHGmQXsooDACQ.1418707370733.9&ei=nsOPVJGiI6GgmQW0g4LABA&emsg=NCSR&noj=1
    for more clarifications and information please feel free to reach out to me at [email protected]
    www.twitter.com/mph88

    Hi Manjunath,
    Currently looking into a possible solution although some of the limitations within Power View restrict how close we can get to the ideal result. Still exploring some approaches :)
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn

  • View Modes - Day-Week-Month

    Does anyone know of any way to add a quarterly view mode? (in otehr words being able to see 90 days at a time as an added view option - Day/Week/Month/Quarter)
    If not, are there any third party workarounds that can modify and provide a 90 day view mode in iCal?
    At the very least is there any EFFECTIVE way to communicate and get this easy enhancement added to the upcoming version of iCal.
    It is incredibly inconvenient to have to move calendar items to the following month with the restrictive view of only one month. IN other words, if I wanted to move an appointment from February 24 to say March 20 I am forced to manually open the item and type in new dates.
    A great system program known as DateBook Pro 4.0 had such a view option and I absolutely miss it EVERY day!

    I am experiencing the same symptoms - Day, Week, Month and the Today button are all grayed out. It particularly seems to happen if I've left iCal running overnight. The only way I've found to fix it is to re-start iCal. When this is happening, the only way to navigate to a different week (or month) is to use the menu "Go to date" function. I think the onset of this problem relates to an Apple software upgrade , but I can't be sure which one.

  • Since switching to Yosemite, I am unable to paste any information into calendar events, instead having to type out all info such as location, notes, etc.  This is true both in daily view and weekly/monthly views as well.  Help?

    Since switching to Yosemite, I am unable to paste any information into calendar events, instead having to type out all info such as location, notes, etc.  This is true both in daily view and weekly/monthly views as well.  Help?

    You welcome

  • Day/week/Month is gray

    all buttons or tabs in the gray bar (including today/next day/week/month) are gray and can't be selected. how do i enable them?

    I am experiencing the same symptoms - Day, Week, Month and the Today button are all grayed out. It particularly seems to happen if I've left iCal running overnight. The only way I've found to fix it is to re-start iCal. When this is happening, the only way to navigate to a different week (or month) is to use the menu "Go to date" function. I think the onset of this problem relates to an Apple software upgrade , but I can't be sure which one.

  • Report by Day/Week/Month/Year

    Hi All,
    I have the table showing below
    Empid     name     tikcetno     Completed date
    694     anil     10051     23-Jun-09
    695     madhu     10052     23-Jun-09
    694     anil     10053     23-Jun-09
    695     madhu     10054     22-Jun-09
    695     madhu     10055     6-Jan-09
    I need to create the report which will show employee wise count of tickets in a day,week,month and year.                  
    Day: count(tickets) for current date
    Week: count(tickets) for current week
    Month: count(tickets) for current month
    Year: count(tickets) for current year
    I need to show all these four columns in a horizantal table. I am using crystal reports2008. Please help me. ur help would be appreciated.
    Anil.

    Hi,
    create 4 formulas for day, week, Month and year
    for ex, in Day formula
    IF Date Field = CurrentDate then 1 else 0... similarly for other ranges. Create a Group based on employee, and insert a SUM  summary field of these formulas in Group header.
    Hope this will help you.
    Jyothi
    Edited by: Jyothi Yepuri on Jul 13, 2009 3:04 AM

  • Daily, Weekly, Monthly, Yearly Backups & Tapes Pooling

    We are running number of servers, and have recently migrated from HP Data Protector to System Center DPM 2012 SP1. I am facing two issues here in which the potential solution is requested. I have created one Protection Group with 1 week retention for Daily
    Backup. Different selections or sources are part of this protection group from different servers.
    1. The issue # 1, is that when I wanted to create more Protection Groups for Weekly, Monthly and Yearly Tape Backups, then I could not select those volumes which are already part of Protection Group that I created for the Daily Backup (probably due to the
    reason that same data source can't be part of multiple protection groups). The data source selection will repeat in all protection groups, so please advise how can I achieve daily, weekly, monthly and yearly backups?
    2. Can I restrict some specific tapes (by allocating through bar codes) to each protection group so that only specific tapes will be used for daily, weekly, monthly and yearly backup? This way the offsite tape movement will also be achieved.
    Need solution on both issues. Please help.

    Hi,
    For item 1. use following PG settings. 
    1) In the protection group, select short term tape and long term protection.
    2) Select daily, only full backup, or Full plus incremental based on your needs.
    3) For the long term goals, select weekly, monthly, and yearly.
    For item 2. - there is no provision in DPM to specify certain tapes for each goal, but if you create a colocation PGset, you can specify how long to write to a tape and control if different goals use the same tapes or not by adjusting expiry tolerance.
    See Colocate data from different protection groups on tape
    http://technet.microsoft.com/en-us/library/jj628040.aspx
    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. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Daily/weekly/monthly production reports

    Hi Experts,
    IMy client needs daily/weekly/monthly production reports with graphical representation. I want to know in acase there are any standard reports which will be a work around solution for the above said reports.
    Thanks

    Hi nandi6346,
    Yes, COOIS : Order informaton system, it self gives graphical representation for production reports.
    Go to COOIS - execute as per required date, to get grafical representation select the coloumns you required, e.g. Production order, target qty, Confirmed Qty, Delivered Qty, Scrap Qty, etc and the click on "Display Grafic" tab, it will show you grafical report.
    Tara

  • Regarding Date data in the format of WEEKLY , MONTHLY , QUARTERLY , YEARLY

    hai
    i have one Infoobject(ZDATE) which is created based on the Reference Characteristic(ocalday) and contains data in the YYYYMMDD format.
    I want same date data in weekly , monthly , quarterly and yearly.
    So for this one i need to created ZWEEK , ZMONTH, ZQUARTER and ZYEAR infoobjects by using Reference Characteristics 0calweek , 0calmonth , 0calquarter , 0calyear and i need to write the formula for these InfoObjects for converting & getting data from the ZDATE.
    So please give the formulas for each InfoObject.
    I will assign the points
    bye
    rizwan

    Hi ,
    Try this for month and year in Transfer structure .
    zyear = zdate+0(4).
    zmonth = zdate+4(2).
    For quarter since it will be depend of what kind of fiscal period you are using.. say for ex april - march.
    For Week... whether you want find it based on calender year or fiscal period.
    Regards
    Balaji

Maybe you are looking for