Getting time_out Error in report bcos of SQL Statement!
Hi Experts,
I am getting Time_out error in my big program because of Select statement.I have checked in SQL Trace AND fuond the message
"SQL0104N An unexpected token "vakey" was found following "umh
kschl". Expected tokens may include: ",". SQLSTATE=42601"
I have given the following code and SQL statement where the error is getting occured.Please help.
TYPES: BEGIN OF ty_vakey1,
vakey TYPE vakey,
END OF ty_vakey1,
ty_t_vakey1 TYPE HASHED TABLE OF ty_vakey1 WITH UNIQUE KEY vakey.
DATA: ih_vakey1 TYPE ty_t_vakey1,
wa_vakey1 TYPE ty_vakey1,
wa_vakey TYPE ty_vakey.
LOOP AT i_vakey INTO wa_vakey.
wa_vakey1-vakey = wa_vakey-vakey.
COLLECT wa_vakey1 INTO ih_vakey1.
CLEAR wa_vakey1.
ENDLOOP.
IF ih_vakey1 IS NOT INITIAL.
Here it is required to select the Key field and so cannot be used in Where condition
SELECT knumh "Condition record number
kschl "Pricing conditions
vakey "Variable Key
datab "Valid-From Date
datbi "Valid To Date
FROM konh
INTO TABLE i_konh
FOR ALL ENTRIES IN ih_vakey1
WHERE vakey EQ ih_vakey1-vakey . "#EC CI_NOFIELD
Here #EC CI_NOFIELD is used because the key field of the table konh ( ie knumh)
is to be selected and so is not used in the WHERE condition above
IF sy-subrc NE c_0.
No data found for specified criteria
MESSAGE i036.
LEAVE LIST-PROCESSING.
ENDIF.
Thanks&Regards,
Sarkar
Check if i_konh definition matches the fields in the SELECT statement.
Also, since you're not using the primary key when selecting from KONH table, such program by design is going to run forever and may time out eventually. Usually KONH is a very large table. Not sure what's the purpose of this program, but I'm pretty sure there must be some other way to program this. There are actually some standard FMs that read the conditions.
A secondary index might help, but only as a last resort.
Similar Messages
-
Im getting this error after trying to laounch SQL*Plus
Hallo, guys!
Help me on this one. I'm new to Oracle on Windows 2000 Professional
Im getting this error after trying to laounch SQL*Plus
Error 6 Initializing SQL*Plus
Message file spl<lang>.msb not found
SP2-0750:You may need to set ORACLE_HOME to your Oracle Software directory
Urgent please respond
Thanks
sridharVerify the contents of the following subkey in your Windows2000 registry:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_YOUR_HOME_NAME
Your Windows 2000 registry must contain several minimum parameters, defined as registry entries inside the above subkey (See http://download-east.oracle.com/docs/cd/B19306_01/win.102/b14304/registry.htm#i1006544). One of them is ORACLE_HOME, which could have been accidentally removed or changed. ORACLE_HOME must contain the home OS path to the SQL*Plus executable in your machine (For example, C:\Oracle\OraDB10g). I tried changing the name of the ORACLE_HOME registry entry in my machine and received the same exact messages you did when launching SQL*Plus.
In your OS, verify also Control Panel > System Properties > Advanced > Environment Variables > System Variables > Path, and make sure the above ORACLE_HOME's path is included in the Path variable (preferably in the starting position)
Regards,
Luis Morales
ConsiteNicaragua.com -
Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
Thanks for your helpAs usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.
-
Iam getting the error REP-1401: '': Fatal PL/SQL error occurred. when i
When i run the report to generate xml file in report builder the following error messages are displayed.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: '': Fatal PL/SQL error occurred.
pls help me.Its urgent
Regards,
KranthiHi;
What is EBS version? Is it custom report or not?
See below which is mention similar errors
Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
Regard
Helios -
Getting difference from values of two different SQL Statements
Hello,
I have two SQL Queries like the following:
1. Statement:
SELECT name, SUM(a1), SUM(b1),SUM(c1),SUM(d1)
FROM table 1, table 2
WHERE ...
GROUP BY name
2. Statement:
SELECT name, SUM(a2), SUM(b2),SUM(c2),SUM(d2)
FROM table 3, table 4
WHERE ...
GROUP BY name
I need now a combination of these SQL Statements in one Statement where the result should be the following records
name, a1-a2 as a, b1-b2 as b, c1-c2 as c, d1-d2 as d
Name is a VARCHAR and in both queries the values of the field name are the same
all other fields are integer.
I hope someone can help me.
RegardsYou can use this
with t1 as (
SELECT name, SUM(a1) as a1, SUM(b1) as b1,SUM(c1) as c1,SUM(d1) as d1
FROM table 1, table 2
WHERE ...
GROUP BY name
), t2 as (
SELECT name, SUM(a2) as a2, SUM(b2) as b2,SUM(c2) as c2,SUM(d2) as d2
FROM table 3, table 4
WHERE ...
GROUP BY name
), tt as (
select name
from t1
union
select name
from t2
select *
from tt
natural left outer join t1
natural left outer join t2
where a1 <> a2
or b1 <> b2
or c1 <> c2
or d1 <> d2Bye Alessandro -
Weblogic server not initiating the process after getting an error in reports
hi guys,
i am sai sandeep, i am using weblogic server for running oracle forms and reports in oracle11g,
actually my problem with running reports ,
if any report is failed, then complete reports are going to fail ,not only in the current user but also all the users.
it will work until kill all the failed jobs in oracle weblogic enterpraise manager.
so,please tell me what is the solution..
thank you....By the time you see that error message, it is already too late. Photoshop has already crashed.
That's why the Auto Save feature in CS6 is so attractive, -
Site System Status Error Message on SiteStat.log : SQL statement with Incorrect Syntax
Hi Folks,
We are getting the below system status error in the primary servers site status log (SiteStat.log) every minute. It relates to the updating of a secondary site.
I have worked out where the SQL syntax is wrong (TimeReported=,) and that it more than likely relates to the day light saving settings last weekend on the secondary sites virtual's host which caused the secondary site server time to go way
into the future, this has now been fixed.
Is there anyway of removing/deleting this system status/SQL query? I have restarted Primary, Secondary and SQL server, to no avail.
Any help would be greatly appreciated.
*** [42000][102][Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ','. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012 14:45:58 5756 (0x167C)
---->: Could not execute the SQL command:
UPDATE Summarizer_SiteSystem SET Status=0,SiteCode='001',SiteSystem='["Display=\\SERVER\"]MSWNET:["SMS_SITE=001"]\\SERVER\',SiteObject='["Display=\\SERVER\D$\SCCM\"]MSWNET:["SMS_SITE=001"]\\SERVER\D$\SCCM\',ObjectType=0,Role='SMS Component 847496,DownSince=NULL,Replicate=1,PercentFree=76,WarnLevel=102400,ErrorLevel=51200,TimeReported=,AvailabilityState=4
WHERE SiteCode='001' AND SiteSystem='["Display=\\SERVER\"]MSWNET:["SMS_SITE=001"]\\SERVER\' AND SiteObject='["Display=\\SERVER\D$\SCCM\"]MSWNET:["SMS_SITE=001"]\\SERVER\D$\SCCM\' AND Role='SMS Component Server' AND ObjectType=0. Will try again in 60 seconds. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012
14:45:58 5756 (0x167C)
---->: Clearing lost SQL connection and reinitializing it SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012 14:46:58 5756 (0x167C)
Thanks
JTeQYes, I know this is an old post, but I’m trying to clean them up.
There is not supported way to fix this. As such I recommend that you contract CSS directly, they will work with you to solve this problem.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
I get an error "key not valid in specified state" when updating iTunes
I tried to update my iTunes to 12.0.1 warning popped up on computer to try doing manually which I did when it was doing status it was almost to the end and triangle with caution exclamation and said "key not valid in specified state"....Now what? Do I uninstall?
For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
For further problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
tt2 -
Crystal reports integration with sql server and visual studio 2010
when I am trying to open a crystal report through code ( visual basic 2010 ) I get the error
the report has no tables
I am using SQL SERVER 2008 R2
HERE IS THE CODE I WROTE
Imports System.Data
Imports System.Data.OleDb
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.Shared
Public Class frmRep
Dim objConnection As New OleDbConnection("Provider=SQLOLEDB;Data Source=ASHRAF-PC\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=TEST")
Dim objDataAdapter As New OleDbDataAdapter()
Dim objDataSet As New DataSet()
Private Sub CrystalReportViewer1_Load(sender As System.Object, e As System.EventArgs) Handles CrystalReportViewer1.Load
End Sub
Private Sub frmRep_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim cr As New ReportDocument
objDataAdapter.SelectCommand = New OleDbCommand()
objDataAdapter.SelectCommand.Connection = objConnection
objDataAdapter.SelectCommand.CommandType = CommandType.Text
objDataAdapter.SelectCommand.CommandText = "select * from bands"
objConnection.Open()
objDataAdapter.Fill(objDataSet, "bands")
objConnection.Close()
cr.Load("D:\MY VB 2010 PROJECTS\test2\test2\CrystalReport1.rpt")
cr.SetDataSource(objDataSet.Tables("bands"))
CrystalReportViewer1.ReportSource = cr
CrystalReportViewer1.Refresh()
End Sub
End ClassI suggest you post that question in a Crystal Reports forum.
Markus -
Error: The report source could not be retrieved from the state object.
I have been trying to create a report in a JSF page. The relevant parts are below:
Inside the JSP page, this is the code:
<jsp:useBean id="MyBean" class="com.nm.facade.rto.POJOViewerBean" scope="session" />
<jsp:setProperty name="MyBean" property="reportLocation" value="Report1.rpt" />
<v:reportPageViewer reportSource="#{MyBean.reportSource}"
displayToolbarPrintButton="true"
printMode="ActiveX"
zoomPercentage="100"
displayToolbarExportButton="true"
displayToolbarRefreshButton="true"
viewerName="My Viewer"
></v:reportPageViewer>
In the backing bean, this is the relevant code:
public Object getReportSource() throws ReportSDKException
if (propertiesChanged || reportSource == null)
propertiesChanged = false;
if (reportLocation == null)
throw new RuntimeException("The reportLocation property must be set before a report source is retrieved");
ReportClientDocument rcd = new ReportClientDocument();
rcd.setReportAppServer(ReportClientDocument.inprocConnectionString);
rcd.open(reportLocation, 0);
DatabaseController dbc = rcd.getDatabaseController();
//Create the POJO collection and populate it with data
ReportData[] data =
new ReportData("B.B.", "King", 6, new Date(25, 9, 16)),
new ReportData("Muddy", "Waters", 7, new Date(15, 4, 4)),
new ReportData("John Lee", "Hooker", 8, new Date(16, 8, 16)),
new ReportData("Otis", "Rush", 9, new Date(34, 4, 29)),
new ReportData("Buddy", "Guy", 10, new Date(36, 7, 30))
//Create the result set from the collection of POJOs
POJOResultSetFactory factory = new POJOResultSetFactory(ReportData.class);
factory.setVerbose(true);
POJOResultSet results = factory.createResultSet(data);
ResultSetMetaData metaData = results.getMetaData();
//Set the resultset as the report datasource
//Get the table name from the 'Set Datasource Location' dialog in the Crystal Reports designer
String reportTable = "getReportDataDataSource";
dbc.setDataSource(results, reportTable, reportTable);
IReportSource reportSource = rcd.getReportSource();
if (reportSource == null)
throw new RuntimeException("Unable to get a report source.");
return reportSource;
In the CRConfig.xml, this is what is there:
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
<reportlocation>../reports</reportlocation>
<timeout>0</timeout>
<ExternalFunctionLibraryClassNames>
<classname></classname>
</ExternalFunctionLibraryClassNames>
</CrystalReportEngine-configuration>
The report template 'Report1.rpt' is packaged under WEB-INF/reports in the war file.
When I try to generate the report by accessing the JSF page, I am getting an error: "The report source could not be retrieved from the state object. "
I am not sure what is wrong. Can someone help me in resolving this issue?
Edited by: renshai on Jul 9, 2009 3:21 AMMy formatting gets lost and the message looks unintelligible. After some experimentation, I found that if the message exceeds some length, the formatting is removed. Since I couldn't find any way to delete this post, I made another post with the same subject. Please ignore this post and help me to find a solution for the problem posted in the other thread with the same subject. Thanks in advance.
-
Error "Invalid Report Object" when running any CR
Hi, I have installed BO XI V3.1 and upgraded to 1.4 level.
However when logged into the infoview app, if i browse to any 2008 report i have uploaded into the enterprise system and double click to run i get the error "Invalid Report Object".
This is also true if i try to run any report in the Public Folders \ Report Samples folder.
Nothing will display for me but they run fine in CR 2008, just not via the web tool.
Any help on this will be much appreciated.
C.Hi,
Is this issue after you have upgraded to 1.4 or was this issue occurring before?
Since the reports are running properly in the designer please try to do following steps:-
1) Open the report in the designer which is not working in enterprise
2) Refresh the report in CR designer
3) Save the report back to the enterprise and make sure save with data is checked.
4) Now open the report in the Enterprise and check it works or not.
The reason of doing this is that to generate new PID's for the reports if after the upgrade the PID's have changed or has became corrupt. -
Report painter execution error - KH014 "Report does not exist".
Hi All,
I customized one report in FSI3 and used SE43 to create a t code for this report. In the development system, report will be executable from this t code.
Transport requests are successfully transported from development to production without any error. But on production when I tried to execute the report, I am getting the error KH014 - "Report does not exist".
While checking in production I found that the report was missing from report tree in FSI3 and as a result the customized report cannot be executed. As per basis guys there was not a issue in request transportation.
Has anyone encountered similar problem? How was it resolved?
Thanks.
PrashantHi Mikko,
Thanks for your reply but your solution is not working.
Hi Stacy,
I can execute the report from t codes like FSI3 & FSI0 in development.
I used SE43 for t code creation. At the time of t code creation there is a option called "Drilldown" under Report type heading, In drilldown option I selected my report from report type 002 (Financial Statement Key Figure) and created the t code. After this I transported both the request to production server.
Please let me know if this is wrong method or there is any other option to transport this report in Production.
Thanks & Regards,
Prashant -
we are on the process of 4.6 to ECC6 upgrade system. we moved the changes to our Q system. now when we try to create order, we are getting some error messages 'Report RV13A603 has syntax error'
'Screen SAPMV13A 2603 is generated'..
Then next time when we run it , we are not getting this message. this is happening only in the first time.
also happening in different types of orders and error messages on differnt programs and different screens are generating.
any ideaWhen you install/Upgrade the system, after that you are accessing it for the first time
any transaction , program, for the first time It will give the message
'Screen SAPMV13A 2603 is generated'
Generation messages will occur only first time , next time it will not give that message.
I m not sure about the errror messages , that means some thing wrong with upgrade or some where some thing happened.
we are getting some error messages 'Report RV13A603 has syntax error' -
Error while inserting into MS-SQL Server from Oracle using HS
Hi,
I am using hetrogeneous connection.
I want to insert into MS-SQL Server Table by selecting from Oracle Tables.
insert into tableone@mssql select * from table2;
Table2 is in oracle database.
while executing i'm getting
ORA-02025: all tables in the SQL statement must be at the remote database
Please guide me.
Regards
Salih KMsome guy come up a solution by himself before. go ahead and try it
ORA-02025 error while insert into emp@custard select .... -
I can't install itunes. I get an error code 2894 & a message that states the installer has encountered an unexpected error installing this package. Anyone know what I need to do to fix this?
Are you able to uninstall iTunes and QuickTime?
You might have to search for the Windows Installer Cleanup Utility, which would allow you to remove some applications that you can't from Control Panel.
Also, take a look at this Apple document -> Trouble installing iTunes or QuickTime for Windows.
Maybe you are looking for
-
I have recently bought an ASUS RT-N13U, which is a wireless router with an USB port to which I have attached an external hard disk. This is to be used to make files available to all computers on the network, but I would also like to use it for automa
-
Using Leopard 10.5.2 When I try to open a folder, any folder, including the hard drive, the ipod, folders on the desktop, etc. this happens: 1st -- a window opens. In some cases I see the contents of the folder in it, but usually it looks completely
-
My computer's anti-virus software recently expired. A few days later, I went to download a new anti-virus software . . . when I opened up Firefox, I received a warning that claimed Firefox was infected with "Trojan-BNK.Win32.Keylogger.gen", and gave
-
How do I transfer photos from MacPro to iPad 2,without using iPhoto
How do I transfer photos from MacPro to iPad 2,without using iPhoto on the ipad.
-
How do we control who can approve items in a list?
We are building a referral bonus list that needs to go through 4 levels of approval before being paid out. I've created the workflow, but I can't figure out how to control who is allowed to approve it. For example, it would be bad if an employee ca