Restrict the report to a time interval containing current date
hi all,
we have a time dependent master data object, for which there are two records in the master data for two different time interval for example
comp valid_to valid_from amount
ab00 10/12/2006 01/01/100 100
ab00 31/12/9999 11/12/2006 200
now we want to show only those record for which the current date lies in the time interval (valid_to and valid_from) i.e only the second record should be present in the report.
how can we achieve this at the query level.
any help will be appreciated.
thanks,
Rk
Hi RK,
Use Query Key Date(give current date) then it will only pics data which falling into that perticulr interval(Valid from & Valid to).
You can add Key Date, at Query Properties--> show variable.
Please check : [Query Properties|http://help.sap.com/saphelp_nw04/Helpdata/EN/07/0ab63c71f41d5ce10000000a114084/content.htm]
Hope it Helps
Srini
Similar Messages
-
Reports based on SQL view contain no data. Reports based on tables work just fine
When we load a report into Crystal reports server that is based on a SQL view the report will run but will contain no data. A report that pulls data from SQL tables works just fine. Running the crystal report on standalone crystal reports works just fine.
I am completely lost on this one. If you have any ideas please send them my way.Are you missing an ODBC / TNS entry on your CMS (or report processing, if clustered env) server? This could definately be an issue if the report will run locally within CR client, but not when hosted on the enterprise environment. Another test would be to run the report from CR client ON the CRS / BOE server..
-
My ipod is somehow synced to another library, because I plugged the charger to a wall. How can I sync my ipod shuffle back to the original Itunes library without erasing my current data in the Ipod shuffle?
",the owner sold the ipod without clearing the songs and since the songs were not puchased from the itunes store then i believe i now own the songs"
Not true at all.
It does not matter where the songs came from, they are not yours and the previous owner does not own the right to distribute them to others.
The law is the same with downloads and cds and any other medium. -
How to restrict the Report based on sales office
Hi Experts,
I am using BW 3.5. I have a requirement that my sales report should give output to particular user with his respective sales office only.
For Example :
User, Sales Office
A , Delhi
B, Mumbai
User A should not be able to see the data of Mumbai Sales office. As both the users using the same Report,
Please suggest How to achieve this.
Helpful answers will be awarded.
Thanks&Regards,
VenkatHi,
To do this, you need to make the infoObject Sales Office authorization relevant.
Create an authorization Object using the t-code RSSM for this InfoObject. Restrict it with Activity.
Create a role for each of the Sales Office and restrict your authorization variable with that office.
Now you have 2 roles for eg. One for Mumbai, other for Delhi. Assign them to respective users.
Create a authorization variable for Sales Office and restrict your report with that.
Use the below documentation for creation of Authorization Object.
http://help.sap.com/saphelp_nw04/helpdata/en/a0/48f438f3422f2ce10000000a114084/frameset.htm
Regards,
Gaurav
Edited by: Gaurav Kothari on Sep 18, 2009 11:04 AM -
Restricting the Reports using FM HR_HIS_READ
All, I have a requirement that, need to restrict the number of reports that should be displayed in the MSS of HIS Report selection. Is there any configuration to restrict them?
hi
if its on the protal side its very simple . u can go to content admin and create new role or roles and can manage this.
If on R/3 side u can manage this by structural authorisations
regards
Manish
Reward points If Helpful -
Restrict shudown database for a time interval
Hi,
I an using oracle10g in AIX..
Can i restrict the shutdown operation within a time intervall....say for eg: "Shutdown immediate" should not be accepted by sqlplus, if it is issued after 10am and before 6:00Pm....
Regards,
Jibuwhy do you need something like this ? I am not sure but maybe a event trigger "BEFORE SHUTDOWN" can do that if you raise an application in it. like:
create or replace trigger shut_trig before shutdown on database
begin
if NOT sysdate between trunc(sysdate) - 1 + (18/24) and trunc(sysdate) + 10 /24 then
RAise_application_error(-20000, 'you can not shutdown database');
end if;
end;not tested. I am not sure this code can work. just an idea -
Crystal report Viewer Session times out for more data in Portal
Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%>Hi All,
I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
Please help . Please let me know if I am missing something.. Thanks in Advance!!!
CODE;
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
<%@page
import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
<%@page import="com.crystaldecisions.report.web.viewer.*"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.IOException "%>
<%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
<%@page
import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
<% response.setHeader("pragma","no-cache");//HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.addDateHeader("Expires", -1);
response.setDateHeader("max-age", 0);
//response.setIntHeader ("Expires", -1);
//prevents caching at the proxy server
response.addHeader("cache-Control", "private"); %>
<%
String reportPath,Sharedpath;
ReportClientDocument reportClientDocument;
ParameterFieldController parameterFieldController;
try{
reportPath = "reportlocation";
Sharedpath = "Target Location";
reportClientDocument = new ReportClientDocument();
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");
System.out.println("Connecting...");
parameterFieldController = reportClientDocument.getDataDefController()
.getParameterFieldController();
parameterFieldController.setCurrentValues("", "param 1",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
parameterFieldController.setCurrentValues("", "Param 2",
new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
reportClientDocument.close();
System.out.println("Finished...");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setReportSource(Sharedpath);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
System.out.println("Finished...");
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
%> -
Report on Real Time Cube and Master data
Dear Experts,
I am new to BI. I have created real time cube using some characteristics and top of that I built 3 reports with referring to Master data.
And in the 3 reports, I have used different characteristics for all the report expect one ( common in all the reports).
Now I have to create consolidated report using all the characteristics. I have build some sample reports but getting not assigned where there is no data.
How can I achieve this?
Thanks in advance,
Saravanan RHi suman,
Thanks for your reply .
I have attached the screen shot of the output. I have created the Infoset using info objects and real time cube, on top of that I have created query.
this is the problem am facing can please suggest on this . -
How tio restrict the generation of Calib.Maint Order for Previous dates
Dear PM Guru's
i required one restriction option to prevent the generation of calibration maintenance orders for previous dates.please under stand the full information in following example.
one of my gauge frequency was every 6months. for every 6months user wants one calibration order. in between these 6months frequency user checks the gauge for every 1month as a Inspection / verification of gauge. while uploading the data in SAP, user enters the dates 02.02.2011 as a start of cycle, but we upload the data in sap 02.05.2011. on 05.05.2011 we will go for live. here system should generate the order every month as 02.03.2011,02.04.2011,02.05.2011,02.06.2011,02.07.2011,02.08.2011. As per out condition 02.08.2011 has Inspection / verification and calibration remaining months are inspection / verification. Now here how i can restrict the order generation for 02.03.2011,02.04.2011,02.05.2011dates. Please give me the suggestion and solution to avoid the order generation. if i left same as it is somany orders should be generated.
please help me. thanks so much in advance to all PM gurus.
regards
PMFirst method:
You can define offset in strategy so that first call will be created after the offset period (in your case, it is 4 months).
Second method:
You can define the start date of cycle as 02.05. instead of 02.02, as system is going live only by 05.05. -
ALV report -How to display list contains no data?
Hi Experts,
I have developed an drill down alv report ? I like to display if 'List contains no data ' or 'No data to display' in Grid itself when there is no data to dissplay instead of an Message ?how can i do that?hi
u should have used this command before calling your grid or list
if gt_itab[] is not initial. --> comment this
call function reuse or call method
endif.
assuming you have given a top of page for your grid output
if helpful, reward
Sathish. R -
Extract data on report between last 30 days from current date.
Hi Experts,
Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date.
How can i add this in formaula on record selection.
before:
{pm_process.pm_creation_date} in {@Start Date to UTC} to {@End Date to UTC}
I tried:
{pm_process.pm_creation_date} in CurrentDate() - 30 to CurrentDate()
But this is diplaying me only data of 30th date from current date.
Please advice.Hi Brian,
Thank you!
1. I have not created any function for {pm_process.pm_creation_date} in [CurrentDate() - 30 to CurrentDate()] i am just adding this on Record Selection and its not helping.
2. {pm_process.pm_creation_date} in Last30Days; this is throwing below error.
please advice what to be done? -
Create a BEx variable which should by default contain current date, etc
Hi,
I need to create 2 variables: ZDATE01 and ZDATE02.
They will be used in the following situation:
0DATETO >= ZDATE01
and
0DATEFROM <= ZDATE02
to only display records on a current "key" date.
ZDATE01 should be a variable that has current date pre-populated in it on the variable entry screen in BEx Web Analyzer, so that users do not have to type in the date themselves.
ZDATE02 should be a replacement path variable to be replaced by whatever is the value of ZDATE01.
How would I accomplish ZDATE01 variable having current date pre-populated in it on the variable entry screen?
I tried creating ZDATE01 variable with having SAP exit variable as replacement path, but it did not let me.
ThanksSorry, the previous link was wrong...
Here you go...
Current System date in report
WHEN 'XXXX'.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'YYYY'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = sy_datum.
clear L_S_RANGE-HIGH.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE. -
Dump after implementing the Note 741385 Goods receipts up to current date for scheduling agreements
Hi,
I implemented the sap note 741385, but while performing GR getting dump
I unable to figure out why the EXIT_SAPLEINR_003 has been called, please find the following run time error .
Runtime Errors
CALL_FUNCTION_PARM_UNKNOWN
Except.
CX_SY_DYN_CALL_PARAM_NOT_FOUND
Date and Time
10.04.2014 11:39:15
Short text
Function parameter "ISU_ENHANCEMENT" is unknown.
What happened?
Function module "EXIT_SAPLEINR_003" was called
with the parameter "ISU_ENHANCEMENT".
This parameter is not defined.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
not caught in
procedure "WE_BEWERTEN" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Function module "EXIT_SAPLEINR_003" was called
with the parameter "ISU_ENHANCEMENT".
This parameter is not defined.
Missing RAISING Clause in Interface
Program
SAPLEINR
Include
LEINRF25
Row
8
Module type
(FORM)
Module Name
WE_BEWERTEN
Trigger Location of Exception
Program
SAPLEINR
Include
LEINRF25
Row
151
Module type
(FORM)
Module Name
WE_BEWERTEN
Source Code Extract
122
IMPORTING
123
e_vkwrt
= pot-vkwrt
124
e_vkwra
= pot-vkwra
125
TABLES
126
i_tkomv
= tkomv
127
EXCEPTIONS
128
OTHERS
= 01.
129
IF sy-subrc EQ 0.
130
MODIFY pot.
131
ENDIF.
132
EXIT.
133 ENDIF.
134
135 MOVE-CORRESPONDING pot TO ekpo.
136
137 DATA: p_menge LIKE ekpo-menge,
"1.2 KR
138
p_datum LIKE sy-datum.
"1.2 KR
139
"1.2 KR
140 * pot-erfmg wird in pot_aufbauen schon entsprechend vorbelegt
141 p_datum = budat.
"1.2 KR
142 p_menge = pot-erfmg.
"1.2 KR
143
144 *- Userexit um Preisfindungsdatum und -menge zu ändern ----------------*
145 * --> kann auch bei Bestellungen genutzt werden, um das Datum zu ändern
146 * nicht aber die Menge (macht keinen Sinn und ist nicht programmiert)
147 MOVE ett[] TO cett[].
148
149 ENHANCEMENT-POINT WE_BEWERTEN_05 SPOTS ES_SAPLEINR.
150
>>>> CALL CUSTOMER-FUNCTION '003'
152
EXPORTING i_ekko = ekko
153
i_ekpo = ekpo
154
i_budat = budat
155
i_bldat = i_bldat
156
isu_enhancement = ls_enhancement
"IS2ERP
157
TABLES
xeket = cett
158
CHANGING c_datum = p_datum
159
c_menge = p_menge.
160 REFRESH cett.
"99794
161 IF ekko-bstyp EQ bstyp-best.
162
p_menge = pot-erfmg.
"damit wird die Bestellmenge verwendet
163 ELSE.
164
pot-erfmg = p_menge.
165 ENDIF.
166
167 * MOVE-CORRESPONDING pot TO potkey.
"Preisfindungsmenge merken
168 * READ TABLE ekp WITH KEY potkey.
"MWE-HPR-HW-205016
169 READ TABLE ekp WITH KEY ebeln = pot-ebeln
170
ebelp = pot-ebelpHi,
please implement SAP note 916474 - A dump occurs when you call user exit EXIT_SAPLEINR_003
SAP enhancement MEVME001 contains both
EXIT_SAPLEINR_001
EXIT_SAPLEINR_003
Regards,
Klaus -
How to include Time Interval in crystal report
Hi All,
I have to create a crystal report in XI release 2. In the report I have 2 query side prompts "FromDate" and "ToDate" and one report side prompt "Time Interval". I have to show the data for each time interval between the two dates. means suppose if my "Fromdate" is 23 March 2010 and "Todate" is 25 march 2010 and time interval is 1 hour then I have to show data for each 1 hour time gap. means suppose my data in Db starts from 23 march 2010,11:25:25 then I must show data between 11:25:15 to 12:25:15 and so on...upto 25 march 2010.
I am not able to retrieve the data accordingly. And how to use the timeinterval to retrieve data from db for that particular time interval.Please reply asap.
Edited by: anushree2187 on May 21, 2010 7:28 AM
Edited by: anushree2187 on May 21, 2010 7:37 AMyou can create a group on the date field and then select how to group it by date, you can go up to the second.
-
Error Message : Object could not be scheduled within the specified time interval
Post Author: mohamed elkashef
CA Forum: Publishing
Dear All when i try to run event for daily reports it sometimes take generation status failed with this error message : Object could not be scheduled within the specified time interval so i need to know the reason of failure and how can i fix this error thanks a lotPost Author: nvnaresh
CA Forum: Publishing
Dear jsanzone,
I'm facing the same error even when the server time out is more than the query execution time of the report.By server time out I assume connection time out of WebI report server which I have set to 180 min.But the actual query takes maximum of 5 min.
We are using BO XIR2+SP2.
I scheduled a webI report to get saved in Excel format to an Unmanaged disk location upon a File Event.
We have 3 such reports to be scheduled on the same event.
Expected frequency of File Event getting fired in a day is twice.Scheduling frequency I have set it as every one hour with the file event.
This usually should work fine.
But frequently 1 or 2 of the above 3 instances are getting failed with the following error "Object could not be scheduled with in specified time interval " after being in Running state for few hours(8). Amazingly this is not happening every time. May be once or twice in a week.This works fine after I restart the BO services and the same thing repeats after 3 or 4 days.
Do I need to increase any server parameters?
Why is this happening randomly?
Maybe you are looking for
-
"Cannot obtain Application SSO token" error
Hello, I configured my agent as follows: Version: 3.0 Build Date: 20071212 Application Server Config Directory : C:\Sun\SDK\domains\domain1\config Application Server Instance name : server Access Manager URL : http://juno:6140/opensso Domain Administ
-
Hi everybody, I am getting ORA-01427 Single row subquery returns more than one row. basically SELECT statement is returning 2 rows . how to work with this query to update OPRID field ? update PS_LM_PERSON_OPRID D set D.OPRID = ( SELECT A.OPRID FROM P
-
PS 6 & epson 3800 prints too dark
All prints are TOO Dark with PS 6 on Epson 3800 (using 27" IMac OS10.6) no matter what I have tried; HELP
-
How to establish a WEB page and obtain Domain
I know that this is a very strange question to this forum, but I trust this group more than I do anyone else. I would like to set up a WEB site so that I can post many things on it, i.e. family tree, Shriner information, links to other folks. I have
-
What do u mean by Transfer Event Key ? and where it was used ?