1st day of fisc year

hi
i have calday variable. instead of calday at variable screen , i need 1st day of fisc year at variable screen?
FIRST_AND_LAST_DAY_IN_YEAR_GET  .
i need create variable for calday with customer ecit and need to use above  FM
please let me know what are things i need to pass?

hi
what is fm to pass system date and varient to get fisc year?
this is 2nd code get first day of fisc year
use one FM to pass sy-datum, Fisc variant to get fiscal year
use your FM (FIRST_AND_LAST_DAY_IN_YEAR_GET) to get 1sat day of fisc year
what are chnages required for my code
WHEN 'ZDATE'.
    IF i_step = 1.
DATA:         ZDT1 TYPE SY-DATUM,
        ZFDT TYPE SY-DATUM,
        ZLDT TYPE SY-DATUM,
       ZFYRN(4) TYPE N.
        ZDT1 = SY-DATUM.        
        ZFYRN        = ZDT1+0(4).
       CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
        EXPORTING
          I_GJAHR              = ZFYRN
          I_PERIV              = 'V3'
       IMPORTING
         E_FIRST_DAY          = ZFDT
         E_LAST_DAY           = ZLDT
       EXCEPTIONS
         INPUT_FALSE          = 1
         T009_NOTFOUND        = 2
         T009B_NOTFOUND       = 3
         OTHERS               = 4
      IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      l_s_range-low = ZFDT
      l_s_range-high = ZLDT
      l_s_range-sign = 'I'.
      l_s_range-opt = 'BT'.
      APPEND l_s_range TO e_t_range.
    ENDIF.

