Schedule Monthly Reports with Dynamic Dates, but also allow Ad-Hoc Running
Post Author: Dan-Mica
CA Forum: General
I am trying to find a way to schedule a report that has an as_of_date, and a start and end date.
When running monthly it will be scheduled to run on the 11th of each month. The as of date will be the 10th of the month. The start date will be the first day of the year and the end date will be the last day of the previous month.
I have written the report using date functions to calculate the correct dates, and this can be scheduled.
Now the users are asking to be able to run ad-hoc versions of the report and choose the dates that they use.
What I don't know how to do is to schedule the job to run monthly as above, but also allow the users to choose the start and end dates and as of dates for the report?
Besides writting two versions of the reports is there another way to do this???
Thanks for the help....
Hi,
U can use Infoset Query for report in HR. T-Codes are SQ03, SQ02 AND SQ01. By SQ03 create user group. then SQ02 -infoset and by SQ01 create reports.
try this. it works.
Regards
Nas
Similar Messages
-
Scheduling WebI reports for Dynamic Date Ranges
Hello Everyone,
Our Env is BOBJ XI 3.1 SP2 FP2.5 integrated with SAP NW BW 7.02 EPH1
We are trying to schedule few WebI reports which can be used on ad-hoc basis as well. Some reports need to get data from starting of the month to today (like MTD) and few are with dynamic date ranges.
In case of relational universes i used to do Magic Date as mentioned here : http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts
But for OLAP Universes i have written a MDX filter prompt as :
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
<CONDITION OPERATORCONDITION= "Between">
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0)='First Day of Month','First day of Current Month\First day of Current Month',@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0))"/>
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0) > '1/1/2100 12:00:00 AM',''1/1/2010 12:00:00 AM'',(@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0))"/>
</CONDITION>
</FILTER>
We are getting MDX erros because IIF can only return numeric values. So are there any other approaches for dynamically scheduling the reports or can the above MDX prompt be modified to make it work ?
- Vamsi ChIngo,
When we schedule the WEBI report we use the BEX query with a variable based on a customer Exit .
There are good examples in
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
In order to avoid providing a hard coded date restriction in the BEX query we want to have a flexible date range solution (e.g. data from 1.1.2011 until yesterday).
Is the folloing scenario possible:
Scheduled webi report with a hard coded date e.g. 1.1.1900 (for the BEX variable)
The BEX query should return the data from 1.1.2011 until yesterday (dynamically) if date = 1.1.1900
else it should return the data (for the e.g. adhoc reporting)
Is a customer exit like this possible ?
Pseudo code:
IF date = 1.1.900 then return sysdate-1 else return entered date
For a relational universe I always used a magic date condition -
How to schedule a report with dynamic parameters
We need to schedule a Webi report with dynamic parameters then email the different result to different email groups. Is it possible to do this in scheduler? Please advise. Thanks.
there are 2 schedulers
1st CMS
the reports which does not have any input parameters, only then t can be scheduled in CMS
2nd in Infoview
if report has input parameters and if you want to schedule it, then you may need to schedule the report from Infoview
To have a email notification
configure the SMTP server in report JOB Server
Thanks,
Ganesh -
Information Broadcasting: Monthly Reporting with variable dates
Dear all,
we have created a lot of reports with RD and have pubished the reports in the portal. Our reports have a lot of selection screens. Now we would like to use information broadcasting. We have already created information broadcasting settings. We have maintained fix variants for our reporting
For example:
Variant x1
Organization: C110
Scenario: Actual
Date: is filled by the user Exit
Now we tried to shedule the report. We are using Variant x1 to find the correct selection. The problem is, that we have already saved a fix date in the variant (for example 01.01.2008), because the field is obligatory.
The User-Exit for the variables works with step 1, but the problem ist, that the variant x1 is overwriting our User-Exit value.
How can I avoid, that the Variant is not overwriting the User-Exit. Of course for reporting without variant, the manual entry has priority before the user exit.
Thanks for a soon feedback.
XmxhXhi,
in order to update months, firstly create variants for the reports. Then implement the below program modifying the users inputs. For current month or last month you have to hard something like sy-datum(6), an you have to hard code the field name for the month variable that you use in query.
Below program is for BI 7.0, you can also check the document. It also contains a method for bw 3.5 variants.
You can schedule this program in a process chain or make variations of this as needed.
[How To Troubleshoot Information Broadcasting (BEx Workbooks)|http://www.sapadvisors.com/resources/HowtoInformationBroadcasting.pdf]
*& Report Z_MASS_VARIANT_MAINTENANCE *
*& Program to mass update BEx Variants within SAP NetWeaver 2004s *
REPORT Z_MASS_VARIANT_MAINTENANCE.
parameter variable like RSRVARIANT-VARI.
parameter vname like RSRVARIANT-VNAM.
parameter sign_01 like RSRVARIANT-SIGN.
parameter opt_01 like RSRVARIANT-OPT.
parameter low_01 like RSRVARIANT-LOW.
parameter high_01 like RSRVARIANT-HIGH.
tables: RSRVARIANT.
select * from RSRVARIANT.
if rsrvariant-VARI = variable AND rsrvariant-vnam = vname.
rsrvariant-SIGN = sign_01.
rsrvariant-OPT = opt_01.
rsrvariant-LOW = low_01.
rsrvariant-HIGH = high_01.
elseif rsrvariant-vnam = vname.
rsrvariant-SIGN = sign_01.
rsrvariant-OPT = opt_01.
rsrvariant-LOW = low_01.
rsrvariant-HIGH = high_01.
endif.
update rsrvariant.
if sy-subrc 0. insert rsrvariant. endif.
endselect.
RSRVARIANT-VNAM must be your month variable.
RSRVARIANT-LOW and HIGH must be your automatic month like sy-datum(6)
regards, -
Scheduling a report with System Date as prompt
Hi Experts,
We have came across a requirement where users want to have a date prompt.
While scheduling the report, by default prompt is to be populated with system date and it (prompt) should also allow us to select a different date.
This report is used for regular run and also for scheduling.
We need a single report with single prompt which allows us to run for any random date when prompted and also to be scheduled for the latest date.
Please give us advice/ suggestion.
Thanks
UttamHi Neil,
We have tried both the approaches given by you, but it is not working for my requirement.
Let me explain it with the below scenario.
scenario:
we have developed the report by using 2 data providers,
Dp1: It is a custom Query with date as follows ( it is a Transaction data) which brings the data from 1st day of month(user prompt) to user's prompt date.
TRANSACTION_DATE BETWEEN last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\Transaction Date',Mono,Free,Persistent,,User:0)
Dp2: It is also Custom Query, but it has only data on month ends.
DIMV_plant_EOP.TRANS_END_OF_MONTH_DATE = last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\EOP plant Attributes\EOP Date',Mono,Free,Persistent,,User:0),-1))
Report is having 3 prompts, namely
1) As of date (prompt)
2) Plant (prompt)
3) Country (Prompt)
For example: if my report is ran on 06-june-2014,
DP1: Brings the data from 1st of June to 6th of june.
DP2: Brings the Data from Inception to last month(say 30-may-2014) because it has only month end data.
Upto this it is fine.... but
My requirement is to schedule the report daily......
Example: User want to schedule a report today(10-July-2014), tomorrow(11-July-2014) and so on...
Scheduling should be done daily i.e, it has to fetch the data 10-Jul-2014, 11-july-2014,12-july-2014.... so on.
Automatically scheduling has to take the current date.
Thanks,.. -
Scheduling a Report with Dynamic Parameter Values
Post Author: etlag
CA Forum: Publishing
I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
I have other reports that are using static values and they can be scheduled without entering the database login.
Any ideas what I am missing?Post Author: amr_foci
CA Forum: Publishing
dear etlag
its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
and cilck ok
try it ,, good luck
Amr -
How to generate SWF file with dynamic data but no live connection
Hello,
We got a requirement where we have to email out SWF file either in PPT or outlook generated from BOBJ universe. When the file reaches the customer who would be outside our network with no access to our servers or data should be able to view the swf file with data. So the goal is to generate these files automatically and should not prompt for BOBJ login or wouldn't have ability to query the database but need to report data pertaining to the customer.
Any help in this regards is greatly appreciated.
Thanks
ManoharHi Manohar,
You can use QAAWS(query as a web services) and build your queries on universe.
You get an option of hardcoding the user id and password in the data connection for QAAWS which will not asks the users for login credentials.
This will hepl the user to veiw the latest data from the database and the user wont be asked for login too.
Thanks,
Amit. -
Conditional Scheduling of report with Prompt values
Hi All,
My requirement is that I select some values in the dashboard prompt and get the report. Is there any methodlogy to schedule that report with having data in report according to
set prompt values on the fly that is dynamically.
We can a link below the report to schedule it but how can we pass the condition parameters? Please help.Hi Kishore,
Thanks very much for the reply. It answers one part of the question.
I am thinking to put a text property or button below the report and is it possible to attach the report values with current prompt selection and the request is attached to the in delivery content section which means user need not pick up the delivery content only he has to schedule current report only by clicking the link or button? Can I have script for that.
To make it simple If I am the user I would like to see following:
1. I go to dashboard page and select the prompt and get the report result.
2. I have link or button below to schedule.
3. I press the button I go to delivers section.
4. I have current report attached to the delivery content with default selection or current selection.
5. I modify other parameters and schedule.
Please help me. -
Ho can I schedule a WEBI report with dynamic parameters???
Hello again!!
Here i am with another detail about scheduling, the thing this time is that ia need to schedule a report with one parameter every week but with a different value for the parameter every week.
This is i need this week to run the report SALES BY STORE filtered by week with this value 2011 - 45 (yyyy - num ofweek) but the next week the value for the same parameter must be 2011 - 46
is it possible??? i mean is possible to schedule a report with different value for the parameter each time that it runs???
I know that i can schedule a report with different values for a parameter to send it to severals users whith different data but the values for the parameter are the same every time that it runs and i dont need that.
Any help or clue will be very appreciatedHi Elio,
Do you have access to modify your universe?
Then you should try Dave Rathbun's idea. Here is the link:
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Note that you'll have to adapt it to what you need, in this case to the week number.
For example if you are using Sybase syntax you'd get 2011 - 46 with:
convert(varchar, year(getdate()))+' - '+convert(varchar, datepart(wk,getdate()))
So you'll new object in Universe would look like :
your_table.week = case when @prompt('Enter week','C',,mono,free) = 'This week' then convert(varchar, year(getdate()))+' - '+convert(varchar, datepart(wk,getdate())) else @prompt('Enter week','C',,mono,free) end
Adapt it to the syntax of the database you use. Then after creating this object in your universe you'll have to go back to your report and Edit the query and use this object in the filter area instead of a normal prompt.
When you have to schedule the report leave the prompt with the parameter 'This week'
Hope this helps
Regards
Erika
Edited by: PadawanGirl on Nov 8, 2011 3:35 PM -
SSRS 05 snapshot with dynamic date parameter
I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
GaurHi Gaur,
In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
Stored credentials for the data source.
Defaults for all Parameters.
Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
based on the current parameter values, but we can still use snapshot with dynamic date parameter.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Publication for Deski report with multiple data providers
Hi,
Has anyone been able to get a publication working that uses a Deski report with multiple data providers as the source? I'm trying to get a publication working that uses dynamic recipients and personalization. When I try to schedule the publication, I get the error "Object not found".
Thanks,
DebbieDebbie,
That's standard.
It's useful for emulating outer joins in reports.
Say you've got a sales report where you want to display all 12 months of the year in a crosstab whatever month you run in.
We're only in May at the moment though. With one data provider (SALES), you'll get a crosstab with just up to May for your months.
If you create a separate data provider called MONTHS to return the months in the current year, you will then have a merged dimension of YearMonth in both.
In your crosstab if you just use YearMonth you'll get just the five months. If you qualify it with its data provider name (in our case MONTHS), you'll see the full twelve months shown.
I hope that clears it up for your.
Regards,
Mark -
HOW to schedule a report with Bi Pulisher
Hi,
im trying to schedule a report with bip , the report already exist and it' s OK, but when i schedule it and enter the nessary input data, no output is displayed, what can I do to generate a weekly report in local folder, i don't want to add dilevery destination??
thanks for your helpis there anyone can help me?
-
Submit report with dynamic selections
Hi All,
I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
But the dynamic selections are not getting passed.
Request you to kindly provide some inputs
My code is
DATA: trange TYPE rsds_trange,
trange_line LIKE LINE OF trange,
trange_frange_t_line LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'PA0002'.
*trange_frange_t_line-tablename = 'PA0002'.
trange_frange_t_line-fieldname = 'GBJHR'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low = '1987'.
trange_frange_t_selopt_t_line-high = '1987'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
Kindly provide your inputs
Regards
ReshmaHi Reshma,
Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
data: trange type rsds_trange,
g_repid type sy-repid.
g_repid = 'RPCADVQ0'.
call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
exporting
curr_report = g_repid
mode_write_or_move = 'M'
importing
p_trange = trange
exceptions
not_found = 1
wrong_type = 2
others = 3.
if sy-subrc eq 0.
" Do the changes to the trange
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
Cheers,
Kothand -
I’m getting the below issue when I try to deploy a crystal report with Dynamic parameters in BI Launch Pad, when I deploy the same report with static parameters I can deploy and run it. I have Restarted the BI server, still the issue exitno use. kindly help me on this issue.
“This error occurred: Adding Crystal Report "CrystalReport1.rpt" failed. The server with kind rptappserver returned an error result. Failed to copy the report file to the report object. Refreshing the report object properties might have failed. Failed to read data from report file CrystalReport1. Reason: Failed to read parameter object”.BO does not run dynamic params through the report as would happen without BusinessObjects (BO) or Crystal Reports Server (CRS). When you publish a report with dynamic parameters to BO/CRS, the prompt is published to the repository so that it can be accessed through the Business View Manager (which can be installed as part of the client tools). In order for this to work a couple of things need to happen:
1. You need to be sure that you check the "Update Repository" box on the Save As screen the first time you publish the report.
2. Your BO/CRS user needs to have "view" access to the Crystal2013ReportApplicationServer in the Servers section in the CMC - in fact, the Everyone group should be given view access to the server in order for dynamic prompts to work correctly.
3. In the Business View Manager, the Administrator user needs to give your user, or, even better, a Crystal Developers group full control access to the "Dynamic Cascading Prompts" folder.
Best practice for dynamic prompts in a BO/CRS environment is to actually create the prompts in the Business View Manager. This will allow you to create a single data connection that can be reused and also create lists of values such that the same list or prompt can be reused by multiple reports. If you just create the prompts in Crystal, you will end up with multiple data connections to the same database, the prompts will use the whole query for the reports to get the dynamic values instead of just a focused query to the lookup table that contains the values, and there ends up being lots of duplication and chaos.
-Dell -
Error when executing report with large data selection in Infoview
Hello,
This is regarding Error we are facing in BO system.
We have installed:
Business Object Enterprise XI 3.1
Crystal report 2008
When we are trying to execute report in BO INFOVIEW on production system, we are facing following error (After 10 mins of execution).
========================================================================================
Windows Internet Explorer
Stop running this script?
As script on this page is causing Internet Explorere to tun slowly.
If it continues to run, your computer might become
unresponsive.
========================================================================================
Please note: We are getting data via Crytal report. Only, execution in infoview is giving error.
If we are executing same report with less data(E.g a days data) then we are getting output in Infoview.
However, when we execute report with more data (6 months data) then we are getting attached error after 10 min of execution time.
Helpfull reply will be awarded.
Regards.
Edited by: Nirav Shah on Dec 14, 2010 6:19 AMIf it is indeed a server timeout issue, the following document might be usefull: http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/606e9338-bf3e-2b10-b7ab-ce76a7e34432
It's about Troubleshooting Time-outs in BusinessObjects Enterprise XI, but a lot is still applicable.
Hope this helps...
Martijn van Foeken
Focuzz BI Services
http://www.focuzz.nl
http://nl.linkedin.com/in/martijnvanfoeken
http://twitter.com/mfoeken
Maybe you are looking for
-
How to sync iphone with multiple computers
I have had an iMac for the last 7 months now and have been sync'ing my iphone to it. I just got a Mac Mini the other day. I logged into my itunes account on the Mac Mini & purchased some new music. After plugging in my iphone to the Mac Mini, I tried
-
IWhen I try to update my iPad on my PC I keep getting a message saying the device connected to the USB is not working. There is an error 6011 I think. I have updated my iPhone, but iPads wont work. Any ideas.I keep getting a message and the iPad h
-
How to use WebCenter REST API to like or comment a activity
Hi all I want to know how to realize like or comment function with REST APIs. I execute a REST call with following url, but the 'like' counter is not be increased. http://cdcjp77vm3.cn.oracle.com:8888/rest/api/activities/services/oracle.webcenter.com
-
Create a line with arcs using new SdoApi (not liniear)
Hi How we create a line with arcs using sdoapi (not liniear line)? Philipp
-
Hi, How to display the following data in row based result, Actual Table Result: Cust_Name Prod1 Prod2 Prod3 A 5 10 11 I want the result like following, Product Name Value Prod1 5 Prod2 10 Prod3 11 Please help me to get know about this. TIA