Find a table name
Hi,
Do anobody knows any procedure at PL/SQL which returns name of table and column which contain a desired value. I'm adding something to database threw GUI and I dont know in which table this value is added. Maybe there is some procedure which do somethong like this:
select * from * where exist some string
you can start work around using this very basic proc.
DECLARE
CURSOR col_cur IS
SELECT * FROM all_col_comments acc WHERE acc.table_name = 'XXX';
tbl_name all_col_comments.table_name%TYPE;
col_name all_col_comments.column_name%TYPE;
lv_sql VARCHAR2(200);
lv_txt VARCHAR2(100);
BEGIN
FOR col_rec IN col_cur
LOOP
IF col_rec.table_name LIKE '%XXX%' AND col_rec.column_name = 'YYY' THEN
tbl_name := col_rec.table_name;
col_name := col_rec.column_name;
lv_sql := 'SELECT ' || tbl_name || '.' || col_name || ' FROM ' ||
tbl_name || ' WHERE ' || tbl_name || '.' || col_name LIKE
'%zzz%';
dbms_output.put_line(lv_sql);
EXECUTE IMMEDIATE lv_sql
INTO lv_txt;
dbms_output.put_line(lv_txt);
END IF;
END LOOP;
END;
Similar Messages
-
Using column value is it possible to find the table name in the database?
Hi all,
using column value is it possible to find the table name in the database?
guys i need the table value
Note:
oracle-9i
for example:
i don't know NIC(column value) in which table in the database.
Thank you,
with regards,
JP.
Edited by: Guest on Feb 27, 2012 5:42 AMHi,
As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
1. USER_TAB_COLS
2. ALL_TAB_COLS
3. DBA_TAB_COLS
4. COLS
These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
To know about various data dictionaries avalible in Oracle please query select * from cat;
Let us know if you need further assistance.
Twinkle -
Regarding finding the table name for a field in R12 forms
Hi all,
I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
Thank you,
rajPlease see these threads.
How to find table name in ebs
How to find table name in ebs
E-Business tables
E-Business tables
Thanks,
Hussein -
Find Transparent table name for correspoding Dictionary Structure SRM 7.0
Hi,
I am not able to find Transparent table name for correspoding Dictionary Structure in Webdynpro Component for a field in SRM 7.0.
Please let me know.
Thanks,
MonicaHi Monica
please tell the transaction name and the name of field seen in webdynpro
regards
andrea -
Find the table names in a package body
How to find the table names in a package body in single query .(SQL).
Hi,
you can find dependent objects of a package from below query
select distinct referenced_name ,REFERENCED_TYPE from ALL_DEPENDENCIES where name = 'PACKAGE' and referenced_owner not in ('SYS','PUBLIC') and referenced_type = 'TABLE';
Thanks
Handle: user12057782
Status Level: Newbie
Registered: Oct 13, 2009
Total Posts: 5
Total Questions: 4 (4 unresolved)
mark answered if helpful/correct
Edited by: CKPT on Nov 22, 2010 1:21 PM -
Hi experts,
I want to find information which is stored in the particular transaction (find the table name)
tcode is COR3 in that enter process order and enter after that go to adminstrative data in that created user.
I want find user information will be stored in which table . pls help me in thisHi,
There are both technical and functional ways of knowing the Table Names:
1. You can ask your functional consultant to give you the basic or the main table name. From there you can use a where used list to get the list of all the tables that are connected to this table by the foreign key relationship.
2. You can get to know the name of the package from the package hierarchy. You can also use se84 to find the objects from the repository information browser.
3. You can use the ST05 transaction to run and SQL trace to find all the tables that where accessed during the TCODE execution. But here you need to be precise as it will show you all the names of all the database tables accessed.
Hope this will help you.
Thanks,
Samantak. -
To find a table name where the field is from??
Hi Friends...
I know the field name and now how can I find the table name to which the field belongs....
Points will be surely awarded...
ThanksHi,
To know the master table for the field:
Go to se11 and give ur field name in the data type selecttion and click on Display.
Double click on Domain. Goto Value range tab page. In the bottom you can see Value table.
With rgds,
Anil Kumar Sharma .P -
How can one find the table name of the Delta Que and setup table?
Hi !
Is there any method to find the table name of the delta que and Extraction que ?setup table = <extract structure>_setup
example: setup table for MC11VA0ITM = MC11VA0ITM_SETUP
Delta Queue is based on following 3 tables:
ARFCSDATA
ARFCSSTATE
TRFCQOUT
assign points if useful ***
Thanks,
Raj -
How to find out table name for the field in the webUI
Hi.
I am in CRM2007.
So i go to the transaction code BSP_WD_CMPWB
In that i provide the component name as CRM_UI_FRAME.
I press the Test button.
So, it opend the WebUI.
I want how to find out table of the particular input field?
I mean from which table the data is retrived how to find out?
When i enter some thing in the input field how to find out in which table that data is stored?
By pressing F2 on the input field it opend View and Component Name.
I want find out table of that particular field. How to find it?
If anybody know about this explain it with Screen shorts if possible.
Thank You.
Krishna. B.hi
goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
Best regards
Pankaj kumar -
To find the table name using field name
Hi,
Do we have any transaction code using field name to find out the table name
Regards,
P.Arunkumar.Hi Arun,
The best way to find out table from field is,
Use SE15 Transaction->dictionary fields ->table fields->goto table field columns
Enter ur fields..
or you can use ST05
Reward points if it is useful
Regards,
R.Brahmankar -
Find the table name for Delivery quantity in production order
Hi,
Pls can you tell me what is table name for delivered quantity field in General tab for that production order number.
With Regards,
P.Arunkumar.Hi
You can find it GR qty via following 2 Tables.
Table AFPO Order item
Field WEMNG - Gr Qty
Or
Table AUFM
Field SHKZG (Debit Credit Indicator ) Select Debit Indicator - S
Field KZBEW Movement type ind.- Selct F Goods movement for production order.
Regards,
Dhaval -
Hw to find the table name of the perticular field is stored in db,usingFM
Dear all,
I need to find out the table name of the perticular field is storing in database using FM (note: using Function Module or any standard program , not manually like press F1 -> technicall setting etc.. .)
[ Exmple: Field: "MATNR" is stored in table : MARA, so i need the program/FM to findout MATNR is stoed in MARA table ]
i need this FM for update values of material master ( mm01 ) stored in different warehouse using module pool program.
it's very urgent , please send me reply asap.
thanks,
best regards
srinivashi Srinivas,
Please use the following logic:
types:
begin of t_find,
field(40),
end of t_find.
data:
lt_find type table of t_find,
ls_find type t_find,
lt_found type table of RSFINDLST.
ls_find-field = 'MATNR'.
append ls_find to lt_find.
CALL FUNCTION 'RS_EU_CROSSREF'
EXPORTING
i_find_obj_cls = 'DTEL'
I_SCOPE_OBJ_CLS = 'TABL'
NO_DIALOG = 'X'
TABLES
I_FINDSTRINGS = lt_find
O_FOUNDS = lt_found
EXCEPTIONS
NOT_EXECUTED = 1
NOT_FOUND = 2
ILLEGAL_OBJECT = 3
NO_CROSS_FOR_THIS_OBJECT = 4
BATCH = 5
BATCHJOB_ERROR = 6
WRONG_TYPE = 7
OBJECT_NOT_EXIST = 8
OTHERS = 9
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The table lt_found has the details for the tables having MATNR as a field; field lt_found-object will have the table names.
Hope this helps,
Sajan Joseph. -
Hi All, how do we find out the table name for selfservice screen which were developed using OAF, i mean to ask suppose we have screen in apps Iexpense ,is there any way to find out the table name for that screen on which its based. thanks
ThanksHi,
You can find the page details (UI componeents and bc4j objects) in the page Tab.
--Prasanna -
SRM 7.0 find transparent table name from Web dynpro Component
Hi ,
I am trying to find the transparent table name from Web dynpro component dictionary structure. I am working in SRM 7.0. Please let me know how to find the transpartent table for a field.
Thanks,
Monicahi,
your question is very unclear and does not relate to performance.
SRM uses webdynpro ABAP so the recommendation will not help.
Do you need a technical UI element?
Or the application table where the business data of an UI is stored???
If it is the later, then you can use the SQL trace, change to element you are interested in, and trace it. The table should appear in the trace in connection which an UPDATE command. Still a bit cimbersome.
Siegfried -
How to find the tables name in R3 datasource
I am looking to find out the tables were used for that Datasources(0m_cc0_9). Pls let me know the steps to find out thsi.
Thanks
TajHi Tamkris
1. First go to help.sap.com and simply search for the datasource. You would come to a page where detailed description of the datasource is given.Just note that SAP sometimes plays spoilsport and for few Datassources it doesnt give the table names. But in your case for 0CO_OM_CCA_9, details are given.
2. If in some cases table names are not given, simply go to rsa3. open another session ST05. Activate the trace.In Rsa3, enter the datasource name. And then run extraction. Go to ST05 switch off the trace and then view the log.
In the log, all tables that are hit are shown
3. And if all this doesnt help, start debugging the datasource. TYpically these would be function module based. So dig in!
Hope this info helps
Prakash
Assigning points is a way of saying thanks on SDN! -
Where can I find corresponding table name for SPRO Customizing
Hi,
Now my project is to integrate CRM to legacy system.
I need to do value translation in middle ware, in my case, it is value mapping in PI.
I go to SPRO->Cross-Application Components->SAP Business Partner->Business Partner
there are many customized value, e.g. Martial Status:
1-Single;
2-Married;
3-Widowed;
4-Divorced;
5-Separated
How could I find which table are those values stored?
Thanks
Liang
Edited by: Liang Ji on May 4, 2011 4:44 PMHi,
Could you try press F1 on field code к name?
Denis.
Maybe you are looking for
-
Performance issue: Follow up transaction creation taking too much time
hi, i am facing an issue where whenever a user tries to create a follow-up Quote from an opportunity, it is taking more than 7-8 secs...can someone help me understand its a standard time or ways to reduce the time taken. we have already implemented S
-
I buy an OSX upgrade; I get a redemption code; and, in the Mac Store App, 'It's not available in the U.S. store-.What the frick? Is this a joke, Apple?
-
Start app in landscape mode locked and later enable autoOrients
Hi! I want to start my app in landscape mode locked and when an effect finished unlocks autorients to true and the user can change the orientation.of the device. I have tried few things but i can't get it. My descriptor file contains: <aspectRatio>la
-
WLC 2100 guest access with local web authentification
Hello I tried to create a guest acces with local web authentification. My Laptop is connected to the Wlan but My Browser don't ask my login and password
-
My time capsule green light turned yellow.What do I have to do?
My time capsule green light turned yellow.What do I have to do?