Selection screen must show current date + 1

Hi Guys,
               In my selection screen i have given
parameters: date like sy-datum default sy-datum.
I have added + 1 after sy-datum.
But i am not getting tommorows date.
So can I display current date = current day + 1 Day in selection screen itself.
Thanks,
Prasad.

parameters: date like sy-datum default sy-datum.
INITIALIZATION.
DATE = sy-datum + 1.          " Tommorows date will be display on the selection screen.
OR:
parameters: date like sy-datum default sy-datum.
AT SELECTION_SCREEN OUTPUT.
DATE = sy-datum + 1.
Regards,
Gurpreet

Similar Messages

  • Show Current Date in Year Format (and now - 1, etc.)

    Our form has some column headers that need to change each year, the headings are current year (2010) + previous 3 years.  Am trying to programatically add the titles to eliminate modifying the form just to change the year, but not finding how to accomplish, and was checking out some date samples found, but no success yet.  My question is 2 part - how/where do I put code, I don't need the user to enter anything, just want a column header.  This example below is where I copied the idea from a sample and tried to adjust, it's on the calculate event of a date/time field, and I get an error message that says 'the display pattern "date-{MM/DD]" is incompatible with the object's data format.  Define a compatible Display pattern.  This display pattern error is the 2nd part of the question.  How do I display only the 4 digit year?
    year1.rawValue
    = num2date(date(), "YYYY")
    How do I accomplish this - am newbie on this!  Thank you very much!

A: Show Current Date in Year Format (and now - 1, etc.)

1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object  your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve

