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.

Similar Messages

  • 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

  • Problem in displaying a field in webdynpro using Adaptive RFC model

    HI,
    I created a webdynpro application using adaptive RFC model and i have a problem in displaying one of the output fields.
    When i execute the function module it is giving the exact value for my output field in this case telephone number (of type STEXT which is char with length 40).But when i am trying to display that telephone number in webdynpro application it is taking only first 4 digits.
    i deleted the model and recreated it still it doesnot work.
    please let me know how to resolve it.
    points will be awarded for sure
    Bala

    Hi Bala,
    Whenever you reimport the model server restart is necessary otherwise the changes will not get reflected. You will get an error when you deploy the application.There is no go around except restarting the server as the meta data gets cached in the server as long as the server is runnig.So, Once you restart the server the cache will be cleared.
    Check once again whether you are fetching data from correct BAPI field. Still problem persist try debugging.
    Regards, Suresh KB

  • How to set the tables parameter to a BAPI using adaptive RFC model

    Hi,
    I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
    I used adaptive RFC model and created model classes for the BAPI.
    My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
    I have the following methods available
    ZBAPI input = new ZBAPI();
    1.ZTable table = new ZTable();
    table.setPernr(pernr);
    table.setname(name);
    input.addZPernr(table);
    how do i set the table parameter for multiple pernr and name
    2.
    add all the pernr and name to list and set that list to input in the following way
    input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
    out of two methods mentioned which one is correct.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Hi Bala,
                In your code:
    List pernrList = new ArrayList();
    pernrList  should be declared as the  type of class HROBJECT   ( The structure name in the model  e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
    Try this:
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr);
    input.setPernr_List(pernrList);
    // call BAPI execute method
    If you want to pass list of pernrs, you can pass in alternate way
    IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
    IPrivate<viewname>.I<nodeame>Element prEle;
    for (int i = 0; i < table.size(); i++) {
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr); // Set the pernr from current record
    prEle = prNode.create<nodeame>Element(pernrList);
    prNode.addElement(prEle);     
    // call BAPI execute method
    Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
    Say your node name is  PERNR_PERFRAT
    for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
    Regards,
    Siva

  • Error while creating Adaptive WS model(SP17) using local WSDL file

    Hi,
    I am trying to create a model with the wizard for adaptive Web Services, without using logical destinations. I have download the file from PI Server. This WSDL file is not registered in UDDI. But when I try to upload my WSDL from local disc I get an error message, which defines in the .log file like this:
    Plugin name: Web Dynpro Model Editor
    Plugin ID : com.sap.ide.webdynpro.modeleditor
    Class : om.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameW
    Method : loadNameSpacesAndModelClasses
    Message : Cannot load NameSpaces and ModelClasses
    Exception  : java.lang.NullPointerException: null
    Earlier when i was using "WebService model", i was able to create the model successfully.
    Do help me how to reslove this problem.
    Regards,
    Raj

    Did u use "webservice model" or "adaptive webservice model".
    Earlier i used with "wenservice model" and it was working fine. Now that with SP17, "WebService model"is depricated and we are forced to use "adaptive webservice model" and it is giving the problem. the detailed error is :
      Exception  : java.lang.NullPointerException: null
    <i>!STACK 0
    java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters(DOperationImpl.java:46)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.<init>(DOperationImpl.java:40)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.initOperationNameToOperationMapping(DInterfaceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.<init>(DInterfaceImpl.java:55)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initPortNameToInterfaceMapping(DGenericServiceImpl.java:78)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)</i>

  • Error in Import Adaptive RFC Model

    Hi SDN,
    I am trying to develop an application using Import Adaptive RFC Model, while creating a model i could not able to connect to the backend system after giving the single server parameters. When i click on the next button a pop up is displayed with an error message *"User Name or Password wrong" *.
    But i could able to login to R/3 with the same userid and password from SAP logon pad.
    Really i am at Six and Seven's to trace out this error. Please suggest me how to overcome this error and create the model succesfully.
    Regards
    Basha

    Hi Praveen & Chaitanya
    Thanks for your quick response and informative threads.
    Actually in order to import an adaptive rfc model
    I have right clicked the model node to create a model and given the model name,package name,model data and metadata names and clicked next button. Then in the next screen
    Tab Strip -> Single Server:
    Host name :
    System Number :
    client details:
    Tab Strip -> Load balancing:
    System :
    Message Server:
    System Name:
    Group:
    (in Tcode: SLMG i have added the group public also)
    client details:
    After entering the required details either in Single Server or Load balancing and clicked the next button  I could not able estabilish a connection to the backend R/3 and get the list of Bapi's or RFc's. Instead i am getting a pop up message "User Name or Password Wrong". I could not able to proceed from here.
    But with the same above parameters i could able to logon to R/3 from SAP Logon Pad. I have tried by giving the user name in Cap's and small letters but no use.
    As i was strucked at the intial step while creating the model but not during the execution of the program, as far as my knowledge is concerned i think we no need to worry on SLD or JCO connections during the creation of the model. Please correct me if i am wrong and suggest me to rectify the error.
    Regards
    Basha

  • Getting Error when using Adaptive RFC in creating model...

    Hi All,
    When i am creating Model for Adaptive RFC at that time i am not able to login to my R/3 System...
    Previously we used to work in ECC5.0 at that time it was working.
    Now we are working in ECC 6.0 but error is coming. Name and password not found.
    So do i have to reconfigure the NWDS.
    If Yes. How to do reconfigure it for ECC 6.0
    Pls its very Urgent...........
    Regards,
    Dhruv Shah

    Hi,
    JDeveloper 11 related questions have their own forum
    JDeveloper and OC4J 11g Technology Preview
    The JDeveloper 11 RichTree does not use PathSet but RowKeySet to keep track of the selected state. A property on the tree component allows you to set the selected state by referencing a RoKeySet e.g. in a managed bean
    Frank

  • Error while creating Adaptive WS Model

    Hi All,
    I am trying to create a adaptive ws model out of a wsdl file. The file stored locally on my machine. While creating,it gives an error as
    Error in loading the WSDL file. Check error log
    When I checked the error log, these were the last entries,...
    t com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
    at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:411)
    ... 53 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Proxy generation problem. See nested exception.
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:249)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:146)
    ... 56 more
    Caused by: java.lang.Exception: WSDL does not contain enough information to load WS Client.
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClassGenerator.generateAll(ClassGenerator.java:1159)
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:244)
    ... 57 more
    What could be the problem? Any pointer is appreciated. Thanks
    Regards
    Sandip Agarwal

    Sandip sir,
                      If u can access the webservice in webdynpro in this server,u can check the webservice in wsnavigator also.If its working on some other server,may be its not deployed properly on the server u r using.
    If the service is deployed on the server,it will be available on wsnavigator also.
    note: If u can't see the service in wsnavigator,how do u check whether the service is working properly?If there is any other method to check the service,do let me know also,so i can try.
    regards
    Sumit

  • Error in using  Adaptive RFC

    Hi,
    I am using an Adaptive RFC to display values in a table in Webdynpro.There is an error " com.sap.dictionary.runtime.DdException: Value is not numeric "  which  occurs when I try to display the data.
    Could u please tell me what could be the reason for the occurence of this error.
    Thanks in advance,
    Jesmila.

    Hi
    1.Test the return Data are corectly bind with the same data type.
    2. Check the output node size is greater then 0.
    Can you expalin the problem in detail?
    Kind Regards
    Mukesh

  • Error while creating Adaptive Webservice model

    Hi ,
    I am getting errors when trying to create an adaptive webservice model. I am working in NWDI environment. When i tried to create adaptive webservice model  in local development it was successful. But when i tried to create the same using the component which is in a track i am getting errors.
    Please help on this.
    Thanks,
    Portal

    When do you get the error and what is the error?
    Regards,
    Murtuza

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • 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

  • Getting Error while Creating the RFC Model

    Hi All,
    I am Creating the aRFC model. Now i am getting error in the creation of RFC.
    In Single Server in am giving my R/3 Server IP. my usrname and password.
    what i have to write in the Load Balancing. I am not getting any options in Load Balancing Tab.
    When i press Next, Error is coming:
    Connect to SAP Gateway Failed.
    Error: Partner Not Reached.
    So pls help out......
    Regards,
    Dhruv Shah

    Hi Dhrruv,
    You can check your SAP R/3 username and password with the BASIS person or Security person.
    Once it is confirmed, give the following details:
    Host Name : abcdefg.hij.xyz (ie.give the alias of the server )
    System Number : 00
    Client : (give ur client system number)
    Logon Name : (ur SAP logon Name)
    Password: (ur SAP Password)
    Language : EN
    Leave SAP Router blank.
    Click next. It should work. Try this and let me know what happens.
    If you get error please send me the screen shot of the details u filled in to [email protected]
    Thanks
    Kukku

  • Adaptive RFC model connectivity to SAP R/3 4.6 B

    We are developing a new webdynpro application which uses the backend R/3 version is 4.6B using Adaptive RFC model.
    We are able to connect to Web As systems without any issues but getting error messages while creating the Adaptive RFC model to R/3 4.6 B system as backend.
    Appreicate your help.
    Message was edited by: Udaya Chada

    Hi ,
    I think SLD,s/w Catalog and Creating Logical Systems were Configured,
    Go through the Following Steps Like,
    -- General Data, Enter the Client of the System and Client No. (JCo Connection is Pointing to)
    --J2EE Cluster, Select the J2EE Cluster you wish the JCo destination to be assigned
    -- Select the Destination Type, Either Application/Dictionary data
    -- Appl.Server, You may only select Servers/Logon Groups From the Drop down list that have first been defined as technical Systems in SLD.
    -- Message Server, Application Data JCo destination is connected must have atleast one logon group.( if this is not done ,use SMLG transaction code to create in SAP System)
    --Security, If you have selected connection Type as Application Data , then in the Security Screen you would appear Authentication Techniques and select a appropriate one .
    if you have selected connection type as a Dictionary meta data then provide User Name and Password
    If this is useful to you ,don't forget to award Points
    --Venkat

  • Adaptive RFC Model - disconnectIfAlive()

    Hi,
    In my Web Dynpro application, I am using Adaptive RFC model and executing the RFC as below
    ZRfc_Test_Input input = new ZRfc_Test_Input();
    // set input
    input.setParam1("xxx");
    input.setParam2("xxx");
    input.execute();
    My application works fine for couple of days and suddenly I get an error that
    "com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:Could not create JCOClientConnection for logical System: WD_TEST_MODELDATA_DEST - Model: class com.test.TestModel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!"
    Our basis guys are unable to figure out why the SLD is misbehaving suddenly. If we restart the SLD, everything will be fine for next couple of days.
    I just want to make sure that it is not happening due to my application or due to the way the RFCs are being executed.
    After I execute my model, do I have to explicity disconnect the connection using below statement?
    <b>input.modelInstance().disconnectIfAlive();</b>
    Do I have to do this even when I am using Adaptive RFC model?
    Default min and max number of connections are used while creating JCO destinations.
    Appreciate your input.
    Thanks
    Kumar

    Hi Siva,
    >>> It is always better to close the connection after executing the RFC<<<
    Thanks for the response. I am sorry for being adamant, I agree that it would be nice to disconnect but IS IT MANDATORY? If the pool size is increased appropriately, doesn't web dynpro runtime takecare and disconnect the connections after the execution.
    In SAP tutorials and help.sap.com (at least the ones I have gone through), it is never mentioned any where that one MUST close the connections EXPLICITLY after the execution. All these days I am under the impression that it is not needed for Adaptive RFC models. I may be wrong.
    Could you please confirm if we should close the connections explicity?
    Thanks
    Kumar

