on 10-10-2018 9:27 AM
I am using SAP BO 4.2 UDT and backend is Oracle. My requirement is to pass the Dynamic date value in the @prompt() default parameter section" {} " for e.g in the From clause 1st Day of the Current Year Trunc(Sysdate,'Year' ) in the to clause current Date Trunc(sysdate). But @prompt() is treating the above function as text and it is showing the same in the Prompt selection screen. Even I tried to pass it inside the Case When statement but that also not replacing the String(default value) with date function.
I am using the following syntax in the universe (UDT )
to_date(to_char( XXX.ENDDT,'dd-Mon-yyyy')) BETWEEN (case When to_date(@Prompt('1. Begin Date Range (dd-Mmm-yyyy) [Enter ''None'' to ignore prompt]','D','Std. Reports\XX LOV',mono,free,not_persistent,{'default'}),'dd-Mon-yyyy')='default' then trunc(sysdate,'Year') End) AND (Case When to_date(@Prompt('2. End Date Range (dd-Mmm-yyyy) [Enter ''None'' to ignore prompt]','D','Std. Reports\Completion Date LOV',mono,free,,{'default'}),'dd-Mon-yyyy')='default' then Sysdate End) OR ‘default’ In (Case When @Prompt('1. Begin Date Range (dd-Mmm-yyyy) [Enter ''None'' to ignore prompt]','D','XX\XX LOV',mono,free,not_persistent,{'default'}) = 'default' then trunc(sysdate,'year') End) OR 'default' In (Case When @Prompt('2. End Date Range (dd-Mmm-yyyy) [Enter ''None'' to ignore prompt]','D','XX\XX LOV',mono,free,not_persistent,{'default'}) ='default' then sysdate end)
I think this is a tool limitation. If yes then any workaround will it be possible to achieve the same.
Please Suggest..
Thanks in advance for your valuable suggestion.
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, then you'll have to use this idea to create a pre-defined filter. I'm swamped, with hard deadline this week, let the other gurus help you.
https://blogs.sap.com/2016/03/10/custom-predefined-date-range-filters-wtdmtdqtdytd-in-bo/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Can you follow this blog to create a Business filter, by using Trunc(Sysdate,'YEAR') as default value in Begin Date, and Sysdate as default value in End Date prompts? You'll have to create 2 prompts.
https://blogs.sap.com/2013/05/24/optional-prompt-in-bo40/
Thanks,
Mahboob Mohammed
Hi Amit,
Can you describe your requirement clearly, specifically, how many prompts are those, like Start Date and End Date? How many of them are optional and mandatory? What value should we fill in by default if a user leaves a prompt as optional?
Don't worry about prompt the sysdate as text, you don't have to specify sysdate or whatever in the default value parameter on the prompt.
Thanks,
Mahboob Mohammed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any early update on this will be very usefull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.