Calendar WDY year based

Hi all,
I m developping an application in Webdynpro/ABAP.
In a form I want to allow to the user to make a seizure of a variable type DATS ( DD / MM / YY) through a calendar which is positioned on the month of January of the reference year (passed as parameter). This variable must belong to that year only, otherwise, this calendar musn't give a choice in other years.
Is there an FM or possibility that Allows this ?
Best regards

Have you tried an inputField bound to a date data type context attribute?  You will get a calendar as a value help and the default value in the inputField will control the startup date shown in the calendar. The rest of the validation could be controlled in logic within your controller.
The dateNavigator UI element is the only calendar related UI element in Web Dynpro ABAP.  If the inputField with date data type doesn't work, then you would have to explorer this UI element.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/81/ab884118aa1709e10000000a155106/frameset.htm

Similar Messages

  • FM to get previous fiscal month/year and calendar month/year for a date.

    Hi All,
    I am having a requirement to extract some data based on either the previous fiscal month/year or the previous calendar month/year. There is no company code input to find the fiscal/calendar month/year.
    At selection screen, user can select either fiscal or calendar selection.
    Based on the selection, the data will be extracted.
    For the system date, we need to calculate previous fiscal month/year or previous calendar month/year and populate the calculated data back to the selection-screen.
    Can you one of you please suggest an FM to find previous fiscal month/year and previous calendar month/year.
    Thanks in Advance,
    Regards
    Gowthami

    Hi Gowthami,
    You can use following function module to calculate previous / next day or month or year.
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    =
            sign      = '-'
            years     =
          importing
            calc_date = .
    Here, you can give '-' to sign, if you want previous day / month / year.
    Here, you can give '+' to sign, if you want next day / month / year.
    And depending upon your requirement, you can pass suitable value to days / month / year.
    e.g. To calcualte last month,
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    = 1
            sign      = '-'
            years     =
          importing
            calc_date = wv_prev_month.
    so it will give '23-01-2008' . Then convert it in the required format as per your requirement using string function concatenate.
    Hope this help you.
    Regards,
    Anil

  • Need to display "Calendar Month/Year" at report level from Calendar Day

    Hello Experts,
    I have a scenario in which I have 0CALDAY (e.g. 01.01.2009) along with other fields available in my report. My requirement is to display "Calendar Month/Year" (01.2009) in my report. Is it possible to have "Calendar Month/Year" in my report from 0CALDAY, by making changes to the query, as I cannot remodel the underlying InfoCube.
    Many Thanks,
    VA

    What you mean with huge - 100 Mio dataset?
    The import of the new infocube will be also take a long time - the database must be insert a new field for every dataset.
    => is this a big infocube, then don't use virtual infoobjects.
    => on a big infocube is important to have a good datamodel - please insert always all 11 infoobjects for the time dimension.
    Sven

  • To Display "Calendar Month/Year" at report level from Calendar Day

    Hello Friends,
    I have a scenario in which I have 0CALDAY (e.g. 01.01.2009) along with other fields available in my report. My requirement is to display "Calendar Month/Year" (e.g. 01.2009) in my report.
    Is it possible to have "Calendar Month/Year" in my report from 0CALDAY, by making changes to the query, as I cannot remodel the underlying InfoCube?
    Many Thanks,
    VishwA

    HI Vishwa,
    Hope it will helps.
    How to get month from CREATE DATE field??
    Regards,
    SVS

  • Appears in the calendar, the year 2556 BE, as I correct?

    appears in the calendar, the year 2556 BE, as I correct?
    when I try to take it to the year 2013, not shown, can someone help?

    Settings>General>International>Calendar Make sure it's set to "Gregorian". I bet you've got it set to Buddhist.

  • Update calendar from year to year

    Does anyone know of a way to update a calendar created for 2007 for example to 2008? I have created a 2007 calendar last year and now I want to update the photos in it and use the same dates in there (ie birthdays) for 2008.

    bogiman:
    Welcome to the Apple Discussions. Unfortunately changing the year in the Settings pane keeps only the photos in the picture portion of each month and removed all data from the calendar section. If you make a birthday calendar in iCal with the birthdays entered into the appropriate dates you can enter them each year with just once click.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Need age in years based on his/her next birth day.

    Hi,
    I need to Print age in years based on his/her next birth day.
    SELECT TO_CHAR(TRUNC(MONTHS_BETWEEN((SYSDATE ), P.birth_date)/12)) A from employee I used the above code but I get the age with reference to the sysdate only. But what I require is the age based on next birthday.
    For ex: Birth day: 24FEB2000
    Then my expected output is 10.
    If my birthday would have been 24DEC2000, then I would expect a result of '9', please help me with a function or a simple sql statement to code this.
    Thank You

    Maybe something like:
    SQL> SELECT sysdate FROM Dual
      2  /
    SYSDATE
    17-JUN-09
    1 row selected.
    SQL> WITH test_tab AS
      2       (SELECT TO_DATE ('24FEB2000', 'DDMONYYYY') birth_date
      3          FROM DUAL
      4        UNION ALL
      5        SELECT TO_DATE ('24JUL2000', 'DDMONYYYY') birth_date
      6          FROM DUAL
      7        UNION ALL
      8        SELECT TO_DATE ('17JUN2000', 'DDMONYYYY') birth_date
      9          FROM DUAL)
    10  SELECT birth_date,
    11         CASE
    12            WHEN SIGN (  TO_DATE (   TO_CHAR (birth_date, 'DDMON')
    13                                  || TO_CHAR (SYSDATE, 'YYYY'),
    14                                  'DDMONYYYY'
    15                                 )
    16                       - TRUNC (SYSDATE)
    17                      ) <> 0
    18               THEN TRUNC (MONTHS_BETWEEN (TRUNC (SYSDATE), birth_date) / 12)
    19                    + 1
    20            ELSE TRUNC (MONTHS_BETWEEN ((SYSDATE), birth_date) / 12)
    21         END age
    22    FROM test_tab
    23  /
    BIRTH_DAT        AGE
    24-FEB-00         10
    24-JUL-00          9
    17-JUN-00          9
    3 rows selected.
    SQL> Hmm... Sean's Query is better....
    Regards,
    Jo

  • First Day of Year based on given 12-month date

    Hi All,
    i want to get first day of the given year based on 12-month financial year.
    i'e if i entered '21-Sep-2014' as a given date then expected output is '01-Oct-2013'
    Could you please suggest best way to get this done.
    Thanks in advance.
    bala krishna

    Dan thanks for your reply.
    am adding more description below to my post:
    The thing is for a given date i needs to find out
    Year Start Date , Year
    End Date.
    For this am using below scripts respectively
    SELECT DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0);
    SELECT DATEADD(DD, -1 ,DATEADD(yy, DATEDIFF(yy, 0, GETDATE()) + 1, 0));
    Here , the problem is , now its giving the current year first day and Last day.
    But what i want is Year first day should be based on (minus 12 month) i'e '01-OCT-2013'
    and Year End Day should be '30-SEP-2014'
    i hope now the requirement is more clear.
    bala krishna
    Try like this
    SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE())-11,0) AS StartDate,DATEADD(mm,DATEDIFF(mm,0,GETDATE())+1,-1) AS EndDate
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Dynamic selection of Calendar month/year

    I need to create a dynamic combo for calendar month/year, which will display the last 3 months.
    I have a query that displays the cumulated amounts for the last three months and I need to have a combo with the option to filter the query for only one of these months...
    How can I do that in Visual Composer?
    Thanks in advance,
    Cris

    Hi Cris,
    The simplest way is to create a service that's returns the correct month and use it as dynamic list for the drop-down.
    Hope it helps,
    Shay

  • Looking for a 2014 InDesign calendar (full year) WITH holidays. Can't find one with holidays.

    Looking for a "year at a glance" InDesign calendar WITH holidays. I can't seem to find any with the holidays. Thanks

    Screw it?
    I sent you a link as to how to use Calendar Wizard (free) to make a calendar with interfaith holidays.
    If you just want ordinary holidays, Calendar Wizard (http://calendarwizard.sourceforge.net/) does everything you want?
    What more do you want?

  • Last day of each month in a year based on a Input date?

    Hi all,
    I have a request from a customer who wants to have a yearly report created in BEx Query Designer which starts in January up to December and they want to have a Month To Date (MDT) and Year to Date (YTD) calculation of a key figure. This report will only show one year at the time based on the date the user give as input at the Variable Screen.
    This key figure should be calculated by using the last date of each month for input when performing the MTD and YTD calculation and summarizations.
    Example:
    January: 31.01.2008  Key Figure = 1000. MTD = 1000 and YTD = 1000
    February: 29.02.2008  Key Figure = 2500. MTD = (2500-1000) 1500 and YTD = 2500
    March: 31.03.2008  Key Figure = 6000. MTD =(6000-2500)=3500 and YTD = 6000
    Etcu2026.
    This means that I have to have a lot of hidden Key figures which gets restricted on the different month end dates and formulas to calculate the different MTD and YTD results for the months as the year progresses.
    The way I have solved it now is that I have a Customer Exit which gives me the Last day of last year (Exp: 31.12.2007) based on input date and use a Offset on the last day of last year date to get the different last dates of each month.
    Since we have a leap year (one extra day in February) this year, the offset to calculate the end month dates will be different for 2007 and next year (2009). This solution is not very flexible, and it will not give the correct MTD and YTD if the customer wants to go back to 2007 and off course next year (2009).
    One solution is to create 12 Customer Exits that gives me the different month end dates (January-December), and also takes in account leap year for February for the different years. These Exits will be based on the Input date the Customers put in at the variable screen.
    I would rather want to avoid making 12 new customer exits and want your advice and expertise to find out if this is possible in any other way (maybe with only 1 customer exit) to get the last date of each month based on an input date.
    Thanks for all your advices on beforehand.
    Regards
    Oddmar Lid

    Hi,
    Thanks for you replay and documentation, but it doesn't give me excatly the functionality I'm after. The only MTD calculation code the document provides is the calculation of the following functionality:
    "Month to Date (MTD) u2013 From the 1st of month to u201CKey Dateu201D - for current year." This doesn't give the the functionality I want, which is to retrieve a given vaule for a Key Figure for the last dates of the months in a year to calculate MTD and YTD.
    This way I have created the query is to have multiple hidden Key Figures that calculates the MTD and YTD.
    In Columns in Query Designer it will look something like this:
    Selection: MTD January--> Date = 31.01.2008, Key Figure (Always Show)
    Selection: YTD January --> Date= 31.01.2008, Key Figure (Always Show)
    Selection: MTD February --> Date= 29.02.2008, Key Figure (Always Hide)
    Formula: MTD February --> MTD February - MTD January (Always Show)
    Selection YTD February --> Date = 29.02.2008, Key Figure (Always Show)
    And so on....
    This is off course a simplified version, but it shows the core of the solution. What I want to achive here is that the dates used to get the Key Figures (last date of a month) is calculated as flexible as possible, so that the users can go back and forth in time without worrying about the leap year problem and so on. I have now used an offset from the last date of last year and this is good for all the normal years, but when it is a leap year the query will use wrong dates to get the key figure vaule for the last date of each month.
    Any ideas on how to achieve this without creating 12 different Customer Exit variables (one for each end date of each month)?
    Thanks
    Regards
    Oddmar Lid

  • LSO - Issue with Factory calendar End Year and creation of New courses

    Hi,
    Recently we are experiencing an Issue in LSO with the system hanging while creation of "Course with Resources".
    Upon Analysis we identified that while creating course with resources and by checking "Period without Days off" option references the set factory calendar in LSO config and since this set Factory Calendar has an End Year in 2005, the system hangs trying to reference this factory calendar.
    For some course types we are unable to even enter the course creation Data screen. These course types have " Main schedule" (with / without pattern) pre defined.
    The issue does not seem to occur if we extend the factory calendar to current period or future.
    Please let me know if anybody has faced this issue, if extending the factory calendar the right solution and what is the impact of exteding a factory calendar in HR module. Is the factory calendar referenced anywhere else in HR module?
    Note: in LSO config you can set the factory calendar in Training and Event Management>SAP Learning Solution>Training Management>Basic settings>Control Options for Days Off,
    Regards
    Edited by: Abhihek Gangatkar on Sep 26, 2011 12:25 PM

    We found the problem,
    We had to add a numeric and /or a special charachter in the password

  • Payment term and financial calendar (fiscal year variant)

    Does anyone know if it is it possible to link the payment terms to the financial calendar.  We are looking to use a payment term Month End + 30.  However the month end should be the financial month end instead of the calendar month.
    Appreciate any suggestions
    Thanks
    Eoin
    FI analyst

    A number of vendors require a single payment to be made in first week after fiscal month-end.
    Currently, you can only use payment terms based on calendar month-end and this is causing problems in months where fiscal month-end ends in next calendar month.
    Example: April.  Period 04
    Calendar month end 30th April
    Financial month end 02 May
    Payment terms ME05 (month end + 5) - docs posted in April will fall due 5th May
    however,
    Should be 7th May

  • Lost calendar 2 years in a row

    For the second year, I have lost all my calendar events. I have upgraded the OS twice. I have reset the iPad by holding the two buttons. Not sure if either of those things erased it. Very frustrating. Had important dates for events at work.

    Saw another discussion and fixed the problem.

  • How to change iOS 8.1.2. calendar's YEAR field?

    My product is iPhone 6 Plus, I am using iOS8.1.2. system.
    My calendar year field now is "2557BE".
    I tried to changed Event to ''All Day", I can changed the year from there, but can not save the changes successfully, the year still return back to the wrong one.
    Looking for expert's advice.

    Hi, Everyone,
    I solved this problem...
    The steps as below:
    General - Language & Region - Calendar ... then change the type from Buddhist to Gregorian... bingo

Maybe you are looking for

  • Layout variant not working

    Hi ,   I have executed a report . I hide one column and saved the layout. The layout name comes on to the selection screen parameter which i have defined on the selection screen. PARAMETERS: p_vari LIKE disvariant-variant. " ALV Variant i have made t

  • Unplanned delivery cost & exchange rate differences in MIRO

    Hi Gurus, while posting MIRO, I am facing the following problems.  If anybody gives me reply, it will be a great help. 1.  Unplanned delivery cost: Client requirement is, these unplanned delivery costs should be added on material only. how we can map

  • Oracle 10g to SQL Server

    Hi All, We have established a connection between ORacle and SQL Server, When I query in TOAD. It works fine e.g. this statement works fine in TOAD: select * from JDETAIL@ex_test But when I try to execute the following statement from PL/SQL BLOCK. It

  • Oracle session Hangs while calling one package function

    Hi all, We are a facing a interesting scenario in our code. Consider that you have 2 pakcages(A,B). Ecah packages is having more than 5 functions in it. 1. A.function1() makes a call to B.function1() - is working fine 2 .B.function1() calls B.functio

  • Network connection lost after waking from sleep

    iMac (27" late 2013) running Yosemite 10.10. Ethernet connection direct to the computer from the FIOS router. Upon waking from sleep, the computer is not connected to the internet. After about 20 seconds it finally reconnects. Under Mavericks it neve