Convert Calendar Day into Company's Accounting Period

Hi, please help me on this.
I need to convert a date into accounting periods.
e.g company's accounting period starts from 12/29/03 to 1/30/04. Then 12/30/03 would be Day 2 of the accounting period and it would be week 1 of the Acc. period. How can I do it ?
Thanks,

select to_char(to_date('12/29/03','MM/DD/RR'),'IW') WEEK1,
to_char(to_date('01/05/04','MM/DD/RR'),'IW') WEEK2,
to_char(to_date('12/29/03','MM/DD/RR'),'D') DAY1,
to_char(to_date('12/30/03','MM/DD/RR'),'D') DAY2
FROM DUAL;
WE WE D D
01 02 2 3
Modify your NLS Parameters to retrieve appropriate results.

Similar Messages

  • Converting Calendar day to Number of Days(Period to analyze in MC46)

    Dear All,
                Regards.We got a requirement where:
    1).The BW Report(Slow moving Item) should be in the same format as MC46.Like,having "Period to Analyze:No. of Days since consumption) in the input selection screen ,
    2) Calculate the Stock Value for the that particular day(Eg:For 30,60 or 100 Days backwards from Today)
    (Eg: Today:02/04/08
    Period to Analyze: 30days
    Day for which stock is calculated = 02/03/08).
    -The BW Standard report calculates for a Particular "Calendar Day(Period interval) rather than No. of Days  
      Guys,it would be fantastic if someone could take time to help me out with this issue...
    Manythanks
    Arun

    Check this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11291595-0501-0010-c881-e02c27261b55 if it helps

  • I want to convert the day into THAI language

    Hi All,
          I write a simple query using date conversion for THAI language. But the NLS_CALENDAR does not convert the DAY to Thai language but month and year shows in THAI only
    Please give the date format for THAI language.
    Query
    select
    DECODE (:p_language_id,
                   'th', TO_CHAR (sysdate,
                                  'DAY MONTH YYYY',
                                  'NLS_CALENDAR=''THAI BUDDHA'''
                   TO_CHAR (sysdate, 'Day MONTHYYYY') ) dates from dual
    Output:
    FRIDAY    สิงหาคม    2556

    Try this
    alter session set nls_language = 'THAI';
    select to_char (sysdate,'DAY MONTH YYYY')
      from dual;
    NLS_LANGUAGE
    Edit.. Perhaps NLS_DATE_LANGUAGE is much suited for your requirement. Check Hoek's solution.
    Message was edited by: Karthick_Arp

  • FI : Finding last day of last accounting period

    Hi,
    In fi, I am trying to find out the last date od the last accounting period.
    I.e, if december is my first accounting period, and i give 28.01.2009 , my current accounting period will be 02,so last date of last period(december 2008) would be 31.12.2008
    Similalry, if December is the start of the accounting period,meaning december is accounting period 1, the, last day of the last accounting period would be: 30.11.2007.
    Please let me know of function modules to:
    1.Find the last period
    2.find the last day of the last period
    Thanks in advance..
    sumita

    Hi,
    You can try using function module LAST_DAY_IN_PERIOD_GET to get the last day in a month/period.
    You might have to check with the help of FI consultant what Fiscal Variant needs to be used.
    Also uou can find out the previous month by subtracting 1 from the current month ( and if month - 1 = 0 previous period is 12 ).
    Regards,
    Ram

  • Cannot add a new email account, and hence icloud account. When i go into Settings - Mail, accounts, calendars,  the option to add a new account cannot be clicked (ghosted). I also have iCloud Settings ghosted (unclickable). Cannot change in itunes also.

    Cannot add a new email account, and hence i have no way of creating an iCloud account (very frustrating). I had the same problem with iOS 4.3 but i had no email account to create as i set both up when i bought the iPhone 4. After adding a company email and a gmail account (both wok perfectly) i noticed that the option to create more email accounts had been ghosted (unclickable). This didn't worry me at the time. However, iCloud needs me to create one in here so i can access the cloud which i desperately want the ability to do. When i go into Settings -> Mail, accounts, calendars,  the option to add a new account cannot be clicked (ghosted). I also have iCloud in the iPhone Settings ghosted (unclickable). I have same problem in itunes on Mac OSX. Surely restoring isn't the solution as i restored my iphone when changing from iOS 4.3 -> 5. Please help?

    Go to
    Settings,
    General,
    Restrictions, type in your Restriction Password,
    Accounts, tick Allow Changes.
    Press the back key a few times till you're back in Settings, you should see iCloud is now highlight able, now go to Mail Contacts and Calenders and add your email account as per norm.
    Hope this helps.

  • Program or FM to convert number of days into a CalDay format (ddmmyyy)

    Hi ABAP friends,
    I input calendar day values via a popup calendar from a spreadsheet to BW. So, the values that are populated in BW are the numbers, and not the date.
    For ex. when user selects a calendar day for ex. 11-April-2010, the value in excel is stored as 40279 (which is the number of days starting from 01-Jan-1900) and this is the value that gets stored in BW once we save the data.
    I'm looking for a function module or method or whatever that converts the above number (40279) into CalDay and writes it to the 0CALDAY infoobject ???
    Please help,
    Thanks,
    Venkat

    Thanks Pranaam.
    Two things:
    1. I cannot find this FM. It says FM doesn't exist. SE37 -->  HR_HK_DIFF_BT_2_DATES
    2. My requirement is actually reverse as you explained. I can certainly hard code the starting date: 01011900, but here the input should be the number of days. and I need the date (date2 in your ex.) based on the no. of days entered.
    I found another FM which does exist in my BW system. That is: FIMA_DAYS_AND_MONTHS_AND_YEARS
    Based on "From" & "To" dates, it outputs the number of days.
    But my requirement is:
    Based on the starting date (i.e. always 01011900) and number of days, it should give me the "To" date value.

  • Converting days into hours and adding this hour to the time

    Hi Gurus!
    I ahve  a query that outputs the total time between two periods in one column , total number of days between two periods  in onne column. I want to combine those together and show it in hours . For example if the time column shows 7:41(7 hours  and 41 minutes ) and teh days column shows 1 day , I want to combine those two columns and show as one column i.e 24 hours plus 7 hours and 41 minutes as a total of 31 hours and 41 minutes. I had written the follwwing code in the query that calculated the two seprately , can anyone please tell me how to go about converting this hour into time format and then adding the two to get it in total number of hours and minutes in my query.
    concatenate vttk-datbg vttk-uatbg into lv_start_time.
        concatenate vttk-daten vttk-uaten into lv_end_time.
        gv_ftstm = lv_end_time - lv_start_time.
        gv_total_time = gv_ftstm+8(6).
        if not ( vttk-datbg is initial
              or vttk-daten is initial ).
          gv_total_days = gv_ftstm+0(8).
        else.
          clear: gv_total_days.
        endif.
        if not p_bl_lns is initial.
          read table gt_vttk with key tknum = vttk-tknum.
          if sy-subrc <> 0.
            append vttk to gt_vttk .
          else.
            clear: vttk-distz,
                   vttk-gesztda,
                   vttk-fahztda,
                   vttk-warztda,
                   gv_total_days,
                   gv_total_time.
          endif.
        endif.
    The gv_total_days have been declared as type P lenght 6, outlenth 10 and decimal 02, and
    gv_time as VTTK-FAHZTDA.
    Thnaks

    Does this help ?
    CONVERT DATE par_date TIME par_time INTO
              TIME STAMP par_timestamp TIME ZONE par_time_zone.
    also use fm:  SD_DATETIME_DIFFERENCE
    01/01/2009
    12:00:00
    01/02/2010
    11:00:00
    output:                             365
                                 23
    365 * 24 = tine in Hrs + 23 hrs

  • I can't log into my iTunes account. I logger out a few days ago to trouble shoot because I was trying to redeem some iTunes cards but when i pressed redeem nothing happened. Now when i press sign in and then choose existing Apple ID, nothing happens

    I can't log into my iTunes account on my iPhone 5s. I logged out a few days ago to trouble shoot because I was trying to redeem some iTunes cards but when i pressed redeem nothing happened. I then tried to log back in immediately afterwards. I was unable to do so. After clicking "sign in" at the bottom of the apps main page, it brought up another menu where I clicked "Choose existing Apple ID". After pressing this the menu disappeared and nothing happened. I tried this multiple times and received the same result each time. I tried the other available option of creating a new AP ID to log in with and that one worked perfectly fine. I am clueless as to why the log in for me is either not able to load or just completely blocking me from getting back into my iTunes account on my phone. Not only can I not listen to the music I currently have, but I cannot log in to purchase the new music that I wanted to with my unused iTunes gift cards

    I have the same problem too and tried alot of things like time zone , restarting or changing DNS of wifi connection to 8.8.8.8 still nothing happens .. !!
    iPhone 5s, iOS 8.3

  • How do I convert an existing account into a kids account?

    I'm trying to set up family sharing.  I wish my Son (11) to be able to apply to me for purchases, as a "kid."  The account thinks he is an "Adult" and does not offer this opportunity.  HOW do I get his iCloud account converted from an "Adult" account into a "Kid" account?  There is lots of mail and other stuff that makes the option of abandonment of the existing account undesirable.

    Go to appleid.apple.com to manage the ID, sign in.  If you are using two-step verification on the ID, select the Name, ID and Email Addresses section, then change the birth date on the bottom right.  If you are using security questions instead of two-step verification, select the Password and Security Question and answer the two security question to access and change the birth date.  At the present time you may not be able to enter the correct birth date, but you should be able to change it to 1/1/2001, which will have child ID status.

  • How can I merge my Calendars(Outlook/iPhone) into 1 iCloud account

    I updated my iPhone 3GS (will be getting a 4s sooon) and my iPad2 to iOS5 with iCloud. I've always been a bit prehistoric, synchronising my iPhone with my Outlook on my laptop, just as a backup, as I don't even use outlook. Somehow the amount of accounts/calendars I have are now up to 6. Does anyone know how I can merge all these accounts into 1 iCal account or just 1 iCloud Calendar. Need to get rid of Outlook asap!
    Hope someone can help me!?
    Bart

    Sorry, but merging iTunes Store accounts / Apple IDs is not possible.
    Regards.

  • How do i convert a portion of day into a time?

    How do i convert a portion of day into a time, without dividing and modding the number myself?
    For example, i calculated solar noon UTC to be .733409047. Adding that to the date gives the correct answer:
    SQL> SELECT TO_DATE('1/1/2012', 'DD/MM/YYYY') + .733409047 FROM Dual;
    TO_DATE('1/1/2012',
    01/01/2012 17:36:07
    A few questions, to actually understand this.
    Is .733409047 implicitly converted? If so, to what datatype?
    If i want HH:MM:SS does it need to be converted to a date, and then TO_CHAR? Or can the decimal be directly converted?
    I'm currently trying to understand INTERVAL.
    SQL> select interval '.5' day from dual;
    select interval '.5' day from dual
    ERROR at line 1:
    ORA-01867: the interval is invalid
    So, i'm obviously misunderstanding it. Can it be used here?

    Hi,
    Brian Tkatch wrote:
    How do i convert a portion of day into a time, without dividing and modding the number myself?
    For example, i calculated solar noon UTC to be .733409047. Adding that to the date gives the correct answer:
    SQL> SELECT TO_DATE('1/1/2012', 'DD/MM/YYYY') + .733409047 FROM Dual;
    TO_DATE('1/1/2012',
    01/01/2012 17:36:07
    A few questions, to actually understand this.
    Is .733409047 implicitly converted? If so, to what datatype?No, there is no conversion going on here, just Date Arithmetic .
    In Oracle, if d is a DATE and n is a NUMBER (not necessarily an integer, and not necessarily positive), d+n is the DATE that is n days later than d.
    If i want HH:MM:SS does it need to be converted to a date, and then TO_CHAR? Or can the decimal be directly converted?Sorry, I don't understand. Are you saying that you want to do something like date arithmetic, but instead of using a number like .733409047 (meaning about .73 of a day), you want to pass a string like '17:36:07' (meaning 17 hours, 36 minutes and 7 seconds)? If so, INTERVAL DAY TO SECOND is probably your best bet. (It looks like you're already thinking along these lines.)
    I'm currently trying to understand INTERVAL.
    SQL> select interval '.5' day from dual;
    select interval '.5' day from dual
    ERROR at line 1:
    ORA-01867: the interval is invalid
    So, i'm obviously misunderstanding it. Can it be used here?You can only use integers like that. If you want to use any number, then use date arithmetic to add to (or subtract from) a DATE, or use NUMTIDSINTERVAL to produce an INTERVAL DAY TO SECOND:
    SELECT     NUMTODSINTERVAL (.733409047, 'DAY')     AS intrvl
    FROM     dual;Output:
    INTRVL
    +000000000 17:36:06.541660800 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements), maybe about 5 rows, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to convert Date format into day in ssrs reports?

    Hi
    How to convert date format into day?
    10/01/2010 as like Monday like that?

    =weekdayname(datepart("w",Fields!mydate.Value))
    -Vaibhav Chaudhari

  • Since converting my mobileme account into an icloud account, my free 5GB of storage has become a paid for extra 20GB without my requesting it. How can this happen, and has anyone else had this happen to them?

    Since converting my mobileme account into an icloud account, my free 5GB of storage has become a paid for extra 20GB without my requesting it. How can this happen, and has anyone else had this happen to them?

    To clarify: you are not being charged for the extra storage - it's complimentary to reflect the fact that you had storage in MobileMe. At the end of June it will disappear unless you care to pay to renew it.

  • Convert days into days, hours and minutes

    Hi,
    In my report there is a column "# of Days (Submitted to Completed)" and the result I am getting is like 2.4, 3.5, 1.8 etc. Client requirement is to convert 2.4 days into days, hours and minutes (2 days 9 hours 36 minutes)
    The value of "# of Days (Submitted to Completed)" is calculated during ETL.
    Can you please tell me how to achieve this result.
    Thanks

    Create a formula where you could use the CAST function and calculate for the remainder by multiplying 24 for hours and 60 for minutes.

  • So on my MacBook Pro, a friend tried signing into the guest account. It's been stuck on the loading screen for 3 days and hasn't let me cancel the request and login to the original account. What can I do?

    So on my MacBook Pro, a friend tried signing into the guest account. It's been stuck on the loading screen for 3 days and hasn't let me cancel the request and login to the original account. What can I do?

    Hold the power button down for 10 seconds.  It will power down your Mac.  You can then start it up again and see if you can log in normally.

Maybe you are looking for