SAP QUERY does not execute in other client
Hi,
I am working on SAP QUERY on the Quality Assurance and Cust & Dev Client and i am facing a strange thing when i tried to execute the Query from SQ01 ,there i found itis not able to get executed but when i generated the report ,after that it get s executed.
I want to know what are the reasons behind it,please provide me guidelines for solving it.
See, SQ01 can not alone be used.
It is linked with the SQ02 - Funectional Area, where the joins handeled and codes implemented.
Also SQ03 - User Groups.
User Group you can ignore, but Functional Area is must to run a query through SQ01.
When you generate the Functional Area using SQ02, it activates all the objects associated with the Query.
So even if you need same query to some other client sayu in quality or production, you need to import export Functional area first before query or simultaneously.
Regds,
ANil
Similar Messages
-
Temporary Table In SAP Query - Does not Work?
DECLARE @date DATE
DECLARE @delrows INT
DECLARE @delquan INT
DECLARE @a INT
DECLARE @recrows INT
DECLARE @recquan INT
SET @a=0
IF OBJECT_ID('tempdb..##tab) IS NOT NULL DROP TABLE ##tab
CREATE TABLE ##tab
[Date] date,
[Delivery Rows] varchar(40),
[Delivery Total Units] varchar(40),
[Receipts Rows] varchar(40),
[Receipts Total Units] varchar(40),
WHILE @a!=7
BEGIN
SET @date=DATEADD(day,-@a, getdate())
SELECT @delrows=ISNULL(COUNT(DLN1.[LineNum]),0), @delquan=ISNULL(SUM(DLN1.[Quantity]),0)
FROM ODLN
INNER JOIN DLN1 ON ODLN.[DocEntry]=DLN1.[DocEntry]
WHERE ODLN.[CreateDate] = @date
SELECT @recrows=ISNULL(COUNT(PCH1.[LineNum]),0) , @recquan=ISNULL(SUM(PCH1.[Quantity]),0)
FROM OPCH
INNER JOIN PCH1 ON OPCH.[DocEntry]=PCH1.[DocEntry]
WHERE OPCH.[DocDate]=@date
SET @a=@a+1
INSERT INTO ##tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
END
SELECT * FROM ##tab
{/code}
Can anyone explain why this query does not work in SAP? It works fine on SQL but gives me this message in SAP:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.
2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
Edited by: Chris Candido on Feb 2, 2011 8:38 PMChris,
There are several areas in your code which needed changes.
1. On the field name for your temp table you had spaces.
2. The SAP table name ODLN, OPCH, PCH1 had to be fully referenced like
[dbo].[ODLN]
3. You really need not have ## in front of your temp table, it could just be #
The select at the end is actually what causes the most problem as for some reason from within SAP it does not produce the result. I would suggest you put the whole code into a Stored Procedure and call the SP from SAP. Corrected SQL below. If you remove the Select line at the end the query would work with in SAP, but keep it give give you an error. SP is the best option for this.
DECLARE @date DATE
DECLARE @delrows INT
DECLARE @delquan INT
DECLARE @a INT
DECLARE @recrows INT
DECLARE @recquan INT
SET @a=0
IF object_id('tempdb..#tab') IS NOT NULL
BEGIN
DROP TABLE #tab
END
CREATE TABLE #tab
[Date] date,
DeliveryRows varchar(40),
DeliveryTotalUnits varchar(40),
ReceiptsRows varchar(40),
ReceiptsTotalUnits varchar(40),
WHILE @a!=7
BEGIN
SET @date=DATEADD(day,-@a, getdate())
SELECT @delrows=ISNULL(COUNT(DLN1.LineNum),0), @delquan=ISNULL(SUM(DLN1.Quantity),0)
FROM [dbo].[ODLN]
INNER JOIN DLN1 ON [dbo].[ODLN].DocEntry=DLN1.DocEntry
WHERE [dbo].[ODLN].CreateDate = @date
SELECT @recrows=ISNULL(COUNT([dbo].[PCH1].LineNum),0) , @recquan=ISNULL(SUM([dbo].[PCH1].Quantity),0)
FROM [dbo].[OPCH]
INNER JOIN [dbo].[PCH1] ON [dbo].[OPCH].DocEntry=[dbo].[PCH1].DocEntry
WHERE [dbo].[OPCH].DocDate=@date
SET @a=@a+1
INSERT INTO #tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
END
SELECT * FROM #tab
Suda Sampath -
Oracle ADF refresh as deferred does not execute query on page load
In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
Please let me know the best way to fix this issue.Hi,
I think you need a method in an application module to init your data.
In your AM : create a method like :
public void init(){
getViewObject().executeQuery();
}In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
and keep refresh as "deferred " in your pageDef.
Clément -
JDO Query does not seem to be executed at all
I have the following JDO query and it returns empty collection but it
should return some records. I set "SQL=TRACE" in kodo.properties file and
traced the log file. This query does not seem to generate SQL statement
at all. Other JDO method generates SQL statements.
Kodo version: 3.1.2
J2SE: 1.4.1_05
Database: MS SQL Server 2000
// Get endorsement rule type
String ruleType = getEndorsementRuleType();
Query qry = pm.newQuery(EndorsementRule.class);
try {
qry.declareParameters("String ruleType");
qry.setFilter("this.ruleType == ruleType");
log.info("*** EXECUTE RULE QUERY ***");
Collection c = (Collection)qry.execute(ruleType);
log.info("*** qrysize=" + c.size());
finally {
qry.closeAll();
Log file: There is not SQL statement generated for the JDO query.
[junit] INFO: Get endorsement rule type
[junit] Jun 7, 2004 12:39:01 PM EndorsementRuleEngine
getEndorsementRuleType
[junit] INFO: *** JDO EXECUTE BEGIN ***
[junit] 16366 TRACE [main] kodo.jdbc.SQL - <t 3969559, conn 18096534> [0
m
s] executing prepstmnt 20731151 SELECT t0.EndtType, t0.EndtId FROM EndtHe
aderItem t0 WHERE t0.EndtId = ? [params=(int) 6137330] [reused=0]
[junit] Jun 7, 2004 12:39:01 PM EndorsementRuleEngine
getEndorsementRuleType
[junit] INFO: *** JDO EXECUTE END ***
[junit] Jun 7, 2004 12:39:02 PM EndorsementRuleEngine getRules
[junit] INFO: *** EXECUTE RULE QUERY ***
+++ WHERE IS SQL statement for JDO Query ? +++
[junit] Jun 7, 2004 12:39:02 PM EndorsementRuleEngine getRules
[junit] INFO: *** qrysize=0
[junit] Jun 7, 2004 12:39:02 PM mytest.EndtRuleTestCase setComplete
Thanks,
AndyPlease ignore this post. The error was caused by the file merge done by
StarTeam. -
E2E RCA - The requested query / does not exist on the current server
Hi All,
The RCA for managed system is configured successfully and we are getting EWA for JAVA also.
But when i try to look at the statistics through Workload Analysis it gives error "The requested query / does not exist on the current server" and "unknown or deleted query".
I again tried to run CCMSBI_SETUP_E2E report but the problem STILL persists.
Please let me know what are the other methods i shall try.
Thanks,
RohanHi,
Our solution manager is in EHP1 SP23 and BI content is on 704 SP05.
Firstly the BI was configured in 001 client, we changed it to production client and activated the source system as mentioned in SOLMAN_SETP -> Basic configuration.
Later i found out the there are no queries. I already told to update the BI content and SAP BW patch to SP06.
Do you think it will work?
Thanks and regards,
Rohan -
i have created my web-dynpro application in development. and sent to quality . whenever i will execute my dynpro in quality i got one message
ERROR: ICF service node "/sap/bc/webdynpro/sap/zqm_cto_arr_general1" does not exist (see SAP Note 1109215) (termination: ERROR_MESSAGE_STATE)
whenever i saw sicf transaction my web-dynpro is not seen . my dynpro application name is more then 15 character. what i will do . please give me valuable suggestion.....Hi Ashok,
for your requirement the application is not exist in particular place. It means, the webdynpro application is saved at different package or different location.
Please change the webdynpro component name and save it in particular request in package, then transport it to quality ..(development server )
then go to SICF t.code .. sap->bc->webdynpro->sap->find out your application and activate the service of your webdynpro application.
Now test it ... this solution might helpful to you .
Regards,
Naveen M -
DIR_TRANS directory \....sap rans does not exist
Hi,
In DEV, while changing the parameter login/password_max_idle_initial, I got the following message:
***DIR_TRANS
IP address \sapmnt\trans***
***W:DIR_TRANS directory
IP address \sapmnt\trans does not exist***
We have 3 system landscape DEV->QA->PRD.
Recently transport domain control has been moved from QA->PRD.
In DEV, DIR_TRANS =
172.20.0.148\sap\trans
172.20.0.148 is QA IP address.
172.20.0.141 is PRD IP address
172.20.0.137 is DEV IP address
while changing DIR_TRANS =
172.20.0.141\sap\trans
The pop up message is coming as DIR_TRANS directory
172.20.0.141\sap\trans does not exist.
The transport tool says everything fine.
Check Transport Tool
DV1 CAL - Quality
tp Interface
Host Name sap2dvsrv
Version 1.80
Transport Directory
sap2dvsrv\sapmnt\trans
Logging On (TPLOG contains 15932 entries)
Transport Profile
Path
sap2dvsrv\sapmnt\trans\bin\TP_DOMAIN..
Profile TP_DOMAIN_PR1.PFL is readable
Version Version 0003 (domain DOMAIN_PR1)
RFC Destination
Destination CALLTP_WindowsNT
tp Path G:\usr\sap\DV1\DVEBMGS00\exe\tp.EXE
tp Executable Size: 10.217.776 bytes
RFC Ping Link setup: 74 msec
tp Call
RFC Link tp was started successfully
tp Version 376.01.14 (n .ow.unkn)
DB Connect Link to database successful
Offline Call tp started in background
PR1 CAL - Production
tp Interface
Host Name dbprd
Version 1.80
Transport Directory
dbprd\sapmnt\trans
Logging On (TPLOG contains 16160 entries)
Transport Profile
Path
dbprd\sapmnt\trans\bin\TP_DOMAIN_PR1..
Profile TP_DOMAIN_PR1.PFL is readable
Version Version 0003 (domain DOMAIN_PR1)
RFC Destination
Destination CALLTP_WindowsNT
tp Path E:\usr\sap\PR1\DVEBMGS00\exe\tp.EXE
tp Executable Size: 10.217.776 bytes
RFC Ping Link setup: 72 msec
tp Call
RFC Link tp was started successfully
tp Version 376.01.14 (n .ow.unkn)
DB Connect Link to database successful
Offline Call tp started in background
QA1 CAL - Quality
tp Interface
Host Name sap2bksrv
Version 1.80
Transport Directory
sap2bksrv\sapmnt\trans
Logging On (TPLOG contains 24204 entries)
Transport Profile
Path
sap2bksrv\sapmnt\trans\bin\TP_DOMAIN..
Profile TP_DOMAIN_PR1.PFL is readable
Version Version 0003 (domain DOMAIN_PR1)
RFC Destination
Destination CALLTP_WindowsNT
tp Path L:\usr\sap\QA1\DVEBMGS00\exe\tp.EXE
tp Executable Size: 10.217.776 bytes
RFC Ping Link setup: 51 msec
tp Call
RFC Link tp was started successfully
tp Version 376.01.14 (n .ow.unkn)
DB Connect Link to database successful
Offline Call tp started in background
Please guide me.
Regards
Satya
Edited by: Satyanarayana Buddarapu on Jan 17, 2012 11:24 AMHi Satya,
To change the domain controller you have do these steps:
Prerequisites
Because the domain controller can only be moved as long as it is functioning, you must always configure a backup domain controller.
Procedure
To move the domain controller to another SAP System:
Configure the SAP System you want to use as the new domain controller as the backup domain controller.
Activate the previous domain controller as the backup domain controller.
Result
The previous domain controller becomes the backup domain controller. The SAP System that you configured as the backup domain controller becomes the new domain controller.
Once you have done this.Then change the DIR_TRANS as
<host>\sapmnt\trans.As Sunny has mentioned already, check the host file entries and share/access permission on this folder for user SAPService<SID>,<SID>ADM.
And then distribute the configuration to all participating systems.
Regards,
Ashutosh -
Requested query does not exist on the current server.
Hi All,
I am facing a problem in BI 7.0 related to query view.I am able to create a view on a query and can successfully save it .But when I am trying to open it using Bex Analyzer, it throws an error that query does not exist on the current server.
Please find the steps below which I did to create a query view in BI 7.0.
1.Executed query and then clicked on save from the tool bar.It asks me to save as workbook or save as view.I clicked on save as view and gave some name to view.It saved successfully.
2.Now when in Bex I am trying to open the view , it gives the message 'The requested query does not exist on the current server'.
Please help me in solving the issue.
Regards,
Phani.Hi,
I am facing the same problem, though some others of my views can be opened.
We had an upgrade of the system to Support Package stack 13. Maybe this caused problems.
My BEx Analyzer Version is:
Support Package 14, Patch 3, Revision 811
Philipp -
Problem in WAD (The requested query / does not exist on the current server)
Dear Guru's
When i execute a Web Application in WAD in the selection screen suppose if i give Key product as 86000 then check and execute i get correct data. Then if i come to backpage (Selection screen again using backspace) and change Key product as 86022 then check and execute then i get following error
The requested query / does not exist on the current server
System error in program CL_RSR_OLAP_VAR and form BAD STATE (see long text)
Can any one please provide me some good solution...
We are using BI 7.0 sp 16, But i am executing this Wed Application in 3.1WAD.
Thanks and Regards,
kalyanDear Jai,
Issue is in WAD selection screen for first product valuse every thing if fine, when i go back and change product value and then CHECK and EXECUTE the following error comes.
The requested query / does not exist on the current server
System error in program CL_RSR_OLAP_VAR and form BAD STATE (see long text)
Any one have any idea plssssssssssssssssssssssssssssssssssss..........
dude's some soln.....
Thanks and Regards,
Dev
Edited by: Srinivas dev on Jul 4, 2008 2:45 PM -
Error - The requested query does not exist on the current server
Hi all,
We've started to get an error when exeucting queries on our BW system. The erorr is "The requested query does not exist on the current server". Even though I can go in an change the query on the server, I get this message when I try to execute it. I also get the same message when I try to run the query in RSRT.
Has anyone else run into this problem?
Thanks!
~MattThe problem that we had was due to a pre-query not transported up. We transported up the missing pre-query and everything worked fine. If you go into change mode on the query and press the check button. It should tell you which query is missing.
-
Requested query does not exist on current server
I have transported a query from DEV to PRD and it went in fine. Now when i try to open the query in designer or analyzer i end up getting error " Requested query does not exist on current server". Though i can run this in RSRT and also can see its entry in RSZCOMPDIR table. Also i am able to execute this query in analyzer when i run it from the history.
Please advice what went wrong and what needs to be done.Try re-generating the Query in production.
goto RSRT and selet the query. Now click on the third button Generate Report
Now try opening the Query from Query Designer... -
This query does not exist in the database in the system
I have created a query, but when I run it, I receive this error:
You have attempted to open query 0DAT from the Query Designer.
However, this query does not exist in the database in the system to which you have made a connection.
Thanks
Joseiltondear Joseilton,
the variable 0DAT ist not in active version in your system.
Use BC to activate the variable 0DAT from InfoObject 0CALDAY.
or
you have to create it in your system. therefor change the namespye to SAP-namespace (starting with 0). Open one Query in your system via RRMX and select CalenderDay to create a new variable.
name: 0DAT
descrition: current calender day
processed by: SAP EXIT
Characteristic: Calender Day
variable represents: Single Value
best regards
imberaureus -
Hi,
I just upgraded to Mavricks and get this when I try to launch Remote Desktop:
The Remote Desktop administrator software does not match the installed client software version.
I tried removing the application and reinstalling it to no avail. Any suggestions?
Thanks.
-David J. EisenHi coold88!
I have an article for you that addresses your issue:
Remote Desktop 3: How to install Remote Desktop Administrator software after the client software has been updated
http://support.apple.com/kb/HT3596
You will want to make sure you have the latest version of the software as well:
About Apple Remote Desktop 3.7
http://support.apple.com/kb/HT5896
Thanks for using the Apple Support Communities. Have a good one!
-Braden -
SQL Query - The number of columns specified in "SQL Query" does not match t
I am creating new UDM for tablespace alert, below is my query,however its failing with error
SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
I selected Metric type is number
SQL Query Format : Two columns
Query:
SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
Any clues why i am getting error.SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
TABLESPACE_NAME USED_PCT
MGMT_TABLESPACE .82
SYSAUX 1.52
UNDOTBS1 .32
RMAN .02
CORRUPT_TS 10.63
USERS 0
SYSTEM 2.26
MGMT_ECM_DEPOT_TS .04
MGMT_AD4J_TS 0 -
The requested query does not exist on the current server
Hy, i created an workbook an QAs with a query that i have trasported from DEV.
The query exist on QAs system but when open the workbook i receive this error message:<i>'The requested query does not exist on the current server'</i>.
When i select ok, the workbokk is opened correctly because the query exist in system QAs.
How can i remove the initial error message .
Thank's
Andrea
System: BI 7.0
tool BEx version 7.0Hi
When you create a workbook in DEV, you will be assigning a query for that workbook
When you transport workbook from DEV to QA,the assigned workbook comes along with it
When you transport only query from DEV to QA, there are certain technical elements called query elements which may not have transported properly
To avoid this inconsistency between DEV and QA,it is advisable you transport the workbook again....Create new workbook in DEV, assign a query, transport the workbook to QA
Regards
N Ganesh
Maybe you are looking for
-
I want to upgrade my hard drive
I want to upgrade my hard drive. At the moment it is 160gb in a 2009 MacBook Pro. Do I just need a standard 2.5" sata hard drive? I was looking at this one 500GB Hitachi 2.5" Travelstar HDD, SATA, 5400rpm, 8MB Cache. Is this suitable. Cheers, Je
-
Hi, has anyone done this? it would assist me greatly in evaluating W10E... I know it would void the warranty, but I can always restore the original. I am running W10E as VM at the moment but I would like to see how it performs natively ... but I need
-
Dockable Windows: New Features Guide for SAP PowerBuilder 12.6
I copied the example in the SAP document: PowerBuilder-NewFeatures.pdf at page 21. 4.2.7 Opening Docked Windows and Tabbed Document Windows Sample code for opening docked windows and tabbed documents. Context Procedure 1. Create a window w_sheet_any
-
Just purchased a 5800 Xpress direct from nokia a week ago and have now discovered 3 clusters of inactive pixels comprising of 6, 8, and 10 groups. They are all on the number 1, when in text mode. Now most people, including myself would automatically
-
Documentation of XSLT Transformation
Hi all, Is there any documentation for the XSLT Transformation? Please. Thanks.