ABAP webDynpro MS Office component usage throws -  Access via 'NULL' object

I am trying to include MS office word in my custom ABAP webDynro application based on the sample SAP Package SIOS for all the MS office component usage. <br>
In WDMODIFY method  , when the courser is reaching the point to call office component  it throws a Null pointer exception. Not sure , if i am missing some thing here or skip a step. Please advice. <br>
get the IOS interface <br>
  wd_this->factory ?= office->_method_handler. <br>
Below is the code for WDMODIFY <br>
method WDDOMODIFYVIEW . <br>
DATA: <br>
    office TYPE REF TO cl_wd_view_element, <br>
    office_res TYPE REF TO cl_wd_view_element,<br>
    mime_repository TYPE REF TO if_mr_api,<br>
    content TYPE xstring, <br>
    url TYPE string VALUE <br>
'/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration' & <br>
'/iostest_fields.doc'. <br>
  DATA refexp TYPE REF TO cx_ios_exception.
  DATA: msgid TYPE syst-msgid,
     msgnr TYPE syst-msgno,
     msgty TYPE syst-msgty.
  get message manager
  DATA: l_current_controller TYPE REF TO if_wd_controller,
        l_message_manager    TYPE REF TO if_wd_message_manager.
  DATA envproxy TYPE REF TO if_ios_environment.
just do it once
  CHECK first_time = abap_true.
  mime_repository = cl_mime_repository_api=>get_api( ).
  CALL METHOD mime_repository->get
    EXPORTING
      i_url     = url
    IMPORTING
      e_content = content.
  wd_context->set_attribute( name = 'DATAS' value = content ).
get the office control
  office ?= view->get_element( 'GENERIC_OFFICE' ).
  ASSERT ID sios_demo CONDITION  office IS BOUND.
not possible : Missing bugfix component bc-wd-aba
office_res ?= view->get_element( 'RESULT_DOCUMENT' ).
ASSERT ID sios_demo CONDITION  office IS BOUND.
get the IOS interface
  wd_this->factory ?= office->_method_handler.
  ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.
wd_this->factory_res ?= office_res->_method_handler.
ASSERT ID sios_demo CONDITION wd_this->factory_res IS BOUND.
  TRY.
      wd_this->factory->get_wordprocessing_proxy(
         IMPORTING proxy = wd_this->document  ).
      ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
     wd_this->factory_res->get_wordprocessing_proxy(
        IMPORTING proxy = wd_this->document_res  ).
     ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
*calling    setfields
      DATA co_error_info_getfields TYPE REF TO if_wd_context_element.
      DATA co_error_info_getfields_stru TYPE wdr_ext_attribute_pointer.
      co_error_info_getfields = wd_context->get_lead_selection( ).
      co_error_info_getfields_stru-attribute_name =
