Finding table name from field

Hi,
I have a field name. Now i want to find to which table this field belongs to.
eg: I have field MATNR. Now in my program i want to find to which table this field belongs to.
How can this be done?
Points will be rewarded!!
regards,
Ashish Gupta

Hi,
Basically the same field is used in so many tables like mara,marc,mard,vbap...
But for matnr , MARA is the master table.It means entry should be there in mara table .but no need of entry in other tables like mrac,mard,vbap..etc.
But some times this value is picked from other tables also not only from mara to get other corresponding values like storage location or sales order number..etc.
Program may access other tables also depending on requirement.
so just check in the program from which database table this value is getting populated using SELECT stmt .
you can put breakpoint at all the select stmt and debugg the program.you will get noticed from which database table its getting populated and from which table its value getting processed.
Like suppose we use select stmt on vbap to get sales order number and then we goto MARD table to get corresponing storage location.
so finally we will get the value from MARD table.
just i will write simple code .
data:it_mara like mara occurs 0 with header line.
data:it_vbap  like vbap occurs 0 with header line.
data:it_mard  like mard occurs 0 with header line.
start-of-selection.
select * from mara into table it_mara up to 100 rows.
if not it_mara[] is initial.
select * from mara into table it_vbap
for all entries in it_mara
where matnr = it_mara-matnr.
endif.
if not it_vbap[] is initial.
select * from mard into table it_mard
for all entries in it_vbap
where matnr = it_vbap-matnr.
endif.
loop at it_mard.
write: /  it_mard-matnr,it_mard-lgort.
endloop.
so finally we are printing matnr from mard table eventhough matnr exists in mara table also.
Regds
Sivaparvathi
Please dont forget to reward points if helpful...

