Table name to find a variable used in which queries
Hello,
what is table name to find a particular variable used in which queries.
write 'Variable Name:'.
write vname.
write /.
write 'Variable Type:'.
write variabletype.
write /.
write 'Based on Infoobject:'.
write variobj.
write /.
write 'Variable Processing Type:'.
write varprocesstyp.
write /.
write 'Variable Select Parameters:'.
write varselectiontyp.
write /.
write 'Variable Ready for Input:'.
write varinputtyp.
write /.
write 'Variable Entry criteria:'.
write varentrytyp.
write /.
write 'Variable can be changed during navigation:'.
write varchangeable.
write /.
* write
Select single varuniid from rszglobv into varid where vnam = p_varnm.
select single TXTLG from RSZELTTXT into variabledescription where ELTUID = varid and OBJVERS = 'A'.
write 'Variable Description:'.
write variabledescription.
write /.
write /.
querydet-querytechname = 'Query Technical Name'.
querydet-querydesc = 'Query Description'.
write querydet-querytechname.
write querydet-querydesc.
write /.
Select SELTUID from RSZELTXREF into table queryuid where TELTUID = varid and laytp = 'VAR' and OBJVERS = 'A'.
loop at queryuid into querydets.
select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = 'A'.
select single txtlg from RSZELTTXT into querydet-querydesc where ELTUID = querydets-queryid and objvers = 'A'.
write querydet-querytechname.
write querydet-querydesc.
write /.
*update querydet from querydetail.
endloop.
write 'Query View Details for affected queries'.
write /.
viewtab-viewtechname = 'View Technical Name'.
viewdesc = 'View Description'.
write viewtab-viewtechname.
write viewdesc.
write /.
clear viewtab.
clear viewdesc.
loop at queryuid into querydets.
select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = 'A'.
select viewid from rszwview into table viewtab where compid = querydet-querytechname and objvers = 'A'.
loop at viewtab into viewdetails.
select single TXTLG from RSZWOBJTXT into viewdesc where objid = viewdetails-viewtechname.
write viewdetails-viewtechname.
write viewdesc.
write /.
endloop.
endloop.
Similar Messages
-
How to find BW object (Charecteristic) is used in which queries.
Hi Gurus,
I need to look one BW Object(Charecteristic) is used in which queries?
I tried with where used list for that object , but iam getting only object used in which Info Cubes,InfoSources, Transfer rules , update rules etc..
Can you help me out to find that object used in which queries , orther than going each query and look inside that.
Thanks in AdvanceHi lakshmi,
Use the metadata repository availbel in RSA1 ..there find ur infobject in the infoobject list and u will find out what queries use that infoobject.
Arun -
Table name to find customer and which sales area he belongs to?
Table name to find customer and which sales area he belongs to?
Hi suchita,
You can find these information Sales area he belongs and all in the table of KNVV , take the customer number from customer master KNA1-KUNNR put it in KNVV-KUNNR. you can find all the sales details.
if you need more info send breaf requirement.
if helpful award the points
Regards
Ram -
Table name where Broadcaster precalculation variables are saved
Please help me with the table name where Broadcaster precalculation variables are saved. Thanks.
Hello Jinal
Please go to transaction SE11 and there search in database table for tables starting with
/BIC/OB*
My table for example is named as following /it is the first precalculated value set:
Transparent table -> /BIC/OB00000001
description -> Calculate with Broadcast Setting Z_CCUSTOMER_PRECALC_01
However table class is L, where so I don't knwo how to see the data..
In case you know please let me know
Best regards
Christian -
How to use a table name in the select statement using a variable?
Hi Everybody,
I got a internal table which has a field or a variable that gets me some tables names. Now I need to retrieve the data from all these tables in that field dynamically at runtime. So could you suggest me a way out to use the select query which uses this variable as a table ?
Regards,
Mallik.Hi all,
Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
for ex : select * from (tab_name) where....?
Can we do inner join on such select statements? If so how?
Thanks & Regards,
Mallik. -
Table name for BW Query Where used list
Hi,
I am looking for Table name where the information of " where used list " of a BW query stores.
Any help ?
Thanks
SatyaVani,
I dont think it is available...
whats your exact requirement???
you can make use of these below tables
RSZELTDIR Directory of the reporting component elements
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references
RSRREPDIR Directory of all reports (Query GENUNIID)
RSZCOMPDIR Directory of reporting components
RSZRANGE Selection specification for an element
RSZSELECT Selection properties of an element
RSZELTDIR Directory of the reporting component elements
RSZCOMPIC Assignment reuseable component <-> InfoCube
RSZELTPRIO Priorities with element collisions
RSZELTPROP Element properties (settings)
RSZELTATTR Attribute selection per dimension element
RSZCALC Definition of a formula element
RSZCEL Query Designer: Directory of Cells
RSZGLOBV Global Variables in Reporting -
Table name issue accessing OATS schema using OBIEE
We are attempting to integrate OATS 12.1 with OBIEE 11g for reporting purposes and encounter the following error when using the BI Administration tool to update a row count of a physical table or query using the Analysis tool against our target OATS schema. For example:
There was an error while updating row count for
"OTM.atg.com".."OTM"."View_Tests":
[nQSError: 17011] SQL statement execution failed.
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942:
table or view does not exist
at OCI call OCIStmtExecute: select count(*) from
OTM.View_Tests
I tried this out with other tables such as "TO_TestCase"
The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table was created, which I understands enforces the preservation of letter case-- i.e. "Mixed_Case" names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected table columns, but the querying for row count and data fails.
One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
I also found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
# Case sensitivity should be set to match the remote
# target database.
CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
Are there other ways to get OBIEE to recognize mixed-case table names?
Thanks!Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
So if a script is, for example, to create a schema, it should look something as follows:
-- usage: create-schema.sql <schema_name>
set verify off
set define on
create user &1 identified by .. default tablespace .. quota ... ;
grant ... to &1;
--eof
If script 1 wants to call it direct then:
-- script 1
@create-schema SCOTT
If script 2 want to call it using an existing variable:
-- script 2
@create-schema &SCHEMA
Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots. -
Table names to find Program names and Table names
Hi All,
I want to find Program names and Tables names where Transaction codes are not been created.
If TCodes are created I can find from TSTC.
But programs and tables which does not have tcodes.
How can I find them?Hi Praveen Kumar
You know the program name go to se38 and find out if u know table name go to se11 and find out .if you want to see both where there are used in which program go to se80 it would be easy.
How to trace in se80 . select programe and down give programe name you will gte it. -
Table name to find out the application name
In table WWV_FLOW_USER_ACTIVITY_LOG there is a column called flow_id ,which is the application id .I want to know which is the table to find out the application name for a flow_id.
Thanks in advance,
MadhuriMadhuri,
I don't know how you are trying to access that table. The owner is the HTML DB schema, FLOWS_010600 for the 1.6 version. If you try to access it from your application page or another schema, of course you won't see it.
Scott -
Table Name Substitution with a variable
I have the following procedure....
LOOP
FETCH table_cur INTO table_rec;
EXIT WHEN NOT table_cur%FOUND;
TableID := table_rec.TableName;
Office := table_rec.OfficeNum;
Client := table_rec.CliNum;
IF Office = 'Y' AND Client = 'Y' Then
UPDATE TableID
SET OfficeNum = (SELECT OfficeNum
FROM Comd02a
WHERE Comd02a.CliNum = TableID.CliNum
AND Comd02a.LoanNum = TableID.LoanNum);
END IF;
END LOOP;
CLOSE table_cur;
TableID is a vaiable and I keep coming back with an error... How
do I make a reference to a table through a variable...
Thanks in Advance
Sally
nullHi Sally,
The way this is usually handled in Oracle is to use the DBMS_SQL
package provided with the database to run Dynamic SQL, although
I hear that Oracle 8.1.5 (8i) supports Dynamic SQL without the
use of the DBMS_SQL package. I can only personally tell you
that DBMS_SQL has worked like a charm for me on several
occasions. You'll find reference to this package in several
places, but the best place for explanation is the Oracle Press
book: Oracle PL/SQL Programming.
Hope that helps,
Rob
Sally (guest) wrote:
: I have the following procedure....
: LOOP
: FETCH table_cur INTO table_rec;
: EXIT WHEN NOT table_cur%FOUND;
: TableID := table_rec.TableName;
: Office := table_rec.OfficeNum;
: Client := table_rec.CliNum;
: IF Office = 'Y' AND Client = 'Y' Then
: UPDATE TableID
: SET OfficeNum = (SELECT OfficeNum
: FROM
Comd02a
: WHERE Comd02a.CliNum = TableID.CliNum
: AND Comd02a.LoanNum =
TableID.LoanNum);
: END IF;
: END LOOP;
: CLOSE table_cur;
: TableID is a vaiable and I keep coming back with an error...
How
: do I make a reference to a table through a variable...
: Thanks in Advance
: Sally
null -
Which table could i find 'Authorization Group' used for Material master?
Hi experts,
Is there any table available could i find all 'Authorization Group' list as used by material master data.
OR in SPRO, anywhere could i find 'Define authorization group' for material master data specific??
Thanks.Hi
Authorization group in the material master are maintained at the material type level.
SPRO->IMG-> Logistics - General-> Material Master-> Basic Settings-> Material Types-> Define Attributes of Material Types
List of authorization roups can be found in table T134-Material Types
this filed is a free defined 4 charcter field.
Thanks & Regards
Kishore -
Can't find the variable used in Apex using Substitution String #
Hi,
Someone put in a substitution string for a user defined variable. #variable#. I can't find it. Looked through the shared components. Any advice? Thanks.Export your application and use a good text editor to search on that string and you will find it if it is there.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Table name to find out roles assigned to USER !!
Hi BW Gurus,
i want to find out all the roles assigned to users , i check in tables USR01, USR02 , USR21, and ADRP ...... i got first name , last name , account number . BUT I NEED ROLES . can anyone kindly help me ,since otherwise i have to copy paste all manaully which takes more time...
100% points are assingned
SHERWINHello,
Check in this tables:
AGR_USERS - Assignment of roles to users
AGR_USERT - Assignment of roles to users
AGR_PROF - Profile name for role
AGR_AGRS - Roles in composite roles
Assign points if this helps
Regards,
Jorge Diogo -
Funtion Module for user exits for variables used in BEx Queries.
Hi,
This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
Can anyone please suggest the function modules that can be used to do the following.
1)Read value of zvar1 from selection screen whatever
user enters at run time.
2)How to define the zvar2 in the include. zvar2 is the
variable created in BEx to be populated from this
customer exit.
3)How to use case statment where once the value for zvar1
is determined then,
Case zvar1.
when zvar1 = 0 , then zvar2 = 10
when zvar1 = 1 , then zvar2 = 20
3) Assign zvar2 value as computed in the case statement.
Can anyone please help with the code to achieve this.
Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
Thanks
Sarah.Hi Sarah,
You don't need any FM for your issue.
Please try thie sample code :
DATA: VAR_INPIUT LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'ZVAR2'.
CLEAR L_S_RANGE.
IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
*Reading value of ZVAR1
LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
WHERE VNAM = 'ZVAR1'.
CASE VAR_INPIUT-LOW.
*FILLING ZVAR2
WHEN 0.
L_S_RANGE-LOW = 10.
WHEN 1.
L_S_RANGE-LOW = 20.
ENDCASE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE.
Hope this helps
Joe -
MySQL - In a Query, Using a Variable as a Table Name
Hello,
The code I have attached works. However, I would like to
replace the table name "tractors" with the variable "$result". How
do I do this? (It doesn't work if I just type "$result" where
"tractors" is.)
Thanks,
JohnArizonaJohn wrote:
> The code I have attached works. However, I would like to
replace the table
> name "tractors" with the variable "$result". How do I do
this?
You can't. In the code you have given $result is a MySQL
database result
resource. You need to extract the actual value from the
result resource
in the same way as you have done by using
mysql_fetch_array().
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/
Maybe you are looking for
-
Envy 14 - Hard Drive failure imminent
I have an Envy 14-1110NR laptop and am getting a Hard Drive failure imminent message every time I boot up. Having run the HP diagnostics, the hard drive check fails so I'm guessing I have to replace it. The hard drive is a Samsung HM640JJ which has
-
How can I use a generic indifferently in one of the generic's member functions?
I'm curious about the following situation: I'd like to access another generic's private member in a constructor. How can I do that irrespective of the generic's actual type? Here's a sample of what I'm trying to accomplish: public class C<T> private
-
i just bought 200 GB storage for my phone and it still says i cant download apps because "there's no enough storage" i don't get why, plz hep me out!!!
-
Ipod wont charge on a wall socket-will only charge a little from USB.
Dear Apple, I have a 160gb ipod model which i bought 3 months ago. Recently my ipod has stopped charging from a wall socket completely.I ve been using the apple wall charger for a time so i know its not its fault.Further on i have tried another third
-
I have created a standard text element of around 100 lines by using SO10. I am trying to call it in my sap-script, the window size is not that big to accomodate all the 100 lines. Can anyone suggest any solution to this problem. Correct answers will