SRM  RFC Model Error in Webdynpro JAVA

Hi All,
When I create a model from Any R/3 RFC in Webdynpro(JAVA) and map the RFC model context to Controller Context then every thing works fine, but when I create model from SRM RFC(Model is created with no problems at all) and map the SRM Model context to Controller Context, then I get below error:
com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type com.cnsl.srm.model.types.Bbp_Category_Id could not be loaded: com.sap.dictionary.runtime.DdException: Type com.cnsl.srm.model.types.Bbp_Category_Id does not exist
Is there any thing specific to SRM that we have to do on the Webdynpro(JAVA) side to be able to call the SRM RFC. Kindly suggest me. Also please if you can forward me to forum thread/blog in case there is any.
-Shekhar.

Hi,
Please look at this thread. Similar problem
Webdynpro Services Exception
WebDynpro using BAPI has an error
Regards,
Marcin Gajewski

Similar Messages

  • RFC call in a Webdynpro Java help?

    Hi all,
    I need used in my webdynpro Java a FM that I created in R3. Exactly I need load in a combo box  the results of my function module.
    I do it this but not works correctly. I think thats my code is not correctly..Anybody can help me?
    public void inicializarPrimerAprobadorTarea( )  {
        //@@begin inicializarPrimerAprobadorTarea()
       //Creamos variable para transformar el login en nombre
       String nombre;
       IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
        // Obtenemos la primera tarea asociada al los aprobadores
        PP4Model2 pp4model2 = new PP4Model2();
        Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
        //wdContext.nodeZ_Hsp_Wf_Gbs_Apro_Pva_Output().bind(rfcPrimerAprob);
        try {
    rfcPrimerAprob.execute();
      wdContext.nodeOutput_1().invalidate();
      if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
       msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
      }else{ 
       for( int i=0;i<wdContext.nodeLt_Tabla_Pva().size();i++){
        //Transformamos el login en nombre
        nombre = getNombreUsuario(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id());
        //Imprimimos mensajes para ver si está correcto.
        msgmgr.reportSuccess(nombre);
        //Metemos el valor en la variable del container.
        valueSet.put(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id(),wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id());  }
    }catch (Exception e) {
       msgmgr.reportException("Error. "+e.getMessage());          
        //@@end
    Any body knows the main steps from call correctly to my FM?
    Regards,
    C. Castillo

    Thank you very much, now my method works correctly:
    //@@begin inicializarPrimerAprobadorTarea()
       //Variable para transformar el login en nombre
       String nombre;
       IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
       // Obtenemos la primera tarea asociada al los aprobadores mediante la función de PPA Z_Hsp_Wf_Gbs_Apro_Pva
       PP4Model2 pp4model2 = new PP4Model2();
       Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
       try {
        rfcPrimerAprob.execute();
        wdContext.nodeOutput_1().invalidate();
        if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
         msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
        }else{ 
         if (rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size()== 0){
          msgmgr.reportException("No existen primeros aprobadores responsables para esta tarea, por favor póngase en contacto con el Administrador de la aplicación");
         }else{
          for(int i=0;i<rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size();i++){
           //Transformamos el login en nombre
           nombre = getNombreUsuario(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id());
           if(formInfo.getValue().equals("Inicio")|| formInfo.getValue().equals("Modif")){
            if (nombre.equals(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id())){
             msgmgr.reportException("El login: "+rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id()+"es eliminado de los valores del primer aprobador por no existir en SAP Portal");
            }else{
             //Metemos el valor en la variable del container.
             valueSet.put(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id(),nombre); 
       }catch (Exception e) {
        msgmgr.reportException("Error. "+e.getMessage());          
        //@@end
    If anybody can be improve please let me know,
    Regards all,
    C. Castillo

  • Error in webdynpro java interactive forms used

    hello,
    I have followed the installation manual to configure ADS wizzard service which is done successfully. I have also made a webdynpro java project where I use very simple smartform with FirstName and LastName as context variables. But when I run the application I see
    java.io.IOException: Cannot connect to http://<server>:50000/inspection.wsil, used user to connect: administrator Check if the valid port is used or the system is not down. HTTP Message : Unable to connect to <server>:50000 - Connection timed out: connect
    If I put this wsil URL it works fine. But I don't know if any thing is missing in configuration. I am quite new in smartform need help.
    I have also downloaded credtional file from SDN but I am new and need help to setup in NWA if this cause the error.
    If any one can recommend me step by step guide would be helpful for me.
    Thanks in advance.
    NK

    Hello Otto,
    well I have no such concrete one source to follow and setup ADS services. But some how from sap help portal, and Tutorial on Installing Credentials and Configuring ADS author Amol Gupta, and ADS configuration guide sourced: http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30a9630b-4f89-2a10-6fab-e311b3ffd9a6
    I have also tested the service in the wsnavigator AdobeDocumentServicesTestVi, but got error level 2 with Entity: ConfigurationService Error: Checking for default credential aliases - failed
    Here I found creditional error. which I have to configure in NWA, I guess.
    I have downloaded creditional from http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70aa75cc-6ac3-2910-c78c-ade192ec861e
    I need help to configure this creditional also.
    And If you have some useful guides then please recommend me.
    Regards,
    NK

  • Error while creating a RFC model for WD for Java

    Hi,
    While trying out the example(TutWD_FlightList_Init.zip) for model programming in the NDS,I got the following error when I try to create a model:
    Plugin Name     Web Dynpro Model Editor Services
    Plugin Id     com.sap.ide.webdynpro.service.modeleditor
    Class     com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
    Method          nextPressed
    Message          Internal error - see detail information in exception trace
    Exception     org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError)
    Can anybody help?Is there any place in NDS to see the detailed error message?
    thanx in advance,
    Bhupesh

    I modified the xml file as described in the forum.But the error persists.
    One interesting thing is:
    When I create model after restarting the NDS,I get the following error:
    org.eclipse.swt.SWTException: Failed to execute runnable <i>(java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "620.0.1237" but required at least version "620.0.1374".)</i>
    I get the NoClassDef found error next time onwards,
    Where do I get the 620.0.1374 version of librfc?
    thanx.
    Bhupesh

  • Error In webdynpro java application in production system.

    HI Friend ,
       I am getting the following error in the production system, but it is working fine in the develop system and quality system.
                 com.sap.dictionary.runtime.DdException: Type com.itc.espb.fetchmodel.types.Yypp_Teco_Orders does not exist
                 at com.sap.dictionary.types.mdi.util.ProviderUtil.createAbapTypeXmlMap(ProviderUtil.java:413)
                 at com.sap.dictionary.runtime.mdi.DataProvider.createSimpleTypeFromAbapType(DataProvider.java:587)
                 at com.sap.dictionary.runtime.mdi.DataProvider.getDataType(DataProvider.java:287)
                 at com.sap.dictionary.runtime.DdDictionary.getDataType(DdDictionary.java:94)
                 at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:169)
      Please let me know what is the problem it's urgent ?
    Thanks & Regards,
    Murali

    Hi Murali,
        Looks like the related RFC from backend has not been transported to the production server. Please check if the RFC is transported. You can check your named transport requests in SE09 T.code in your quality.
    Hope it helps.
    Regards
    Uday

  • SRM Business Package built on Webdynpro java or webdynpro ABAP

    Hi
    Any can please clarify. Like ESS/MSS  and MDM business packages are built on java webdynpro, But  SRM Business packages are built on which technology like java webdynpro or ABAP webdynpro?  Please clarify it.
    Also clarify following questions?
    How to configure the SRM BP in Portal ?(Is it same as ESS/MSS ?)
    How to customize the Standard SRM BP?
    thanks
    vijay

    Jay,
    thanks for the quick reqply. since SRM7.0 is built on Webdynpro ABAP. Even SRM50 BP is built on ABAP webdynpro or java webdynpro. Please clarify it.
    Can you forward the help link related to SRM.0BP  and SRM7.0.
    Thanks

  • Parameter mapping error in webdynpro java

    Hi All,
    I have a table and the columns of the table are created dynamically(assume I have Colum A & Column B).
    The table cell editor is input field. On hitting enter on the input field of the column, I want to get the column name.
    But I am getting com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter col not found.
    Where am I going wrong?
    In wdModify view I have the following lines of code
    retString[] // this array contains the column header names
    int  j = retString.length;
    for(int i=0;i<j;i++)
    IWDAttributeInfo att_Adjust_value = wdContext.nodeFinalStockTons().getNodeInfo().addAttribute("att_Adjust_value"+i,"ddic:com.sap.dictionary.integer");
    IWDAttributeInfo attrib_Adjust = wdContext.nodeFinalStockTons().getNodeInfo().getAttribute("att_Adjust_value "+i);
    IWDTableColumn tabColumn_Adjust =(IWDTableColumn)view.createElement(IWDTableColumn.class,"ColumnAdjust"+i);
    //Add caption to Column
    IWDCaption Cap_Adjust = (IWDCaption)view.createElement(IWDCaption.class,"CapTonsAdjust"+i);
    Cap_Adjust.setText(retString<i>);
    tabColumn_Adjust.setHeader((IWDCaption)Cap_Adjust);
    //Table cell editor is of type Input field
    IWDInputField Input_Field_Adjust = (IWDInputField)view.createElement(IWDInputField.class,"Input_Field_Adjust"+i);
    Input_field_Adjust.bindValue(attrib_Adjust);
    tabColumn_Adjust.setTableCellEditor((IWDTableCellEditor)Input_Field_Adjust);
    table_adjust =(IWDTable)view.getElement("AdjustTable" ); // get Table
    table_adjust.addColumn(tabColumn_Adjust); //bind column
    //Creating action
    IPrivateFINAL_STOCK_View.WDActionEventHandler adjustActHandler= IPrivateFINAL_STOCK_View.WDActionEventHandler.ON_HIT_ENTER;
    IWDAction genericEventAction=wdThis.wdCreateAction(adjustActHandler, "onActiononHitEnter");
    wdThis.wdGetOnHitEnterAction();
    genericEventAction.setEnabled(true);     
    IWDInputField inputField =
    (IWDInputField)((IWDTableColumn)(table_adjust.getView().getElement("ColumnAdjust"i))).getView().getElement("Input_Field_Adjust"i);
    inputField.setOnEnter(wdThis.wdGetHITAction());
    inputField.mappingOfOnEnter().addSourceMapping("col",retString<i>); // source name, new name
    public void onActionHitEnter(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String col)
    Edited by: Shilpa KG on Jul 6, 2009 11:47 AM

    Hi,
    Just have a look at this threads
    Re: How To get selected row in a table
    Reg : default parameter for the input field
    Hope this helps you..
    Regards,
    Saleem

  • How to refresh model nodes in webdynpro java

    Dear Experts,
    I have a table in view which is mapped to a model node . The model node gets populated by calling a RFC.
    Please tell me how to refresh the model node mapped in the view ?
    wdContext.node_Result_Data.invalidate() ;  doesnt work over here . dont know y !!
    Please advise.
    Regards,
    Mamai.

    Hi,
    Please check with this code. Hope this is help full for you.
    wdContext.nodePoDetails_OutTab().invalidate();
    after invalidate u have to write the Execute that BAPI also.
    wdThis.wdGetCO_POPendingDetailsController().executeYmm_Sc_Bapi_Oapending_Getlist1_Input();
    Hope this helps!!
    Thanks & Regards
    Vijay

  • Model Problem In webdynpro java

    Hi all,
    I am facing a differnent problem with model classes in my webdynpro application.
    I have a componenet where in i am using standard BAPIs.The problem here is i am getting the latest data from the bapi only when the application is loded first.
    If i add a new record and want to know the size of output node it is not giving the latest one.It is showing the size it has when the application is loded,But in the backend it is getting updated everytime.
    What might me the problem for this??Is it that the model proxy classes that are loded when the application is loded is not getting refreshed??
    Edited by: chandrashekar chandrashekar on Dec 10, 2008 7:30 AM

    Hi,
    This is the code i am using...
    My problem in brief is if i try to add a record it is getting updated in SAP but if i try to display the output node it is giving the size it has when the application is loded.
    If i restart the application it is giving the updated sise of the output node
    Bapi_Class_Getdetail_Input inputGetDetail = null;
    inputGetDetail = new Bapi_Class_Getdetail_Input();
    wdContext.nodeBapi_Class_Getdetail_Input().bind(inputGetDetail);
    inputGetDetail.setClassnum(className);
    inputGetDetail.setClasstype("300");
         try
              executeBapi_Class_GetDetail();
         catch(WDDynamicRFCExecuteException ex)
              return false;
    executeBapi_Class_GetDetail()
    try
    wdContext.currentBapi_Class_Getdetail_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    catch(WDDynamicRFCExecuteException ex)
         ex.printStackTrace();

  • Webdynpro ABAP or Webdynpro Java?

    Hello experts.
    I want to learn to develop WebDynpro's
    Do you which of the two tools do you recommend? webdynpro java or webdynpro abap.
    Greetings

    Hi Lupe ,
    Although both technologies have same functionalities but even then they are not identical.
    Following are some of the differences:
    Language :-  First difference is the programming language used as the names Webdynpro ABAP and Webdynpro JAVA reflect. In ABAP Webdynpro, along with ABAP coding, RFCu2019s are also supported via Service call. Unlike Webdynpro ABAP, we cannot do ABAP coding in Webdynpro JAVA. Instead RFCu2019s and Web services are created and used in it to serve this purpose. In addition to Web services and adaptive RFC, Java Beans is another model supported by Webdynpro JAVA.
    Design Time Environment :-  Webdynpro ABAP requires ABAP Workbench (SE80) while SAP Netweaver Developer Studio is necessary for designing Webdynpro JAVA applications. So, additional installation is required. This studio reduces the development effort and utilizes some visual tools for creating components which can be reused.
    Storage :-  Applications developed using Webdynpro ABAP are stored centrally in ABAP server whereas in case of Webdynpro JAVA, the code remains on the client machine that is developed using a tool called Netweaver Developer studio. So, due to the powerful version control system of Webdynpro ABAP, the load removes from the development machine which is not possible in case of Webdynpro JAVA.
    Skills Required :- For Webdynpro ABAP, a developer should have knowledge of ABAP programming, Development tools, Database concepts, ABAP Objects. However, Webdynpro JAVA requires skill set comprising java programming, java development tools and object-oriented concept.
    Performance:-  Large scale applications that involve large number of web users canu2019t work well on ABAP server. So, for robust and scalable applications, Webdynpro JAVA is preferred because of powerful J2EE server as proved by Sun Microsystems. However, small-scale or applications involving small or medium users can go well with Webdynpro ABAP. Thus, performance varies depending on the number of web users and one can choose ABAP or JAVA accordingly.
    So the decession is that its totaly based on your available skillsets and your scenario to be implemented.
    Thanks & Regards,
    Monishankar C

  • Call to RFC model

    I need to call the method execute() of RFC model in my webdynpro inside a task.
    Input Parameters of abapi are in the context of webdyinpro  that is mapped to BPM context. The problem is that when i run abapi inside wdDoInit() method of webdynpro , the context of webdynpro not yet  initialized.
    What webdynpro method i must use to run my abapi???

    The issue is that the usage of embedded components comes with a few caveats you need to be aware of. E.g. the following:
    Using Web Dynpro component usages at runtime, data is set to Web Dynpro context elements at a certain point of time in the Web Dynpro componentu2019s lifecycle. Consequently data processing of data that is set from an outside (loader) Web Dynpro component, for example from the process desk, should be done afterwards. Referring to the hook methods of a Web Dynpro component, this is after the component controlleru2019s wdDoInit() method.
    Source: http://help.sap.com/saphelp_nwce711/helpdata/en/48/cae1791e774da5e10000000a421937/frameset.htm
    Hence, the WD context has not yet been injected from the outside in the wdDoInit() call.

  • Error while importing a Adaptive RFC Model

    Experts,
    I am trying to import an Adaptive RFC Model. Before importing I need to speciy the connection parameters in the import wizard. I am using the single server method to connect and have specified all the parameters correctly. I have not specified a SAP router as I am using a test system. when I click next on the Model import wizard I get an error.
    The trace shows-
    [code]ConnectionFailed Exception : com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
    Connect_PM  GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host 10.3.82.177, service 3300)
    TIME        Fri Jun 29 08:54:18 2007
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r.cpp
    LINE        8715
    DETAIL      NiPConnect2
    SYSTEM CALL SiPeekPendConn
    ERRNO       10061
    ERRNO TEXT  WSAECONNREFUSED: Connection refused
    COUN
         at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:220)
         at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connectToSingleServer(ConnectionManager.java:206)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.internalConnectToServer(SAPLogonPage.java:1769)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.access$2300(SAPLogonPage.java:46)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$9.run(SAPLogonPage.java:1730)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.connectToServer(SAPLogonPage.java:1699)
         at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.performFinish(SAPLogonPage.java:1805)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.initializeReimporter(ModelWizard.java:1410)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.performPostSapLogonPageForReimport(ModelWizard.java:1433)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:85)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
         at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
         at org.eclipse.jface.window.Window.open(Window.java:563)
         at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
         at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
         at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
         at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
         at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
    Connect_PM  GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host 10.3.82.177, service 3300)
    TIME        Fri Jun 29 08:54:18 2007
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r.cpp
    LINE        8715
    DETAIL      NiPConnect2
    SYSTEM CALL SiPeekPendConn
    ERRNO       10061
    ERRNO TEXT  WSAECONNREFUSED: Connection refused
    COUN
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
         at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:216)[/code]
    Can someone tell me problem..
    Thanks in advance,
    Vineeth

    In service file if entry is not there... give the enty like
    <b>sapgw<Inst.No>       33<Inst.No>/tcp
    sapgw<Inst.No>s      48<Inst.No>/tcp</b>
    where <Inst.No> = System Number of your R/3 system(00 or 01...)
    In host file....
    ip of the server                            name of the server....

  • Error while creating adaptive RFC model

    Dear All,
    I am trying to create Adaptive RFC model by  which i can fetch data from R/3 trough BAPI and display on the webDynpro UI.
    I am getting error
    Exception: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.55" but required at least version "640.0.76".)
    Kindly suggest.
    Thanks
    Ashish

    Hi,
    Check this link....
    com.sap.mw.jco.JCO$Exception (104) RFC_ERROR_SYSTEM_FAILURE

  • Some issues when consuming RFC2 model using WebDynpro Java CE 7.11

    Hi Experts ,
    I'm using Web Dynpro for Java to develop our project. I have issues when I use RFC 2 model to call BAPI function . I already create the RFC 2 model successfully to call one PO BAPI function --- BAPI_PO_GETDETAIL. The whole project build and deploy successfully. At run time, it will call the execute() function of the model object. It also works fine and get the return values.
    I just want to get two return objects : PO_Items and PO_Item_Schedules .
    So far, every thing works fine. But when I want to iterate the PO_Items node and get each property value of current element, the following error occurs :
    com.sap.tc.cm.base.exception.BaseModelRuntimeException: Class 'java.lang.String' of new attribute value is not assignment compatible for attribute 'Prnt_Price' of type 'boolean' in model class 'com.sap.demo.localwd.qaspomodel.Bapiekpo'
        at com.sap.tc.cm.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:306)
        at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClass.unmarshalFromJCoRecord(ARFC2GenericModelClass.java:287)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.doUnMarshalAt(ARFC2ModelObjectCollection.java:97)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.get(ARFC2ModelObjectCollection.java:120)
        at com.sap.tc.webdynpro.progmodel.context.ModelElementList.getElement(ElementList.java:1726)
        ... 72 more
    I use the same way to iterate PO_Item_Schedules element. It also works fine. Therefore, I don't know why this error happens?

    Hi Experts,
    I continue this thread because it seems that I have the same problem as the one asked by Wester Wei.
    I'm developping an application on NWDS using CE 7.11 (I've learned RFC2 with the tutorial [here|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b102ea-efff-2b10-b3aa-d9e84a2c6bb6?overridelayout=true] ). The problem seems to come from the RFC2 Model, but I just import it (and I can't modify it afterwards, because it is a read-only model).
    So, you advise to "declare one boolean variable and assign Prnt_Price to that variable." or to "Explicity convert boolean to string.", I think you are right, but I don't know how to do that in my app (in the component controller ?). Therefore, the attribute that occurs the problem is in the context outputs, to I don't know I will be able to affect it before calling the BAPI.
    Could you tell me how to fix this problem without modifying the model (because it's read-only) ?
    Thank you for advance,
    Louis

  • Error while using Adaptive RFC model

    I am  using adaptive RFC model to consume a function module from BI system. The function module expects a Boolean input. While executing the function module we need to give u2018Xu2019 for that input. When I consumed the function module in the webynpro java project , used it and give the input as u2018trueu2019 on runnig the application it gives the following error: u201Ccom.sap.conn.jco.ConversionException: (122) JCO_ERROR_CONVERSION: Cannot convert a value from type java.lang.Object to CHAR at field I_READ_ATTRu201D
    There is corresponding dictionary type created called u2018BOOLE_Du2019 but I could not access the dictionary type in the controller java file.
    Is there a way to rectify the same or any workaround condition?
    With regards,
    Sougato.

    Hi saurabh,
    I need to give the value from webdynpro. Hers is the sample code.
    rssem_Cha_Values_Get_Input.setI_Read_Attr();
    // It expects a boolean value but if i pass a value to the method the obove error is show.
    Where as there is a simple type "Boole_d" generated when i consumed the RFC in the webdynpro.
    but i couldn't access this simple type in the code.
    With regards,
    Sougato.

Maybe you are looking for

  • Can't open the upload window in any browser on my laptop

    I can't upload fotos to my website from any browser on my laptop because the window to choose the photo in my system won't open. I tried Safari, Firefox and Camino. If I use another laptop the window to choose the photos opens fine. Please help.

  • Mac on a dell

    ive heard of running linux and windows on the same computer. is it possible to have os x run on a dell also. ive never heard of it being done besides on a mac running boot camp. if it can be done, ill prolly buy that os x cd and install. if anyone ca

  • What zip format does FLA files use, and is there a API for editing them?

    I really need to programmatically modify FLA file.  I understand that they are some kind of ZIP archive, but 7-zip cannot open them at all, and although WinRAR and Windows Explorer will open the archives, it will report that the archive is corrupt if

  • Oracle Apps Standard Database Views not appearing in OBIEE

    Hi I am trying to select the Standard database views of oracle apps. for example  PO_HEADERS_V,  PO_LINES_V.....etc. I am unable to see in the (import metadata ) page. I have selected the options (Tables, Keys, forign key, View) Thanks Ahmed

  • Need help!---lookup connectionFactory failed after restart j2ee server!

    hi, I wonder anyone could help me to solve this context lookup problem described as bellows.i should say 'thanks' in advance!!! At the end of the message i post the code used to lookup administered objects then create connection. i use sun's default