1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object  your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve

  • Calendar today doesn't show current date, it's now 23rd of Nov 01:03 in Beijing, but  Today button of Calendar itself shows "today" as 22nd. So does the Calendar of Yosemite

    Calendar "today" doesn't show current date, it's now 23rd of Nov 01:03 in Beijing, but Today button of Calendar itself shows "today" as 22nd. So does the Calendar of Yosemite.
    Is it a bug?

    Sorry for the huge chunk of code.
    Mm, yes, I'm far too lazy to read all that.
    But you should be overriding paintComponent(), not paint().
    http://www.google.co.uk/search?hl=en&q=java+swing+painting&btnG=Google+Search&meta=
    I've not bothered to work out from that pile of magic numbers exactly what you're tring to draw but is it not something that JTable would happily do?

  • How to show current date in a column of dimension table in ssas

    Hi,
    I have 2 dimension tables (ALLWORK and YOURWORK) and 1 measure table (STATS). In ALLWORK dim table, I have 4 columns, one of them is END_DATE. Based on END_DATE and current date I want to create a named calculation field. To achieve this, I
    want to show the current date in 5th column (of ALLWORK dim table) as calculated member (as named calculation wont show me correct date).
    Problem is, I am not able to create the column in the dimension table. While creating the calculated member, I am not able to select the ALLWORK dimension table, it always selects MEASURE by default. Please help.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hi Tarique,
    According to your description, you want to add a column to your dimension to show the current date, right?
    In data source view, we can add named calculation to your table. A named calculation is a SQL expression represented as a calculated column. This expression appears and behaves as a column in the table. A named calculation lets you extend the relational
    schema of existing tables or views in a data source view without modifying the tables or views in the underlying data source.
    Reference
    http://msdn.microsoft.com/en-in/library/ms174859.aspx
    http://devmau5.wordpress.com/2010/03/25/the-getdate-of-mdx/
    If I have anything misunderstand, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Select-options in Selection Screen to show more rows for entering values

    Hi all,
    In my webdynpro abap  I have added the SELECT-OPTIONS componenet and working fine.
    User need  in the Selection Screen for select options  more rows to show entering values in single time.
    THe Default Rows show only 5 .
    user need to change to 10 or 15 Rows to show.
    Pl help .
    THanks in advance.
    Dev

    Hi,
    Here is the way which I just tested and found working.
    This is the main code which needs to be written.
    TYPES:
        ty_r_vbeln TYPE RANGE OF vbeln,
        ty_s_vbeln TYPE LINE OF ty_r_vbeln.
    data ls_vbeln type ty_s_vbeln.
    field-symbols <fs_range> TYPE INDEX TABLE.
    ASSIGN lt_range->* TO <fs_range>.
    do 10 times.
    APPEND ls_vbeln TO <fs_range>.
    enddo.
    For further refinement, you can create a input field in view for number of lines to be shown as enabled.
    The complete code is as below.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_select_options( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
    lo_interfacecontroller =   wd_this->wd_cpifc_select_options( ).
    DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen(  ).
    Creating range table
    DATA lt_range TYPE REF TO data.
    CALL METHOD lo_r_helper_class->create_range_table
        EXPORTING
          i_typename     = 'VBELN'
        RECEIVING
          rt_range_table = lt_range.
    Disabling the global options
    CALL METHOD lo_r_helper_class->set_global_options
      EXPORTING
          i_display_btn_cancel  = abap_false
          i_display_btn_check   = abap_false
          i_display_btn_reset   = abap_false
          i_display_btn_execute = abap_true.
           TYPES:
        ty_r_vbeln TYPE RANGE OF vbeln,
        ty_s_vbeln TYPE LINE OF ty_r_vbeln.
    data ls_vbeln type ty_s_vbeln.
    field-symbols <fs_range> TYPE INDEX TABLE.
    ASSIGN lt_range->* TO <fs_range>.
    do 10 times.
    APPEND ls_vbeln TO <fs_range>.
    enddo.
    Adding the selection field
    CALL METHOD lo_r_helper_class->add_selection_field
        EXPORTING
          i_id                         = 'VBELN'
          I_OBLIGATORY                 = ABAP_TRUE
          I_NO_EXTENSION               = abap_false
          i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
          it_result                    = lt_range.
    Edited by: Jayanthi Jayaraman on Dec 2, 2010 8:29 AM

  • Showing "current date - 8 hours" automatically

    Hi,
    For a report, I want to create two dashboard prompts. The second one should show the current date, and the first one should be "current date - 8 hours" automatically. For example;
    1. 5/11/2007 3:52:04 AM
    2. 5/11/2007 11:52:04 AM
    I can create the second one following these steps;
    “default to > variable expression” --> “@{system.currentTime}[dd/MM/yyyy hh:mm:ss]”
    What about the other? How can I create the first one?
    Thanks for your help, br,

    as SQL:
    select TimestampAdd (SQL_TSI_HOUR, -8, Current_Timestamp(0) ) from SubjectAreaName where TableName.ColumnName = 'some-existing-value'
    Note that -- from SubjectAreaName where TableName.ColumnName = 'some-existing-value' -- needs to evaluate to true.

  • ICal still shows previous day in ical proper, but shows current date in the dock

    iCal is open in the MONTH, on my desktop permanently, but it continually shows yesterdays date.  It isn't till I actually click on the following day in iCal proper that the date changes to the current date. The iCal icon on the dock works fine with no issues.  When I first purchased the iMac iCal worked aok.  Software is continually updated.

    I have the same issue. I am also running iCal 5.0.2 under Lion 10.7.3. It worked fine for me on Lion 10.7.2, and it still works ok for me on my iPhone 4 running iOS 5.1. It does look like a bug to me. I have the issue connecting to a Google Calendar as well as to another (non-Apple) CalDAV server.
    Let me know if you call Apple Support to report this issue.

  • Navigational attribute in selection screen gives no applicable data

    Hi Gurus
    In the report i am using the navigational attribute in the selection screen.e.g Brand (attribute of material)
    My problem is whenevr i enter value in the navigational attribute (brand)  in the selection screen and execute  its says no data found.
    If i do not fill this parameter and fill only the parent attribute (material)  in the selection screen  , then i can see the results and from its properties  (drilling down )i can see the values of brand .
    If the values of brand exist why via selection screen its not giving vales, However Via material i can drill down and see brand values.
    I have done all the necessary steps to make this attribute as navigational.
    On top of this i have this same navigation attributes as one of the characterisitc in the cube.
    Thanks
    DD

    Hello,
    I've the same problem... for new nav. attributes for 0Material.
    Settings for nav. attibutes in BEx Q.D. are OK.
    But in BEx Analyzer:
    1- not display all values for this attributes. Some values are displayed, some don't.
    I try display it with and without selection screen.  The result is the same.
    2- I try to display (normal) attributes - not nav. In this case everything is OK.
    But I've 2 columns: normal attribute for all values and nav. attribute only with some values...
    (the query is something like: 0Material + 0Material_NOTnav_attr + 0Material_NOTnav_attr)
    It isn't a normal...
    I don't know... Maybe it's depend of the time?
    I can't clear all master data for 0Material, because they're used in some cubes. I had old characteristic without nav. attr. but with master data. I added nav. attr. in 0Material and activated it. Next I load master data (full method). Then I added nav. attr. in infocube, activated it, delete and load data into the cube (Init + Delta).
    If I display data for the cube in RSA1, I can see nav. attr. for all records. I can't see it in BEx Analyzer...
    Can U explain it?
    Thx,
    MSzN

  • Calling the selection screen of report with data for the selection field

    I have the selection screen with 2 fileds.
    sales order and  payment terms.
    My requirement is to update the payment terms into the ztable for the given order.
    Sometimes the payment terms will be there ie already maintained ,in that case i need to show to the user the existing payment term ,so that he can modify and save that one.If the payment term is not existing then simply i can go inside the program and update the payment term.
    What I thought of doing is , writing a report program and then after the user inputs the selection screen ie order number , I Will check in the ztable and if the payment terms is found then i will use the key word leave list processing. But i dont know how to populate the payement term in the selection screen oncegaing from the program

    Hi shiva,
    when the user enters sales order number on screen, in parameter 1,
    you want to show payment term, on selection screen itself, in parameter 2.
    We can use the event
    AT SELECTION-SCREEN.
    Eg. PO Number <----
    > User
    Below is sample code for same.
    If you enter PO Number, the system will show the corresponding user in parameter2.
    Just copy paste.
    REPORT  YAM_TEMPA09.
    PARAMETERS : EBELN LIKE EKKO-EBELN.
    PARAMETERS : ERNAM LIKE EKKO-ERNAM.
    AT SELECTION-SCREEN.
    ERNAM = ''.
    SELECT SINGLE ERNAM
    FROM EKKO
    INTO ERNAM
    WHERE EBELN = EBELN.
    regards,
    amit m.

  • Java code to show current date & time on PDF

    Hi,
    I have no experience with Java whatsoever and I am hoping somebody out there will be able to help me. Basically we are in the process of uploading all our SOP's to a public share on our Network. Due to regulatory reasons everytime the document is opened it will need to show the current date which will also show when printed. I have adobe 9 pro and see there is a area that you can input Java code so with the power of Java im sure this can be done. Ideally this would be like a watermark across all the page diagonally faded into the background of each page on the PDF.
    Only Valid on Date of Printing
    Date Printed: <Current Date>
    Any help would be much appreciated.

    Are you sure you haven't committed one of the cardinal sins of the Java-ignorant by confusing it with Javascript?

  • In the LDB selection screen -Diff b/w  Data selection / person selection

    Hi Experts,
    Want to know what is the difference between
    Data Selection Period
    Person Selection Period
    in the other period , in the selection screen of the LDB PNP.
    Thanx in Advance.
    Regards,
    IFF

    hi,
    Please Refer to this link.
    [abap hr question;
    This will Help You.
    Reward if helpful.
    Regards
    Sumit Agarwal

  • LDB selection screen -Diff b/w Data selection / person selection  period

    Hi Experts,
    Want to know what is the difference between
    Data Selection Period
    Person Selection Period
    in the other period , in the selection screen of the LDB PNP.
    Thanx in Advance.
    Regards,
    IFF

    hi,
    Plz follow this link.
    Re: Data selection period & Person selection period
    This will Help.
    Regards
    Sumit Agrwal

  • Planning query donu2019t show current data

    Hello,
    I have an input ready query over an aggregation level of a real time cube. Whenever the yellow request is closed and a new request is opened, the input ready query does not show the old data. And sometimes it shows incorrect data. We found that the issue is with the Cache.
    In RSRT when opening the input ready query in debug mode with "Do not use cache setting", the query returns correct data. But the surprise thing is that, the input ready query has Cache setting as inactive (0) in RSRT. So we had to generate the Delta buffer query <infoprovider>/!!1<infoprovider> in RSRT where <infoprovider> is the name of the real time cube.
    This solved our problem and the query brought in correct data. But again when I close the second request, the input ready query again shows me no data or shows me wrong data. So again we need to generate the delta buffer query in RSRT <infoprovider>/!!1<infoprovider>.
    This is very annoying when considering the fact that you have to generate the delta buffer query every time the request is closed. This could be a overhead in maintenance and will not go well with people.
    Does anybody have any solutions for solving this issue. Is there any setting by which we can turn off cache altogether or delete cache when a request is closed etc? or worst conditions how to automate the generation of delta buffer queries every time the request is closed?
    Any help is really appreciated.
    Regards,
    Anand

    please check the below;
    Delta buffer query in RSRT for BI-IP ("<infoprovider>/!!1<infoprovider>)
    Planning query donu2019t show the current data
    Edited by: Hymavathi Yanamadala on Sep 9, 2009 5:47 AM

  • ICal showing current date on the dock

    I have Leopard and the iCal icon on my dock shows the current date, whether or not the application is open, whether or not I shut down the computer.
    Another person in the office, with Panther, has iCal on her dock but the date does not update each day unless she opens the application.
    Is there a way to set the dock icon to update in Panther.
    thanks,

    Is there a way to set the dock icon to update in Panther.
    Not without keeping iCal open all the time.
    (35881)

  • Some items of selection-screen not showing after migration to QA

    Hi Folks,
    I'm trying to help a colleague with something rather weird:
    After migrating code-changes from our DEV- to our QA-environment (SAP_BASIS 620, SAP_APPL 470), a newly added block of the selection-screen doesn't show up. We already spent quite some time debugging and tracing in both DEV and QA but cannot really spot a difference. The new block (B2) and field (S_DATE) show up in the selection-screen internal table SCREEN and the content looks to be identical. In addition to the complete block B2 missing, the frame-title for B3 has also gone AWOL.
    This is happening for a rather straighforward selection-screen definition:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS : p_eaddr LIKE somlreci1-receiver OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t27.
    SELECT-OPTIONS :
    s_date FOR hrp1001-endda NO-EXTENSION.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t23.
    PARAMETERS : p_tstrun AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b3.
    During debugging I already single stepped through programs like RSDBRUNT, SAPLSVAR and RSDBSPBL but nothing jumped out at me which could explain the difference between development and QA.
    Do you have an idea where (else) we could look?
    Thanks much and Cheers
    Baerbel

    Hi Vikranth!
    Thanks for your quick reply and suggestion which I immediately followed and - guess what? - it worked! The selection-screen now looks like it should.
    As we never before had this type of issue it never occurred to us to just regenerate the program in QA - next time we'll know and first try this simple fix.
    Thanks again!
    Cheers
    Baerbel

  • Maybe you are looking for

    • Data Migration - SSIS Transfer SQL Server Objects Task or something else

      Can someone please kindly help me with this. Scenario I have a requirement to transfer selected tables and views (with a specific schema) between two databases which reside in two different servers. In the interest of clarity I will call my databases

    • Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied.

      Hi Everyone, Whenever I install some new software in my new laptop I get this error:- Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied. I have tried synchronizing the clocks but it doesn't remove the proble

    • X200 - Windows XP - Very slow in normal day-to-day usage

      Hello, My manager got a brand new x200 laptop about 1.5 years ago. We put Windows XP on it. It has 1.5 GB of RAM. Not alot of software is on it. Just Office 2003 (back then, recently upgraded to Office 2010). Our office uses Symantec Endpoint Protect

    • Reduce file size in imovie

      Hey, I'm wondering how I can reduce the file size in movie without losing the quality. I have a 1280x720 video that's at 900mb right now, but I'm trying to get it down to 400mb. I got it down using the Export using Quicktime >> played with settings b

    • Xpath syntax for "a number"

      In regex, it's [0-9]+ or \d+.  I'm trying to use xpath to match a number that's any value of 18 digits long.  What's the syntax?