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

Creating Prompt in Universe for TODATE+1

Hi Friends

I have used below Query to create a prompt for TODATE+1 in Universe(Filters) but it is not working. Can anyone help me how to write the prompt condition for TODATE+1 in Universe level.

trunc(@Select(Log\CRSubmitted))<trunc(to_date(trunc(@Prompt('ToDate','D','Log\CRSubmitted',mono,free,not_persistent,))+1))

Thanks In Advance..!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 27, 2013 at 10:45 AM

    Hi,

    is this a cross post of http://scn.sap.com/message/14308082 ?

    regards,

    H

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2013 at 12:57 PM

    Your requirement is not clear.

    What date range do you want based on the date that you are prompting for?

    For example, do you want all data from the prompted date through to today?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2013 at 02:32 PM

    Hi,

    Just to make things a bit more clear.

    You are creating a universe filter, where you want the data to always retrieve dates less that the TODATE+1 value.

    For eg. If user selects TODATE as 28/08/2013 , you want the date to be returned as 29/08/2013.

    If this is what you need.

    The formula you have displayed in your topic should workout.

    I dont see any issue in the logic you have created, please check changing one bracket.

    i.e. you are first truncating the date value returned by prompt, than you are adding 1 and than you are applying todate function.

    Can you try first converting it to date using todate than add 1 to it.

    Please try below formula, with just adjustment of a bracket.

    trunc(@Select(Log\CRSubmitted))<trunc(to_date(trunc(@Prompt('ToDate','D','Log\CRSubmitted',mono,free,not_persistent,)))+1)

    Thanks

    Gaurav

    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.