Skip to Content
author's profile photo Former Member
Former Member

date field

Hi,

I have a requirement where in which I have to add date field in the selection screen.I have used select-options: s_date for sy-datum to add date field in the selection-screen.But now I am able to select only present and future dates from the drop down menu in the selection screen.If I want to select past dates also then I have to use the date field from some table.Already in the program they have used

select-options: s_edatu FOR gs_z_vorders-edatu NO-DISPLAY,

s_budat FOR gs_mkpf-budat NO-DISPLAY,

s_date FOR gs_plaf-tered NO-DISPLAY,

s_date1 FOR gs_plaf-tered NO-DISPLAY,

s_date2 FOR gs_plaf-tered NO-DISPLAY,

s_date3 FOR gs_plaf-tered NO-DISPLAY,

s_date4 FOR gs_plaf-tered NO-DISPLAY,

s_date5 FOR gs_plaf-tered NO-DISPLAY,

s_date6 FOR gs_plaf-tered NO-DISPLAY,

s_date15 FOR gs_plaf-tered NO-DISPLAY.

Now if I enter date in the selection-screen I should be able to get data from both mkpf and plaf tables.How can I do that?

Regards,

Hema

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 05:46 AM

    Please use:

    SELECT-OPTIONS: s_datum FOR syst-datum.

    You can select past,present and future date on any date field by scrolling.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 05:47 AM

    Hi Hema,

    With code

    s_date for sy-datum

    I am able to select any date - past, present, future..

    Can you please check again.

    Regards,

    Mohaiyuddin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.