Similar Messages

  • Number of the day in the year

    Hi,
    I have a requirement to add the number of the day in the year to the message and concatenate with HHMM as shown below
    like this :1205001...12:HH,05:MM; 001(1st day of the year)
    ex2: 0204365...02:HH;04:MM;DDD:365(last day of the year)
    ex3: 0209236..02:HH;09:MM;DDD:236:(236th day of the year)...
    How can i achieve this? any standard functionality?
    please advise.
    Regads

    Hi ,
                 Is it the current system date you wanna concatenate?  Anyways this can be achieved by message mapping using standard functions
    input--------------------------------------------------------------------\
                                                                                concat()--------> target field
    currentdate()--->Transformdate(yyyy/MM/dd,hh:mm:DDD)----------------------/
    If its not system date then you can input any field like "2012/01/02"  or change the format of input date transformdate (the first field).
    Regards
    Anupam

  • How to find first day of the year

    Big picture: trying to determine how many pay periods are left in the year. There are 52 weeks in a year, and our company pay out each week.
    The first pay week of the year always starts on a Friday. So If Janurary 1 is a friday, then the 1st week of pay period starts that week. If Jan 1 is a Thursday, then the first pay week will start on Janurary 2.
    I need to figure out what day the first day of any year it is. By day, i mean Mon, Tue, Wed, Thur, Fri, Sat, or Sun.
    Then when I figure out what day it is, i will write an if/then statement saying if Jan 1 is a monday, then add 4 days to that date and that will be the first day of a pay period.
    Then when i figure out the first day of the first week, I wanted to add 7 days to create week2, week3.... week 52.
    Then take todays date and if it was between week x and week y, then it would determine that z many pay periods are left...
    is this the best way to go about this? anything easier?

    You can use the getDay method of a Date object to determine the day of the week. Any decent JavaScript reference will have more information.
    George

  • 1st pay of the year hours double ?

    Hi,
    This is my situation (happened in 2007, 2008)
    Ex: For the 1st pay of 2008 I have this pay period (Dec 30, 2007 to Jan 12, 2008) payable on January 10, 2008
    On my RT table :
    Regular    $20.00    64 hours   $228.58
    Regular    $20.00    64 hours   $1,371.42
    Stat hol    $20.00    3.43 hours $68.60
    Stat hol    $20.00   20.57 hours $411.40
    My problem with this :
    1 - For stat holiday it all ok because the total hours = 24 hours BUT for regular hours I should have 64 hours total and not two time 64 hours (note the amount are good )
    2 - When I try to re-create this situation with simulation or a sand box I always have the right thing it look impossible to re-create this error but I know when it will be the 1st pay of 2009 I will have again the same problem with hours ?
    Can you help me ?
    Thank you,
    Jean

    select t.v_id, to_char(t.close_date, 'YYYY-MM-DD')
      from table_one t
    where t.close_date between to_date('2010/1/1', 'YYYY-MM-DD') and to_date('2010/12/31', 'YYYY-MM-DD')
    and   to_char(trunc (t.close_date), 'dy' ) = 'mon'
    V_ID     TO_CHAR(T.CLOSE_DATE,'YYYY-MM-DD')
    B     2010-01-04
    C     2010-01-11
    E     2010-05-03if you also want the first day of the year included as you mentioned.
    select t.v_id, to_char(t.close_date, 'YYYY-MM-DD')
      from table_one t
    where t.close_date between to_date('2010/1/1', 'YYYY-MM-DD') and to_date('2010/12/31', 'YYYY-MM-DD')
    and   to_char(trunc (t.close_date), 'dy' ) = 'mon'
    or  extract( month from t.close_date) + extract( day from t.close_date) = 2
    V_ID     TO_CHAR(T.CLOSE_DATE,'YYYY-MM-DD')
    A     2010-01-01
    B     2010-01-04
    C     2010-01-11
    E     2010-05-03Edited by: pollywog on Nov 17, 2010 11:38 AM

  • 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

  • I want to accumulate rain for the day, month and year; What formula can I use?

    I want to accumulate rain for the day, month and year; What formula or expression can I use.
    I am using a Rain Wise product that converts pulses to an analog value.  The Rain Wise device can be
    set to measure up to 1", 5", or 10".  I will be setting the unit to 10 inches in increments of 0.01 inches.
    What I would like to do is everytime the signal increments I would like to count it as 0.01 then after reaching
    a period of time whether it be a day or a month reset back to zero.
    Need some advise on this problem.
    Solved!
    Go to Solution.

    Hello Ryan,
    Lookout gets a Modbus over Ethernet signal which originates as a 4-20mA input to a Moxa Ethernet I/O Module (E1240) in the field.  In Lookout I created a ModbusEthernet Driver and a tag which scales 0 - 65534 RAW to 0-10 Eng.  [0 - 10 is inches of rain]  Also, another piece of information is that after the rain gauge maxes out at 10 inches it will zero out and start over.
    I though the accumulator was time based and took a sample over a specific time period, for instance, one sample every 30 seconds then accumulate.  If this is so then if I have 5 inches of rain and then it stopped raining, then 30 seconds latter it would sample, it would see 5 inches and add that to be 10 inches when actually it had only rained 5 inches. 
    I really need some help with this process,
    David Lopez
    City of Corpus Christi

  • Need the first day of the year and last day of the year.

    hi all,
    i need a function module which can get me the first day of current year and last day of the current year??
    please help.

    Similar date questions are being asked ALL THE TIME.  Please search.

  • Is there a way to change the date format so that delegates have to choose a day, month and year from a drop down menu as my delegates keep forgetting to change the year of their information

    When my delegates are filling in a event form i have put together, a large number of them forget to change either the month or year on the date field. Is there a way to have a date field that has drop down boxes for day, month and year so they have to choose rather than a date been already on the screen??
    Thanks

    Hi Christopher,
    The WEEKDAY function allows specifying either Sunday or Monday as the first day of the week:
    WEEKDAY
    The WEEKDAY function returns a number that is the day of the week for a given date. WEEKDAY(date, first-day)
      date:  The date the function should use. date is a date/time value. The time portion is ignored by this function.
      first-day: An optional value that specifies how days are numbered.
    Sunday is 1 (1 or omitted):  Sunday is the first day (day 1) of the week and Saturday is day 7.
    Monday is 1 (2):  Monday is the first day (day 1) of the week and Sunday is day 7. Monday is 0 (3):  Monday is the first day (day 0) of the week and Sunday is day 6.
    But I think you are referring to the first day of the 'workweek', for which I do not see a means of defining a custom value.
    Since you want to 'insert categories', though, you could easily define your own, using WEEKDAY(date) or WEEKDAY(date,1), plus an IF statement to return the category label appropriate to the day. Here's one for a Sunday to Thursday work week. Dates are in column A, the formula is in whichever column you want as the Category column. For the example, I've placed it in column B.
    B2, and filled down: =IF(WEEKDAY(A)<6,"Work","Off")
    The top table shows the weekday numbers returned for each day of the week for each of the three permitted values for the optional second argument. The bottom table shows the results from the formula above, used to define a category label for each date:
    A10 was left blank intentionally, to determine if the lack of data resulted in an error. The Warning message, flagged by the blue 'warning' triangle, is "The formula uses a number in place of a date." The 'date' assigned to this numerical value of zero was a Friday, but I'm not certain when. Probably best to avoid extra rows with no date shown.
    Regards,
    Barry

  • CVI localtime to get the Day of the Year

    I have a vendor supplied driver that needs the day of the year (0-365), minutes, hours, seconds for their board so that it updates itself to the correct time. I am looking at the LabWindows/CVI functions time and localtime to get this information. Those calls are documented in   ...\CVI2010\include\ansi\time.h   with the code contained within  C:\windows\system32\cvirte.dll
    when I set up the module within TestStand, I get a message that states:
    This function either does not have parameter information in the DLL or user types not recognized by TestStand.
    Not a problem. I used the information within time.h to setup the parameters for the function time. That function works fine. The function localtime returns a structure with the individual time elements. I created a Custom Data Type to define the structure. I cannot seem to determine how to define the module for this action so that it will work.
    I am including the sequence file, .h file, and the dll to help you understand what I am attempting to acomplish. Perhaps I am not using the correct dll or there is a better option. Any help would be appreciated.
    NOTE: I could not attach a DLL so I renamed the extension to LLB. You will need to rename it back to DLL.
    Attachments:
    Test.seq ‏5 KB
    time.h ‏4 KB
    cvirte.llb ‏5686 KB

    Hey Bill,
    I think what might be causing issues is that you are calling directly into the CVI Run-Time Engine, which we do not publish an API for and generally do not intend to be called directly from another application. I would recommend creating a simple DLL in CVI to call the functions you want, such as localtime(). This will allow you to use the CVI function panels and other Help resources to correctly configure your function call. You can simply create a wrapper function which calls localtime and returns the value you are interested in. If you build this wrapper code into a DLL, you should be able to call it from TestStand.
    I hope this helps, and let me know if you have any more questions about it!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How to Create payment term for -Net Due 1st Day of Second Month Following

    Hi,
    We need to add a payment term for "Net Due 1st Day of Second Month Following Delivery". We need this to be in the system as soon as possible as we just were told of a change in terms for our client effective May 1st.
    Kindly advice me how to select the dates in OBB8?
    Thanks
    Supriya

    Hi Supriya,
    In OBB8, create a new payment term with the following settings -
    Default for baseline date = No default
    Payment terms/Term 1/Fixed date = 1
    Payment terms/Term 1/Additional months = 2
    This payment term will ask you for a baseline date on document entry. You can give the delivery date as the baseline date. If required, this date can be changed after posting the document also.
    Hope this helps.
    Regards,
    Mike

  • Calendar Third Sunday of February doesn't show the correct day in all years

    Calendar Third Sunday of February doesn't show the correct day in all years?
    The day of month repeats the same day as saturday.
    Example: February 20 2010= Saturday. Sunday shows 20 and not 21.
    February 19 2010= Saturday. Sunday shows 19 and not 20...
    I'm in Brasil, where DST begins exactly on the third sunday of February (coincidence?)...But the problem persists even if I deactivate the hour fuse control !

    Yes, it's a DST issue. I've had this problem before at both ends of DST.
    You can submit feedback to Apple: http://www.apple.com/feedback/iphone.html.

  • How to calculate no of days in an year

    Hi,
    can some one provide a simple way to calculate no of days in a year if we know processing date.
    thanks
    CDPrasad

    select
       trunc(input_date, 'YYYY')  as the_year,
       add_months(trunc(input_date, 'YYYY'), 12)
       trunc(input_date, 'YYYY')  as days_in_year  
    from
       select
          add_months(sysdate, -12 * level) as input_date
       from dual
       connect by level <= 20
    12  );
    THE_YEAR          DAYS_IN_YEAR
    01-JAN-2009 12 00:00           365
    01-JAN-2008 12 00:00           366
    01-JAN-2007 12 00:00           365
    01-JAN-2006 12 00:00           365
    01-JAN-2005 12 00:00           365
    01-JAN-2004 12 00:00           366
    01-JAN-2003 12 00:00           365
    01-JAN-2002 12 00:00           365
    01-JAN-2001 12 00:00           365
    01-JAN-2000 12 00:00           366
    01-JAN-1999 12 00:00           365
    01-JAN-1998 12 00:00           365
    01-JAN-1997 12 00:00           365
    01-JAN-1996 12 00:00           366
    01-JAN-1995 12 00:00           365
    01-JAN-1994 12 00:00           365
    01-JAN-1993 12 00:00           365
    01-JAN-1992 12 00:00           366
    01-JAN-1991 12 00:00           365
    01-JAN-1990 12 00:00           365
    20 rows selected.
    TUBBY_TUBBZ?The above shows the number of days in a year for the past 20 years.
    So assuming you had a variable .. called "input_date"
       trunc(input_date, 'YYYY')  as the_year,
       add_months(trunc(input_date, 'YYYY'), 12)
       trunc(input_date, 'YYYY')  as days_in_year   Would do it.

  • If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund. how do i contect apple to get refun

    If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund.
    i upgrade a few minets ago. how can i contact apple to give me back money?

    Call the Apple online store for your country (1-800-MY-APPLE in the U.S. and Canada).

  • How to show all days of the year 1900

    how to show all days of the year 1900

    As you show days for any other year.
    Do you want to catch us on the fact year 1900 wasn't a leap year?
    Regards
    Etbin
    select to_date('1.1.' || :the_year,'DD.MM.YYYY') + level - 1
      from dual
    connect by level <= to_date('31.12.' || :the_year,'DD.MM.YYYY') - to_date('1.1.' || :the_year,'DD.MM.YYYY') + 1*** not tested ***
    Message was edited by: Etbin
    user596003

  • Query with the days of a period and the same days of last year

    I need a help.
    We have a sales cube with daily values.
    We have a query that restricts a month (0CALMONTH) and shows the daily values for this month.
    No problem, we have only to put 0CALDAY on the line and the value on the columns.
    But we need also to show the values of the same days from last year.
    Example:
    The restricted month is july/2011.
    0CALDAY is on the line, so the query shows the values for
    01.07.2011   110,00
    02.07.2011   108,00
    31.07.2011   109,00
    How can we show in the same line the values for july/2011 and july/2010?
    Example:
             July/2010    July/2011
    01     95,00            110,00
    02     96,00            108,00
    31    94,00             109,00.
    Thanks in advance
    César Menezes

    Thanks for the answers until now.
    Surely a Day characteristic (ex. CA_DAY, derived from 0CALDAY) would work.
    But we have this requirement in many other cubes (I posted only an example) and it's not feasible to create this characteristic now.
    I understood the other suggestions, but the problem is not on selecting the values.
    We have two restricted key figures, one for a period (filled by the users) and another one for this period - 12.
    They work OK and bring the correct results.
    The problem is on presenting the results, because as we have 0CALDAY in the line the results appear on two different lines.
    Example:
    15.07.2010    950,00
    15.07.2011    980,00.
    Is ther any way to present the results in the same line?
    Example:
    15.07.2011    950,00 (last year)     980,00 (today)
    or
    15.07             950,00 (last year)     980,00 (today)
    or any other way?
    César

