Date: showing the current quarter

Hi,
I want a field where you can chosse the current quarter. Is this possible? Has it something to do with date format? date.short, medium, long,...?
Thanks in advance for helping me!
Matthias

First option:
in Acrobat Pro I would write something like this (the "else" is still missing; second problem is that I can't make this for all years...)
var 
DatumsUhrzeitfeld4 = this.getAttribute("DatumsUhrzeitfeld4");
if 
(DatumsUhrzeitfeld4 = "August 2010"){DatumsUhrzeitfeld4
= "Quartal 3"}
if 
(DatumsUhrzeitfeld4 = "September 2010"){DatumsUhrzeitfeld4
= "Quartal 3"}
if 
(DatumsUhrzeitfeld4 = "Oktober 2010"){DatumsUhrzeitfeld4
= "Quartal 4"}
if 
(DatumsUhrzeitfeld4 = "November 2010"){DatumsUhrzeitfeld4
= "Quartal 4"}
if 
(DatumsUhrzeitfeld4 = "Dezember 2010"){DatumsUhrzeitfeld4
= "Quartal 4"}
Second option:
http://forums.adobe.com/message/333985#333985
Sorry, misread the issue. The Quarter will be based on the company you are working for . If their year-end is the same as a calendar yearend (Dec 31), then the example below will be accurate. Change the dates based on the company requirements.
You can hardcode variables into your application.cfm page.
quarter1start = "01-jan-";
quarter2start = "01-apr-";
quarter3start = "01-jul-";
quarter4start = "01-oct-";
The end of each quarter is programatically always the day before the start of the next quarter.
I would add the 'year' to the equation dynamically, to keep it forward compatible.
But where shall I write this?
thx in advance 4 helping me!

Similar Messages

  • Need to display the Current Quarter Data

    Hi Gurus,
    We have a requirement in the report as follows:
    I have a Key Figure - 0Balance. In this it should display the current quarter data.
    We have 5 plants and this report is specific to a plant X which runs 3 month behind.
    So in the variables screen, if I enter 006.2007, it should display the data of 003.2007. Please guide me through the steps...Thanks in advance.

    Hi,
    For getting current quarter data there is std variable available 0CMCQUAR , restrict KF wiht the variable and system should show you current quarter balance.
    For getting balance for previous quarter , copy the kf just created and right click on it , click on the variable right hand side -> specify offset -> put -1. and it should give last quarter data.
    Hope that helps.
    Regards
    Mr Kapadia

  • How to set the filter on a report to show the data for the Current Month

    Hi all,
    I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
    Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
    Any help would be greatly appreciated!
    Thanks,
    AA

    You need to add a session variable to date fir worked assuming that this is a date field.
    To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section.

  • Get the Current Quarter  and Current Week from date

    Hi,
    I want to get the Current quarter and Current week from a given date, which function modules should i use?
    I tried using function module - 'HR_99S_GET_QUARTER' for getting the quarter but it is throwing an error while loading data. Moreover it doesnt exist in BI7.
    Similarly for current week.
    Please help. Sample code snippets would be appreciated.
    Thanks
    Jaya

    You can use FORM time_conversion wich is the one used by standard in Update Rules:
    You can select whether convert 0CALDAY to 0CALWEEK or whatever infobject formats you prefer...
      perform time_conversion
                using  '0CALDAY'
                       '0CALMONTH'
                        p_input_date
                        l_fscvtval
                changing RESULT
                         c_t_idocstate
                         c_subrc
                         c_abort.
      if c_subrc <> 0 or c_abort <> 0.
        exit.
      endif.
    form time_conversion
                   using i_timnm_from type rsiobjnm
                         i_timnm_to   type rsiobjnm
                         i_timvl
                         i_fiscvarnt  type t009b-periv
                   changing e_timvl
                            c_t_idocstate  type rsarr_t_idocstate
                            c_subrc   like sy-subrc
                            c_abort   like sy-subrc. "#EC *
    data: l_timvl  type rsd_chavl,
          l_result type rsd_chavl.
      IF i_timvl CO ' 0'.
        CLEAR e_timvl.
        EXIT.
      ENDIF.
      l_timvl = i_timvl.
      CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ'
        EXPORTING
          i_timnm_from             = i_timnm_from
          i_timnm_to               = i_timnm_to
          i_timvl                  = l_timvl
          I_FISCVARNT              = i_fiscvarnt
          I_BUFFER                 = rs_c_true
        IMPORTING
          E_TIMVL                  = l_result
        EXCEPTIONS
          INCOMPATIBLE_TOBJS       = 1
          NO_INPUT_VALUE           = 2
          FISCVARNT_MISSING        = 3
          INPUT_NOT_NUMERIC        = 4
          WRONG_DATE               = 5
          WRONG_FISCPER            = 6
          X_MESSAGE                = 7
          OTHERS                   = 8
      e_timvl = l_result.
    ENDFORM.                  "TIME_CONVERSION

  • How to show the Current Date in the Screen as default

    Hi all,
    This is may be simple to u all, but i need the solution for this,
    I want to show the Current date in the Screen, i am using the structure. but the calendar control showing when i run the program. But i want to show the current date as default.
    Thanks
    Shankar

    Is this a screen or a report?
    If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
    If its a screen field, try writing this in the PBO:
    IF fieldname IS INITIAL.
    fieldname = sy-datum.
    ENDIF.
    Hope this helps.
    Sudha

  • My iCloud calendar interacts with all of my iOS devices showing the current date, but on my iPad the rest of the calendar is blank.  Any suggestions?

    My iCloud calendar interacts with all of my iOs devices showing the current date, but on my iPad the rest of the calendar is blank.  Any suggestions?

    I can help you for the future.  Regularly back up your computer to an external hard drive (or cloud alternative).  If you have your library backed up, it could be reinstalled on your new computer.  In your current situation, you will have to reload all of your CDs as syncing of non-iTunes purchased music is only one way (Computer to iPod)

  • Weather icon that shows the current weather?

    My blackberry weather app used the icon to show the current weather conditions (sunny, rain, etc). The iphone calendar icon can show the current date. Is there a weather app that can use the iphone icon to show the current weather? I haven't found one yet.

    The calendar app is a native app and the only one that does change its icon. Third-party apps don't have that facility.
    The built-in Weather app does change its icon though - but only dependent on where you are (the region settings in the phone) and only shows either 23° Sunny or 73° Sunny - nothing else

  • How to use a Text View to show the current user

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
                user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date           
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
                date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
              contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();          
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    There are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc.  What have you got so far?

  • How to use a Text View to show the current user in WDJ

    Hi Experts,
    I am using a Text View to show the current logged on user.
    Also i need to retrieve the date of creation of proposal and show it as output parameter.
    I am using the following code but it is not working properly.
    Please help me out regarding the same.
    Method technicalDescription()
    //Attribute User to store user name
    IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
    user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    //Attribute date to store current system date
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
    date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    //getting current system date
    Date currDate = new Date(System.currentTimeMillis());
    contextElement.setDate(currDate);
    //Retrieve Current User Details
    try {
    IWDClientUser user = WDClientUser.getCurrentUser();
    String firstName = user.getFirstName();
    String lastName = user.getLastName();
    String userName = lastName + " " + firstName;
    contextElement.setUserName(userName);
    } catch (WDUMException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    Method complete()
    output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    Thanks a lot.
    Cheers
    Gaurav Raghav

    You can use a text string as the reference.
    If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
    The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
    Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
    Attachments:
    VISA find.png ‏5 KB

  • Find the Current Quarter

    Hi All ,
    Is it possible to find the Months in current quarter based on the current date.
    Like months in this quarter are : April ,May and June .
    I just require to select the months in the  current quarter based on the current date.
    So if i run the same query in the month of July any date or September any date. ...
    The result should be July,August and September .
    Kindly Help

    You should create and use a calendar table as Jingyang suggests.
    However, if you MUST do it inline, this will get you where you need to be:
    select
    convert(date,convert(varchar,datepart(year,getdate()))+'-'+convert(varchar,(datepart(quarter,getdate())*3)-2)+'-01') as q_start,
    convert(date,convert(varchar,datepart(year,getdate()))+'-'+convert(varchar,(datepart(quarter,getdate())*3))+'-01') as q_end

  • Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive. Help

    Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive in the Backups.backupdb folder.
    Time Machine does show the history of my Macintosh HD, but when I try to navigate to the folder I wish to restore the backup history disappears. I've been searching for answers and I have not found one that works for me.

    Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive in the Backups.backupdb folder.
    Time Machine does show the history of my Macintosh HD, but when I try to navigate to the folder I wish to restore the backup history disappears. I've been searching for answers and I have not found one that works for me.

  • Powermanager 1.60 has removed the abilty to show the current power consumption in the tray.

    Hi,
    well the topic says it. Powermanager 1.60 has removed the abilty to show the current power consumption in the tray.
    I realy frustrated right now, why the heck did they remove this nice feature?
    And this new energy slider is just trash. If i change back to advanced mode, i cant see my current power consumption. Nor in the main battery tab. The field "Current Power" is just blank. And the option in the tray vanished.
    What the **bleep** are these guys doing. There was a time i fought this powermanger is the best software ibm/lenovo ever produced, but since the change of the ui, and removing important features. Its unbeliveable.
    Especialy if you are on windows xp, this looks like **bleep**, and this "new" gauge desgin, flickers and stops my mouse on hower over the new "Design".
    a frustrated,
    R61 user.

    you should try uninstalling & re install it http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-70602
    Message Edited by GMAC-R60 on 08-08-2009 12:38 PM
    Thinkpad R61 7733-1GU
    Thinkpad X61T 7762-54U
    Thinkpad X60T 6363-4GU
    Did a member help you today? Thank them with a Kudo!
    If a post answers your question, please mark it as an "Accepted Solution"!
    Regards,
    GMAC

  • Acrobat Pro "save as" function in the file menu does not show the current directory of the file

    I have installed CC but Acrobat Pro gives me headaches.
    The "save as" function in the file menu does not show the current directory of the file but something I have worked on in the past.
    It forces me to navigates through my hard disk for this very straightforward thing in normal conditions. I precise: Acrobat is the only software reacting like that.
    I use Windows7 professional 64bits.

    I use what seems to be the latest version available on the Cloud:
    To illustrate my point, I open a directory with explorer and double-click on the only PDF in there:
    So here it is, open:
    When I do a "Save as", it takes me to a totally different place on the disk!
    Very annoying...
    Thanks for your time!
    JJ

  • Why doesn't "Tab groups" display https pages and do tab group pages show the current web page or just a snapshot?

    I use the tab slideshow add-on because I need to see many "sites" to monitor activities so the slideshow provides that at this time. When I saw the tab group feature, I wanted to try that because that would allow me to see all the sites on one page. I created the tab group and unfortunately can't even see each tab maybe because HTTPS is not supported. Tab group doesn't seem to show the current page; just a snap shot. I just wondered if HTTPS and active paging would be supported.

    I have been wondering the same thing for the 8 years that I have been using Firefox. Also, it seems that when a printing bug is eventually fixed, a new regression bug is sometimes filed that is even worsen than the original bug that was fixed. <br />
    Example - https://bugzilla.mozilla.org/show_bug.cgi?id=454532
    I honestly feel that Mozilla doesn't have any developers with the talent to fix printing in Firefox. They should start from scratch and create all new printing code that is well documented and understandable by the current developers; then maybe they would be able to fix whatever bugs crop up with their own code, instead of being baffled by the code that Netscape created 16 to 17 years ago.

  • Last date of the previous quarter

    Hi,
    How can i find the last date of the previous quarter, based on todays date (the fiscal year starting from 1st April)
    the quarters are 1st april to 30th June, 1st July to 30th sept, 1st Oct to 31st Dec and 1st Jan to 31st March

    872435 wrote:
    Hi,
    How can i find the last date of the previous quarter, based on todays date (the fiscal year starting from 1st April)
    the quarters are 1st april to 30th June, 1st July to 30th sept, 1st Oct to 31st Dec and 1st Jan to 31st MarchTry this function:
    select add_months(add_months(trunc(sysdate,'Q'),-1) - 1,1) from dual;
    Ion

Maybe you are looking for

  • Imports - Free of Cost

    Hi, We want to purchase materials from an Imports Vendor. The Vendor has agreed that he will deliver some materials free of cost, that means we don't want to pay the vendor for that Material, but at the same time we have to pay the Customs Duty & the

  • Mac OS X Lion Server screen freezes frequently

    I have recently purchased the Mac Mini Server with 8GB RAM Upgrade and have been experiencing screen freezes frequently. The Mac Mini is connected to a ViewSonic LED Monitor via an HDMI cable and is running Mac OS X Lion Server. It all started a mont

  • Outlook Email script won't work with Reader 9.1

    The attached form was designed in ES 8.2 and has worked fine with Reader 8.0. The "properties defaults" tab is set for Reader 9.0 or better. However, upon recent upgrade to Reader 9.1, the Outlook Email script stopped working. I'm new to Livecycle an

  • Problem with camera ios 5

    Since i updated my iPhone 4 to iOS 5, i have some problems with my camera,I do not have the zoom option, the video mode has a forced zoom and it is always focusig and the film is blurry. Can i stop the auto focusig in video mode?

  • Trouble in Modifying calculateMinorAxisRequirements() method of BoxView

    Hi there, I have written a custom View, called TreeView that extends BoxView. Basically, my TreeView lays out all its children on y-axis (so it calls BoxView(element,View.Y_AXIS) in constructor), and displays all its children (except the first and th