2010 Aug 11 5:24 PM
Hi experts,
Is there a standard program or transaction that can be used to test Open SQL statements?, I was thinking in something similar to a SQL client like sqlcli, but for Open SQL and within SAP GUI.
I know i can write a test ABAP program for this matter but I rather a standard testing facily in this case
Thank you for any help
regards
2010 Aug 11 5:36 PM
2010 Aug 13 2:41 PM
Hi,
thank you for the info, but in TC ST05 I can´t see the output of the SQL statement, right?
regards
2010 Aug 12 6:44 AM
Hi Garduno,
You can try tcode DB02 - SQL Command Line functionality, which is avaible under Diagnostics as an alternative sql client.
Hope it helps.
Ozcan.
2010 Aug 13 2:46 PM
Hi Ozcan
I tried DB02 -> Diagnosis -> SQL Command editor , but I couldn't made it work. It is for Open SQL or for Native SQL?
I tried the following simple Open SQL statements inside the SQL Code tab there were erros
SELECT *
FROM /BI0/PCOMP_CODE
error was: Incorrect syntax near '/'.
SELECT * FROM DD03L
error was: Invalid object name 'DD03L'.
Where is the mistake?
regards
2010 Aug 13 2:55 PM
Hi Garduno,
I am sorry but it's for Native SQL only. And if your system ID were xyz, you should try something like this, using the database owner before the table name.
SELECT * FROM xyz.DD03L or
SELECT * FROM XYZ.DD03L
Hope it helps,
Ozcan.
2010 Sep 20 7:31 AM
Hi Ozcan
There should be no need to specify the schema owner when running SQL statments from inside the SAP system. Using the SID as schema owner is in any case wrong and will not work from inside SAP, in SQLplus or any other DB tool.
When specifying objects containing slashes, you have to use quoteation marks.
E.g. SELECT * FROM "/BI0/PCOMP_CODE"
If the table name contains only letters and/or numbers, it's sufficient to just use the table name without quotation marks.
E.g. SELECT * FROM DD03L
I've tried both statments in my BW system and they work just fine.
Regards,
LEH
2010 Aug 13 2:58 PM
In the DB02 -> Performance -> Additional functions -> SQL Command Editor
Give the query. It gives the output in the result.
Cheers
Sujay
2010 Nov 02 8:39 PM