Maybe you are looking for

  • Camera Raw 5.2.0.65 opens in German in Photoshop CS4

    Hi, Mac OS X 10.5.6 MBP. I installed the Camera Raw 5.2.0.65 plug-in a while back but since I do most of my image processing in LR 2.2 I hadn't used Camera Raw in PSCS4 or Bridge until tonight when I opened a JPEG from PSCS4 and it opened in Camera R

  • Opening a PDF in Reader (can I default to 100%)

    My boss would like for Adobe PDF Reader (and/or Professional) to automatically open documents at 100%. Is there a preference to do this?

  • Not able to print label getting standard text as it appears in so10

    Hi, I have a  so10 object ,script contains only one window i.e main and we call so10 object  in script  by using statement    'Include &standrdtxt& object text id ST lang EN' ( standrdrxt contains text name)but instead of printing label it is printin

  • Lenovo Accounts Receivable.

    I have a question about taxes for residents in miami . A couple of months ago I bought two laptops from Lenovo official site by courrier service hosted in Miami , Doral makes name " Paraguay box" because it does not reside in US but in Asuncion, Para

  • MIGO_GR

    Hi All, I am looking for a spot in MIGO_GR before the PO data is loaded or when anytime after data is loaded and before we hit POST or before batch is created. I need to perform some validations on the data. The following are the once i tried: BADI: