Have prompt default to the current month?
One of my prompts displays a list of months; e.g., Jan, Feb, ... Dec. The user selects the month they want to report on. I need the prompt to default to the current month. Is this possible within Web Intelligence?
What is your data source for your webi report?
If you are using a universe, you can default the value by following these steps:
Select default date as today in WEBI
However if you are using BW then follow the steps in this blog
Dynamic default values with prompt in webi reports (based on bex queries) in BO
Regards,
Josh
Similar Messages
-
How to get the current month starting date and ending date by default ?
Hello Creators,
This is my requirement, kindly do the needful, Please dont gimme any links i've no access for other sites, gimme the right solution.
My Requirement :
Creation Date (VBAK-ERDAT) - Select Option. By default, the program should run for the current Month ie between the starting and ending date of the current month when the program is run. Today the date is 18th using sy-datum we can bring the current date by calling it in the initialization event, but the requirement is it should not give me the current date, it should only give me the month starting date and the end date. Kindly help.
Thanks in advance ...DATA: gv_datum LIKE vbak-erdat.
SELECT-OPTIONS: so_date FOR gv_datum.
INITIALIZATION.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = sy-datum
IMPORTING
ev_month_begin_date = so_date-low
ev_month_end_date = so_date-high.
so_date-option = 'BT'.
APPEND so_date.
START-OF-SELECTION.
Hope this solves the issue. Don't forget to be generous
Cheers,
Sougata. -
How to set the current month as the default value of an input control?
Hello,
I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
Is this possible?
Thanks & Regards
SU>
soauniverse wrote:
> Hello,
>
> I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
>
> Is this possible?
>
> Thanks & Regards
> SU
I don't think so. I tried to find a property or something in that Input Control but there is nothing to set it that way. -
Default selection on current month, week and date
Hi,
We are on Dashboard 4.1 sp3 the same version as BI.
The dashboard report is using LiveOffice connection. We are now facing an issue with default selection on current month, week and date.
The dashboard report drilled down from month, to week, then to date. The dashboard feed -live office report is on month/week/date ascending order - becuase we have running average calcualtion on LO report, it seems have to be in ascending order to get the correnct runnning average.
I tried to on Insertion to change default seletion, it works on month, but it doesnt working on week and daily.
but when LO report is on ascending order, on dashboard column chart the default selection is not on the current month, week and date.
Is there a way to solve the issue. Could anyone please help.
Thanks,Hi Suman,
Thanks for the quick reply.
Do you mean I Enable sorting -by categrory labels on Behaviour - common tab.
Thanks, -
How can i pull out data from a spreadsheet only from the current month?
Data is constantly being fed into a spreadsheet using a VI, this data comprises of such things as month, year, weights, std dev, etc. I want to do some data manipulation on the current months data while the VI is running, how can I pull out only the data relating to the current month? Each input into the spreadsheet stores the values for that run on one row, and there are perhaps 150 runs each month
Any thoughts are greatefully received
Thanks
Ross
Attachments:
Results.xls 1 KBHi Ross,
I thought I would go away and make you an example VI for the results xls that you have sent me.
Here it is: I have added a few comments here and there but if you need more info please don't hessitate to post back on the forum
Hope if helps
AdamB
National Instruments
Applications Engineering Team Leader | National Instruments | UK & Ireland
Attachments:
MonthExtract.vi 43 KB -
How to get week of the current month
Hi all,
Is there any way to find out week of the current month.
Please help..Do not confuse date format and the parameter in the file NqsConfig.ini
http://gerardnico.com/wiki/dat/obiee/bi_server/nqsconfig
As say in the previous link, you must check in the NqsCOnfig.ini file that you have this line
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;because the cast function take it as format to discover the day, month and year.
Besides, the functions WEEK_OF_YEAR AND MONTH don't care about the date format, they only need a date.
Check here this article :
http://gerardnico.com/wiki/ide/toad/toad_date_format
To see that the date format is much more a question of rendering (for OBIEE, Toad or SqlPlus) than of data.
Verify your NqsConfig.ini and give a try.
Success
Nico -
How to set the filter on a report to show the data for the Current Month
Hi all,
I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
Any help would be greatly appreciated!
Thanks,
AAYou need to add a session variable to date fir worked assuming that this is a date field.
To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section. -
Help:Unable to get the Current Month Data
Hello Folks,
Hello Folks i have this scenario where i need to modify this code so that it has to return data from the Current month First Day to the previous Day if its a daily report and previous month data if its a monthly report.
BEGIN
if v_lowdate is null or v_highdate is null then
select to_number(to_char(sysdate, 'DD')) into v_cur_day from dual;
if v_cur_day < 25 then
-- this is for the previous month run
Select Add_Months(trunc(sysdate, 'MONTH'), -1)
INTO V_LOWDATE
FROM DUAL;
SELECT Last_Day(ADD_Months(Sysdate, -1)) INTO V_Highdate From Dual;
else
-- this is for the current month run
Select trunc(sysdate, 'MONTH') INTO V_LOWDATE FROM DUAL;
SELECT Last_Day(Sysdate) INTO V_Highdate From Dual;
end if;
end if;
I have replaced the above code with the code below but its still returning the previous month Data. Any help would be appreciated.
v_lob := get_admin_value(p_admin_procedure_name => 'CLIENT_DATAFEED_CODE',p_err_msg => v_error_text);
if v_lowdate is null or v_highdate is null then
v_cur_day := TO_CHAR (SYSDATE, 'DD');
IF report_type = 'D' -- Daily report
AND v_cur_day > '01' -- (except when run on 1st of the month)
THEN -- will cover from
v_lowdate := TRUNC (SYSDATE, 'MONTH'); -- 1st of this month to
v_highdate := TRUNC (SYSDATE - 1); -- yesterday
ELSIF report_type = 'M' -- Monthly report
OR ( report_type = 'D' -- (or Daily report
AND v_cur_day = '01' -- if run on the 1st of the month)
) -- will cover from
THEN
v_lowdate := ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -1
); -- 1st of last month
v_highdate := TRUNC (SYSDATE, 'MONTH') - 1; -- last day of last month
END IF;
END IF:How are you testing this? It works for me, or at least generates the dates I think you want.
SQL> var fake VARCHAR2(25);
SQL> var report_type VARCHAR2(1);
SQL> exec :fake := '16-oct-2009'; :report_type := 'M';
PL/SQL procedure successfully completed.
SQL> DECLARE
2 v_cur_day VARCHAR2(2);
3 v_lowdate DATE;
4 v_highdate DATE;
5 fake_date DATE := TO_DATE(:fake, 'dd-mon-yyyy');
6 BEGIN
7 v_cur_day := TO_CHAR (fake_date, 'DD');
8 IF :report_type = 'D' AND v_cur_day > '01' THEN
9 v_lowdate := TRUNC (fake_date, 'MONTH'); -- 1st of this month to
10 v_highdate := TRUNC (fake_date - 1); -- yesterday
11 ELSIF :report_type = 'M' OR (:report_type = 'D' AND v_cur_day = '01') THEN
12 v_lowdate := ADD_MONTHS ( TRUNC (fake_date, 'MONTH'), -1); -- 1st of last month
13 v_highdate := TRUNC (fake_date, 'MONTH') - 1; -- last day of last month
14 END IF;
15 DBMS_OUTPUT.Put_Line('Low: '||TO_CHAR(v_lowdate, 'dd-mon-yyyy'));
16 DBMS_OUTPUT.Put_Line('High: '||TO_CHAR(v_highdate, 'dd-mon-yyyy'));
17 END;
18 /
Low: 01-sep-2009
High: 30-sep-2009
PL/SQL procedure successfully completed.
SQL> exec :report_type := 'D';
PL/SQL procedure successfully completed.
SQL> /
Low: 01-oct-2009
High: 15-oct-2009
PL/SQL procedure successfully completed.
SQL> exec :fake := '01-oct-2009';
PL/SQL procedure successfully completed.
SQL> /
Low: 01-sep-2009
High: 30-sep-2009
PL/SQL procedure successfully completed.John -
How to get the current month for a variable based on info object 0FISCPER3
Hie Gurus
I am working on the financial reports i am failing to derive the Current month from the variable based on infobject 0FISCPER3 PERIOD .
I would also like to get the same month from the prevoius year. Any ideas?If I understood correctly, you need in your repot
Current Month Plan This year || YTD Plan This Year || Current Month Plan Last Year || YTD Plan Last Year
Your variable 0I_FISCPER3 must be on the object 0FISCPER3 which is nothing but just the Fiscal Period. This variable is a user entry mandatory Interval variable.
if you are entering a range in the input screen for this variable, you will get cumulative values. If you just need to get the value for a month in first column your report, you will have to create another variable of type Customer Exit which will read the "To value" entered for the variable 0I_FISCPER3 and columns for Current Month should be restricted on this variable.
if you are entering a single value in the selection screen of this variable, current month column should be restricted on this variable with "Equal To" operation and YTD colmns should be restricted to "Less Than Equal to" operator with this variable.
0FISCPER3 just have posting period and not year, so you will have to use varialbes for 0FISCYEAR separately.
Please let us know if it helps or if you are using some other variable based on 0FISCPER3 or 0FISCPER.
Regards,
Gaurav -
Creation of a Query to show the values for the current month and the last 12 months data.
Dear All,
Good day!
I have to create a Query with the below requirement.
I have to create a Query to show the values for the current month and the last 12 months data.
Can you please guide me how to achieve this ??
thank you,
Regards,
HemaHema
explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
for some more hints..
http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
http://scn.sap.com/thread/3217381
search on SDN you will get many other ways..
Thanks,
Bhupesh -
How to get the current month number
Hi everyone,
Does anybody know how to get the current month number in Oracle Discoverer Worksheet calculation?
I try to use EUL_DATE_TRUNC(CURRENT_DATE, 'MM'), but instead I got 01-AUG-00.
If I change the data display format to MM, it will give me "08" but if I use TO_NUMBER function to convert it to number I get error "invalid number"
Is there anyway to get the current month value in number? ThanksScott,
Thank you so much! It works perfectly! :)
Hope you have a great day ahead!
Cheers,
Angeline -
How to get the current month value for a customer exit variable?
How to get the current month value for a customer exit variable?
And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
Thanks!Hi Kevin,
Check here........
Re: Customer Exist for "From Current Date To Month End"
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
Cal month
Regards,
Vijay. -
28th day of the previous month to 27th of the current month
Hi,
I am designing a report wherein the data should range from 12:01am on the 28th day of the previous month to 11:59 pm on the 27th of the current month.. This should be a dynamic one as this would be scheduled.
Any help will be greatly appreciated!
Thanks & Regards
BMCHi
Thanks for your reply and I have been using the same formula given by you but unfortunately it stopped giving the result. This is how i have given the syntax:
Create a new field name say From (this will calculate all the data of preceding month starting from 28th)
if not(month(CurrentDate)=1) then
date(year(CurrentDate),month(CurrentDate)-1,28)
else
date(year(CurrentDate)-1,12,1)
Creat an another field say To (this will calculate all the data of current month as of 27th)
if (month(CurrentDate)=1) then
date(year(CurrentDate),month(CurrentDate),27)
else
date(year(CurrentDate)-1,12,1)
Now create one more field say Time that will include the above two syntaxes.
{CHG_Change.Considered Res Time}>DateTime({@From}) and {CHG_Change.Considered Res Time}<=DateTime({@To})
This did work but seems now its not working.. Can you see if am missing out something here..
Regards
Cauvery -
Salary in the current month and the previous one
Hi
I have a table that stores payroll details like the following stracture
earn code
period from
period to
user_id
time
I want to do one report which displays both the salary of one employee in the current month and his salary is the previous one
Thank you for your helpyou might use the LAG-function to get the previous months salary. Hard to know, as you did not provide any information about your report and database versions.
-
Why customer exit variable to grab the current month value doesn't work?
In CMOD, input the following code to grab the current month value from the system date:
Grab the month value with System Date
WHEN 'CURMONTH'.
CLEAR l_s_range.
l_s_range-low = SY-DATUM+4(2).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
In Query Designer, create a formula variable CURMONTH processed by customer exit and the dimension under the Currency/Unit tab is "Number". Put the formular variable in the column as a KF. When running the query, the column with the formular variable shows values of "2,0000000" other than just "2" I want for the current month. If the dimension under the Currency/Unit tab is "date", the column with the formular variable shows values of "00/00/0000". Any idea? How to grab the correct current month value which is 2 from the system date.
Thanks!Oh ok , try the below options, As such I dont see any errors in our code .
Not sure if you have ABAPER's in your team, just check with them once on the FM we are trying to see .
Next , do you hvae 0CALDAY available in your report ? If so try to restrict that field with variable "0DAT" and write the same code you have written for your formula variable , but instead change the variable name to "0DAT" and try if this gets the month . let me know if I'm not clear .
Maybe you are looking for
-
Keeping messages to different receivers independent of each other
Hi We have a scenario in XI where a message from R3 in EOIO QOS hits XI and then the message has 3 receivers depending upon the content of the payload. Each receiver is a different application that is waiting to receive messages from R3. There is
-
Security object for check against Lab office in DIR
Hi, We are running R/3 46C and use DMS to store our business documents via online vault. I have a requirement to set up access based on Lab office (department) that is used in the Document Information Record. Is there a standard security object that
-
How to change text in symbol for slideshow
Hello, Newby here. I have done the lesson 5 in Adobe Edge Animate Classroom in a Book and everything went well up to a point. When I edit the text for the drop down moreinfo symbol it changes the text for all of the slides. How do I make the text ind
-
Hello All, When the object P (employee) leaves a manager position (with relation b012) in a org.unit, the manager-manager can´t see the employees left in the org.unit which now haven´t got at manager in the system. When the relation B012 on the manag
-
Hi! I configured to voip account on the router, but every calls made are interrupted 5 secs, very annoying I upgraded firmware, try different codecs g.711u, g.729u, no luck, still having the same issue. Voip configuration is pretty confusing and Help