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

Creation date aging

Hi Experts,

I have a issue with creation date aging. My client want to see the report based on creation date aging.

Example : At time of report execution creation date selection value (one of the row value in my query) will show the f4 values like

Last 7 days ( sy-datum - 7)

Last 30 days ( sy-datum - 30)

Last 365 days ( sy-datum - 365)

ALL records. ( sy-datum - 10000000000)

If he suppose choose last 7 days option the report want to show only last 7 days transactions only.

similar as remain all selections. default is all records.

Already I created created date customer exit variable( with selection option input value optional ).

But how can I approach with enhancement coding for above requirement.

How to write a code for creation date aging values ?

How to write a code for last 7 days, 30, 365 and all ?

Please help me out from this requirement.

Points will be awarded.

Regards,

C

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 07:43 AM

    Hi,

    just write a simple case endcase logic.

    when 'last 7 days'.

    created date varible = sy-datum - 7.

    when ' last 30 days'.

    created date varible = sy-datum - 30.

    when ' last 365 days'.

    created date varible = sy-datum - 365.

    when ' all dates.

    created date varible = '10000101'

    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.