Similar Messages

  • Table name from field

    Dear Sapers,
    How to find table name from field name to write functional spec.Pl elaborate it for normal & zdevelopment.Points will be rewarded for useful answer.
    Thanks in advance.

    Hi Uday,
    Just for the sake of help this reply......
    You can find the name of tables by using F1 button keeping cursor on the respective field that you want to bring in development. From there you have to move to Technical details through technical details button.
    If that field or values are getting saved into some structure then you have to search the right database tables. According to your module many database tables are there (that you can search from sdn.sap.com directly). That totally depends on your report/development that you want to bring in......
    In any development deciding the right table for start up ( I mean to say tables that will give you input fields in your FS) is critical, latter you have to search linking tables and have to give logic about how to pass values from what to what field and what to what table..... In this case Transaction code SE11 and SE16 are useful......
    This all is slightly confusing and tedious too...... Closely work with you ABAPer to get into many things and have successful development....
    Have nice development....
    Cheers!
    Abu Arbab

  • How to find table name and field name thru Tcode

    Hi,
         how to find out table name and field names thru transaction code..........plz point out step by step.

    Hi
    I am not getting your question... as i understand, if you go to SE84 tcode you can get it.
    Go to SE84.Select ABAP Dictionary sub tree. Double click on "database tables'. Give some number in "Maximum number of hits”. DONT GIVE ANY OTHER INPUTS. Just press F8. You will get all table names.
    For fields also do like this by selecting FIELDS sub tree.
    Reward if it is useful.
    Thanks
    Siva Kumar

  • Finding Table name from structure

    Hi,
    I need to find the trans. table name for the field ATP Quntity, It's coming from the Structure MDEZ field name MNG04. Please Help me guys??????????/
    I tried where used list, it's giving 2 tables But both are not having any data. Please guide me is there is anyother way can i achieve this?????????

    Hi Hari,
    Thanks for ur help. Can i add Program manipulated field value into Search help display. B'cos in selection criteria we can only create view for tables. How i can display manipulated value that's not in table to display in Search help result screen?
    I need to add extra display result in material field's Search help result screen like Stock on hand plant details.
    thanks,
    Subha

  • How to find table name and field name in JSP FORM

    Hi
    In JSP form's like XML publisher responsibility>templet
    In that form how can we see the system-last query . and how to see the table name

    hi yamini,
    plz go to help->record history (for fining table name)
    and
    help->diagnostic->examine (for finding field name)& enter last_query
    in JSP form also same above only i think.
    or check in back end & apply who columns
    Edited by: raghava bandi on Nov 7, 2008 2:05 AM

  • How to find Table Name and Field Names given a Data Source

    Hi,
    I tried ROOSOURCE table in R/3 to find the Extract Structure and Extractor names for a specific data source, let us say 2LIS_02_ITM (PO Item Level).
    I know the extract structure for this data source is MCO2M_0ITM
    I am not able to find where this structure is extracting the data for every field.. I wanted to know the corresponding table name and the respective field names.. Both the existing and Appended fields..
    Thanks,
    Naren

    Hi,
    Check in in LBWE and Click on Maintenance and see the table names
    EKKO
    EKPA
    EKPO
    Tables are use for this DS
    Eg:
    MCEKKO  BEDAT  Document Date
    MCEKKO  BSART  Document Type
    MCEKKO  BSTYP  Doc. Category
    MCEKKO  BUDAT  Accounting date
    MCEKKO  EBELN  Purchasing Doc.
    MCEKKO  EKGRP  Purch. Group
    Note: here EKKO is table
    https://wiki.sdn.sap.com/wiki/display/BI/BW%20SD%20MM%20FI%20DATASOURCES
    thanks
    Reddy
    Edited by: Surendra Reddy on Mar 10, 2010 8:18 AM
    Edited by: Surendra Reddy on Mar 10, 2010 8:19 AM

  • Finding table-name from a DSN name

    i need to find the total number and names of tables from a DSN setup on an access DB. can u tell me how? I couldn't find it in JDBC tutorial ..
    Thanx

    Try this
    DatabaseMetaData meta=conn.getMetaData();
         ResultSet set=meta.getTables("Database_name",null,null,null);
         System.out.println("got meta data ");
         while(set.next()){
              System.out.println(set.getString(3));
    // 3 rd column is the name of table
    The resultant resultset has following columns (as strings)
    (as per javadoc)
    TABLE_CAT String => table catalog (may be null)
    TABLE_SCHEM String => table schema (may be null)
    TABLE_NAME String => table name
    TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
    REMARKS String => explanatory comment on the table
    TYPE_CAT String => the types catalog (may be null)
    TYPE_SCHEM String => the types schema (may be null)
    TYPE_NAME String => type name (may be null)
    SELF_REFERENCING_COL_NAME String => name of the designated "identifier" column of a typed table (may be null)
    REF_GENERATION String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)

  • Finding Table Name from Structure Name

    Hi All,
    Can someone tell me,whats the best/fastest way to find out the Table name where a data gets stored actually,when we know a structure name
    Bhavin P Shah

    Hi Bhavin,
    The fastest way would be to use the<b> " WHERE USED "</b> option that you find on the application toolbar.
    Step:
    1. Go to SE11.
    2. Enter the Structure Name.
    3. Press the  <b> " WHERE USED "</b> button.
    4. Select "Dictionary Tables.
    After that you should get the list of all the Dictionary Tbales that use your structure.
    <b>Kindly Reward points if you found the reply helpful</b>.
    Cheers,
    CHAITANYA.

  • Finding table name from list of reports

    Is there any short method of finding if a particular table is being used in a particular report without going to query panel
    through the CMC ?
    If there is, request to share the info as we are undertaking this exercise more often in production

    Hi Hari,
    Thanks for ur help. Can i add Program manipulated field value into Search help display. B'cos in selection criteria we can only create view for tables. How i can display manipulated value that's not in table to display in Search help result screen?
    I need to add extra display result in material field's Search help result screen like Stock on hand plant details.
    thanks,
    Subha

  • How to find table name for the fields from Standard Extractor in CRM system

    How to find table name of fields from the standard extractor in CRM system ?
    e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
    Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.

    Hi ,
    Please find the link below for understanding BW CRM analysis.
    http://help.sap.com/bp_biv135/html/bw.htm
    activate the CRM DSs by scenario:
    1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
    SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
    2) Activate the Business Content DataSources (tcode RSA5).
    Select/enter the application component and choose Execute (F8).
    To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
    To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
    3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
    As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
    You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
    The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
    All BW-Adapter metadata is considered when versions are compared:
    Header information (Table SMOXHEAD)
    Mapping information (Table SMOXRELP)
    Global selection conditions (Table SMOXGSEL)
    Attribute key fields (Table SMOXAFLD)
    Hope this helps.
    Regards,
    csm reddy

  • Table name from structure name

    Hi experts
    can anyone tell me how to find the table name if structure name is known.
    when i press F1 in table field ,it give me struct name and field name.
    how can i find table name from this struct.
    Thanks in advance

    Hi ,
    You can Check the where used list from your structure,
    or
    From SE84 transaction in abap dictionary ,give your
    structure name and execute it will show where it has
    been used.
    Hope it helps
    Regards
    Mansi

  • 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,
    Monica

    hi,
    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

  • Table names for fields from standard extractors

    Hello Experts,
    I want to know, if there is an easy way to find R/3 table names from extractor fields of standard data sources / extractors.
    ROOSOURCE , RSOSFIELDMAP did not help.
    Thanks

    Hi
    find your extract structure name from RSA6 or RSA5 and then go to SE11data type>give your extract structure name and click on 'where used list', then select 'programs'..
    You can see the name of the extract programs written by sap.go to the program then you can find the tables and their fields...
    Hope it helps up to some extent....
    Thanks,
    Teja

  • Table name from which to extract bank name and swift code by key field as vendor code

    Please help with the table name from which we can extract the bank name and swift code of vendors with the key input as vendor numbers

    Hello Subhadra, I'm sorry, I should've said join of LFBK and BNKA. The fields for the join will be the bank country(BANKS) and bank key (BANKL).
    If you have not found a docu on SQVI already, you can refer to this:
    How to create Report by using SQVI
    This is how your join should look in BASIS mode, your selection parameter should be vendor code LIFNR; output fields with be bank name BANKA and swift code SWIFT.

  • Fetch Table name and field name from a given entry

    Hi ,
    i know the entry which is present in the database .But i don't know the table name and field name which has that entry .
    i have to fetch the table name and field name from a given entry .
    Can anyone suggest me how will  i fetch the table name and field name for a given entry .
    thanks in advance.

    Hi ,
    i know the entry which is present in the database .But i don't know the table name and field name which has that entry .
    i have to fetch the table name and field name from a given entry .
    Can anyone suggest me how will  i fetch the table name and field name for a given entry .
    thanks in advance.
    Few more options to scan specific text in entire DB:
    http://www.mssqltips.com/sqlservertip/1525/scan-a-sql-server-database-for-objects-and-columns-containing-a-given-text-value/
    http://solutioncenter.apexsql.com/quickly-search-for-sql-database-data-and-objects/
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

Maybe you are looking for

  • 500 Internal Server Error when I add struts portlet in the portal

    I'm using jDeveloper 10g and have created a sample struts app which is working fine when using the regular struts-html.tld tags and struts-bean.tld tags .I'd like to get it working using the pdk-struts-html.tld taglib though so that I can deploy it a

  • Subcription or publication for service notification from CRM to R/3

    Hi, is there any subscription or publication available in order to send service notification from CRM to R/3?? regards, Anirban

  • CS4 no longer works after upgrade to Maverick

    I upgraded my MacBook Pro OS two weeks ago to Maverick (I used my external harddrive to grab my applications and files). Since then, I'm unable to open Photoshop (or other CS4 applications). Initial error was about licensing stopped... I used a forum

  • Applecare model number

    Hello , I was about to buy an extended warranty for my macbook pro and I saw multiple model number , so i want to know if  I can use a the MB587LL/A model for my macbook pro 13 MC700LL/A Thanks

  • 3 way match & ERS

    could someone give examples for 3 way match and ERS