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
srinivas

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

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 AM

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

  • 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

  • I NEED THE TABLE NAME FOR THE  FIELD DESCRIPTION GIVEN!

    I NEED THE TABLE NAME FOR THE  FIELD DESCRIPTION GIVEN!
    Partner Type
    Partner Type Desc
    Partner no
    Partner Name
    Partner Address 1
    Partner Address 2
    Partner Address 3
    Partner Address 4

    Hi Jyotirmoy ,
                        You can get all partners and their type in table EDPP1, depending of the partner type you need to go to specific table for address and other details, like for partner type KU(customer) goto KNA1,etc for partner type LI(vendor) goto LFA1 etc for partner type B(bank) goto BNKA etc ....
    Sirish

  • 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...
    Thanks

    Hi,
    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 to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • Select data from all the table names in the view

    Hi,
    "I have some tables with names T_SRI_MMYYYY in my database.
    I created a view ,Say "Summary_View" for all the table names
    with "T_SRI_%".
    Now i want to select data from all the tables in the view
    Summary_View.
    How can i do that ? Please throw some light on the same?
    Thanks and Regards
    Srinivas Chebolu

    Srinivas,
    There are a couple of things that I am unsure of here.
    Firstly, does your view definition say something like ...
    Select ...
    From "T_SRI_%"
    If so, it is not valid. Oracle won't allow this.
    The second thing is that your naming convention for the
    tables suggests to me that each table is the same except
    that they store data for different time periods. This would be
    a very bad design methodology. You should have a single
    table with an extra column to state what period is referred to,
    although you can partition it into segments for each period if
    appropriate.
    Apologies if i am misinterpreting your question, but perhaps
    you could post your view definition and table definitions
    here.

  • 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

  • The table name for the system generated transactions (Retained Earnings).

    Hi Gurus,
    I have a doubt and want to know from U experts there. Hope you won't let me down. The situation is
    I have created a new chart of account in our Oracle Financial. Uploaded 2007 transactions and opened year 2008 and closed all the periods of year 2007.
    When I open a new year Oracle will do internal process transfer R&L balance to Retained Earnings account and make income & expenses accounts to Zero.
    I want to know the system generated entries which table they are stored, this transaction is not in Gl_Balances table.
    Its an urgent plz reply back soon.
    Thanks in advance
    Barkat

    Hello.
    For EBS 11.5.10.2
    Let’s suppose that the last period of you fiscal year is called ‘LAST-2008’ (not adjusting period). If you have an account with a debtor balance of 100 in this period, when you open the following fiscal year you will find an entry of 100 in the first adjustment period of the fiscal year that the ‘LAST-2008’ period belongs to, in the column BEGIN_BALANCE_DR.
    It is clear that if the balance is creditor you will find it in the BEGIN_BALANCE_CR column.
    Hope this helps.
    Octavio

  • What is the table name having the data enterd in the "CJ40" TRANSACTION?

    HAI GUYS,
                   AFTER GETTING INTO THE CJ40 TRANSACTION, I HAVE CLICKED "PRIMARU COST". THIS SCREEN IN HAVING TABLE CONTROL , IN THIS TABLE CONTROL THERE WILL BE FIELD CALLED "TOTAL PLAN COST".
                   IF I ENTER THE AMOUNT IN THE "TOTAL PLAN COST"  FIELD, WHERE THE AMOUNT WILL BE STORED? I MEAN WHICH TABLE WILL HAVE THAT VALUE?
            I HAVE TRIED MANY THINGS . CAN ANYONE TELL ME THE NAME OF THE TABLE.
    REPLY WILL BE AWARDED.
    REGARDS,
    SHAFI.

    Hi,
    The following are the tables used in Project Systems for this scenario;
    IMAK     Appropriation requests - general data
    IMAV     Appropriation request variant
    IMPR     Investment Program Positions
    IMPU     Texts for cap. inv. program positions
    IMTP     Investment programs
    IMZO     Assignment Table- CO Object - Capital Investment Prog.Pos.
    PMCO     Cost structure of maintenance order
    PRHI     Work Breakdown Structure, Edges (Hierarchy Pointer)
    PROJ     Project definition
    PRPS     WBS (Work Breakdown Structure) Element Master Data
    You can refer those.
    Regards,
    Renjith Michael.

  • How to change the Table name during the Run Time

    Hi
    I have to generate a Oracle Developer/2000 report.
    The input paramater is Vendor ( Ex:- Aetna,Cigna,BCBS...)
    If the input paramater is Aetna then the table report should use is Aetna_Emp_Data or
    If the input is Cigna then The table is Cigna_Emp_Data.
    The Layout and fileds selected for the report remains the same.
    Please let me know !
    Regards
    Kiran Ravuri
    Workscape

    Why don't you check with you co-worker Goran he has done this.

  • Can we find the table name from the form

    note:without using the property palette

    poelger is right, use GET_BLOCK_PROPERTY either with QUERY_DATA_SOURCE_NAME for the Query-table or with DML_DATA_TARGET_NAME for the DML-target

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

    Please 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

  • Table name for the status Cstd

    Hi
    Need the table name for the sales order line item status Cstd
    Steps
    Go to the sales order line item
    go to the Tab status
    under that in processing status--> system status
    here Cstd is there but we are not able to find the table name for that
    Strecture is RV45A and field name is STTXT
    we are planing to restrict the PP order being released if the status is not Cstd
    PP order should release if the status in Sales order line item is Cstd
    Can you help to findout the table name foth above field
    Thanks
    Kameshwar Rao

    Hi
    Table name is VBUP and the method to check the  creation of Production order is BADI workorder_update
    I would rather prefer to have a COSTED status as a part of the incompletion Log in SD module so that you cant save a SO if SO is not costed... See if that is possible for you
    OR you can also change your Req Class settings to auto calculate SO cost estimate upon Saving SO
    br, Ajay M

  • Table name for the structure MEPO1211

    Hi Friends,
    I want to find out the the Purchase Orders created with USD currency.   This currency indicator is not available in the table EKPO.  On checking the PO, the currency field is in the strucure MEPO1211.
    Kindly let me know the table name where the PO with currency is stored or the table name for the structure MEPO1211.
    Thanks in advance.
    Regards,
    Mark K

    Hello Mark
    If the fields belong to the PO header then EKKO is the table you should look for.
    In case of item related data the table is EKPO.
    In any case structure MEPO1211 just belongs to screen 1211 in the PO application.
    Further Reading:
    [Purchase order item - cl_po_header_handle_mm|https://wiki.sdn.sap.com/wiki/display/ABAP/Purchaseorderitem-cl_po_header_handle_mm]
    Regards
      Uwe

Maybe you are looking for

  • How can I access deleted photos from my iPhoto Library Cache?

    My Macbook Pro broke about a year ago and I recently took the hard drive out to access the files. I have a hard drive enclosure to USB to my Acer (Windows) Laptop. I was looking through all the folders when I came across this: D:\Users\Lizee\Library\

  • Edit the default  install "Opencart Website and Template" in dreamweaver

    Hi guys, im new to dreamweaver and diving in the deep end obviously. I guess the idea of doing this on my localhost is all about practicing locally before tackling a real world scenario on a production web-server in the near future. I have just insta

  • Help on my iphone please

    my iphone stoped charging and now when i plug it to my pc it comes up with "the usb device is not reconizeed and has malfunctioned what does this mean and how do i fix??

  • Release worklist

    hi experts, I've generated my list for mass retirement of assets.  However when I try to release the list I encounter the following message "No administrator found for the task" message # 5W141.  How would I setup the administrator for the task.  Is

  • Org Publisher

    Hi, I am trying to configure Org Publisher output types. I have configured custom output types with additional fields and filters. The problem is when i run the report /EHR/SOL71_ORGPUB with selection root orgunit, It picks up only the data related t