Maybe you are looking for

  • JDeveloper 10.1.3.2  , Portlet + Liferay Portal problem with JSR168 portlet

    When i create a portlet using JDeveloper 10.1.3.2 or 9.0 + portlet extension when i deploy it to Liferay Portal all versions and when i add the portlet somewhere the portal console prints me infinitive stacktrace... and the portlet never viewed i thi

  • PLUG-INS not always loading - - Coupon Printer Manager plugin has crashed

    ''dupe of https://support.mozilla.org/en-US/questions/914197'' I am running Windows XP SP3 and all updates are current. For weeks, running 7.0.1, 8.0.1 or 9.0.1, whenever I try to print coupons at the www.coupons.com website, I have difficulty and co

  • Lost wireless connection

    my hp office jet 4500 wireless printer lost its connection. Tehre is nothing in the printer que.  How do i reconnect my wirelss printer?

  • Layout and file description doesnot match

    In Profit center planning, When I am press the overview button after entering the account numbers , version and all other details in the selection criteria, Then I get this error Layout and file description doesnot match. I went back and I deleted th

  • Application slowing down

    My application runs fine for about 1-2 hours and then gradually it slows down. I have a jtable which displays records and which dynamically inserts, updates and deletes rows. There are two columns which display timer value. The problem is in displayi