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

Similar Messages

  • How do I schedule regular daily/weekly/monthly/quarterly data uploads?

    Hello gurus!
    How do I schedule regular daily/weekly/monthly/quarterly data uploads?  How can I make it "automatic"?
    Thank you very much!
    Philips

    Hi,
    There are lots of documents available on how to design a process chain. It is basically your requirement what is needed.
    for eg.. You have  a daily masterd ata loaded into BW from R/3 and then the transaction data. So we create a chain where in we create anothe meta chain (for Master data) and drag the option of Load IP ( give variant as ur IP name you have created for that Particluar master data) , same for texts and hierarchy, for hierarchy use save option after the hierarchy process. and then use a attribute change run proces step to activate the master data. and then create another meta chain that loads transactiond data. Normally you have a IP that loads data into ODS here from source system, so Use IP process for that , next a process step to activate the ODS data and then use another IP to send the data to a cube. If you have aggregates built on that cube, use roll up process to roll up the data.
    If you can gimme your mail ID , I can send some docu's on process chains
    Regards
    Srini

  • 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.

  • How to write a sql query to retrieve data entered in the past 2 weeks

    Hi,
    I have file names and last accessed date(java.sql.Date format) stored in my database table, I would like to know how I can write a query to get the name of files accessed in the past 2 weeks,I use open sql server at the back end.
    Thanks in advance.

    This has essentially nothing to do with JDBC. JDBC is just an API to execute the SQL language using Java and thus interact with the databases.
    Your problem is related to the SQL language, you don't know how to write the SQL language. I suggest you to go through a SQL tutorial (there is one at w3schools.com) and to read the SQL documentation which come along with the database in question. A decent database manfacturer has a website and probably also a discussion forum / mailinglist as well.
    I'll give you a hint: you can just use equality operators in SQL like everywhere. For example: "WHERE date < somedate".

  • For date attribute search, the format must be mm/dd/yyyy

    Hello.
    The manual "Oracle® Secure Enterprise Search Administrator's Guide 10g Release 1" says that when searching on date attributes, the format must be mm/dd/yyyy.
    For our users it is more natural to use the format dd/mm/yyyy so in order to reduce the risk of users not finding what they are looking for, I would like to know if there is a way to use the dd/mm/yyyy format instead.
    Regards,
    Brian Nielsen

    Being based in Europe as well, I understand this problem.
    Unfortunately I don't think there's a way around it.
    I have previously requested that this problem should be fixed, but I've now formally raised a bug for this issue - bug number 10163778.
    I can't promise a quick fix, but hopefully we will get one in a future release.

  • Can I change the day/date format from US (month day year) to UK (date month year)?

    When I view databases through Firefox, the date/day format is set at month, day, year (US style), whereas I need day, month, year, I work in the UK and the "wrong" format is VERY confusing and could lead to errors/mistakes. IE has that format but I don't want to revert to using that.

    Gingerbread Man, thank you VERY much!! I followed your instructions and it works perfectly. I am a happy person :-))

  • FM to convert the date in to the format in SU01

    hi,
    will u pls suggest the FM to convert the date in the format presented in SU01->Defaults.
    with respect to user the diffrent format may stored in the su01.
    kindly suggest.
    thanks.

    data: dat TYPE date,
           org TYPE date.
    This function module converts data from the sy-datum format to ddmmyyyy.
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
      EXPORTING
        input         = sy-datum
    IMPORTING
       OUTPUT        = dat.
    write: sy-datum.
    write: dat.
    This function module converts data to sy-datum format.
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_INPUT'
      EXPORTING
        input         = dat
    IMPORTING
       OUTPUT        = org
    write: org.
    You can change the user settings for date using the transaction SU01.

  • How to get Week,Month and Year details from a date column

    Hi frenz,
    I've a column like tran_date which is a date column..... I need the next week details based on this column and so on...
    I need month and year details as well based on this tran_date column.... can any one tell me how...
    Thanks in advance

    My example for objects:
    create or replace type date_object as object
      centure number,
      year    number,
      month   number,
      day     number,
      hour    number,
      minute  number,
      second  number,
      daypart number,
      week    number,
      constructor function date_object(p_dt date)
        return SELF as result
    create or replace type body date_object is
      constructor function date_object(p_dt date)
        return SELF as result
      as
      begin
        SELF.centure:= trunc(to_char(p_dt,'YYYY')/100);
        SELF.year:=    to_char(p_dt,'YYYY');
        SELF.month:=   to_char(p_dt,'MM');
        SELF.day:=     to_char(p_dt,'DD');
        SELF.hour:=    to_char(p_dt,'HH24');
        SELF.minute:=  to_char(p_dt,'MI');
        SELF.second:=  to_char(p_dt,'SS');
        SELF.daypart:= p_dt-trunc(p_dt,'DD');
        SELF.week:=    to_char(p_dt,'IW');
        return;
      end;
    end;
    select date_object(sysdate),
           date_object(sysdate).year
    from dual;Regards,
    Sayan M.

  • Is the personal budget template monthly or yearly?  I am entering data for Jan.  How do keep track of Feb? Do I have to make a whole new budget?  If not, the formula adds expenses in a category together which would mean Jan. and Feb. would be added togeth

      I think the personal budget template is a monthly budget and I have Jan. set up.  When it is Feb., do I have to download a new budget?
    Also, there is a pie chart and all the pie chart has 6 colors.  If you have more than 6 categories, the colors repeat.  Is there a way to, for instance, assign 10 different colors when you have 10 categories so you will have an accurate pie chart?
    I am using an iPad and Numbers app.

    You dont have to download anything, just duplicate the current tab and reset your numbers. (tap the tab once and you get a choice of duplicate or delete.) You could then summarize across tabs if you liked.
    It is just set up as a way of tracking a period, your choice of duration.
    I get paid on the 1st and 15th, with distinct budgeting concerns for both periods (times are tight.). So we would do one for each two weeks to see how we did. Maybe double the budget numbers to get monthly numbers on another tab to track that month. Maybe then  copy paste that data into a YTD tab at the end of the month.
    Whole bunch of ways to handle it. You dont have to stick with month by month tabs or files. Using some creative thinking, You can make it so on the YTD tab you type in a month or quarter and it shows that information through equations.
    Jason

  • Over the past several weeks/months,multiple problems have emerged with this phone withich I have had for 2 years.

    The first to go was visaable voicemail.  After 2 support calls, it still doesn't work.  This was an app I considered "critical" when I purchased the phone - I am out of the office the majority of time, and need quick repnse to my clients' calls.
    Then, there seemed to be battery issues...wasn't holding a charge as long, takes loner to charge.
    Text messaging- frequently get "can't send"... powering down/back on doesn't resolve the issue.  It sometimes send the text, but no pattern as to when or why.
    SIM card error....message is that SIM card does not exist or is damaged and a message that I can continue to make emergency calls.  The error generally just disappears and I can continue calling, but lately, the error often causes the phone to power off.
    Any suggestions or other than 2 hours support calls?
    It's interesting that I'm having tese issues now that my contract has ended and I can get another phone ...with another 2 year contract.
    Thanks for any responses.
    Joyce

    indoors and outdoors. my zip code is 07094. i know this issue is specific with this device only. if i hook up my galaxy s3 or bb device on same line with same sim card i have zero issues. I do get service when i am in and around my house but i drive a few blocks down it goes down to no service (circle with the line through it). most of the time i can't regain service by switching airplane mode on and off. Sometimes it works but i should not for any reason have to do this to use my phone.
    Things i have done to troubleshoot.
    -a replacement phone
    -new sim card
    -hard reset
    -activated other devices with this line and sim.

  • 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

  • What do you use to manage daily\weekly\monthly tasks?

    I use Tasks (a clone of Astrid based on the source code) on Android which is synced to Google Tasks. Haven't really ever found anything that's a real replacement to Astrid since Yahoo killed it for no reason.

    Hey guys, just wanted to see what you guys use to manage your tasks on a daily\weekly\monthly\quarterly\yearly basis?We are currently using a product called VIP Task Manager Professional and we really love it. Ithttp://www.taskmanagementsoft.com/products/taskmanagerpro/It is pretty inexpensive and customizable. They offer a full-featured 30-day trial version of VIP Task Manager and there is a Standard edition as well.All the tasks have the ability to be assigned to the whole team or an individual member and can have notes, comments and even documentation attached to the task.There is a calendar feature, it has recurring tasks and you can set up different views too - daily - weekly - all tasks.BTW, our Operations team started using it 10 months ago and we have been using it for about 3 months. Operations just passed an audit with flying...
    This topic first appeared in the Spiceworks Community

  • Confusion regarding Binary data and byte arrays

    HI guys,
    I have a question...i am going to send some binary data...the format of that data is that first two bytes is the lenght of the data and then follows that data. Here i have one confusion. e.g. i want to say that the lenght of my data is 1000 bytes. How do i do it.
    coz if i do something like this.
    int k = 1000;//the length of my data
    String binaryString = Integer.toBinaryString(k);
    byte[] binaryData = binaryString.getBytes();
    and then if i say binaryData.lenght, i see a lenght of 10, as the binary string which
    is generated is -> 1111101000. i guess its obivious as this byte array is nothing but perhaps a character array with each character occupying one thread...so what exactly is the difference between byte array and binary data. and in the above said condition how do i send the binary data?
    Also adding to my confusion is the fact that i have a file which contains binary data, but that data is not 10010101 type of data...its just some absurd characters. How do we explain this.
    i would be highly grateful if you could explain me the solution to this problem.
    I am not getting as to how to go about it.
    its urgent..pls help...

    one sec..actually i dont want to 'read' the two bytes. That i know how to do? but The thing is that i want to write a binary stream. right? so in that the first two bytes should be the size of the data, followed by the data itself. So i want to write the first two bytes, which should contain the size of data (as a matter of fact i have that binary data in a byte array). But my question is , that if i say the size of data is 1000 (bytes , since, as i said i am gettting the data as a byte array), how do i write this in my binary stream as 1000 in this case would be an int. right? which is four bytes. So essentially that byte array (which contains binary data) i have to forward to somewhere, say X , but X reads binary data in the following way...it expects the first two bytes to give him info regarding the size of the data to follow and then it starts reading the data from the third byte onwards till the size of the data (which it got by reading first two bytes)...i hope i could communicate my confusion better this time

  • Date Format Conversion MM/DD/YYYY to Month Day, Year

    Hi all,
    Is there a function in BIP that converts MM/DD/YYYY to Month Day, Year?
    eg.
    10/08/2010 convert to October 08, 2010
    Thank you very much!

    Since your date is not in canonical format, you cant format dates directly.
    You need to get it done with workarounds.
    Try using
    <?xdoxslt:month_name(substring(DATE,1,2), 0, $_XDOLOCALE)?> <? substring(DATE,4,2)?>, <? substring(DATE,7,4)?>
    Here I assume your date comes in the format MM/DD/YYYY

  • Paste date in strings in format of mm/dd/yy to Numbers

    I have trouble to paste a list of dates in the format of mm/dd/yy into numbers. For example:
    04/01/10
    04/23/10
    After pasting into Numbers, I got:
    2004-01-10
    04/23/10
    How can I paste a list fo date strings in the format as they are?

    Check your system's date_time setting .
    I guess that it is :
    yyyy/mm/dd
    On my French system, it is dd/mm/yyyy
    so, when I paste your values a I get :
    4 janv. 2010
    04/23/10
    the 1st one is deciphered reversing the day and the month.
    The 2nd remain a string because there is no month #23.
    Yvan KOENIG (VALLAURIS, France) vendredi 23 avril 2010 10:39:07

Maybe you are looking for