Doubt Regarding Table Accessed via DB Link

I have the following SQL:
select * from tab1@db_link tab1, tab2
where tab1.col1=tab2.col2
and tab1.col2=99;
Can I ensure that Oracle brings data corresponding to:
select * from tab1@db_link tab1
where tab1=99;
and then joins the data with tab2.
What could be fastest way to access data in this manner? Basically i need to tune a similar query.

No not much difference. On both the cases oracle goes for the same plan. Here is a small test case
select t.*
  from t@to_inlabnew t, t1
where t.object_id = t1.object_id
   and t.object_type = 'TABLE'
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.03       0.16          0          0          1           0
Execute      1      0.00       0.00          0          0          0           0
Fetch      171      1.09       1.68          0          6          0        2544
total      173      1.12       1.84          0          6          1        2544
Rows     Execution Plan
      0  SELECT STATEMENT   GOAL: ALL_ROWS
   2544   HASH JOIN
   1000    INDEX   GOAL: ANALYZED (FAST FULL SCAN) OF 'T1_IDX' (INDEX)
199792    REMOTE OF 'T' (REMOTE)
               [TO_INLABNEW.REGRESS.RDBMS.DEV.US.ORACLE.COM]
              SELECT "OWNER","OBJECT_NAME","SUBOBJECT_NAME","OBJECT_ID",
              "DATA_OBJECT_ID","OBJECT_TYPE","CREATED","LAST_DDL_TIME",
              "TIMESTAMP","STATUS","TEMPORARY","GENERATED","SECONDARY" FROM
                "T" "T" WHERE "OBJECT_TYPE"='TABLE'
select t.*
  from (select * from t@to_inlabnew where object_type = 'TABLE') t, t1
where t.object_id = t1.object_id
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch      171      1.09       1.46          0          6          0        2544
total      173      1.09       1.46          0          6          0        2544
Rows     Execution Plan
      0  SELECT STATEMENT   GOAL: ALL_ROWS
   2544   HASH JOIN
   1000    INDEX   GOAL: ANALYZED (FAST FULL SCAN) OF 'T1_IDX' (INDEX)
199792    REMOTE OF 'T' (REMOTE)
               [TO_INLABNEW.REGRESS.RDBMS.DEV.US.ORACLE.COM]
              SELECT "OWNER","OBJECT_NAME","SUBOBJECT_NAME","OBJECT_ID",
              "DATA_OBJECT_ID","OBJECT_TYPE","CREATED","LAST_DDL_TIME",
              "TIMESTAMP","STATUS","TEMPORARY","GENERATED","SECONDARY" FROM
                "T" "T" WHERE "OBJECT_TYPE"='TABLE'

