Unable to use two SQL choices Input parameters in Production Reporting 9.0
Hi Experts, <BR>I am unable to use two parameters as SQL Choices in Production Reporting. When i use only 1 SQL Choice parameter, it works fine but when i use more than one SQL Choice parameter, it gives error. It works fine in Production Reporting Server but when i publish it on System9 workspace, it doesn't work.<BR><BR>any help would be appriciated.<BR><BR>Thanks & Regards<BR>Arpit Shanker
Azeroth wrote:
@Twinkle.. it doesnt work
SQL> create table ignore_columns
2 (a varchar2(90),
3 b varchar2(90));
Table created.
SQL> CREATE OR REPLACE PROCEDURE
2 input_columns
3 (
4 table_name IN user_tab_columns.table_name%TYPE,
5 column_list IN VARCHAR2
6 ) IS
7 stmt VARCHAR2(3000);
8 BEGIN
9 stmt := 'INSERT INTO ignore_columns VALUES (:1,:2)';
10
11 EXECUTE IMMEDIATE stmt using table_name,column_list;
12
13 END;
14 /
Procedure created.
SQL> execute input_columns('HELL', 'HELLO');
PL/SQL procedure successfully completed.
SQL> select * from ignore_columns;
A
B
HELL
HELLOTwinkle
Similar Messages
-
Error when using Analytic view with Input Parameters
Hi,
I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
Has anyone faced similar issues?
We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
ThanksHello George,
I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
Thanks, -
Can some selection conditions as PL/SQL procedure input parameters
Dear All,
I need to write a PL/SQL procedure so as to compute the different query only by changing the input parameters. But those input parameters need to be like a PL/SQL table selection conditions. Like:
one of the query I need two conditions:
customers.zip = 60606
customers.zip = employees.zipMy procedure can compute the query like:
select customers.cno, cname, employees.eno, ename
from customers, orders, employees
where customers.cno = orders.cno and
employees.eno = orders.eno and
C;
where C is the conjunction of the conditions in the input parameter.
Please help and thanks in advance!Well, it's easy enough to do what you want....
SQL> conn scott/tiger
Connected.
SQL> CREATE OR REPLACE FUNCTION flexi_q (pn_deptno IN NUMBER, pv_string IN VARCHAR2 := NULL)
2 RETURN sys_refcursor AS
3 return_value sys_refcursor;
4 BEGIN
5 IF pv_string IS NULL THEN
6 OPEN return_value FOR SELECT * FROM emp WHERE deptno = pn_deptno;
7 ELSE
8 OPEN return_value FOR 'SELECT * FROM emp WHERE deptno = :1 AND '
9 ||pv_string USING pn_deptno;
10 END IF;
11 RETURN return_value;
12 END;
13 /
Function created.
SQL> var rc refcursor
SQL> exec :rc := flexi_q(30)
PL/SQL procedure successfully completed.
SQL> print rc
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300
30
7698 BLAKE MANAGER 7839 01-MAY-81 2850
30
7900 JAMES CLERK 7698 03-DEC-81 950
30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400
30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500
30
6 rows selected.
SQL> exec :rc := flexi_q(30, 'SAL > 1400')
PL/SQL procedure successfully completed.
SQL> print rc
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300
30
7698 BLAKE MANAGER 7839 01-MAY-81 2850
30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
30
SQL> The real question is: do you really want to do this? Fundamentally you are handing over control of your app to any nimrod who thinks they know how to write SQL. It's just about allowable for them to add simple restrictions but they could add in anything - correlated sub-queries, extravagant sorts, etc. Even if they don't deliberately exploit this hole you still have a fundamentally untunable part of your app.
It would be much better to have some additional parameters that allows the users to choose from several off-the-peg queries. If you have a user demanding the ability to write "any report I need" I recommend talking to them. The chances are they simply have a pet query, probably embodied in an Excel spreadsheet, they run once every month. Give them a view to meet that need and they'll be happy.
Cheers, APC -
Unable to use PL/SQL Debugger, Production SQL Developer on OS X 10.4
I am still unable to use the PL/SQL debugger in OS X.
When I start the debugger I get this:
Connecting to the database testdb.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '172.16.81.33', '49260' )
Debugger accepted connection from database on port 49260.
Processing 56 classes that have already been prepared...
Finished processing prepared classes.
Then nothing, it never gets to a breakpoint or does anything else. It works just fine on my Win XP box, just not on my OS X machine.
Anyone having this problem or have any tips to try? I've never gotten the debugging to work on any Raptor or SQL Developer build in OS X. However, JDeveloper debugging works just fine on this mac.I am also experiencing this problem.
Perhaps the following excerpt from the console can shed some light on the problem.
Exception in thread "JPDA Event Processor" java.lang.VerifyError: (class: com/sun/tools/jdi/OracleReferenceTypeImpl, method: <init> signature: (Lcom/sun/tools/jdi/ReferenceTypeImpl;)V) Bad access to protected data
at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
at java.lang.Thread.run(Thread.java:613) -
Good day,
I searched through the forum and cant find anything.
I have around 300 published reports on SSRS and we are busy migrating to a new system.
They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
Your assistance is greatly appreciated.
I thank you.
Andre.There's no straightforward method for that I guess. There are couple of things you can use to get these details
1. query the ReportServer.dbo.Catalog table
for getting details
you may use script below for that
http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Unable to use custom SQL query in report
Hi all,
I am newbie to OBIEE
I try to write a customized sql in one of the report in OBIEE answers.
No error is thrown when I click on "Set SQL" button.
But, when I try to click on "Result" tab, I get the below error message,
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: count(AS_SALES_LEADS.STATUS_CODE by [ ] ). Please fix the metadata consistency warnings. (HY000)
The same query I try running in Toad and it is not throwing any error, but running successfuly.
Kindly help me on this.
Regards,
Shivakumar AThank you very much for your time.
Below is the query I used,
SELECT saw_0."1", saw_0."2", saw_0."3"
FROM (SELECT COUNT (c.status_code) "1", COUNT (a.status) "2",
COUNT (c.accept_flag) "3"
FROM table1 c,
table2 g,
table3 f,
as_leads a
WHERE f.sales_group_id = g.sales_group_id
AND a.lead_id = c.sales_lead_id
AND a.customer_id = f.customer_id) saw_0
Result I get when run in Toad,
Col1 Col2 Col3
1234 43534 6787
But, the same when I put in advanced sql tab, I get the below error message,
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: count(AS_SALES_LEADS.STATUS_CODE by [ ] ). Please fix the metadata consistency warnings. (HY000)
Please do help me on this.
Hope the above information is enough for getting an idea what I am stuck up with.
Edited by: 961805 on 17 Oct, 2012 3:56 AM -
Unable to use two af:tables with differing coloring (skins)?
Im trying to configure the Siebel Self-Services application and customize the skinning. I have some problems though, because i need to show two af:tables on the same page, but with different coloring. One with black background and white text (both header and body) and one with white background and black text. I have tried to use styleClass:es, but the css parameters set for the af table are overriding the ones set in the stylesheets.
Anyone having an idea how to overcome this?
Thanks
/Jon-ErikHi,
if the styleClass name is table1 then the skin selector would be something like
.table1 af|table
or .afTable.af|table
I don't see how this can be overriden. If you assumption is that the style class reference must be to a CSS definition on the page then this indeed does not work. The styleClass name is kind of a named identifier for the component to skin and is used to further qualify the component to skin
Frank -
RFC WHICH CAN USE DYNAMIC SQL AS INPUT AND SHOW COMPLETE DATA FOR TABLE
Hi Expert,
I am trying to create a FM like RFC_READ_TABLE. In this table we put table name and the field name for which we write a query and option for query we get the out put only for that field in this case.
My requirement is very similar to this. But here i want to enter any table name and in option i want to write dynamic sql query for any filed of table then i want data based on this so that it will display the entire table entries.
Like TABNAMELIKE EKKO
OTHERCON bukrs_k = 3000.
Based on this selection it has to show the entire table fields.
To make this easy to understand i made a custom FM which are getting data from table or view and i select any field and put query it will show the result.
FUNCTION ZDYNSQL_EKKO_EKPO.
""Local Interface:
*" IMPORTING
*" VALUE(ERNAMLIKE) TYPE CHAR15 OPTIONAL
*" VALUE(OTHERCON) TYPE CHAR50 OPTIONAL
*" TABLES
*" VALUE STRUCTURE V_EKKO_EKPO
*TABLES : V_EKKO_EKPO, EKKO, EKPO.
DATA: STR_WHERE TYPE TABLE OF EDPLINE.
DATA: STR_LINE TYPE EDPLINE.
*CONCATENATE 'EBELN LIKE''' EBELNLIKE '%''' INTO STR_LINE.
CONCATENATE 'ERNAM LIKE ''' ERNAMLIKE '%''' INTO STR_LINE.
IF OTHERCON <> ' '.
CONCATENATE STR_LINE 'AND' OTHERCON ' ' INTO STR_LINE SEPARATED BY SPACE.
ENDIF.
APPEND STR_LINE TO STR_WHERE.
SELECT * FROM V_EKKO_EKPO INTO CORRESPONDING FIELDS OF TABLE VALUE WHERE (STR_WHERE).
ENDFUNCTION.
Now here is sample code of exact requirement.
FUNCTION ZDYNSQL_TABLE_READ.
""Local Interface:
*" IMPORTING
*" VALUE(TABNAMELIKE) TYPE DD02L-TABNAME
*" VALUE(OTHERCON) TYPE CHAR80 OPTIONAL
*" TABLES
*" VALUE STRUCTURE DD02L
DATA: STR_WHERE TYPE TABLE OF EDPLINE.
DATA: STR_LINE TYPE STRING.
CONCATENATE 'TABNAME LIKE ''' TABNAMELIKE '%' 'DD02L' 'TABNAME' INTO STR_LINE.
IF OTHERCON <> ' '.
CONCATENATE STR_LINE 'AND' OTHERCON ' ' INTO STR_LINE SEPARATED BY SPACE.
ENDIF.
APPEND STR_LINE TO STR_WHERE.
SELECT * FROM DD02L INTO CORRESPONDING FIELDS OF TABLE VALUE WHERE (STR_WHERE).
ENDFUNCTION.
In this i put table name as EKKO and put sql query as bukrs_k = 3000 it provide a short dump.
How can i solve this problem. Please provide some input or modification
Thanks And Regards
Ranjeet SinghHi Kris,
I tried to make sample using that link you provide to me. How can i declare Global Interface in FM and in import parameter references like "REFERENCE(I_INTERFACE_CHECK) DEFAULT SPACE".
Also it uses a function-pool.
Let me tell you about my exact requirement about FM.
I want in import parameter input as any SAP Table name like
TABNAME TYPE EKKO
OPTIONS TYPE CHAR80
I want my output to be stored in TABLES attributes as per the table name entered in import parameter. In import parameter Table name can be any one of SAP tables and Option based on that particular table. Like if i go with table EKKO and put OPTIONS as
ebelp = 4 then TABLES attributes Tab contains all the relevant data for input.
Is there any way with the help of that i can put my data into internal tables. I tried to put in TABLES as VALUE LIKE ANY but it shows that generic are not allowed. Can you provide some sample on this.
I also getting exceptions like CX_SY_DYNAMIC_OSQL_SEMANTICS, SAPSQL_INVALID_FIELDNAME.
Waiting for your valuable reply.
Thanks And Regards
Ranjeet Singh -
Unable to use two wireless devices at same time
Unable to connect an HP Laserjet 1320 thru the JetDirect ew2400 External Print Server to an imac G5 that uses the 2WIRE352 (wireless) modem for ISP access thru ATT. Either the ISP is connected and printer does not work, or the printer works but no internet access. HP Tech Spt (after 1hr 15 min.) said I need to change/access the "infrastructure" in the OSX. Is that correct? & if so, how do I do this? Do I need to hire Apple Tech Support to do this? How much will that cost. I'm ready to send the Print Server back to HP for a refund.
Infrastructure mode means the print server joins the router's local network instead of having a separate computer-to-print server (called ad hoc mode) network. I think you need to read the print server manual on how to do that.
-
Unable to use PL/SQL Developer on Oracle 10g express edition
Hello,
i have installed oracle 10g XE and PL/SQL developer 8.
The contents of .ora files are as follows
tnsnames.ora file:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pravindasari)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = pravindasari)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
i am able to login thru database home page.
When connecting to oracle through PL/SQL developer, m using the following details
username: system
pwd: system
database: XE
connect as: Normal
But i get the error as follows:
ORA-12154: TNS: could not resolve the connect identifier specified
Its working completely fine on my desktop which has windows XP, bt having problem while logging on laptop which has windows 7 home edition.
Please help me how to login thru developer.....
Edited by: user9243989 on Jun 13, 2010 12:36 AMSet the environment variable ORACLE_HOME to point to the XE database.
-
Using a SQL user-defined function in Crystal Reports XI
Post Author: JoannKarp
CA Forum: Formula
Is it possible to use a user defined function in SQL and use this in multiple Crystal reports?
JoannKarpSELECT COALESCE(ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712),ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712)) AS Zipcode
FROM table1
Nope. This is two function calls. coalesce(a, b, c, ...) is just syntatic sugar for
CASE WHEN a IS NOT NULL THEN a
WHEN b IS NOT NULL THEN b
WHEN c IS NOT NULL THEN c
END
But if you use isnull it's a different matter. (But isnull() permits two arguments.)
Erland Sommarskog, SQL Server MVP, [email protected] -
Using a StoredProcedure with OUT parameters in CrystalReports
Hi All,
I am creating a report using CrystalReport Designer 2008.I have a StoredProcedure which takes 2 input parameters,2 output parameters and a cursor.I am not able to add this SP directly using the DatabaseExpert. if I use
'call SP1(input1,input2,input3,input4,@output1,@output2)' from AddCommand option then it gets added as a Command but the tree under Command does not expand and it does not allow me to use the output parameters in my reports.
Hence,can anyone please help me here such that how should I use this SP with out parameters in my CrystalReports.Also note that I am able to use StoredProcedure with only input parameters,with input parameters and cursor in my CrystalReports.Should I do something extra to add this StoredProcedure in my CrystalReports?
Any help for this issue would be highly appreciated.
Regards.
AjitAjit,
If you are using a Command, you execute a SP in CR with the same syntax that you would in the databases native environment.The only difference is that you'll need to add CR parameters so that the inputs can be added to the SP's input parameters.
So, using your example... 'call SP1({?input1}, {?input2}, {?input3} , {?input4}, output1, output2)'
I'm not familiar with this particular syntax but hopefully you get the idea.
If you want to hard code the input parameters (and not have them prompt in CR), just hard code them in the command.
HTH,
Jason
Edited by: Jason Long on Aug 25, 2010 2:15 PM -
REP-0756: Warning: Unable to find PL/SQL library 'FARSV' and 'fadolif'
I would like to compile a modified report using Report Builder 6.0.8.11.3 for OFS ver 11.5.10.2, and I got this error message:
during load report
REP-0756: Warning: Unable to find PL/SQL library 'FARSV'
REP-0756: Warning: Unable to find PL/SQL library 'fadolif'
during compilation
identifier 'FA_RSVLDG' must be declared
identifier 'FADOLIF' must be declared.
Following this url: http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/oracle-reports-customisation-for-oracle-financials-11i-108537
i have tried:
download the FARSV.pll and fadolif.pll from $AU_TOP,
from regedit, it shows that the (the key: HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\HOME4, the report builder is executed from C:\OracleDeveloper\BIN\RWBLD60.EXE)
FORMS60_PATH=C:\OracleDeveloper\TOOLS\OPEN60\PLSQLLIB
REPORTS60_PATH="C:\OracleDeveloper\REPORT60\ADMIN\TEMPLATE\US;C:\OracleDeveloper\REPORT60"
i put the files in one of the above directory, the errors during load is no more, but errors during compilation still there..
i put the files in all three directories, the errors during load is no more, but errors during compilation still there..Hi,
I would like to compile a modified report using Report Builder 6.0.8.11.3 for OFS ver 11.5.10.2, and I got this error message:Custom report or seeded one?
For the REP-0756 error, please see these docs.
Note: 837288.1 - REP-0756 unable to find PL/SQL Library when generating Oracle Application Reports
Note: 337302.1 - Error REP-0756 Unable to find PL/SQL library 'inv.pll' when Opening Report POXPRPOP in Reports Builder
For the ""must be declared", what kind of change in the code you have done?
Thanks,
Hussein -
Provide Input Parameters when called only from a TCODE
Hi Experts,
I have a requirement where in we need to provide a input parameters for a report when it is triggered from a TCODE.
When this program is executed in SE38, the input parameters should not be available. The report takes a default value which is
defined in the program.
We need use the same program when called using the TCODE, as well as from SE38.
Looking for a early response.
Thanks in advance.
Regards,
Kumar.>
saravanau wrote:
> The program willl be scheduled everyday which will take the default date.
In case of Background processing SELECTION-SCREEN will not be displayed so you don't have to worry about it.
For retriving data for a particular date i need to provide user input screen. This will be done through ZTCODE.
You would schedule the job on a daily basis in SM36 & for individual dates you'll access the report via the T-Code. So where does SE38 come into the picture?
@Marcin: If SY-BATCH = 'X', i don't think SELECTION-SCREEN will be available
BR,
SUhas -
How to bind/pass multiple input parameters to sql query in BPEL Process
Hi,
I have a requirement to invoke a query on a database table to fetch the records based on the few input values or bind variables?
I have created a Partner link using the DBAdapter service and have used custom SQL, how can i bind and pass multiple bind/input parameters for these queries.
foreg: if i have to query employee records based on name , desgination and age, these three params would be my input parameter that i will pass when i invoke the BPEL process, bow how can i pass these parameters to the partner link using DBADAPTER service.
Please help
RegardsIf the parameter-value is not known beforehand and cannot be determined based on the process instance data at that time, there are 2 options. Either invoke the PL/SQL procedure you named using a DB adapter service to get the value and pass it to the other DB adapter service. Or create a single service (e.g. PL/SQL procedure) that determines the parameter value, executes the query and returns the result. However, this is more a design issue. Does it makes sense to combine these actions in a separate service and use it or are these actions not related? You furthermore state that additional (DB adapter) services make the process heavier. Do you have strict requirements on the time process-instances may run or other such requirements? If not, I think the design-choice on whether combining these actions in a single service should have more priority.
Maybe you are looking for
-
Where and what kind (brand) of external, mobil hard drive can I get to back up my PowerBook G4 without the Intel processor? I have 93GB of Memory and operating system OS X 10.5.8. Thank you.
-
My new (second-hand) iphone 4s will not charge. What do I do?
Please help. My new (to me, but second-hand) iphone 4s will not charge. What do I do?
-
SCCM console crashes when starting remote tools
I use SCCM console on 2 different Windows 7 computers. The working one is x86 and the non-working one is x64. The nonworking one is my main computer which is x64. It has worked in the past. So it is not a user permissions issue. When I try to use rem
-
Hello , In my scenario when i click on a particular transaction an IE browser is opened which asks for usr/pwd . How to handle this in eCATT ? do i need to use another tool for recording the Browser or eCATT handles this issue, the test case says as
-
Hi there, I've recently switch from Windows to Mac and I am also in the process of getting to know the ins-and-out of Lightroom 1.1. I really like it!! My question is about external harddrives in combination with Lightroom. I have one external Lacie