Query report problem
I copied all query reports from one old database to another new database using a copy express.
But while executing the query report in the current new database.
It is showing an error" FORM NOT FOUND [66000-9]"
Sometimes the errors provide little information as feedback to correct the problem. I would suggest that you review the query iin both databases and see if have been copied correctly. Secondly make sure all field and table references in the query actually exists in the copied database.
Suda
Similar Messages
-
The problem about integrate Portal and R/3 : vendor query report problem
Hi everyone :
We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors, because the cost is too much .
And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
I think this is a general problem when integrate Portal and R/3, BW .
Is there somebody had solved this problem or give any advice?
Any discuss is welcome.
Best Regards,
Jianguo ChenHi,
I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
Hth,
Michael -
Inventory inward pending query report problem
Dear Sir,
we are using sap b1 2005 version 7.40.253
i am opening query manager icon and choose theinventory inward pending report then click ok button the error will be display
1) [Microsoft][sql native client][sql server]conversion failed when converting the nvarchar value '31/05/2014' to data type int. 'Queries'(OUQR)
and i use the query like this:
select distinct t0.docnum as 'Inventory Transfer Number', t0.filler as 'From Warehouse', t0.u_towhcode as 'To Warehouse',T0.DocDate from owtr t0 inner join wtr1 t1 on t0.docentry = t1.docentry inner join owhs t2 on t1.whscode = t2.whscode where t2.u_whty = 'IT' and t0.docnum not in(select distinct z0.u_bd from owtr z0 inner join owhs z1 on z0.filler = z1.whscode where z1.u_whty = 'IT' and isnull(z0.u_bd,0) != 0)Thanks for ur valuble support.....
Thats query also working fine sir.....
but the user told the drawback is lot of times repeated the doc number for every item.so pls combine single document no and display total quantity need not display item description ......
i want display these colums only:
1.inventory transfer no
2.from where house
3.To where house
4.Posting date
so can you please tell another query sir ......................... -
Matrix multiple query report problem
dear members i have serious problem regarding report as i m usin oracle 10g with developer 6i release2 and i m getting following error while executing teh report out:
rep-1761: internal error <rgcaag-2> while processing group <g_item_code>
plz any one hv idea regarding this error so share with me .
thnx in advance
Edited by: user581618 on Jul 14, 2012 1:48 AMInternal errors usually indicate a bug somewhere.
What are your exact Reports version, database version and operating system? Developer 6i release2 and 10g are not the exact version numbers. -
I have followed the tutorial in on dynamic query and created a region where the type is SQL Query (PL/SQL function body returning SQL Query)
The source is
declare
q varchar2(4000);
teatid NUMBER := :P305_TARGET_ID;
begin
wwv_flow.debug('teatid = ' || teatid);
q:=' select f.id, ';
q:=q||' f.eat_id ';
q:=q||' from xmlTransactions f ';
q:=q||' where f.eat_id = ' || teatid; -- I've also tried putting :P305_TARGET_ID here
wwv_flow.debug('sql = ' || q);
return q;
end;
I have chosen "Use Generic Column Names...".
When I run the page, I get NO ROWS FOUND. However, when I cut and paste the SQL statement printed out by the debug statement and run it, it returns rows. Both debug statements print correct values.
I'm not sure what the problem is here, but basically, I want to do a query where I substitute a value passed into the page from another page.
In this case the value in P305_TARGET_ID is passed in via a button spawning a popup as in var url = 'f?p=&APP_ID.:305:&APP_SESSION.::::P305_TARGET_ID:' + targetID;
APEX version is 3.0.1.00.08
Thank you.
- JohnWHi, JohnW
I don't understand why you use a dynamic query for that.
A "direct" SQL query like this :
select f.id,f.eat_id from xmlTransactions f where f.eat_id=:P305_TARGET_ID;
should work.
Mike -
Query Report:To Retrieve Data from A/R Invoice and A/P Invoice
Hii Experts,
I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
Expenditure and Revenue according to a Bussiness partner,
I am using union to retrieve the information,but it is saying a error that Error Converting Varchar to Numeric and also
i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
With Regards
Cherry.Hii.
My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
Thanks & Regards
Cherry -
UDF Value is not coming in the query report
Hi all,
i have designed query report based on AR Invoice which has some UDF .
all udf have FMS applied and all these udf has values.
when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
every time i need to manualy update the udf even if that udf contain value.
how to avoide this problem.
Pls suggest solution.
Regards,
ChetanHi Chetan,
Try this,
-> Open the require document(module).
Assign this procedure and then ADD the document
and Run the Query Report.
1. Goto the UDF and Click (ShiftAltF2).
2. Select the SEARCH BY SAVED QUERY.
3. Assign the FMS Query in UDF.
4. Select the AUTO REFRESH WHEN FIELD CHENGES.
5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
6. Check the Display Saved Values.
OR
-> Open the require document(module).
1. Goto the UDF and Click (ShiftAltF2).
2. When will you add the document at that time
you can Click the SHIFT + F2 and than ADD the document.
and than Run the Query Report.
Regards,
Madhan. -
Error running a query and creating a query report.
Hi all
I have a problem with a query when I'm running it or trying to create a report for it.
23/09/2009 11:47:31: 1). [Microsoft][SQL Native Client][SQL Server]Arithmetic overflow error converting expression to data type datetime.
'Document' (RDOC) -- Run query
23/09/2009 11:01:58: 1). [Microsoft][SQL Native Client][SQL Server]Invalid object name 'CSHS.T0'.
2). [Microsoft][SQL Native Client][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared. - create a query report
This happened on a Windows Server 2003 OS , when I ran the same query on local pc on xp it ran fine on both scenarios.
Please help
Bongani Dlaminiselect SlpName, ItmsGrpNam, sum(LineTotal) as 'Total Sales Minus Returns'
from
SELECT T4.SlpName, T3.ItmsGrpNam, T0.LineTotal FROM dbo.INV1 T0 INNER JOIN dbo.OINV T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.DocDate >=[%0] and T1.DoCdate<=[%1]
UNION
SELECT T4.SlpName, T3.ItmsGrpNam, (T0.LineTotal * -1) AS 'LineTotal'
FROM dbo.RIN1 T0 INNER JOIN dbo.ORIN T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.DocDate >=[%0] and T1.DoCdate<=[%1 ]
) InvoicesMinusReturnsDerivedTable
group by slpname, ItmsGrpNam -
Issue in transaction code creation for sap query report .
Hi Gurus,
I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
2) By using parameter transaction options in start object of se93
What are the difference between creation of these two ways. Please specify the advantages and disadvantages of both methods.
Regards,
Suneel Kumar Uggina.Hi Jogeswara Rao,
But I am getting problem while transporting form development system to the production system. After transporting to Production system I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And I would like to know on what conditions should I have to use the First one and as well as a second one in sap query reports.
Thank You,
Suneel Kumar Uggina. -
Multi-query reports in Reports 3.0
When I run multi-query report in Reports 3.0 the report runs
correctly when I first load the report. However, when the report
is run for a second time the sub-queries do not appear to execute
and the report does not give a complete output, if any.
nullHello Mike,
Whenever you work on multi-query reports you have to set all
the relationship within the tables. If you have not specified
then specify within the where clause.
Try this. I hop your problems get solved.
From Subash.
Mike Donnerstag (guest) wrote:
: When I run multi-query report in Reports 3.0 the report runs
: correctly when I first load the report. However, when the
report
: is run for a second time the sub-queries do not appear to
execute
: and the report does not give a complete output, if any.
null -
Query rewrite problem related to FGAC/RLS/VPD
My problem in related to Fine Grained Access Control / DBMS_RLS.
Let's start with a simple example and elaborate further.
Basic problem:
Let's say we have two tables:
create table LEVEL1( L1NR NUMBER not null, TAG NUMBER);
alter table LEVEL1 add constraint LEVEL1_PK primary key (L1NR);
create table LEVEL2( L1NR NUMBER, L2NR NUMBER not null);
alter table LEVEL2 add constraint LEVEL2_PK primary key (L2NR);
alter table LEVEL2 add constraint LEVEL2_FK foreign key (L1NR) references LEVEL1 (L1NR);
I want to convince the database to rewrite a query that looks like this:
A)
SELECT L1.TAG, L2.L2NR
FROM
LEVEL2 L2
INNER JOIN LEVEL1 L1
ON L2.L1NR = L1.L1NR
WHERE
EXISTS( SELECT 1 FROM LEVEL1 L1B WHERE L1B.L1NR = L2.L1NR)
As L2 will be joined to L1 for my human eye and mind
it is obvious that the where clause is redundant,
and the query is equivalent to:
B)
SELECT L1.TAG, L2.L2NR
FROM
LEVEL2 L2
INNER JOIN LEVEL1 L1
ON L2.L1NR = L1.L1NR
Is there any way to convince the parser/optimizer to remove the redundant join?
Why do I have a query like A) and why I cannot rewrite it myself I will explain below.
For those to ask themselves why do I need such a thing let me elaborate.
We develop an application and we want to enforce security on the data at the row level.
The problem is more complicate than my following example, but the example is good enough.
Let's say that we have an application that makes invoices.
We want to give a user the privilege to make reports on the invoices issued for a category of customers.
I see three main ways to enforce row level security on data:
1) At the application level
2) Using views
3) Using Fine Grained Access Control / DBMS_RLS
Choice 1) is more flexible, but it has a major drawback:
You cannot make the database available for reporting with BI/ad-hoc reporting tools.
And also you have to be careful with every query you write. Or create something that takes care of the security, which can be really tricky.
And it also makes report creation for the application difficult since you need to embed the security system into the reporting module.
If you use Crystal Reports or some other reporting tool to build your application report you've got a problem.
Choices 2) and 3) are somewhat similar, but 3) is more flexible
For those who don't know how FGAC/DBMS_RLS works and don't want to dig deeper here is a short explanation:
DBMS_RLS allows the database developer to attach dynamic where clauses to queries.
It does this by rewriting queries like:
"select blabla from employees"
to "select blabla from (select * from employees where <some expression that filters the data according to the user's policy>)"
The filters are attached on a table by table basis, so queries like:
SELECT dept.NAME, empl.NAME
FROM
DEPARTMENT dept
INNER JOIN employees empl
are rewritten to
SELECT dept.NAME, empl.NAME
FROM
(SELECT * FROM DEPARTMENT WHERE <FILTER_DEPT>) dept
INNER JOIN (SELECT * FROM employees WHERE <FILTER_EMP>) empl
So far so good, nothing looks bad, but the devil is in the detail
Back to our reporting problem.
Let's say we have a scenario simpler than life, and I associate the user directly to a customer category by adding a CUST_CAT_ID column to the APP_USER table.
I want restrict the user to see only the data associated to its category (category, customers, invoices, invoice item)
So when he writes "select NAME, ADDRESS from customer" the query is rewritten to
"select NAME, ADDRESS from (SELECT * FROM CUSTOMER WHERE (EXISTS SELECT 1 FROM category join app_user on ... where customer.CUST_CAT_ID = app_user.CUST_CAT_ID and app_user.login = get_current_user()))"
where get_current_user is some framework function that gives me the current user.
A little complicated, but nothing too scary.
But when I write something like:
SELECT <relevant columns> FROM category cat JOIN customer cust JOIN invoice inv JOIN invoice_item item WHERE <some filters>
...(query totally legitimate for a sales report), this gets expanded to a scary query that looks like this:
SELECT <relevant columns>
FROM
(SELECT * FROM category WHERE (EXISTS SELECT 1 FROM app_user u WHERE u.CUST_CAT_ID = CAT_ID AND u.login = get_current_user())) cat
JOIN (SELECT * FROM customer WHERE(EXITS SELECT 1 FROM category JOIN app_user WHERE ...)) cust
JOIN (SELECT * FROM invoice WHERE(EXITS SELECT 1 FROM customer JOIN category JOIN app_user WHERE ...)) inv
JOIN (SELECT * FROM invoice_item WHERE(EXITS SELECT 1 FROM invoice JOIN customer JOIN category JOIN app_user WHERE ...)) item
WHERE
<some filters>
Oops! A query with 4 tables is expanded to a 14 tables query, when all I really need is:
SELECT <relevant columns>
FROM category cat JOIN customer cust JOIN invoice inv JOIN invoice_item item
WHERE <some filters> AND (EXISTS SELECT 1 FROM app_user u WHERE u.CUST_CAT_ID = CAT_ID AND u.login = get_current_user())
Let me tell you that we don't use here roles and privileges tables that we must use in a real life scenario.
In a real life scenario we will easily transform the original query in a 20-30 table join (grrrrrrr).
Well, I cannot change the way DBMS_RLS/FGAC works, and also if I choose to use views I cannot write a filtered view for every possible join that a user might create.
All I want is to find out if there is any way to instruct the parser/optimizer, using primary and foreign keys, optimizer parameters hints and other methods, to rewrite the query and eliminate redundant joins.
Of course I can create some materialized views or bitmap join indexes to help me in the process and speed up the query, but using this method in a database that has hundreds of tables can be a little problem in terms of management and performance.Hello again,
It appeared that, the problem is present only when I try the query in pl/sql developer.
For some reason, even though I set QUERY_REWRITE_INTEGRITY to STALE_TOLERATED, it behaved as this parameter was set to ENFORCED.
So the case was that:
for session - STALE_TOLERATED
for system - ENFORCED
In v$parameter2 against "QUERY_REWRITE_INTEGRITY" was shown "stale_tolerated", but the query was not rewritten.
When I do the same (altering the session and perform the select query) in SQLPlus, everything works as expected - the query is rewritten.
And I conclude the problem is in PL/SQL Developer (my version is 8.0.1.1498) or something related to this.
Edited by: Verdi on 2010-2-12 14:00 -
Download data from query report
Hi All,
I m in a situation where i need to download the report output into an Excel sheet and program needs to run in background.
This is a Query report.
It will be better If anyone can suggest me other then changing the code of Query reoport.
Thanks,
SagarHello Sagar,
First Create One Program in SE38 like normal program.
which is below:
Data: QUERY LIKE AQADEF-QUNAME,
USERGROUP LIKE AQADEF-BGNAME.
CALL FUNCTION 'RSAQ_QUERY_CALL'
EXPORTING
WORKSPACE = ' '
QUERY = 'ZXYZ' " your query Name
USERGROUP = 'ZUSRGRP' " your User Group name
QUERY = 'FUELREPORT'
USERGROUP = 'PMTEST'
DBACC = 0
SKIP_SELSCREEN = ' '
DATA_TO_MEMORY = ' '
FREE_SELECTIONS =
IMPORTING
REF_TO_LDATA =
LISTTEXT =
LIST_ID =
PROGRAM =
USED_VARIANT =
TABLES
SELECTION_TABLE =
LISTDESC =
FPAIRS =
EXCEPTIONS
NO_USERGROUP = 1
NO_QUERY = 2
QUERY_LOCKED = 3
GENERATION_CANCELLED = 4
NO_SELECTION = 5
NO_VARIANT = 6
JUST_VIA_VARIANT = 7
NO_SUBMIT_AUTH = 8
NO_DATA_SELECTED = 9
DATA_TO_MEMORY_NOT_POSSIBLE = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
then
see the final table of your report and use GUI_DOWNLOAD function and pass your all parameter.
In case any problem Let me know.
Have a Nice Day.
Certain appreciation is welcome.
Regards,
Sujeet -
How many ways we can create authorization for user groups in sap query reports
Hi Gurus, I am getting a problem when I am assigning users to user group in sap query report .The users other than created in user groups are also able to add &change the users .So please suggest me how to restrict users outside of the user group.
Please send me if u have any suggestions and useful threads.
Thank You,
Suneel Kumar.I don't think it can be done. According to the link below 'Users who have authorization for the authorization object S_QUERY with both the values Change and Maintain, can access all queries of all user groups without being explicitly entered in each user group.'
http://help.sap.com/saphelp_46c/helpdata/en/d2/cb3f89455611d189710000e8322d00/content.htm
Although I think you can add code to your infoset and maybe restrict according to authority group, i.e.:
Use AUTHORITY-CHECK to restrict access to the database based on user.
Press F1 on AUTHORITY-CHECK to find out how to use it in the code -
Apex - SQL query report.
Hi,
Apex - 4.0 and Oracle -11g
I m having a SQL Query report.
Query
SELECT htmldb_item.hidden(1,id) id,
htmldb_item.select_list_from_query_xl(2,name,'SELECT name ,
deptid
FROM emp
WHERE name like ''E%''') name,
htmldb_item.select_list_from_query_xl(3,deptname,'SELECT deptname from dept where deptid = ???') deptname
FROM tabel
My problem, in the report when the Select list for 'name' has been choosen , then it should retrieve the deptname based on the 'name'.
Is it possible ?you want select list value should affected in SQL report? i mean redirect and set value to SQL report?
-
Coldfusion Query Delay Problem
Folks we are having some intermittent problems with our
application web servers.
We are using coldfusion to serve data from Oracle databases.
SELECT statements only, no updating of the database is done. The
coldfusion application server and the oracle database server are
seperate servers,
The problem we are having is as follows.
When the user opens the app for the 1st time a query is run
to work out what access level they have. 95% of the time the query
is instant. We have been logging this using getticktick()
often the time taken is 0ms we also see 16ms and 31ms. The query
returns
1 row with 1 field in it to size of data returned is not an
issue.
Occasionally we get this query reportedly taking between 5
and 120 seconds using gettickcount() either side of it.
We turned on some logging at the Oracle end and this reported
that EVERY time a query of this type it is taking absolutely no
time all.
Our next port of call was the network. We have sniffed
packets between the coldfusion server and the oracle server.
We managed to trap one of the requests where the response
time is slow and the scenario was as follows :
1. Coldfusion -> Oracle. Hello i've got some work for you
to do. Completed in millisenconds
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged......... delay of 17
seconds (delay times vary)..... it's this query
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
5. Coldufsion -> Oracle. Acknlowledged. completed in
millseconds.
So it appears that internally within coldfusion a delay is
occuring as the database and the network have been eliminated.
The delay time is never the same and can range from a couple
of seconds to over a minute. The times of day that these delays
occur at is not uniform.
The server is busiest between 0800 and 1700. But this server
is NOT under heavy load at all, it is however query intensive. It
is up 24 hours a day and there is a constant user base.
We have tuned all our queries and cached them as best we can.
However i'm not sure how much this helps as we get delays on
queries we know are performant.
We are currently upgrading one of our servers to CF8 using
oracle thin jdbc drivers rather than the odbc to see if this makes
a difference.
If anyone has previous experience of this or knows of
anything settings we need to tweak at a java level that would be
great.
Spec of what we are running is as below :
Windows 2003 Server
Coldfusion MX 7.0.2 Standard
Oracle 10g ODBC Drivers
Any help gratefully received as the users are starting to get
fed up of having these delays for no apparent reason.> 3. Coldfusion -> Oracle Acknowledged......... delay
> of 17 seconds (delay times vary)..... it's this query
Do you mind elaborating here?
It kind of appears as if there are two requests.
Meaning, is it just as correct to state it this way:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged. it's this query.
delay of 17 seconds (delay times vary)
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would guess that
it's a database issue.
Or perhaps this is the more correct way to state it:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in milliseconds.
3. Coldfusion -> Oracle Acknowledged. Completed in ???
4. Coldfusion -> Oracle it's this query. Completed in ???
5. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would think you
need to determine which step took 17 seconds.
Maybe you are looking for
-
How to get list data and bind to data table or Grid view in share point 2010 using j query
hi, How to bind list data in to data table or grid view using Sp Services. How to use sp services in share point 2010 lists and document library
-
Wrong risk creation date in PWA 2010
Hey, We have a weird behavior in PWA 2010. The creation date of some risks in a project site is going crazy. Some risks are OK, but other have a creation date of 30/12/1899. I'm pretty sure PWA didn't exist at that time ;-) Would you know what could
-
Quicktime Will Not Open Caption Files??
I tried to locate this specific issue in the dicussion forums, but did not find sometihng similar or an answer. My apolgies in advance if I overlooked a similar post. I have videos that I have captioned that will not open correctly on other computers
-
while trying to run the jacob.jar we are running into into the following error 'Failed to load mail-class manifest attribute from c:\webutil\lib\jacob.jar' How can this error be trouble shooted, what should we check and verify?
-
Re: Teleoperate the Starter Kit from 20 floors away
I have been trying to open the VIs attached to the blog Teleoperate the Starter Kit from 20 floors away most of which open successfully. However when trying to load 'Starter Kit Remote Reciever.vi' I get messages saying that I am missing two VIs and