Doubts in the tables

Hi All,
i have a doubt in the following tables.The tables are
TEBP_ADR_ADD
TEBP_ADR_SHIP_TO
Doubt is
1) What is the purpose of this two tables and relationsip between  
     them.
2) I found that some address number that are not available in the
     Address master table for Business partner BUT020 and ADRC,so the address no in the above table are related to Business partner.
3) from where ie..which tcode or program these tables where populated.
4) is it necessary to update the corresponding Business partner data in the  table TEBP_ADR_SHIP_TO when we do any changes in the table TEBP_ADR_ADD.
Thanks in advance..

Hi Joe,
TEBP_ADR_ADD
Supplementary Table for TEBP_ADR_SHIP_TO
You can use T-Code BP to maintain data to view the info in the above table. For this you have to maintain multiple addresses.
Cheers.
...Reward if useful.

Similar Messages

  • Logic to update the table with IDOC numbers

    Hi all,
    I have an issue while I am running my interface. The IDOCs are getting generated and are displaying in WE02 successfully. But in my logic, I have a requirement to update these created IDOCs in a customized database table. This table has the IDOC number as the first key field.
    Now the issue is that when a file is placed on the FTP server with the data, the IDOCs get generated with no doubt but the table is not getting updated with these IDOC numbers due to which my other data is also not seen in my table.
    Please help with the logic that I need to place to update these IDOC numbers in my table.
    Thanks.
    Taarikha

    Also, this is happening when the file is placed. But when i run it manually through WE19 one by one, it has no problem. When it collectively run thorugh the file in background, this issue is ocuuring. Please help.
    Thanks.
    Taarikha

  • Doubt in attribute view on joining the table .

    Hello Team
                        Can some please help me in clearing the following doubts on joining tables .
    i) Can we perform a self join in attribute view in HANA . like for ex :- joining a table to itself .
    ii)Can we create an analytic view without creating an attribute view i.e creating an analytic view directly on tables .
    iii)When aggregation happens in calculation view exactly what happens internally .
    Please suggest me with the solution of these doubts .
    Regards

    Hi Prag,
    As Rashmi has answered your question, i would like to add up to it few more important points.
    1. Do not perform self join as it will return uncertain results. It is better to avoid self join.
    You can create a copy of the same table and perform join which will be consistent.
    2. In an analytic view, you will be adding table to data foundation, select the output fields.In the logical join node by default your data foundation will be present (this will contain the fields that you selected for output), you need not add any attribute view to this logical join node, leave it to default. In the semantics node select the attributes and measures. Perform validation and then activate. Your analytic view without attribute view is ready. You can check the data preview.
    3. In a calculation view, the records gets grouped by all the attributes and then the measures are calculated based on this grouping by using the mentioned aggregation (sum/max/min).
    Eg.
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     100         
    1001               01.2014     400
    1002               01.2014     200
    Output:
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     400
    1002               01.2014     200
    Hope this clarifies your doubts.
    Thanks and Regards,
    M.N.Adinarayanan

  • A doubt on the internal table

    hi guys,
    i'm having a issue where not able to get the data from selected_items below with
    zero_count NE 'X'.
    fact is we have data in the table, however for some unknown reason it doesn't pick up during the looping.
    pleaase kindly advise. thanks.
          IF NOT selected_items[] IS INITIAL.
           LOOP AT selected_items INTO w_selected_items_temp
            LOOP AT selected_items INTO w_selected_items_temp
            WHERE material = wa_picount_items-material
              AND batch = wa_picount_items-batch
              AND zero_count = 'X'.
              IF sy-subrc EQ 0.
                wa_picount_items-zero_count = 'X'.
                qty = 0.
                v_flag = 'X'.
              ENDIF.
            ENDLOOP.
            IF v_flag NE 'X'.
              LOOP AT selected_items INTO w_selected_items_temp
              WHERE material = wa_picount_items-material
                AND batch = wa_picount_items-batch
                AND zero_count NE 'X'.
                IF sy-subrc EQ 0.
                  wa_picount_items-zero_count = ''.
                  v_flag = 'Y'.
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.

    hi Boon,
    LOOP AT selected_items INTO w_selected_items_temp
    WHERE material = wa_picount_items-material
    AND batch = wa_picount_items-batch
    AND zero_count = 'X'.
    1. are you sure that wa_picount_items-material and wa_picount_items-batch have proper values?
    2. what is the definition of zero_count? (i. e. what is the data element behind?)
    thanks
    ec

  • Doubt on logging the table change

    For the logging the table changes, we have to check log data changes in the technical setting of a table. But came to know that it is not enogh to log the table changes. There is some parameter rec/client, that we need to take into consideration for logging the table changes. Can anyone please help me where exactly can i find that parameter and what changes do i need to make there.

    Hi,
    The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database.
    It has a Dependency:
    Logging only takes place if parameter rec/client in the system profile is set correctly.
    Now rec/client is a system parameter which i think you see in sytem profile but I am not sure how do we go about it.
    Some BASIS consultant can help you on this.
    Regards,
    Mayank Verdia
    Moderator message: copy/paste of parts of the F1 help of field "log data changes", points removed, please do not repeat this behaviour!
    Edited by: Thomas Zloch on Sep 7, 2010 9:39 AM

  • Mandatory Fields displaying in the table

    Hi
    In my create Page  , fields are present with input fields and DROP DOWN BY KEY AND rADIO GROUP.
    In that some of the fields are mandatory.
    If i enter values in that create page, it has to show fields in the table.
    But iam having only mandatory fields should come in the table.
    Our Abapers created table for the Mandatory fields only.
    Iam having doubt how the remaining fields(not showing in the table) will connect to the database.
    Will any one explain me on this.
    Please help me.
    Regards
    Sushma

    Iam trying to connect my web dynpro application to R3 Database.
    Iam having list screen consistts of Create and Export buttons and table.
    Table Fields :
    Allowance Code , sub code ,Type , Level , expense Type , amount
    After clicking Create button ,
    the screen consists of save and Cancel buttons.
    Allowance Code -- (Input Field)
    Sub Code -- (Input Field)
    Period Type -
    (Dropdown by key)
    Type -
    (Radio button Group)
    Level --- (Dropdown by key)
    Expense Type -(Dropdown by key)
    Trip - (Dropdown by key)
    Currency - (Dropdown by key)
    Amount --(Input Field)
    In the Create screen all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
    For this our Abapers created
    Fun Mod : Zup_Allowance_Input
    Table : ZMSTR_ALLOW
    Iam getting error in this code under IdataType in this "Save Button ".
    Can any one help me where i went wrong in this code.or else please provide the Code for this.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionSave(ServerEvent)
    try{
    String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
    String str2=wdContext.currentStdAllowanceElement().getSubCode();
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getPeriodType();
    String str3=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str3);
    String arr[]={"Fixed","Actual"};
    for(int i=0;i<arr.length;i++)
    IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
    wdContext.nodeCheck().addElement(e);
    e.setType(arr);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
    String index=wdContext.currentStdAllowanceElement().getLevel();
    String str5=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str5);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getExpenseType();
    String str6=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str6);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
    String index=wdContext.currentStdAllowanceElement().getTrip();
    String str7=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str7);
    IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
    String index=wdContext.currentStdAllowanceElement().getCurrency();
    String str8=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str8);
    String str9=wdContext.currentStdAllowanceElement().getAmount();
    Zup_Allowance_Input input=new Zup_Allowance_Input();
    input.setAllow_Opt("C");
    input.setAllowance_Code(str1);
    input.setSubcode(str2);
    input.setType1(str3);
    input.setLevel1(str5);
    input.setExpense(str6);
    input.setCurr_Key(str8);
    wdContext.nodeZup_Allowance_Input().bind(input);
    wdContext.currentZup_Allowance_InputElement().modelObject().execute();
    String str10=wdContext.currentOutputElement().get();
    if(str10.equalsIgnoreCase("3"))
    String errorMessage = "Inserted Successfully !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }if(str10.equalsIgnoreCase("2"))
    String errorMessage = "Duplicate Value !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }catch(Exception e)
    wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    //@@end
    //@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
    /** Declared validating event handler. */
    //@@end
    public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onPlugFromEtrecStdView(ServerEvent)
    wdContext.currentStdAllowanceElement().setAllowanceCode("");
    wdContext.currentStdAllowanceElement().setAmount("");
    wdContext.currentStdAllowanceElement().setSubCode("");
    //@@end

  • How can i find out the table hierarchy

    Hi experts,
    I have one doubt. how can i find out the table hierarchy in the particular schema.
    Let me explain my requirement in detail.. In my Database i have nearly 250 table each table have it's own temporary table(for authorization purpose we are maintaining the temporary tables) for each day i have to clear the temporary table data.
    All temporary table connected with each other. i mean all the table having foreign key relationship.. while i attempt the delete the data from the temporary table it showed ORA-02292: integrity constraint  violated - child record found.
    So can any one please tell how can i delete the child table record first and then parent record table record.
    Thanks in advance
    Arun

    CREATE OR REPLACE FUNCTION get_child_tables (
    ptable VARCHAR2,
    powner VARCHAR2 DEFAULT 'SCOTT',
    plevel NUMBER DEFAULT 10
    RETURN stringarray
    -- -- create this ON SQL*PLUS "CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);"
    -- AUTHID CURRENT_USER
    PIPELINED
    AUTHOR DATE VERSION COMMENTS
    ======================================================================================
    [email protected] 26-OCT-2009 1.0 Developed to ease developers effort to find Nth level of Referential integrity
    ======================================================================================
    -- PURPOSE -> To find PARENT=> CHILD relational TABLE(S) in Oracle upto a depth max N Level.
    --SYNTAX TO USE
    SELECT * FROM TABLE( get_child_tables('DEPT','SCOTT',3)); Store this query in a file for your use
    SELECT * FROM TABLE( get_child_tables('EMPLOYEE')); Store this query in a file for your use
    -- RESULTS looks as below
    --1 => DEPT
    --2 => EMP
    --2 => EMP2
    --3 => EMP_CHILD
    --3 => EMP2_CHILD
    -- and so on
    --This can be leveraged to use in any oracle database REGION 10g having and above.
    --This FUNCTION gives formatted result of the Oracle 10g Hierarchical query result coded in the cursor
    --to find MASTER => CHILD relational TABLE(S) upto a depth max 10 Level.
    --The result of the PIPELINED function can be retrieved using Oracle new operator
    --TABLE(array name) in SQL query.
    --Due to the AUTHID CURRENT_USER compiler directive any user can use based on his/her access privileges on the database.
    --GRANT EXECUTE ON SCOTT.get_child_tables TO PUBLIC;
    --CREATE OR REPLACE PUBLIC SYNONYM get_child_tables FOR SCOTT.get_child_tables;
    IS
    atname stringarray := stringarray ();
    -- create this ON SQL*PLUS CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);
    vlevel NUMBER;
    vtname VARCHAR2 (50);
    nindex NUMBER := 0;
    bprocessed BOOLEAN := FALSE;
    CURSOR c1 (powner_in IN VARCHAR2, ptable_in VARCHAR2, plevel_in NUMBER)
    IS
    SELECT LEVEL, LPAD (' ', (LEVEL - 1) * 2, ' ') || pt AS "TNAME"
    FROM (SELECT a.owner w1, a.table_name pt, a.constraint_name c1,
    a.r_constraint_name r1, b.owner w2, b.table_name ct,
    b.constraint_name c2, b.r_constraint_name r2
    FROM all_constraints a, all_constraints b
    WHERE a.constraint_name = b.r_constraint_name(+)
    AND a.owner = b.owner(+)
    AND a.owner =
    UPPER (powner)
    -- Change Owner here while testing
    --AND A.r_constraint_name IS NULL
    AND a.constraint_type IN ('P', 'R')) v1
    START WITH pt =
    UPPER
    (ptable)
    -- Change your master table here while testing the QUERY
    CONNECT BY PRIOR ct = pt AND LEVEL <= plevel;
    -- Change lavel here while testing
    BEGIN
    atname.EXTEND;
    atname (1) := 'NOTHING';
    OPEN c1 (powner, ptable, plevel);
    LOOP
    bprocessed := FALSE;
    FETCH c1
    INTO vlevel, vtname;
    IF nindex > 1 AND atname (atname.LAST - 1) = vtname
    THEN
    --DBMS_OUTPUT.PUT_LINE('2 ==== vtname  ' ||vtname || '   '|| atname.count|| '   '||atname.last ||  '   '||atname( atname.last-1));
    bprocessed := TRUE;
    END IF;
    IF NOT bprocessed
    THEN
    nindex := nindex + 1;
    atname.EXTEND;
    atname (nindex) := vtname;
    PIPE ROW (vlevel || ' => ' || vtname);
    DBMS_OUTPUT.put_line ( ' **** nindex - atname( nindex) '
    || nindex
    || ' - '
    || atname (nindex)
    DLOG('ADDING ',vTname); A LOGGING ATONOMUS PROCEDURE FOR DEBUG PURPOSE
    END IF;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    FOR i IN 1 .. atname.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('atname (i) ' ||atname (i));
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN no_data_needed
    THEN -- THIS EXCEPTION HAS TO BE THERE TO GET THE FUCTION WORKABLE
    DBMS_OUTPUT.put_line (SQLERRM);
    RETURN;
    --SELECT * FROM TABLE( get_child_tables('TB_XOP_LETR_TEMPLATE','OPS$CMS',5));
    END get_child_tables;
    Edited by: user3066657 on Jul 21, 2011 8:42 AM
    Edited by: user3066657 on Jul 21, 2011 11:26 AM

  • Doubt in DUAL TABLE

    Hi,
    below is one query
    SQL> select * from dual;
    D
    XNow from the below Query I came to know that there is one field in the dual table DUMMY which is having VARCHAR2(1)
    SQL> desc dual;
    Name                                                  Null?    Type
    DUMMY                                                          VARCHAR2(1)now my doubt is when I run the below query how it is displaying text more than 1 character
    SQL> select 'how are you' from dual;
    'HOWAREYOU'
    how are youplease explain
    thanks in advance.

    Hi,
    What you are SELECTing here nas no relation to any column in the table.
    There's nothing special about the dual table regarding literals. Try
    SELECT  'Hello'
    FROM    scott.dept;Notice that scott.dept does not have any 5-character columns, yet a query on scott.dept is producing a 5-character column.
    When you query a table, you don't have to SELECT all of the columns in the table. In fact, you don't have to SELECT any of the columns in the table, as you demonstrated.
    The query you posted, like the query above, does not refer to any columns in its base table; it's not surprising that the output doesn't resemble any column in the base table. In the case of the query above, which is based on a table that has 3 columns, the one column that we are SELECTing can't have the characteristics of all 3 columns in the table. Which column do you think the output should resemble, and why? 'Hello' is the first column of output; does that mean it has to resemble the first column in the table, which happens to be defined as NUMBER (2)? 'Hello' is also the last column of output; does that mean it has to resemble the last column of the table? 'Hello' is directly in the center of the output; does that mean it has to resemble the column that happens to be in the middle of the table? Of course not!
    Once agian, it is perfectly legal, and sometimes extremely useful, to have columns in a result set that have no connection at all to any column in the table.

  • Join the Table with View

    Hi,
    My doubt is can I join the table with view in the below where clause condition in the query. If yes, the below query will take 4 hrs to execute it. Can I do the below query to write as simplest?
    SELECT *
      FROM uabpymt p, uavlsum l
    WHERE uabpymt_appl_ind = 'N'
       AND uabpymt_amount > 5
       AND l.uavlsum_balance < 0
       AND l.uavlsum_cust_code = p.uabpymt_cust_code
       AND l.uavlsum_prem_code = p.uabpymt_prem_codeuavlsum ---view
    uabpymt ---table
    The view script below:
    CREATE OR REPLACE VIEW UAVLSUM
    (UAVLSUM_CUST_CODE, UAVLSUM_PREM_CODE, UAVLSUM_AMOUNT, UAVLSUM_BALANCE)
    AS
    SELECT cust_code,
           prem_code,
           SUM(amount),
           SUM(balance)
    FROM (
    SELECT uabopen_cust_code cust_code,
           uabopen_prem_code prem_code,
           uabopen_billed_chg amount,
           uabopen_balance balance
    FROM   uimsmgr.uabopen
    UNION ALL
    SELECT uabpymt_cust_code,
           uabpymt_prem_code,
           uabpymt_amount * -1,
           uabpymt_balance * -1
    FROM   uimsmgr.uabpymt
    UNION ALL
    SELECT uabadje_cust_code,
           uabadje_prem_code,
           uabadje_balance,
           to_number(0)
    FROM   uimsmgr.uabadje
    WHERE  uabadje_balance <> 0)
    GROUP BY cust_code,
             prem_code

    Find the below explain plan output which we get from the execute the query
    STATEMENT_ID            TIMESTAMP     REMARKS        OPERATION     OPTIONS          OBJECT_NODE OBJECT_OWNER            OBJECT_NAME            OBJECT_INSTANCE      OBJECT_TYPE OPTIMIZER      
                16/01/2009 05:57:24                   SELECT STATEMENT                                                                                                                           RULE                                                                                                                                                   
                16/01/2009 05:57:24                   FILTER                                                                                                                                                                                                                                    
                16/01/2009 05:57:24                   SORT           GROUP BY                                                                                                                                                                                                                      
                16/01/2009 05:57:24                   TABLE ACCESS           BY INDEX ROWID                     UIMSMGR                     UABPYMT                                1                                             
                16/01/2009 05:57:24                   NESTED LOOPS                                                                                                                                                                                                                                  
                16/01/2009 05:57:24                   VIEW                                                   UIMSMGR                                                         3                                             
                16/01/2009 05:57:24                   UNION-ALL                                                                                                                                                                                                                              
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABOPEN                                    4                                             
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABPYMT                                    5                                             
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABADJE                                    6                                                                                                                                                         
                16/01/2009 05:57:24                   INDEX       RANGE SCAN                                   UIMSMGR                     UABPYMT_CUST_PREM_INDEX                        NON-UNIQUE                                                                                                                           
    Index column:
    Table name :UABPYMT
    Column Name
    UABPYMT_APPL_IND  
    UABPYMT_APPROVED_IND    
    UABPYMT_PYMT_DATE          
    UABPYMT_SOURCE    
    UABPYMT_ORIGIN                   
    UABPYMT_CUST_CODE          
    UABPYMT_PREM_CODE         
    UABPYMT_PYMT_DATE          
    UABPYMT_AR_TRANS             
    UABPYMT_GL_IND                  
    UABPYMT_GL_POST_DATE     
    UABPYMT_AR_TRANS  

  • Doubts about Temporary Table.

    Hi,
    I am using Temporary Table.
    But the insert command takes too much time compare to insert in Normal table.
    One more doubt about Temporary Table is:
    Suppose there are two different users. They connect and first insert rows of their use .Now they go for select.
    Does select of one user goes to check the rows of second user also or the temporary table treats 2 users data as inserted in 2 different tables?
    Help!!!

    Nested structure (not deep - deep means their a string or a table as a component)
    TYPES: BEGIN OF tp_header_type,
             BEGIN OF d,
               empresa TYPE ...
               num_docsap TYPE ...
            END OF d,
            awkey TYPE ...
          END OF tp_header_type.
    matt

  • Link the Tables:

    Hai gurus,
    When i access the table BLPR , system displays the followig message.
    No table entries found for the specified key.
    So my doubt is when system will update this table or how to access the table to display the stored value.
    i want to link the document log or item with reference to planned order.
    Thats why i checked that table(BLPR). Becoz in that tables (BLPK & BLPP) there is no link between planned order. So how to track the document log with reference to planned order. Is it possible with std or how to map this one? Pls give some logic...
    Please guide me.
    Thanks & regards,
    Meena

    <b>You can refer this report:-</b>
    tables: mchb, mara, lqua.
    data: begin of itab occurs 0,
          matnr type mchb-matnr,
          werks type mchb-werks,
          lgort type mchb-lgort,
          pradh type mara-prdha,
          wdatu type lqua-wdatu,
          end of itab.
    select-options: s_matnr for mchb-matnr,
                    s_prdha for mara-prdha,
                    s_wdatu for lqua-wdatu.
    start-of-selection.
      select * into corresponding fields of table itab
                from mchb
                      inner join mara
                          on mchbmatnr = maramatnr
                      inner join lqua
                          on mchbmatnr = lquamatnr
                         and mchbwerks = lquawerks
                                  where mchb~matnr in s_matnr
                                    and mara~prdha in s_prdha
                                    and lqua~wdatu in s_wdatu.
    Regards,
    Abhay Singh.
    <b>rewards point if useful.</b>

  • To Get all the Table Names

    Hi All
    I have nearly 70 procedures in my database.
    I want to get all the distinct table names used in the 70 procedures.
    Is it possible?
    Note:
    All the table names are prefixed by schema name like DEVSRC.table_name.
    Please advice
    Thanks
    Jo

    Johney  wrote:
    Hi VT
    One doubt.
    This query will give the table names of only select stmt used in the procedure
    or
    List of table names that are with in any DML operations inside the procedure?
    Thanks
    JoIt will give all the table either used in select or in any DML..
    You can also check by creating a temp proc
    SQL> drop procedure proc_test;
    Procedure dropped.
    SQL> select name, referenced_name, dependency_type from user_dependencies
      2  where type = 'PROCEDURE' and referenced_type = 'TABLE' and name='PROC_TEST';
    no rows selected
    SQL> create or replace
      2  PROCEDURE proc_test
      3  IS
      4  v_ID    number;
      5  v_PRID  number;
      6  v_PRLID number;
      7  v_DATERECEIVED date;
      8  Cursor C1 is
      9  select * from table_c;
    10   BEGIN
    11   open c1;
    12     LOOP
    13      FETCH c1 INTO v_ID,v_PRID,v_PRLID,v_DATERECEIVED;
    14      EXIT WHEN c1%NOTFOUND;
    15      insert into table_b values(v_ID,v_PRID,v_PRLID,v_DATERECEIVED);
    16      Commit;
    17     END LOOP;
    18   CLOSE C1;
    19   END;
    20  /
    Procedure created.
    SQL> select name, referenced_name, dependency_type from user_dependencies
      2  where type = 'PROCEDURE' and referenced_type = 'TABLE' and name='PROC_TEST';
    NAME
    REFERENCED_NAME                                                  DEPE
    PROC_TEST
    TABLE_B                                                          HARD
    PROC_TEST
    TABLE_C                                                          HARD
    SQL> Regards
    Umesh

  • Accesing the tables of one schema in another schema

    Hi
    I have doubt .. suppose i have a user called DEMO and it has tables . now i have a another user called DEMO1
    my doubt is . how can i get the tables of DEMO user into DEMO1. If update the table in DEMO1 that should reflect
    in DEMO user. help me.........

    Before going further, you should clarify your requirements and make sure you have a good understanding of:
    - Synonyms
    - Views
    - Replication such as materialized views
    - Basic security including object grants
    Assuming this is all in the same database...
    If you just need to have one user access data in another schema, you need grants.
    If you need to make it 'look like' the data in that other schema is in your schema, you should be looking at synonyms or views.
    If you need to capture the data periodically from the other schema, you should be looking at materialized views.
    If you are straddling multiple databases then the choices may be less clear-cut but you should still be looking at these capabilities to assemble a solution
    From what you have said so far, triggers should not even be on your radar.

  • Can't find null on the table

    Hi Everyone,
    This is so weird.
    I tried to find the sum of revenue_amt in my table. (see SQL step #1)
    It returned a null.
    So i know that i have a row that contains a null in the revenue_amt column.
    I verified using this query.(see SQL step #2)
    But when i look for the row that contains the null. Nothing comes up (see SQL step #3)
    can someone help? this is so weird.
    SQL step #1:
    select sum(revenue_amt) from cf_ft;
    SUM(REVENUE_AMT)
    SQL step #2:
    select sum(revenue_amt) from cf_ft where revenue_amt is not null;
    SUM(REVENUE_AMT)
    759.56
    SQL step #3:
    select * from cf_ft where revenue_amt is null;
    no rows selected

    Basically the result shown is kind of impossible as a sum without where clause cannot come up with a null result if a sum with where clause returns an amount. This is because the aggregate functions ignore null values.
    So i doubt that those results are based on your queries or that the results have been shown within one session that had repeatable reads enabled. A sum may only show null as result if
    a) there are no rows in the table
    b) all rows have null values
    hth

  • How to find block free space  and PCTUSED FOR THE TABLE

    HI all,
    Due to performance issues for my database , my management ask me to reset the PCTUSED and PCTFREE values , and my doubt is
    1)How to find the current PCTUSED and PCTFREE values.
    2)How to find block free space and PCTUSED FOR THE TABLE.
    Please help me out regarding this.
    Regards,
    Vamsi.

    1)version is 10.2.0.4
    2)output of query
    tablespace extent_management allocation_type segment_space_management
    SYSTEM     LOCAL     SYSTEM     MANUAL
    UNDOTBS1     LOCAL     SYSTEM     MANUAL
    SYSAUX     LOCAL     SYSTEM     AUTO
    TEMP     LOCAL     UNIFORM     MANUAL
    USERS     LOCAL     SYSTEM     AUTO
    UNDOTBS2     LOCAL     SYSTEM     MANUAL
    INS     LOCAL     SYSTEM     AUTO
    CONFTBS     LOCAL     SYSTEM     AUTO
    REINS     LOCAL     SYSTEM     AUTO
    ANALYST     LOCAL     SYSTEM     AUTO
    BI     LOCAL     SYSTEM     AUTO
    INTRFC     LOCAL     SYSTEM     AUTO
    COGNOS     LOCAL     SYSTEM     AUTO
    TS_INDX     LOCAL     SYSTEM     AUTO
    TS_CHOLAWEB     LOCAL     SYSTEM     AUTO
    TS_DASBOARD     LOCAL     SYSTEM     AUTO

Maybe you are looking for

  • Recent changes in patch entitlement for Solaris 10 sparc systems?

    Have there been any, especially those which non-contract customers should know about? I am running Sol 10 u3 sparc on a Sun Blade workstation. Today, I noticed that some patches already installed on my system are now considered private on SunSolve (e

  • Problem with uninstalling an extension

    Is there any way to clean up or reset the folders in the component panel? I was experimenting with the "required-restart" attribute in the MXI file and I think that may have caused the problem. A folder exists in my components panel (containing 2 com

  • Photoshop cs6 extended stopped working

    Hello.I was using my photoshop cs6 extended for about two months and it was working good,no problems.Then i stopped using it for about 3 months and today when i decided to use it again-it's stopped working.When i press on Photoshop.exe-nothing happen

  • Wi-fi is connected but safari and mail say "not connected to the internet" and "check outgoing server"

    When I try to connect to safari, I receive the notice "safari cannot open the page because it is not connected to the internet".  I get a similar message when i attempt to open any of my three mail accounts, which I have since deleted and tried to re

  • Dual Cat6k with Firewall module scenario

    Hi All, Does anyone have design guides for Core Cat6k L2/L3 network with Firewall modules in two different chassis ? Thanks, Praful