Query jump: how to execute trace?
Hi
coul you please suggest me how can I trace the jump from a query to another?
thanks for the cooperation!
Stefania
Please see the documentation for OLAP trace.
http://help.sap.com/saphelp_nw04/helpdata/en/cb/f91c3d2b058c4ce10000000a114084/content.htm
Thanks.
Similar Messages
-
How to execute this SQL Query in ABAP Program.
Hi,
I have a string which is the SQL Query.
How to execute this sql Query (SQL_STR) in ABAP Program.
Code:-
DATA: SQL_STR type string.
SQL_STR = 'select * from spfli.'.
Thanks in Advance,
VinayHi Vinay
Here is a sample to dynamically generate a subroutine-pool having your SQL and calling it.
REPORT dynamic_sql_example .
DATA: BEGIN OF gt_itab OCCURS 1 ,
line(80) TYPE c ,
END OF gt_itab .
DATA gt_restab TYPE .... .
DATA gv_name(30) TYPE c .
DATA gv_err(120) TYPE c .
START-OF-SELECTION .
gt_itab-line = 'REPORT generated_sql .' .
APPEND gt_itab .
gt_itab-line = 'FORM exec_sql CHANGING et_table . ' .
APPEND gt_itab .
gt_itab-line = SQL_STR .
APPEND gt_itab .
gt_itab-line = 'ENDFORM.' .
APPEND gt_itab .
GENERATE SUBROUTINE POOL gt_itab NAME gv_name MESSAGE gv_err .
PERFORM exec_sql IN PROGRAM (gv_name) CHANGING gt_restab
IF FOUND .
WRITE:/ gv_err .
LOOP AT gt_result .
WRITE:/ .... .
ENDLOOP .
*--Serdar -
Does any one know how to execute program in Jump developer desktop
hi,
Does any one know how to execute program in Jump developer desktop,
actually i copied the hello world project from my eclipse workspace to jump
developers workspace and once i run the program it asks for the main class
and then i gave main class as my HelloWorld Class,it generates error as
java.lang.NoSuchMethodError: main
Exception in thread "main"
Can any one help me to come out of this problem.....
Thanks
MRaji solved it,
thanks
MRaj -
How to execute an SQL query present in a string inside an ABAP program?
hello,
How to execute an SQL query present in a string inside an ABAP programRaut,
You can execute Native SQl statements.
Ex: To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:
EXEC SQL [PERFORMING <form>].
<Native SQL statement>
ENDEXEC.
There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.
In Native SQL statements, the data is transported between the database table and the ABAP program using host variables. These are declared in the ABAP program, and preceded in the Native SQL statement by a colon (:). You can use elementary structures as host variables. Exceptionally, structures in an INTO clause are treated as though all of their fields were listed individually.
If the selection in a Native SQL SELECT statement is a table, you can pass it to ABAP line by line using the PERFORMING addition. The program calls a subroutine <form> for each line read. You can process the data further within the subroutine.
As in Open SQL, after the ENDEXEC statement, SY-DBCNT contains the number of lines processed. In nearly all cases, SY-SUBRC contains the value 0 after the ENDEXEC statement. Cursor operations form an exception: After FETCH, SY-SUBRC is 4 if no more records could be read. This also applies when you read a result set using EXEC SQL PERFORMING.
EXEC SQL PERFORMING loop_output.
SELECT connid, cityfrom, cityto
INTO :wa
FROM spfli
WHERE carrid = :c1
ENDEXEC.
Pls. Mark If useful -
How to execute SQL Query in Code behind Using infopath 2010?
Hi,
I've repeatable on infopath form, and want bind it throuth code behind from SQL table. My question is that how to execute SQL Query in code behind from infopath as well as how would get Query result to bind repeatable control?
Thanks In Advance
Shoeb AhmadHello,
You first need to add new SQL DB connection then you need execute connection from code behind.
See below link to create new connection
http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx:
http://www.bizsupportonline.net/infopath2010/connect-infopath-2010-sql-server-2008-table.htm
Then use below code to execute this connection:
AdoQueryConnection conn = (AdoQueryConnection)(this.DataConnections["Data connection name"]);
string origCommand = Select * from tablename;
conn.Command = origCommand;
conn.Execute();
Finally bind your table:
http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
http://stevemannspath.blogspot.in/2010/09/infopath-20072010-populate-repeating.html
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to execute the content of varchar variable like a simple query
Hi everyone!
I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
in the procedure I have several sentences.
I thought that the command 'execute immediate' would get a good result but it do not print the result.
declare
variable varchar2(1000);
begin
--sentences
--execute inmmediate( variable );
--return variable
end;
I only want to how to execute the content of varchar variable.
For example, suppose that the result of this procedure is
'SELECT SYSDATE FROM DUAL'
How and what do I must do for this query execute like a normal query that is in apex?
I expect your prompt reply.
Thank you for your help.
Best regardsLet us say your table containing SQL is
t_sql_table
and has two columns
primary_key
and
sql_query.
You would need to do the following:
1. Create a Report of type "Function returning SQL Query"
2. Put the following there:
DECLARE
v_query VARCHAR2 (4000);
BEGIN
SELECT sql_query
INTO v_query
FROM t_sql_table
WHERE primary_key = 1;
RETURN v_query;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How to execute an sql function containing a SELECT query as paramete
Hi
I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
select dbms_xmlgen.getxml(select * from departments) from dual
please some one help with appropriate java code to execute it.
Thank you>
I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
select dbms_xmlgen.getxml(select * from departments) from dual
please some one help with appropriate java code to execute it.
>
Java code? You can't execute that query at all since it is invalid. The parameter needs to be a query string NOT a query.
select dbms_xmlgen.getxml('select * from departments') from dual See the DBMS_XMLGEN package in the docs
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_xmlgen.htm#i1013206
>
Converts the results from the SQL query string to XML format, and returns the XML as a temporary CLOB, which must be subsequently freed using the DBMS_LOB.FREETEMPORARY call:
DBMS_XMLGEN.GETXML (
sqlQuery IN VARCHAR2,
dtdOrSchema IN number := NONE)
RETURN CLOB;
>
Then you execute that query like any other query that returns a result set. The result set will consist of one row and one column of CLOB datatype.
See the JDBC Developer's Guide - it has examples of how to execute queries that return result sets.
And this section shows how tow read/write CLOBs
http://docs.oracle.com/cd/B28359_01/java.111/b31224/oralob.htm#sthref755 -
How to execute immediately a query in a form
Hi,
I've got a form which opens another form on which I have created a data block based on a FROM clause query where the where clause has a column joined a GLOBAL variable initialized in the first form.
How can I get the second form execute immediately the FROM clause query when called from the first form?
I've tried to insert in the second form called a trigger WHEN-NEW-FORM-INSTANCE where I have the following code.
BEGIN
GO_BLOCK('my_block');
EXECUTE_QUERY;
END;
I thougth that the EXECUTE_QUERY executed by default the FROM clause query I've inserted in the Query Data Source Name of the Data Block but I don't see anything when the second form is called by the first form, just the message "FRM-50505 unable to perform query" I've tried to perform the query inserted in the Query Data Source Name executing it directly on the DB and it works
Thanks!
Edited by: Mark1970 on 30-mar-2012 3.07check from menu or display error to see why do you obtain an error
-
How to execute a update query when the particular date changes
hi all,
i am using date base 11.1.0.6.0,
i am trying a small update query it should fire when particular date changes in year.
i think for trigger but i didn't get how to execute it.
Regards,
PavanHi, Pavan,
Use dbms_scheduler to run a procedure at a given time (or at repeatedly, at given times).
A trigger is good for re-acting to certain actions in the database, someone INSERTing a row in a given table, for example. Nothing will necessarily be happening when you want your procedure to run, so a trigger is not good in this case. -
How to execute the content of varchar as query
Hi everyone!
I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
in the procedure I have several sentences.
I thought that the command 'execute immediate' would get a good result but it do not print the result.
declare
variable varchar2(1000);
begin
--sentences
--execute inmmediate( variable );
--return variable
end;
I only want to how to execute the content of varchar variable.
For example, suppose that the result of this procedure is
'SELECT SYSDATE FROM DUAL'
How and what do I must do for this query execute like a normal query that is in apex?
I expect your prompt reply.
Thank you for your help.
Best regardsErik,
Try dropping this into a PL/SQL region
DECLARE
v_result VARCHAR2(500);
BEGIN
SELECT SYSDATE
INTO v_result
FROM DUAL;
htp.prn(v_result);
END;
{code}
use the htp.prn command to write html you want to display. In this case we are just writing the date to the screen.
Good luck,
Tyson -
How to execute query to store the result in the target table column ?
Hi
Source: Oracle
Target: Oracle
ODI: 11g
I have an interface which loads the data from source table to target. Some of the columns in the target tables are automatically mapped with source table. Some of the column remain un-mapped. Those who remain un-mapped, I want to load the values in that column by executing an query. So can anybody tell me where I should mention that query whose result would become the value of the specific column.
-Thanks,
ShrinivasActually I select the column from the target table then in the Property Inspector-->Mapping properties-->Implementation
tab I have written the query which retrieve the value for that column. Is the right place to write the query? How can do this ?
-Shrinivas -
Hihaving a query like that who has done the Transport? How can i trace who
having a query like that who has done the Transport? How can i trace who has done the transport (Import).
I have tried with following steps but unable to find the right person.
1. Go to TMS and disply the appropriate queue.
2. Select menu path: Goto>Import History.
3. Select menu path: Edit> Dipaly More.
4. This will give the the "User" column.
But my problem is the transport has happened long back. is there any other way to find out old import request who has done the transport.
Please someone help me out on this.Do this may it can help you.
At the last step where you had given "diaplay more"
do this inspite of that:
Extras --> Personal Settings
Check the option "Query Interval Time" and try again.
Best of luck !!! -
Please help on how Bex execute the query designed in query designer.
Hi All,
Want to know how bex execute/interpret the query when the query is execute in analyzer.
I mean which part of the query is executed first, like filter,RKF or CKF etc.
Want to do step by step analysis .Please suggest on this.
Thanks & Regards
Sameer KhanHI,
When u execute the query...It will fetch the Global filters data first ....means filters on Default values....then restrictions on Char Restriction pannnel....Then calculate the RKF and CKF,s....Conditions and Exeptions etc.......
Thanks -
How to execute sql query stored in a variable
Hi
define query = 'select * from abc;'
then how to execute this defined variable query.
Thanks,
ShyamEXECUTE IMMEDIATE mmy_sql --(variable
INTO mmy_default_bill_type;
by kumar. -
How to execute the CONNECT command in sql
Hi ,
I am using DB2 database and I need to execute the sql statement
CONNECT TO Database user username USING password.
Can anyone tell me how to execute this query in java.
I tried this by using executeQuery but it was giving a sexception somtehing as follows
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0637E QUERY cannot be found.
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwInvalidQueryError(SQLExceptionGenerator.java:577)
at COM.ibm.db2.jdbc.app.DB2Statement.executeQuery(DB2Statement.java:597)
at First.detail(First.java:18)
at First.main(First.java:29)
can anyone of you help me out in solving this problemYou need a connection to use JDBC stuff. When you have a connection, you are already logged in. There is no need for a query to connect.
Maybe you are looking for
-
what do i do
-
InDesign CS4 wrong UI language for non-admin users
Hi! I work in the IT department of a large company and we have some trouble with our Indesign CS4 installations. We have all the adobe products in our local language (Swedish) and it works perfectly when logging into a computer with admin rights. But
-
Issues importing AVI files into iPhoto
Hi there, I am trying to import the videos I've taken with my Olympus Digicam over the weekend into iPhoto but for the longer ones it doesn't work. When I select the movies to import it looks like it's doing it but then, after a while, iPhoto display
-
OracleDataAdapter.FillSchema - mapping types in db to DataTable types
OracleDataAdapter.FillSchema(table, Source) will configure a DataTable to match a table in database schema. How does FillSchema map types in the db schema to types associated with the DataTable columns? E.g. if the db column is NUMBER(2,0) the DataTa
-
Decompile JAR , Update .Class file , Compile?
Is it possible to decompile a excutable JAR file, update the .class file and compile it again? I'm using DJ Decompile software. Need your expertise.. =P