BI SDK in Web Dyn Pro- Can't open Connection

hello,
I am developing a Web DynPro component which should connect to a BW 3.5 via BI SDK - XMLA.
As a start i just use the code from the "How to " document for Web DynPro without any changes.
I could deploy the application and it should give me the list of the schemas. instead it returns "Can't open Connection" .
I looked in the Web DynPro Content Administrator and found that the Reference "sap.com/com.sap.ip.bi.sdk.dac.connector.xmla" has under the Status a red light; there are 2 other with green
(sap.com/tcwddispwda, sap.com/tcwdcorecomp).
Since red lights are never a good sign, i would like to know what is the reason for it and how can i fix it ?
I assume there is a direct connection between the "Can't Open Connection" and the red light...
Any useful help is appreciated and will be rewarded
Kai
import org.omg.cwm.analysis.olap.Schema;
import com.bearingpoint.bi.wdp.IPrivateIGS_Chart;
import com.bearingpoint.bi.wdp.IPublicIGS_Chart.ISchemaElement;
import com.sap.ip.bi.sdk.dac.connector.IBIConnection;
import com.sap.ip.bi.sdk.dac.connector.IBIOlap;
import com.sapportals.connector.connection.IConnectionFactory;
import com.sapportals.connector.connection.IConnectionSpec;
          IConnectionFactory connectionFactory = null;
          IConnectionSpec connectionSpec = null;
          IBIConnection connection = null;
          String message = "";
          try {
               Context initctx = new InitialContext();
               // perform JNDI lookup to obtain connection factory
               connectionFactory = (IConnectionFactory) initctx.lookup("deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");
               connectionSpec = connectionFactory.getConnectionSpec();
               // establish connection using default connection properties
               connection = (IBIConnection) connectionFactory.getConnectionEx(null);
               IBIOlap olap = ((IBIConnection) connection).getOlap();
               List schemas = olap.getSchema();
               Schema schema = null;
               for (int i = 0; i < schemas.size(); i++) {
                    schema = (Schema) schemas.get(i);
                    message += schema.getName();
          } catch (Exception e) {
               message += e.getMessage();
               logger.errorT( e.getMessage());

Hi,
   Have you made the configurations to determine the JNDI name of the BI XMLA connector?
   Just check if you have done these steps:
1. Open Visual Administrator.Select
<server node>
->Services
->JNDI Registry.
On the Runtime tab, in the registry list, locate deployedAdapters
->SDK_XMLA
->shareable
->SDK_XMLA.
This path, from the root to the SDK_XMLA leaf node, indicates the fully-qualified JNDI name of the BI XMLA Connector,which is:"deployedAdapters/SDK_XMLA/shareable/SDK_XMLA".
2. Select the server node, and choose
<server node>
->Services
->Connector Container.
3. Locate and double-click the entry for the BI XMLA Connector,sap.com/com.sap.ip.bi.sdk.dac.connector.xmla.BI_SDK_XMLA, to open the connector definition.
4. Select Managed Connection Factory->Properties, and set
the required connection properties as shown
Property:Setting
DataSource:default
Statefulness:false
Language:EN
Password:(password)
UserName:(username)
URL:http://server:port/sap/bw/xml/soap/xmla
In order to find out this URL,f or a BW system, start transaction SE37 and execute the function module RSBB_URL_PREFIX_GET.
Use the following values for the import parameters of the function module:
I_HANDLERCLASS = CL_RSR_MDX_SOAP_HANDLER
I_PROTOCOL = HTTP
I_MESSAGESERVER =
The URL takes the following form: */sap/bw/xml/soap/xmla.
5. Save the settings.
Regards,
Satyajit.

Similar Messages

  • How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Hi Experts,
    How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Can you give us some more information? Background jobs primarily don't have anything to do with Webdynpro.

  • Deploying  ABAP Web Dyn Pro application in a portal iView

    Hello,
    Our goal is to Deploy Web Dyn Pro application to public internet user and at the same time we want to keep the ABAP Web Application server that host Web ABAP  Dyn Pro application behind the firewall so that no one can directly access the ABAP WAS over the internet. To do this we are planning to deploy the ABAP Web Dyn Pro application with in a portal iView where the portal server has anonymous access to the internet user. 
    The question is when we embed the ABAP Web Dyn Pro in a portal iView, does the web browser directly talk to the ABAP WAS?  If so, is there any other method where we could keep the ABAP WAS secure and give the public access to ABAP Web Dyn Pro application.
    Thanks,
    Vimalan

    Hi Vimalan,
    <b>I'm assuming you use some kind of a reverse proxy in front of the portal server</b>.
    Here how it goes:
    1. Create a WD ABAP AppIntegrator iView in the portal.
    2. The iView will use a system that holds the ABAP server details (host:port and protocol)
    3. The system will be configured to have the host:port and protocol of the reverse proxy server.
    4. On the reverse proxy server, create a rule that will forward all URLs with the template of <i>/sap/bc/webdynpro/</i> to the real host:port and protocol of the ABAP server. This way you achieve what you intend to do.
    Hope this helps,
    Natty

  • Java Web Dyn Pro Jump Start

    Forum Members
    Can you please help me and provide links,documentation(pdfs etc) which would help me get started
    with a medium complexity java web dyn pro application.?
    Any information pertaining to Java Web dynpro will be useful.
    Moderators: Please note..I did look for some quick start tips in the forum but search did not yield relevant results.

    Follow this link
    This is specific for  [Web Dynpro for Java |http://help.sap.com/saphelp_nw70/helpdata/en/14/c897427f18d06ae10000000a155106/frameset.htm|Click to Navigate] Applications

  • Find the missing Authorisation Object in the WEB Dyn pro applciation

    Hi,
    We are having the ECC6.0 with Enterprise portal. in EP we are running the application with some webdynpro
    there are some missing authorisation when running the application
    how can we track the what all authorisation is missing / checked for the web dyn pro
    is there any way Like SU53 in the WEbdyn pro or any other method to check ?
    all the web dynpro are custom developed
    Thanks & Regards
    Virandra Sharda

    Hi,
    SU53 dump may not work for the authorization issue as it provides last authorization check failed details.
    Take trace by ST01 transaction. It will provide you the authorization check details..
    Where Return Code (RC) will be 4(RC= 4), there user is facing authorization issue...
    Try to find the error from from the first authorization check failed details..
    There may be some false authorization check failed details, what is not required for the perticular work.
    This kind of error comes due to program error. So you need to test the access by adding the authorizations.. try to provide minimum authorization to solve the issue.
    Regards,
    Sandip.

  • Is Auto-refresh feature available for tables in web dyn pro???

    Hello Experts,
    I have a requirement as explained below..
    There is a table which has few rows, which are populated on launch of a particular screen..now table needs to be refreshed without reloading of page or press of a button (i.e without any user action)..
    is there any fearure in Web dyn pro which facilitates this requirement???
    Thanks in advance..
    thanks & Regards,
    Hampanna Kamatar

    Hi Hampanna,
    I guess you can use the TimerTrigger. This will be useful in your case.
    The TimedTrigger UI element is used to execute a controller action periodically with a defined delay.
    TimedTrigger is currently invisible (like InvisibleElement), thus it ignores both its tooltip and its visibility. Nevertheless it occupies a cell in certain layouts like MatrixLayout. To use a timed trigger, you have to assign an action to the onAction event and set the delay property to the desired delay in seconds.
    There are several ways to turn off a timed trigger. The most convenient way is to disable the assigned action (like you would do with a button). Other possibilities are setting the delay to 0 or disabling the timed trigger like any other UI element.
    Caution: Triggering the action rudely interrupts user interactions!
    So what you can do is asign a action and write the code to reload teh data in that action. Set the delay you require in seconds. In case later you want to switch of the timer you can easily do that.
    Check these API:
    http://help.sap.com/javadocs/nwce/current/wdr/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDTimedTrigger.html
    I hope this will solve your issue.
    Thanks and Regards,
    Pravesh

  • How to handle exceptions in web dyn pro

    Hi Frndz....
                     Can any one kindly xplain how to handle exceptions in web dyn pro..like we hav exceptionhandling in java ....so is there any for NWDS
    THANKS & REGARDS
    Rajesh

    Hi,
    Web Dynpro Java is basically java only.i.e You program in java. Hence exceptions are supported in the same way as in java i.e. via try,catch and finally block.
    Additionally,
    In 04/04s if you create a method in any controller in web dynpro you cann't specify exception that can be thrown in the method. This is now possible in new programming web dynpro model in CE.
    Hence when creating a method you can also specify custom or core java (lib)excetions.
    Regards,
    Ashwani Kr Sharma

  • Text/Caption in Web Dyn Pro? (Newline possible?)

    Is it possible to add a new line for text in caption in web dyn pro?
    In Java, I tried storing the string as "Result.\nPass" but it seems when being displayed, the new line is not shown but it is only shown in one whole line.
    Any advise?

    Hi
    Good problem is solved.
    Your question usage of setLabel? What label is being set when you refer to "currentContextElement()" ?
    1Actually for your concern I did one test in my NWDS ,Its a wrong naming convention thats why u confused.
    (instead of label i have to use say InputCaption because label is standard used by framework or its common )
    2. I have created one context attribute named label and one UI of TextView ,associated its value property to
        this context.
    and accessed this through currentContextElement()
    Best Regards
    Satish Kumar

  • Select option in web dyn pro

    Hi,
    Is there any way to deafult current date to date select-option in web dyn pro?

    hi,
    Check following code:
    DATA:
           lr_componentcontroller TYPE REF TO ig_componentcontroller,
           l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      DATA:
          lt_range_table       TYPE REF TO data,
          lt_types             TYPE string_table,
          rt_range_table       TYPE REF TO data,
          text                 TYPE string,
          typename             TYPE string.
      DATA: vbeln TYPE lips-vbeln,
            erdat TYPE lips-erdat,
            auart TYPE vbak-auart,
            trnsp TYPE vtadd01t-add_info,
            kunnr TYPE likp-kunnr.
      DATA:
        num_events TYPE i.
      DATA: uname TYPE sy-uname.
      uname = sy-uname.
      wd_context->set_attribute(  name = 'CUSTOMER'
      value = uname  ).
    wd_context->GET_ATTRIBUTE( Name = 'TRANSPORTER_CODE'
    Value = uname ).
    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.
    get a pointer to the interface controller of the select options component
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBELN_VL' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document'
        i_id                         = 'VBELN'
        i_obligatory                 = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'LIPS'
        i_value_help_structure_field = 'VBELN' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'ERDAT' ).
      wd_this->m_handler->add_selection_field( i_id = 'ERDAT'  i_obligatory = 'X' it_result = lt_range_table ).
    *lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VTTK_ADD01' ).
    *wd_this->m_handler->add_selection_field( i_id = 'VTTK_ADD01' I_DESCRIPTION  = 'CHAHA' it_result = lt_range_table ).
       wd_this->m_handler->add_selection_field(
         i_description                = 'Transporters Code'
         i_id                         = 'VTTK_ADD01'
         it_result                    = lt_range_table
         i_value_help_structure       = 'VTADD01T'
         i_value_help_structure_field = 'ADD_INFO' ).
    *Supress Global options in Used Component
      wd_this->m_handler->set_global_options(
          i_display_btn_cancel  = ''
          i_display_btn_check   = ''
          i_display_btn_execute = ''
          i_display_btn_reset   = '' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBAK-AUART' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document Type'
        i_id                         = 'AUART'
         i_obligatory                = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'VBAK'
        i_value_help_structure_field = 'AUART' ).
    ENDMETHOD.
    METHOD onactionexecute .
      DATA: node_saledoc TYPE REF TO if_wd_context_node.
      DATA: node_crdate TYPE REF TO if_wd_context_node.
      DATA: node_transcode TYPE REF TO if_wd_context_node.
      DATA: node_doctype TYPE REF TO if_wd_context_node.
      DATA: node1 TYPE REF TO if_wd_context_node.
      DATA: node2 TYPE REF TO if_wd_context_node.
      DATA: rt_saledoc TYPE REF TO data.
      DATA: rt_crdate TYPE REF TO data.
      DATA: rt_transcode TYPE REF TO data.
      DATA: rt_doctype TYPE REF TO data.
      FIELD-SYMBOLS: <fs_saledoc> TYPE table,
                      <fs_crdate> TYPE table,
                      <fs_transcode> TYPE table,
                      <fs_doctype> TYPE table.
    Retrieve the data from the select option
      rt_saledoc = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'VBELN' ).
    Assign it to a field symbol
      ASSIGN rt_saledoc->* TO <fs_saledoc>.
    Retrieve the data from the select option
      rt_crdate = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'ERDAT' ).
    Assign it to a field symbol
      ASSIGN rt_crdate->* TO <fs_crdate>.
    Retrieve the data from the select option
      rt_doctype = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'AUART' ).
    Assign it to a field symbol
      ASSIGN rt_doctype->* TO <fs_doctype>.
    Retrieve the data from the select option
    *rt_transcode = wd_this->m_handler->get_range_table_of_sel_field(
    *i_id = 'VTTK_ADD01' ).
    Assign it to a field symbol
    assign rt_transcode-> to <fs_transcode>.
      node_saledoc = wd_context->get_child_node( name = 'S_VBELN' ).
      node_saledoc->bind_table( <fs_saledoc> ).
      node_crdate = wd_context->get_child_node( name = 'S_ERDAT' ).
      node_crdate->bind_table(  <fs_crdate> ).
      node_doctype = wd_context->get_child_node( name = 'S_AUART' ).
      node_doctype->bind_table( <fs_doctype> ).
      IF <fs_doctype> IS NOT INITIAL
        AND <fs_crdate> IS NOT INITIAL
        AND <fs_saledoc> IS NOT INITIAL
        wd_comp_controller->execute_zotddelvnote_vend_tari( ).
      ENDIF.

  • Debug Web Dyn Pro application. Absent library class

    Hello, Could anybody assist me.
    I have web dyn pro project, it works well when I run it in normal mode. But when I run it under debug mode I got the exception
    that one my library was not found.
    java.lang.NoClassDefFoundError: com/accenture/mdp/common/util/StatusUtil
         at com.accenture.mdp.company.components.CompanyDataEntry.wdDoInit(CompanyDataEntry.java:189)
         at com.accenture.mdp.company.components.wdp.InternalCompanyDataEntry.wdDoInit(InternalCompanyDataEntry.java:824)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:275)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:539)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:421)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:404)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:618)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         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:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         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(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    May be somebody know reason of this problem ?

    Hi Sergey,
    Please check if the below threads are useful for you:
    1. debugging question - source not found  
    Re: debugging question - source not found
    2. java.lang.NoClassDefFoundError when utilizing an external jar/zip  
    Re: java.lang.NoClassDefFoundError when utilizing an external jar/zip
    Regards,
    Anagha

  • Web Dyn Pro development

    Dear Experts,
    Seek your kind advise on the following:
    We have developed a Web Dyn pro object which has created a URL. We are able to access the screen through directly entering the url in the browser. However, as you would know typing the extra long URL is not the preffered way. hence i wish to launch this url through a click on the web screen of the SAP CRM.
    I understand the 'transaction launcher' could be helpful but I dont know how. Would be heavily obliged for some tips on how to proceed ahead.
    Thanks and regards, in advance.

    Thanks a ton.

  • Web dyn pro+ALV

    Hi all,
    I am using alv in web dyn pro.
    I want Drop downs in alv list.
    Eg: alv is displaying carrid,connid,price,and etc.,
    i want carrid and connid as read only drop downs.
    Regards,
    sarath

    Hi Sarath,
      set_attribute_value_set method is used to set dropdown values to an attribute and not to the node.
    If you want to use this specific method for setting dropdown values, Create an attribute in the node 'DROP' say drop_down and then do the following.
    METHOD dd_country.
    DATA: lx_current_controller TYPE REF TO if_wd_controller,
    lx_node TYPE REF TO if_wd_context_node_info,
    lx_element TYPE REF TO if_wd_context_element,
    ls_value TYPE wdy_key_value,
    lt_value_set TYPE wdy_key_value_table,
    lx_current_controller = wd_this->wd_get_api( ).
    Get the Values to that need to be set as dropdown,
    Build the values set internal table. by doing the below.
    CLEAR ls_value.
    ls_value-key = ls_t005t-land1.
    ls_value-value = ls_t005t-landx.
    APPEND ls_value TO lt_value_set[].
    Set the dropdown.
    lx_node = wd_context->get_node_info( ).
    lx_node = lx_countries_node->get_child_node( name = 'DROP' ).
    lx_node->set_attribute_value_set( name = 'DROP_DOWN'
    value_set = lt_value_set ).
    Regards,
    Suman

  • Interactive report in Web Dyn Pro

    Hi.
    How to do the Interactive Report in Web Dyn Pro Application.
    In selection screen i give the VBELN data.
    Based on VBELN i want display VBAK data First.
    If i am double click on the Sales Document Number of VBAK then i want display the VBAP data.
    Thank You.

    Hi Krishna,
    Try going through this [example here|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm]. The application has 2 views created, one for input screen for entering customer number and other for displaying the sales order details for the chosen customer. The user enters a customer number on the main view & clicks on a button to fetch the data. The system then displays the corresponding sales orders of this customer in a pop up window. The user then selects 1 sales order from the popup window and presses on another button. It would then go back to the main view & display the corresponding sales items for the selected sales order number.
    Regards,
    Uday

  • Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi Scott,
    1. What is the version of Acrobat and Operating System?
    2. Have you tried repairing the product? if not then Go to Help -> Repair Acrobat Installation.
    Regards,
    Anoop

  • Web dyn pro or BI

    Hi All,
              Basically i am an ABAPER ,My organisation asked me to undergo training in BI or Web dynpro.
    Can you folks suggest me which one to chose.
    Ashok....

    hi Ashok kumar,
    web dynpro is the better move for you now. bcoz the career and growth oppurtunities in it are really wider yaar.in scope to future also it is the most best option for you to opt.if time permits go for web dynpro for java also learn both and be expertise. all the best...............
    if my info is usefull pls reward me points
    thanks
    karthik

Maybe you are looking for