Similar Messages

  • Internal PLSQL Tables Access via SQL. But how ?

    Hello,
    I want to write the result of a database query in an internal PLSQL Table. After that i would like work with this internal PLSQL Table
    in a Package/Procedure/Function.
    Important for me is to access the internal Table via SQL because i have to refactor a package wich is working with 46 Database Tables an plain SQL. I
    would like to change these DB Tables into internal PLSQL Tables.
    I have written a short example wich will explain my approach to solving this problem.
    The syntax will be accepted by the Database but my 'dbms_output.put_line' statement at the end is empty or blank.
    What do i wrong ? Would be nice if anyone can help me out.
    With best regards
    Jens
    pre work :
    create table PERSON_DB_TABLE
    (SURNAME  VARCHAR2(50),
    LASTNAME VARCHAR2(50));
    insert into PERSON_DB_TABLE values
    ('JENS','FOERSTER');
    insert into PERSON_DB_TABLE values
    ('MAX','MEIER');
    insert into PERSON_DB_TABLE values
    ('MARTHA','MUSTERMANN');
    create type PERSON_OBJECT as object (
        SURNAME  VARCHAR2(50),
        LASTNAME VARCHAR2(50));
    create type PERSON_NESTED_TABLE as table of PERSON_OBJECT;
    now my anonymous block
    declare
       v_PERSON_OBJECT        PERSON_OBJECT;
       v_PERSON_NESTED_TABLE  PERSON_NESTED_TABLE;
       v_PERSON_OBJECT_2      PERSON_OBJECT;
    begin
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT.SURNAME,
                                                                                            v_PERSON_OBJECT.LASTNAME
                                  from PERSON_DB_TABLE)
         loop
            v_PERSON_NESTED_TABLE := PERSON_NESTED_TABLE(v_PERSON_OBJECT);
         end loop;
       for v_counter in (select SURNAME, LASTNAME into v_PERSON_OBJECT_2.SURNAME,
                                                                                            v_PERSON_OBJECT_2.LASTNAME
                                  from TABLE (v_PERSON_NESTED_TABLE))
         loop
            dbms_output.put_line(v_PERSON_OBJECT_2.LASTNAME);
         end loop; 
    end;

    1386a7b8-e834-43bf-a0d4-922b548bb70b wrote:
    I need this, because my customer didn't like the idea to use Database Tables instead of Variables in the RAM. So he wants this procedure redesigned.
    As Mike says, keep this person away from your database.
    Customers should not be dictating how to implement technical solutions, they should be providing business and logical requirements.
    PL/SQL arrays/collections use expensive PGA memory, taking up valuable server resources.
    Copying data from the database to PGA memory to try and process it using PL/SQL is bad design.  SQL is designed specifically for data manipulation using database tables, so it's the ideal way to do process data... directly on database tables.

  • Abap-table access via JDBC

    Hello,
    we have a java-program, that accesses data via jdbc to a mysql-database.
    Now we want to migrate the mysql-table to abap-table.
    How can we access from the  java-program to theese migrated abap-tables via jdbc?
    Regards Oliver

    Oliver,
    If you want to access those tables from SAP, then you have to use the Java Connectors (
    JCO).
    Please write the more details abount the java IDE and OS, which you are using I will send you appropriate help.
    Thanks

  • Table access using DB link

    Hi all,
    I have database A and database B. I have a table in A that I want to grant insert access to B. I have a DB link(Blink) created on B. I executed the following statement with errors though. Can someone please advise.
    GRANT INSERT, SELECT ON A.table1 TO scott@Blink;

    Hi,
    SunS wrote:
    I have user userB in database B who connects to A. When I execute the following statement, I get an error "user or role userB does not exist"
    GRANT INSERT, SELECT ON A.table1 TO userB;Exactly.
    Now the question is: What user on database A is associated with that link? When someone on database B uses a link to database A, they connect as some particular user on database A. Who is that user on database A?
    Say userB on database B is supposed to do things like this
    SELECT ... FROM table1@alink;What did you say after "CONNECT TO" when you created the link? If you don't remember, then, on database B, say
    SELECT  username
    FROM    all_db_links
    WHERE   dblink  = 'ALINK';That's the user on database A that needs privileges.

  • Interactive pdf is "dead" after accessing via intranet link in IE

    Hello,
    Our marketing dept. has created some nice interactive PDF's.    After posting to the intranet, however, these come down "flat" (all interactivity stripped out) in the IE pdf viewer.  I'm assuming that this is by design for security reasons.
    The audience is technophobic and unable to open Acrobat reader and flip the setting.   I'm exploring setting the default reader to Acrobat via a registry edit.
    Is there any way to tell the IE in-browser pdf reader to allow interactivity to be displayed if a document is from a trusted URL?   We're using about 90% IE 7 and 8 with some IE6 remaining.
    Any input/suggestions that you can provide would be greatly appreciated.
    Thanks,
    Trey Carroll

    Hi Bernd,
    The interactivity is mostly just a bunch of links that allow navigation within the pdf.   Also, the page orientation where 2 pages display side-by-side (horizontally) is lost and the pages render singly in sequential order (vertically) when viewed in IE.    I was guessing that this was becuase the IE viewer imposes security restrictions.
    Thanks,
    Trey Carroll

  • Doubt regarding database access

    Can we configure a datasource in two different domains with same name and URL each targetting to the same database instance? Is it possible?

    Yes,
    You can configure a Datasource with same DataSourceName and Same Database URL/Username/password (Means Same Database) for two different Domains.
    As well as you can manage these DataSource Details using WLST as a Centralized control util as well: http://middlewaremagic.com/weblogic/?p=4956
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/?p=4751  (Middleware Magic Is Here)

  • Error(Access via 'NULL' object reference ) in link to action

    Hi,
          I have a table-VBAK with "LinkToAction" is one of my column,Once i click  that action,i want to call one more table-VBAP  in the "TablePopin".
    <b>OnAction of "LinkToAction"</b>
    I called the another Table(VBAP)-"TablePopin" with the help of following code,
    <u>context_element->set_attribute( name = 'SELECTED_POPIN' value = 'TABLEPOPIN' ).</u>
      Now i want to fill the VBAP-Table.
    So <b>OnAction of "LinkToAction"</b>.
    i called the
    method ONACTIONOPEN_POPIN .
    DATA:
        NODE_VBAK1                          TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_VBAK1                          TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_VBAK1                          TYPE WD_THIS->ELEMENT_VBAK1,
        wa_vbap type vbap,
        itab_vbap like table of wa_vbap.
    navigate from <CONTEXT> to <VBAK1> via lead selection
      NODE_VBAK1 = WD_CONTEXT->GET_CHILD_NODE( NAME = 'VBAK1' ).
    @TODO handle not set lead selection
      IF ( NODE_VBAK1 IS INITIAL ).
      ENDIF.
    get element via lead selection
      ELEM_VBAK1 = NODE_VBAK1->GET_ELEMENT(  ).
    @TODO handle not set lead selection
      IF ( ELEM_VBAK1 IS INITIAL ).
      ENDIF.
      ELEM_VBAK1->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_VBAK1 ).
    if stru_vbak1 is not initial.
    select * from vbap into table itab_vbap where vbeln = STRU_VBAK1-vbeln.
    endif.
    context_element->set_attribute( name = 'SELECTED_POPIN' value = 'TABLEPOPIN' ).
    endmethod.
    i set the break point and check it.once it enter into the following area of the above code,i am getting error like <b>Access via 'NULL' object reference</b>
    <b>ELEM_VBAK1->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_VBAK1 ).</b>
    Now my problem is,i want to fill the VBAP-Table in my "TablePopin".Once i click the "LinktoAction" in my Main Table.
    can any body share your ideas.
    Thanks in Advance,
    Regards,
    Ravi.

    Hi Ravi,
    Have you filled in the node_vbak1 with some elements? Lets say in a supply function or wddoinit etc.?
    Just check that. After that, make sure you have IntializeLeadSelection property set to true for the node_vbak1.
    Hope this helps.
    Regards,
    Neha

  • How to test issue with accessing tables over a DB link?

    Hey all,
    Using 3.1.2 on XE, I have a little app. The database schema for this app only contains views to the actual tables, which happen to reside over a database link in a 10.1.0.5.0 DB.
    I ran across an issue where a filter I made on a form refused to work (see [this ApEx thread| http://forums.oracle.com/forums/message.jspa?messageID=3178959] ). I verified that the issue only happens when the view points to a table across a DB link by recreating the table in the local DB and pointing the view to it. When I do this, the filter works fine. When I change the view back to use the remote table, it fails. And it only fails in the filter -- every other report and every other tool accessing the remote table via the view works fine.
    Anyone know how I can troubleshoot this? For kicks, I also tried using a 10.2.0.3.0 DB for the remote link, but with the same results.
    TIA,
    Rich
    Edited by: socpres on Mar 2, 2009 3:44 PM
    Accidental save...

    ittichai wrote:
    Rich,
    I searched metalink for your issue. This may be a bug in 3.1 which will be fixed in 4.0. Please see Doc ID 740581.1 Database Link Tables Do NoT Show Up In Table Drop Down List In Apex. There is a workaround mentioned in the document.
    I'm not sure why I never thought of searching MetaLink, but thanks for the pointer! It doesn't match my circumstances, however. The Bug smells like a view not being queried in the APEX development tool itself -- i.e. the IDE's coding needs changing, not necessarily those apps created with the IDE.
    I'm working on getting you access to my hosted app...
    Thanks,
    Rich

  • Accessing partitioned table thru remote databse link

    Dear All
    I want to use create table command in my database .I want access partitioned table of remote datbase thru database link.Pl let me know the scripts.
    Thanks
    Parth
    NB : I was using the foll but actually the data given is wrong.
    select * from Data@prod "partition(part_feb03)";

    Don't able use partition table with the database link, sorry
    Regards
    Hector

  • Can a SQL SERVER table be accessed via Oracle Forms

    My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
    "Can a SQL SERVER table be accessed via Oracle Forms?"

    Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Doubts regarding partition table.

    hi friends,
    i'm using oracle 10g (10.2.0.1) on windows server 2003
    i've a table, contains more than 2 million records, and it is range partition with quarterly by year.
    like values less than('01-05-2008')
    values less than('01-09-2008')
    selecting multiple partition in single query without union is not possible.
    so i fire the query like.
    select col1,col2,col3 from table where r_date between ('01-01-2008','25-06-2008');
    i would like to know that with this query, it will scan full table or it will scan only those two partitions...?
    thanks,

    i did that..
    when i fire the following query...
    select /*+ first_rows(1000) */ col1,col2,col3
    from table
    where r_date between to_date('01-01-2008','dd-mm-yyyy') and to_date('01-03-2008','dd-mm-yyyy');
    explain plan:
    SELECT STATEMENT, GOAL = HINT: FIRST_ROWS               11     1001     50050     640279     0     1     161
    PARTITION RANGE ITERATOR               11     1001     50050     640279     1     1     161
    TABLE ACCESS FULL     DBO     KEY_HISTORY_PART     11     1001     50050     640279     2     1     161
    it shows table access full and partition range iterator..
    because of that i'm asking..
    thanks..

  • Access via NULL reference object not possible

    Hi friends,
      I have created an wda application which uses the table popin to display data.
      So that i have created a view with two of the  fields as link to action UI element.
      In the Events/Actions of the link to action element i implemented the following logic.
      data wd_table_cell_editor type ref to cl_Wd_view_element.
      data wd_table_column      type ref to cl_wd_table_column.
      data wd_popin             type ref to cl_wd_table_popin.
      data id type string.
    <b> wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
      wd_table_column ?= wd_table_cell_editor->get__parent( ).
      wd_popin = wd_table_column->get_popin( ).
      context_element->set_attribute( name = 'SELECTED_POPIN' value =
    wd_popin->id ).
    So when i click on the link to action in the table column of the field am getting the following error
    <b>Access via NULL reference object not possible.</b>
    While debugging i have noticed that this error was coming at the below step of the code.
    <b>wd_table_cell_editor ?= wd_this->m_view->get_element( id )</b>
    in the m_view->get_element( id ) does not contan any value , its showing as table , as null value cannnot be assigned may be its throwing the above error.
    But i didnt understand why the view is not getting UI element id ....
    Can one please suggest me where might be the wrong....
    Regards
    Sireesha.

    Hi nithya,
      Could you please calrify the doubts for the following q's.
    1. As u said in the above post, i have changed the code to the below.
         data: lr_table type ref to cl_wd_table,
    lr_table_col type ref to cl_wd_table_column.
    lr_table ?= wd_this->m_view->get_element( 'TABLE' ).
    lr_table_col = lr_table->get_column( ID = 'TABLE_CONNECTID' ).
      <b>wd_popin = lr_table_col->get_popin( ).</b>
    (At the above step which is in bold , eventhough there is value in lr_table_col->get_popin , its not assigning a value to the wd_popin, throwing same error NULL etc.,)
      context_element->set_attribute( name = 'SELECTED_POPIN' value =
    wd_popin->id ).
    2. Before changing the code suggested by u, the follwoing was the code from standard example.Its working fine in the application wdr_test_table.I have debugged the code.The value is getting assigned into wd_table_cell_editor.
    The same thing i have done but its failing to assign the value. thats y its throwing null reference error. Here i have a confusion how its assigning a value and y not in the z application.am giving the code below which is in standard and my application.Please clarify these.
    data wd_table_cell_editor type ref to cl_Wd_view_element.
      data wd_table_column      type ref to cl_wd_table_column.
      data wd_popin             type ref to cl_wd_table_popin.
      <b>wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
    ( Note :  wd_this->m_view->get_element contains value but not assigning it to the wd_table_cell_editor and same code in the standard behaving correctly like assigning the view value to the cell editor. Y this behavior, please advice me)
      wd_table_column ?= wd_table_cell_editor->get__parent( ).
      wd_popin = wd_table_column->get_popin( ).
      context_element->set_attribute( name = 'SELECTED_POPIN' value = wd_popin->id )
    Regards
    Sireesha.

  • Problem with Web Dynpro ABAP Adobe form Access via 'NULL' object reference

    Hi All!
    I'm a beginner of Adobe form.
    problem 1:
    I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    problem 2:
    I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    Hope anyone could save me,
    Thanks & Regards,
    Murloc

    >
    tomcat123 wrote:
    > Hi All!
    > I'm a beginner of Adobe form.
    > problem 1:
    > I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    > I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    > I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    Check that you have entries in the Table MARI. else you will get this message.
    > problem 2:
    > I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    >
    Compare the adobe live cycle version. it will work fine with 7.0/7.1
    > Hope anyone could save me,
    > Thanks & Regards,
    > Murloc

  • Web-UI error message "Access via 'NULL' object reference not possible"

    I need some help, I'm not a Basis person but I need to get this connection problem resolve.
    This problem is in our DEV ICWeb system.  After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible".  We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
    From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination.  But we don't have that destination setup in all our systems.
    Here is the complete error message:
    Error when processing your request
    What has happened?
    The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    Note
    ■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
    ■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
    ■The termination type was: RABAX_STATE
    ■The ABAP call stack was:
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
    Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
    Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
    Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
    Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    What can I do?
    ■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
    ■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.

    Hi Michael,
    Refer to the link below and check the procedure.
    http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    Regards,
    Arjun

  • Access via 'NULL' object reference not possible   - GET_RANGE_TABLE_OF_SEL_

    Hi Guru's,
       i am new for WebDynpro programming.I am trying to use select-options tutorial.
    System showing select options and table binding on screen when i test the application.
    I have using search button to get the value which user will i/p.for that onaction method created, i have writen the code to get the values which user will input.
    Method  given below is of componentcontroler
    method wddoinit .
      data: lt_range_table type ref to data,
            rt_range_table type ref to data,
            read_only type abap_bool,
            lt_range_table1 type ref to data.
      data: lr_componentcontroller type ref to ig_componentcontroller,
            l_ref_cmp_usage type ref to if_wd_component_usage.
    create the used component
      l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      wd_this->m_handler->set_global_options(
                              i_display_btn_cancel  = abap_false
                              i_display_btn_check   = abap_false
                              i_display_btn_reset   = abap_false
                              i_display_btn_execute = abap_false ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
      wd_this->m_handler->add_selection_field( i_id = 'CARRID'
      it_result = lt_range_table i_read_only = read_only ).
      call method wd_this->m_handler->add_horizontal_divider
        exporting
          i_id = 'LINE'.
    endmethod.
    Method  given below is of VIEW.
    method ONACTIONSEARCH .
      DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    endmethod.
    while executing appln. error is trigger on line given below
    RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Err: The following error text was processed in the system BCD : Access via 'NULL' object reference not possible.
    please help me out on this issue.
    Thanks and Regards
    Vinayak Sapkal

    hi ,
    The attribute M_HANDLER is an attirbute of component controller (as told by your post) and so you cannot access it as you have done it.
    You will have to access it as .
    WD_COMP_CONTROLLER->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD(I_ID = 'S_CARR_ID' ).
    Try doing it.
    Or else , if you have created a similar attribute in your view itself , then it is "INITIAL" and hence you are getting the dump.
    You will have to assign the view attribute "M_HANDLER" with the value of your component controller attribute "M_HANDLER" ,because all the initializations are done in WDDOINIT of comp controller and on component controller atribute "M_HANDLER".
    Thanks,
    aditya.

Maybe you are looking for