'error_info_getfields'.
      co_error_info_getfields_stru-element = co_error_info_getfields.
      DATA fields TYPE if_ios_wordprocessing=>fields_type.
      DATA fieldstable TYPE if_ios_wordprocessing=>fields_type_table.
      DATA co_fieldcontent TYPE REF TO if_wd_context_element.
      DATA co_fieldcontent_stru TYPE wdr_ext_attribute_pointer.
      DATA inputfield1 TYPE xstring.
      DATA tabulator TYPE xstring.
      DATA endofline TYPE xstring.
      DATA: conv TYPE REF TO cl_abap_conv_out_ce.
      DATA: testfielddata TYPE string.
      testfielddata = 'SAPTEST'.
      conv = cl_abap_conv_out_ce=>create( encoding = '4110'
ignore_cerr = abap_true ).
      CALL METHOD conv->convert( EXPORTING data = 'field1'
                                       IMPORTING buffer =
fields-fieldidentifier  ).
      CALL METHOD conv->convert( EXPORTING data = testfielddata
                                       IMPORTING buffer = fields-value
      CALL METHOD conv->convert( EXPORTING data =
cl_abap_char_utilities=>horizontal_tab
                                       IMPORTING buffer = tabulator  ).
      CALL METHOD conv->convert( EXPORTING data =
cl_abap_char_utilities=>cr_lf
                                       IMPORTING buffer = endofline  ).
      wd_context->set_attribute( name = 'inputfield1'
                                 value = testfielddata ).
      APPEND fields TO fieldstable.
      wd_context->set_attribute( name = 'fieldcontent' value =
fieldstable ).
      co_fieldcontent = wd_context->get_lead_selection( ).
      co_fieldcontent_stru-attribute_name = 'fieldcontent'.
      co_fieldcontent_stru-element = co_fieldcontent.
document is set through datasource!
      wd_this->document->setfields( EXPORTING fieldsptr =
co_fieldcontent_stru
                                              tabulator = tabulator
                                              endofline = endofline
                                              errorinformation =
co_error_info_getfields_stru ).
*calling    opening result document
      DATA co_error_getcontent TYPE REF TO if_wd_context_element.
      DATA co_error_getcontent_stru TYPE wdr_ext_attribute_pointer.
      co_error_getcontent = wd_context->get_lead_selection( ).
      co_error_getcontent_stru-attribute_name = 'error_getcontent'.
      co_error_getcontent_stru-element = co_error_getcontent.
      DATA co_createdcontent TYPE REF TO if_wd_context_element.
      DATA co_createdcontent_stru TYPE wdr_ext_attribute_pointer.
      co_createdcontent = wd_context->get_lead_selection( ).
      co_createdcontent_stru-attribute_name = 'createdcontent'.
      co_createdcontent_stru-element = co_createdcontent.
waiting of ACF Patch!
     wd_this->document->getcontent( errorinformation =
*co_error_getcontent_stru
     contentpointer_result =  co_createdcontent_stru ).
*calling    reopening template
      DATA error_opendocument TYPE REF TO if_wd_context_element.
      DATA error_opendocument_stru TYPE wdr_ext_attribute_pointer.
      error_opendocument = wd_context->get_lead_selection( ).
      error_opendocument_stru-attribute_name = 'error_opendocument'.
      error_opendocument_stru-element = error_opendocument.
     wd_this->document_res->if_ios_document~opendocument( EXPORTING errorinformation = error_opendocument_stru ).
    CATCH cx_ios_document INTO refexp.
    CATCH cx_ios_communicationwrapper INTO refexp.
    CATCH cx_ios_factory INTO refexp.
    CATCH cx_ios_environment INTO refexp.
    CATCH cx_ios_exception INTO refexp.
  ENDTRY.
  IF refexp IS NOT INITIAL.
    refexp->get_message( IMPORTING
              mtype = msgty
              number = msgnr
              mid = msgid ).
    l_current_controller ?= wd_this->wd_get_api( ).
    CALL METHOD l_current_controller->get_message_manager
      RECEIVING
        message_manager = l_message_manager.
  report message
    CALL METHOD l_message_manager->report_t100_message
      EXPORTING
        msgid = msgid
        msgno = msgnr
        msgty = msgty.
  ENDIF.
endmethod.
Edited by: suryajoshi on Jan 13, 2011 5:04 PM

Thanks for your reply.
I have defined DATAS attribute  as XSTRING.  You are right i am using SIOS code from WDMODIFY.
I am getting exception at this line:  Please advice. Its seems that factory is not been recognize. I double check , factory is present in attributes Tabs of the View.
get the IOS interface
  wd_this->factory ?= office->_method_handler.
  ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.

Similar Messages

  • WebDynpro Abap MSS: Access via "NULL" object reference not possible

    hi,
    My customer send me the following link to Appraisal Documents (Manager) MSS
    http://server.sap.portal:1810/sap/bc/webdynpro/sap/HAP_START_PAGE_POWL_UI_MSS/
    http://a.imageshack.us/img685/5959/mss3.jpg (logon in Costumer SAP System)
    http://a.imageshack.us/img225/4008/mss4.jpg (Appraisal Documents (Manager) MSS run succesful)
    Link that also run by the SICF in my customer is correct.
    But when I run in my SAP System see the following error
    http://a.imageshack.us/img715/5355/mss1j.jpg (SCIF in my SAP System)
    http://a.imageshack.us/img44/5346/mss2.jpg (SCIF - test service)
    http://a.imageshack.us/img840/1677/mss2b.jpg (Error, without window logon)
    <b> Access via "NULL" object reference not possible</b>
    Other question is:  In what part of MSS is this option? because the ESS is in Career and Jobs / Appraisals Documents
    http://a.imageshack.us/img683/9900/careerjob3.jpg (Employee Self Service / Career and Jobs / Appraisals Documents)
    thanks for your posts and answer
    Ivan

    Hello
    The most important information is (again) missing: which object reference is initial ("NULL")?
    The ABAP dump will tell you.
    Below I show an example how this can happen (and be avoided):
    LOOP AT lt_accountings INTO ls_accounting.
      lo_po_account ?= ls_accounting-accounting.
    ENDLOOP.
    " QUESTION: Are you sure that lo_po_account hold an instance ???
    " If LO_PO_ACCOUNT is empty the following statement will give you the dump.
    ls_mepoaccounting = lo_po_account->get_data( ).
    " And that is how to avoid this (at least the dump. Whether your logic is still ok is another matter...)
    CHECK ( lo_po_account IS BOUND ).
    ls_mepoaccounting = lo_po_account->get_data( ).
    Regards
      Uwe

  • Runtime error in WebDynpro - Access via 'NULL' object reference not possibl

    Hi,
        Structure of the CONTEXT in the VIEW::
         WDSCREEN1
              --> IMPORTING
                         --> S_KUNNR   <- its a select option
              --> EXPORTING
                        --> T_REPORT  <- Which is table to hold the output data (with 4 fields)
       In the context area i have root node (WDSCREEN1) and Sub nodes are IMPORTING and EXPORTING and child nodes as shown above. When i am referring them everything is fine except T_REPORT.
    * Declaration
      DATA:  node                  TYPE REF TO if_wd_context_node,
                  node_exporting TYPE REF TO if_wd_context_node,
                  node_importing  TYPE REF TO if_wd_context_node,
                  node_report       TYPE REF TO if_wd_context_node,
      node           = wd_context->get_child_node( wd_this->wdctx_wdscreeb1 ).
      node_exporting = node->get_child_node( wd_this->wdctx_exporting ).
      node_importing = node->get_child_node( wd_this->wdctx_importing ).
    * Bind the data to the context
      node_report = node_exporting->get_child_node( name = 'T_REPORT` ).
      node_report->bind_elements( lt_report ).
    Its giving run time error 'Access via 'NULL' object reference not possible. ' when it comes to ' node_report->bind_elements( lt_report ).' I checked the content while debugging and found that it was initial. Not sure why Node_report is initial. all others have data.
    node ->
    node_exporting ->
    node_importing ->
    node_report ->

    http://wiki.sdn.sap.com/wiki/display/EP/PointersforTroubleshootingPortalRuntime+Errors
    Hope this helps.
    -Veer

  • 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

  • RFC_ERROR_SYSTEM_FAILURE  - - Access via NULL object reference not possible

    Hi,
    RFC was working fine , suddenly starting showing error below (  not sure if i changed anything ) -
    Rest of the RFC's in the same app are working fine.
    The error throwed is -
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
    Full error details -
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
         at com.sap.xss.per.fc.persinfo.FcPersInfo.onCleanup(FcPersInfo.java:561)
         at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.onCleanup(InternalFcPersInfo.java:798)
         at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.onCleanup(FcPersInfoInterface.java:246)
         at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.onCleanup(InternalFcPersInfoInterface.java:299)
         at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface$External.onCleanup(InternalFcPersInfoInterface.java:459)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.cleanUp(FPMComponent.java:644)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$1000(FPMComponent.java:78)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.exitCalled(FPMComponent.java:963)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.exitCalled(FPMComponent.java:1134)
         at com.sap.pcuigp.xssfpm.wd.BackendConnections.wdDoExit(BackendConnections.java:124)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.wdDoExit(InternalBackendConnections.java:228)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doExit(DelegatingCustomController.java:77)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.exitController(Controller.java:180)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
         at com.sap.tc.webdynpro.progmodel.controller.Component.exitController(Component.java:251)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:219)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.exit(ClientApplication.java:474)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.destroy(ClientApplication.java:527)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.destroy(ApplicationSession.java:398)
         at com.sap.tc.webdynpro.clientserver.session.ClientWindow.destroyApplicationSession(ClientWindow.java:235)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doDestroyApplication(ClientSession.java:1003)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doSessionManagementPostProcessing(ClientSession.java:789)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:264)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Access via 'NULL' object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
         at com.sap.xss.per.model.mac.HRXSS_PER_MAC.hrxss_Per_Cleanup(HRXSS_PER_MAC.java:331)
         at com.sap.xss.per.model.mac.Hrxss_Per_Cleanup_Input.doExecute(Hrxss_Per_Cleanup_Input.java:137)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
         ... 43 more
    Thanks,
    Regards,
    Ankit

    Hello Vaish & Ankit,
    Can you check what is the dump occurred in transaction ST22?
    I hope you guys are working with HR data. So, i think some object is not passed(internally) correctly in RFC.
    Please debug the RFC by keeping the breakpoint from webdynpro application, then you will come to know what is not passed when we execute the RFC from R/3.
    Regards
    Nizamudeen SM

  • The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.

    Hi all ,
    Im getting the below error , actually recently i created my own custom table zstudent, later i wrote select query to fetch data from the same and dump at internal table and then bind this to the table node.
    But im getting below error, even i removed the select query still same error is occuring.
    Error when processing your request
      What has happened?
    The URL http://********00.*****b.com:8000/sap/bc/webdynpro/sap/zdemo_student/ was not called due to an error.
    Note
    The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.
    The error occurred on the application server axsids00_IDS_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: WDDOINIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
    Method: IF_WDR_COMPONENT_DELEGATE~WD_DO_INIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_COMPONENT===CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_COMPONENT==============CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: INIT of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP

    Thanks Rama,
    Acutally i accidentally commented the lo_nd_student = wd_context ....etc
    this line was commented .
    i have one small requirement to fetch data from local customised table and fill the same to internal table and bind that to table node.
    my table node is student having attributes as name , city and number , all are of type strings.
    now i created one custom table zstudent having ID - char of length 10,
    name of type string
    city of type string
    num of type string
    i have inserted records
    but when i use select query to fill data from this zstudent to my internal table of type lt_student type wd_this->elements_student ,
    im getting same above error.

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

  • 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

  • IC WEBCLIENT: Access via 'NULL' object reference not possible

    Hi,
    Iam working in ABAP, and learning CRM ABAP on CRM5.0 IDES Demo system I was trying to create a new WebIC by copying one view from CRM_IC to ZCRM_IC bsp application. Following are the steps I following according to Cook book documentation.
    1. I copied BuPaDisplayCustomer view and controller from CRM_IC to ZCRM_IC from
        BSP_WD_WORKBENCH by selecting CRM_IC and runtime profile = 'DEFAULT'.
    2. Created a runtime profile from SPRO->CRM->IC Webclient->Customer specific modifications->Define
       runtime profile.
    3. Copied the 'DEFAULT' runtime profile to my new profile 'Z_COOKBOOK'. Assign 'ZCRM_IC' by
       clicking on 'Controller and substitues'.
       BSP       Replaced Controller         BSP                 ReplacmentController
       CRM_IC BuPaMoreContactView    Z_CRM_IC         BuPaMoreContactView 
    4. Define IC Webclient profile:
        SPRO->CRM->IC Webclient->Define IC Webclient profile->Copy the DEFAULT profile and assign it to
        'Z_COOKBOOK',
    5. Assigned the Webclient profile to the user from t-code 'PPOMW'. Selected 'USER' from the 
        existing 'Position' and Goto->Detail object->Enhanced obj descrption.Selected IC webclient from the
       list and created Infotype assigned Webclient profile 'Z_COOKBOOK'.
    6. Execute the ZCRM_IC from SE80 by rightclick and Test. Here is my problem,Iam receiving the
       following error in the webpage.
         The following error text was processed in the system CR7 :
               Access via 'NULL' object reference not possible.
        The error occurred on the application server CR7_01 and in the work process 0 .
        The termination type was: RABAX_STATE
    The ABAP call stack was:
          Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME=====CP
          Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME=====CP
          Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME_IMPLCP
          Method: DO_REQUEST of program CL_BSP_WD_VIEW_CONTROLLER=====CP
          Method: DO_REQUEST of program CL_BSP_CTRL_ADAPTER===========CP
          Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
          Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
          Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
          Module: %_HTTP_START of program SAPMHTTP
    I check the CRM services and all are active, using IE8 web browser. I just copied the view and controller
    from CRM_IC into Custom BSP application i.e., ZCRM_IC.
    Above error is occuring even If i run the standard CRM_IC BSP application and select one simple view.
    from SE80.
    Not sure whether any additional configuration or any special roles to be assigned to the Webclient profile.
    Thanks,
    Venn.

    hello swapna,
    we are facing the same error while accessing the leave request link, all jco are testing fine, i checked backend connection and its fine, please tel me how did u resolved that issue,
    Thanks in advance.....
    ajay

  • Access via NULL Object

    Hi Experts,
    i am facing this error please please go through it.
    The following error text was processed in the system RD1 : Access via 'NULL' object reference not possible.
    The error occurred on the application server S0164SAPDEV2_RD1_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: HANDLESTART of program /1BCWDY/BH6AN83S3TS5UIMPZBBJ==CP
    Method: HANDLESTART of program /1BCWDY/BH6AN83S3TS5UIMPZBBJ==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/BH6AN83S3TS5UIMPZBBJ==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
    Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Thanks & Regards
    khanna.

    Please analyze your error in ST22 tcode, you wil get understand.
    Regards
    Srinivas

  • Error when save project Access via 'NULL' object reference not possible PLM

    Dear All,
    we are using cProject (PLM)4.0
    When i create project & try to save ,system gives me error 'Access via 'NULL' object reference not possible'
    Steps
    1.Create project & element
    2.save
    showing below error
    Note
    The following error text was processed in the system PLD : Access via 'NULL' object reference not possible.
    The error occurred on the application server Ndimdev_PLD_20 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Error code: ICF-IE-http -c: 300 -u: PLMUSER1 -l: E -s: PLD -i: Ndimdev_PLD_20 -w: 0 -d: 20090702 -t: 164926 -v: RABAX_STATE -e: OBJECTS_OBJREF_NOT_ASSIGNED
    Please do needful
    Regards
    Ravindra

    Hi,
    Put a break point and check whther ur node and
    element instantiation is properly done.
    Thanks,
    Divya.S

  • Webservice end up in Access via 'NULL' object reference not possible error

    Hello everyone,
    I have a particular issue when I run a webservice on webclient but when i run on sap R/3 it works fine.
    The dump which it give when I test the web service is
    Short text
        Access via 'NULL' object reference not possible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "RPCTRSU0" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    The code where it ends up in error is
    2607 data:  l_wb_interface type ref to fp_wb_interface.              
    2609 data: p_interface_data type ref to  
                                      fb_interface_data.           
    2610 data: l_interface TYPE REF TO
                                   if_fp_interface.                     
    2611 data: l_exceptions type ref to cx_root.                            
    2613 data: l_parameters         type ref to
                                           if_fp_parameters,           
    2614       l_parameter_table    type tfpiopar.                          
    2615 data: l_fpintf_name  type fpname.                                  
    2616 data:  wa_dd03p type dd03p,                                        
    2617        DD40V_WA type dd40v.                                        
    2618 data:  l_intf_imp_item type line of tfpiopar.                      
    2620     l_fpintf_name = i51t8_adb_fpint.                               
    2621            TRY.                                                    
    2622               l_wb_interface = cl_fp_wb_interface=>load(           
    2623                                      i_name = l_fpintf_name        
    2624                                      i_mode =                      
                                      if_fp_wb_object=>c_mode_read
    2626                                      i_language = sy-langu         
    2627                                ).                                  
    2628             CATCH cx_fp_api_usage into l_exceptions.               
    2629 *              RAISE error.                                        
    2630             CATCH cx_fp_api_repository into l_exceptions.          
    2631 *              RAISE error.                                        
    2632             CATCH cx_fp_api_internal into l_exceptions.            
    2633 *              RAISE error.                                        
    2634           ENDTRY.                                                  
    2635                                                                    
    >>>>>     l_interface ?= l_wb_interface->get_object
    2637     p_interface_data = l_interface->get_interface_data( ).         
    2638     l_parameters = p_interface_data->get_parameters( ).            
    Please let me know how to go about twith this error
    Regards,
    Raj

    x

  • Acessing a webtemplate 3.x in the portal, error  Access via 'NULL' object

    Hi
    I'm having problems with my webtemplates developed in 3.x that run in the portal I get this error message:
    I look in st22 but didn't see anything that could help. I have webtemplates developed in 7.0 and they are working fine in my portal. The problems is happening to the 3.x webtemplates only.
    Any suggestions?
    Thanks
    Error when processing your request
    What has happened?
    The URL http://cads301cnsa.corp.csa-group.org:8015/zwebrep was not called due to an error.
       Note
    The following error text was processed in the system BIP : Access via 'NULL' object reference not possible.
    The error occurred on the application server cads301cnsa_BIP_15 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: PAGE_REDIRECT of program CL_RSR_WWW_HTTP===============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_RSR_WWW_HTTP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Edited by: Michelle Machado on Jan 14, 2009 5:21 PM

    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

  • 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

  • (104) RFC_ERROR_SYSTEM_FAILURE: Access via 'NULL' object reference not poss

    Hi ,
    I am working on file to rfc scenario.
    The scenario was working fine till monday evening.
    From yst , all of a sudden i am getting this error in RWB
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling /POSDW/CREATE_TRANSACTIONS_EXT in remote system (RfcClient[RFC_Receiver_POSDM]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Access via 'NULL' object reference not possible.: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling /POSDW/CREATE_TRANSACTIONS_EXT in remote system (RfcCli
    and because of this even though the records are suceesfully posted in target system , the xi keeps trying to send the records to the BI system and recoeds are replicated.
    Wat can be the reasonand solution.?
    Thanks in advance and best regards,
    Anil

    Hi Anil,
    Try to debug the receiver RFC call.
    The specified item was not found.
    go through the help..
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    Hope it helps...
    Thanks,
    kumar.

Maybe you are looking for

  • Developer toolbar: need quick answer

    OK, this is a weird question... I am at MAX 2005 and have my PB with me. On my G5 at home I have somehow acquired a developer toolbar (or whatever it is called) in Safari. A speaker here was just asking about it and not only do I not have it here on

  • Help with OutOfMemoryError

    hi, our initial scenario is as follows. we were running a jboss server with a single bdb environment with the default memory setup (60% of vm space). the vm is allocated about 1GB of memory on a 4GB machine. during setup, we run an operation which pu

  • How to maintain Seesions in Applets

    Hi All, is there a way to maintain Seesions in Applets? if so how?? Thannks in advance Mohan

  • Trouble creating shared photo streams

    A few days ago I created four separate shared photo streams using various events in iphoto. I shared all four with my husband and everything worked great. Since then I have tried multiple times to create additional shared photo streams to share with

  • Standard Tables to assigned Business Area Address and Contact Details

    Hi gurus, Is there any standard ways where we can maintain the contact details for Business Area. The reason is to prompt the details in debit memo. Thanks.