Queries using Sq01
hi all,
what kind of Queries do they normally ask us to prepare using SQ01. i need some examples . with field names in it.
i know the procedure but in real time what kind of queries they are looking for. i need only examples with fields and tables.
thanks
[email protected]
yes swathi normally a need of report comes
only when it is not there in standard SAP other wise there are many reports available in SAP ...in few cases i saw the consultant SD or MM just gave the ABAPER to generate a report whcih was already there in standard y did they do so on questiong they told tht they just dnt knw they have one standard report mathcing theri crieteria
anyways apart from tht ....normally in SD ur v/ld and va05 serves u most puposes just u need to take the columns relevant to u and paste in ur wrdpad .....
apart from standads
there was this report of generating confirmed orders ...
measn they want to get the list of confirmed orders ,.,,, ok for this u need to knw the tables VBEP n VBAP , VBAK pick the order num item in it and confirmed date n qty
ok another is top 15 customers ......pick top 15 customres based on the business done
u need vbak,( netpr ) kna1 cmr n the list of CMR in tht top 15 simple ABAP logic
ok i think these wld help u ........if yes then reward points in left column to this ans..
thanks
Similar Messages
-
How to regenerate SAP Queries using SQ01
Hi Gurus
I have encoutered below error after Upgradation from ECC 5 to ECC 6.0
"LOAD_PROGRAM_NOT_FOUND"
"Program "AQQOZSEA_FI=====ZSEAPAYMENT=== " not found"
Kindly guide me how to regenerate SAP Queries
Regards
AMKHi,
If you can see the query in SQ01. Then in the main screen, select the query. From the menu select: Query -> More Functions -> Generate program.
This should bring it back.
If the query gives some other error after this, select Query -> More Functions -> Adjust.
Cheers. -
Currency Translation Type in queries using currency conversion
I have a question on the Currency Translation Type (EUR_VAR) that is used in all of the queries using currency conversion on the fly. (currency is maintained automatically nor in table.)
User wants to use 2 different exchange rates in a single query. The months in 2010 (Actuals) are to
be converted using Xchangerate-type EURO and the months in 2011 (Planned) to use Xchangerate-type USD.
But store different rates with different starting dates. This is however not possible because the Currency Translation
Type is set-up (1) to work with Query Key date - rather than a characteristic in the data and (2) apparently these
currency translation types only work with time characteristics like 0fiscyear
My idea is therefor to:
1. Create a new variable (similar to EXC_RATE) to prompt for a 2nd Exchange Rate type when query starts
2. Create a new Currency Translation Type (next to EUR_VAR), referencing the new variable or sticking to fixed Xrate type, fixed to EUR
Is this possible to create Idea (2)
Many Thanks in Advance.The best way would be to create two curr conversion types , one converting to EUR and other to USD .Put them in properties of coressponding KFs in query.For timref in RSCUR , variable time ref can be used individually for two conv types.
-
How to find out the top 20 queries used in a week
Hi Guru's,
I would like to know how to gather the information regarding the Top 20 queries used in the system per week, by a multicube.
Note: I am using BI 7.0 and also Statistics are turned on.
The aim is to pre-calculate these queries at night to help with the user experience.
Thanks and regards,Hi
U can check in RSZCOMPDIR if u did not find the info then go to se11 and give RSZ* and press F4 u will get all the tables which relates to reports
Assign points if it helps
Khaja -
Poor performance of BLOB queries using ODBC
I'm getting very poor performance when querying a BLOB column using ODBC. I'm using an Oracle 10g database and the Oracle 10g ODBC driver on Windows XP.
I create two tables:
create table t1 ( x int primary key, y raw(2000) );
create table t2 ( x int primary key, y blob );
Then I load both tables with the same data. Then I run the following queries using ODBC:
SELECT x, y FROM t1;
SELECT x, y FROM t2;
I find that the BLOB query takes about 10 times longer than the RAW query to execute.
However, if I execute the same queries in SQL*Plus, the BLOB query is roughly as fast as the RAW query. So the problem seems to be ODBC-related.
Has anyone else come across this problem ?
Thanks.Hi Biren,
By GUID, are you referring to the Oracle Portal product? -
Very Urgent..How to create a report Using SQ01 and Sq02.
Hi Friends,
It's very urgent.pl help me in generating a report using SQ01 and SQ02.
Help is appreciated.
thanks In advance.
Regards,
Nanditha.Check out these links...
http://www.insightcp.com/res_15.htm
http://www.ams.utoronto.ca/Assets/output/assets/adhoc_2990830.pdf.pdf
Also, do basic search in this forum...you will find a lot of threads related to this.
SKR -
Transport Query generated program using SQ01
Dear All,
Please let me know how to transport a query generated program using SQ01. I have created a program from SQ01 query creation and assign a tcode to this program. When the program was generated there was no request create so how to make a request to transport this generated program to PRD.
Thanks in advance.Hi,
for query transport (export/import or download/upload (which I prefer because it can be done between different SAP systems where no transport mechanism exists)) go to SQ02 and tick the button that looks like a car.
The t-code assignment (and maybe the the T-code is added in an area menu using SE43) needs to be transported seperately (if you use downlaod/upload as this does not create a transport request.
best regards, Christian -
Hi Gurus,
Is there a quick way to find which queries use a particular Key Figure?
The where-used-list on the key figures does not give the list of queries. It gives Cubes/ODSs etc. which are using that keyfigure (I want to avoid the hardway of searching all the queries manually for each info-provider).
Is there an underlying table that would directly give me the list of queries that use a particular keyfigure?
Please let me know,
Thanks,
ATThere are a couple of different ways to do a where-used on a key figure in BI. One method gives you a tree view that doesn't include queries, the other gives you a list view that does include queries. It sounds like you've seen the tree view which is accessed by clicking the where-used button in the display of the key figure.
To get the latter display the key figure in RSA1 or RSD1 and then from the menu choose Edit --> Where-used list. This will show you what you want. -
I am struggling to learn to create queries(using variables)
Hi all,
I am struggling to learn to create queries(using variables)
I want to learn from basics to all existing technics.
(eg of each variable types and process types).
if you have any docs please mail to <REMOVED>.
thanks,
BW Chetacheck these links.
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
http://help.sap.com/saphelp_nw04/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
http://help.sap.com/search/highlightContent.jsp
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
thanks
kevin. -
hi,
how can u use where conditions in sq01?? where do u write the sql statements?
i created the info sets and usergroups and basic query.. but didnt find a place to write the sql statements for more advance queries? ANy help is appreciated
Thanks
keshikeshini,
You can write sql statements under the event" RECORD PROCESSING".
You can write sql statement under the event START-OF-SELECTION.
what ever you are selecting the tables for query those will joined internally as inner join under the record processing event as loop.
One by one record will get process under "RECORD PROCESSING"
So if you want to check or validate any field you can write here.Here al the output data will be taken care by system itself in ALV GRID.
START-OF-SELECTION.
Here you can write all the code as in ABAP Editor .
Don't forget ot reward if useful...
here you -
Problem while creating queries using SQVI
Guys,
I have many diff versions of sap's. 4.6c, 4.7, 4.7uc, 5.0, 5.0uc and so on......
I have to few queries in 4.7 in SQVI, i have to make it in sync in all the othr servers.
I have created all of them in all servers, but while creating in 4.6c, when i am using option "table Join" while creating query in SQVI, the system doesnt take me to next screen.
What could be the problem. Its going to next screen when i use option "table" but not when i use "table joins".
Can v transport these queries ( i mean SQVI queries, not those in sq01 ).
Helppp..................used table view
-
SAP Queries using Transaction sq02
Hi Sap all.
i have recently joined in the SAP Retail project where they using the SAP Queries to get the info of unfinished Sites,Articles,Vendors,etc.
i dont have any knowledge and experience on SAP QUERIES,so could any body help in this b sending the related scenarios and material,links.
will be waiting for the best response.
regards.
Varma.
Moderator message: don't just wait for others to search for you, please search for available information/documentation, don't ask for documents being sent to you.
Edited by: Thomas Zloch on Jun 1, 2011 1:44 PMThese are normal infoset queries which we create using transaction SQ03, SQ02/SQ01/SQ00.
-
Problem with Join Queries using PHP and an Orcale Database
Ok, I am trying to build a simple php querying tool for my oracle database and for the most part it is working however I am having a problem getting data from my join queries. If I run the following query :
QUERY:
SELECT lastfirst,EnteredBy,Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
Lastfirst EnteredBy Debit
caiu, test 204 1
But when I run the query correctly I get no results
QUERY:
SELECT sts.lastfirst,gl.EnteredBy,gl.Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
sts.lastfirst gl.EnteredBy gl.Debit
and if I run the query combining the two above methods and adding a field (schoolid) that has the same name on both table I get the following result sets
QUERY:
SELECT lastfirst,EnteredBy,Debit,sts.schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
lastfirst EnteredBy Debit sts.schoolid
caiu, test 204 1
QUERY:
SELECT lastfirst,EnteredBy,Debit,schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
RESULT SET:
NONE
Therefore, I have to have something written incorrectly in my php code and I just can not figure it out. My entire code is pasted below please provide me with an assistance you might have to offer. I have change the odbc_connec line so I could post it to this forum. In addition, I had to phrase out the column headers there for when you write the column headers you have to use ~ instead of , as the separator and then I turn back into the correct format for sql.
//These scripts just open help windows if somone clicks on the icon
<script>
function submit()
{document.sqlform.submit();}
</script>
<script>
function colwin(){
window.open("colnames.php",null,"height=300,width=400,scrollbars=1");}
</script>
<script>
function tabwin(){
window.open("tablenames.php",null,"height=300,width=400,scrollbars=1");}
</script>
<script>
function help(){
window.open("http://www.w3schools.com/sql/default.asp",null,"height=500,width=700,scrollbars=1");}
</script>
<form method="post" action="<?php echo $PHP_SELF;?>" name="sqlform">
<?php
//Cookie to check for authorization to the site
if($_COOKIE['cookie']=="CheckCookieForAuth")
//These get the values of the textareas after the form has been submitted
$sqlSELECT = $_POST["SELECT"];
$sqlFROM = $_POST["FROM"];
$sqlJOIN = $_POST["JOIN"];
$sqlWHERE = $_POST["WHERE"];
$sqlOTHER = $_POST["OTHER"];
$sqlSELECTTYPE = $_POST["SELECTTYPE"];
//This is the variable used to parse out my headers the user entered
$sqlColNames = split('~',$sqlSELECT);
//This converts the ~ separator to , so I can actually use it as part of my sql string
$search = array('~');
$replace = array(',');
$mystring = $sqlSELECT;
$sqlString = str_replace($search, $replace, $mystring);
//These are the textareas and the drop down options that the end users has to create queries
echo "<table border=0>";
echo "<tr><td valign='top'>";
echo "<B>SELECT TYPE</B> <BR><SELECT NAME=SELECTTYPE>
<OPTION VALUE='SELECT' SELECTED>SELECT</OPTION>
<OPTION VALUE='SELECT DISTINCT'>SELECT DISTINCT</OPTION>
<OPTION VALUE='INSERT'>INSERT</OPTION>
<OPTION VALUE='UPDATE'>UPDATE</OPTION>
<OPTION VALUE='DELETE'>DELETE</OPTION>
</SELECT>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=SELECT wrap=physical>$sqlSELECT</textarea>";
echo "</td><td valign='top'>";
echo "<img src='images/sqlC.jpg' width='25' height='25' onclick='colwin()'>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>FROM</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=FROM wrap=physical>$sqlFROM</textarea>";
echo "</td><td valign='top'>";
echo "<img src='images/sqlT.jpg' width='25' height='25' border=0 onclick='tabwin()'>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>JOIN</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=JOIN wrap=physical>$sqlJOIN</textarea>";
echo "</td></tr>";
echo "<tr><td valign='top'>";
echo "<b>WHERE</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=WHERE wrap=physical>$sqlWHERE</textarea>";
echo "</td></tr>";
//This is where the end user would enter group by, having, order by, etc..
echo "<tr><td valign='top'>";
echo "<b>OTHER</b>";
echo "</td><td>";
echo "<textarea rows=2 cols=75 name=OTHER wrap=physical>$sqlOTHER</textarea>";
echo "</td></tr>";
This is a run query icon and a help icon
echo "<tr><td colspan=2 align=right>";
echo "<img src='images/RunQuery.jpg' width='30' height='28' onclick='submit()'> <img src='images/qm.jpg' border=0 width='25' height='25' onclick='help()'>";
echo "</td></tr></table>";
echo "<br>";
echo "<br>";
//This is where I connect to my remote oracle database
$conn=odbc_connect('ODBC_ConnectionName','USERNAME','PASSWORD');
//This is the sql string created by the end users
$sql="$sqlSELECTTYPE $sqlString FROM $sqlFROM $sqlJOIN $sqlWHERE $sqlOTHER";
//This executes the connection string and the sql string
$rs=odbc_exec($conn,$sql);
//This will display the query or a message if the query is empty
if($rs!=NULL){
echo "<table border=1>";
echo "<tr>";
//This loops through the string array the end user enter the field name text area to get column headers
for($i=0; $i<count($sqlColNames); $i++)
echo "<td>";
print_r($sqlColNames[$i]);
echo "</td>";
echo "</tr><tr>";
//This actually fetchs the rows from the statement and then display the data based on the column names the end user speificed
while (odbc_fetch_row($rs))
for($i=0; $i<count($sqlColNames); $i++)
$results=odbc_result($rs,$sqlColNames[$i]);
echo "<td>$results</td>";
echo "</tr>";
odbc_close($conn);
echo "</table>";}else{echo "Results will be displayed here";}
echo "<br><br>";
echo $sql;
else
echo "Not logged in";
?>
</form>This looks more like a SQL question than a PHP issue. There are a couple of JOIN examples at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066611 that might you work through the problem.
-
I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
Please let me know mitigation for this blockage issue.
Should I use begin transaction and commit transaction statements/ shared lock statements.
please replyHi,
run same query at the same time? -
AWR reports DBMS_ALERT_INFO queries using significant elapsed time
Hi
10.1.0.3 / OpenVMS 8.2
Has anyone encountered AWR reporting significant resource consumption on queries relating to DBMS_ALERT_INFO (via calls to dbms_alert.register)? The buffer busy waits % from AWR is high as well (see AWR snippets below). Oracle are suggesting this is "expected behaviour for the objects owned by
the SYS user".
The query takes (on average) 2.3 seconds elapsed, using 1.63 CPU seconds and is responsible for 94% of all Buffer Busy Waits.
Elapsed CPU Elap per % Total
Time (s) Time (s) Executions Exec (s) DB Time SQL Id
10,965 7,746 4,756 2.3 4.7 57w71dgk5qbtx
Module: DSA103:[CSC_ENV_1.APPLIC.][SPICE.LIB]SPC_PFS1_MA
SELECT DISTINCT SUBSTR(KGLNAOBJ,11) SID FROM X$KGLOB WHERE KGLHDNSP = 7 AND KGLN
AOBJ LIKE 'ORA$ALERT$%' AND BITAND(KGLHDFLG,128)!=0 UNION SELECT DISTINCT SID FR
OM DBMS_ALERT_INFO
Segments by Buffer Busy Waits DB/Inst: SPICE/ONLINE Snaps: 4930-5026
Buffer
Tablespace Subobject Obj. Busy
Owner Name Object Name Name Type Waits %Total
SYS SYSTEM DBMS_ALERT_INFO TABLE 130,626 93.76
CliveChristophe Lize wrote:
Closing this thread even if it's not answered...Sorry, I don't have time to test this myself now, but you shouldn't mark this thread as answered if it is not, because other people might find it and think they find an answer if they have a similar question.
I suggest you try the following to narrow down things:
1. Open the RAW trace file and check the cursor numbers of the "direct path reads" - check if you can find any references for those cursor numbers manually. The cursor numbers are those numbers behind the WAIT #<xx>, and you can check if you find any other entry unequal to WAIT #<xx> with the same #<xx>, for example EXEC #<xx> or FETCH #<xx>
A short primer on how to interpret the raw trace file can also be found in MOS document 39817.1
2. Run the RAW trace file through alternative free trace file analyzers like SQLDeveloper (yes it can process raw trace files), OraSRP or Christian Antognini's TVD$XTAT. If you have My Oracle Support access you can also try Oracle's own extended Trace Analyzer (TRCA / TRCANLZR). See MOS Note 224270.1
Check if these tools tell you more about your specific wait event and oddities with the trace file in general.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
Co-author of the "OakTable Expert Oracle Practices" book:
http://www.apress.com/book/view/1430226684
http://www.amazon.com/Expert-Oracle-Practices-Database-Administration/dp/1430226684
Maybe you are looking for
-
R9 270x ITX . Black border with hdmi
So I didnt see this posted nor can i find much info about it. When I use HDMI i have a black border and my image is not full screen. does not matter the resolution. Ive tried on both a 24 inch and a 42 inch lcd. both do this. Ive tried a few differen
-
FTP Adapter: "SshException: The channel unexpectedly terminated" error
Hi All, My service is using FTP adapter to move the file from local to remote server. Whenever it tried to move the file, the below error is getting throwed. But iam able to connect the remote server using WinScp client. I have checked JNDI for corre
-
Unable to view properties in DRM
I created a property named 'Status' of localnode with 'Defined' property type. I added this to Essbase Property category. I was unable to view this property in DRM UI. Where as I can view this property in DRM database. Anyone can help me on this?
-
How & Where can we do Revenue Cost Element Planning
HI, We need to do planning for Revenue cost elements. How & Where can we do Revenue Cost Element Planning. Generally we will do excel planning upload for Cost Elements in KP06. But where can we do Excel plannin for Revenue Cost Elements in the system
-
I'm hosting my own website in which I want to post video's in full screen. I prepare in Keynote, export to QT7Pro, compression Sorenson3, to AdobeCS2, where I set up the website pages, etc. The server serves them ok but it takes 10 min just to load t