Skip to Content
K C

get changed parameter date

i have a parameter in selection screen for certain field(Date type).

if i enter some date in the parameter field i shoult get a report with should display the entries which has date ONE dat before the entered date

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on May 30, 2007 at 11:45 AM

    <b>plz replyy</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 11:49 AM

    hi,

    As indrajith said, put a logic in your program.

    regards

    prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 11:45 AM

    Hi Karan,

    PARAMETERS p_date TYPE dats.

    gv_date = p_date - 1.

    SELECT * FROM dbtab

    INTO itab.

    where date EQ gv_date. "(or LE gv_date )

    • Display the entries in itab using ALV.

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907

    Award points if found useful.

    Regards

    Indrajit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 02:05 PM

    Hi Karan

    Please try this...

    //declaration part

    data : p_date type date.

    selection-screen : begin of block blk1 with title frame text-001.

    parameter : p_date like tablename-fieldname.

    selection-screen : end of block blk1.

    start-of-selection.

    select single * from table into table itab where sy-datum = p_date-1.

    if sy-subrc<>0.

    message : e001(zerror).

    endif.

    REWARD IF USEFUL PLEASE....!!

    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.