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

Similar Messages

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

  • 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

  • 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

  • Inconsistency of results using adaptive RFC

    I'm calling a function from a R/3 System using Adaptive RFC and i'm having different results from my webdynpro application that the ones that i'm having in the R/3.
    If someone could tell me why this happen I will appreciate.
    Thanks.

    Hi Frank,
    Iin another opportunity I had tried to do the same procedure you are trying and not getting hit. I ended up using the parameter "sap-wd-client = WmlClient" in the url of the application ... What makes this return in xml format and can be accessed like a Web Service. It really is not a proper use for a Web Dynpro application, but with some customization finally meet demand.
    Regards,
    Angelo

  • 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

  • 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

  • Error in SAOP adapter : RFC to SOAP Synch Scenario

    Hi Experts,
    Scenario is "RFC to SOAP Synch".
    For creating this following this link : **************** - Scenario on RFC to SOAP
    Trying to send XML to SOAP receiver.
    Using Below details for SOAP:
    Website : http://www.webservicex.net/WS/WSDetails.aspx?WSID=59&CATID=4
    Target URL : http://www.webservicex.net/SendSMS.asmx?WSDL
    SOAP Action: http://www.webserviceX.NET/SendSMSToIndia
    But when I try to send showing this error:
    "Error in processing caused by: com.sap.aii.af.lib.mp.module.ModuleException: call to messaging system failed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIAdapterFramework:GENERAL:com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket".
    Any one please suggest how resolve this issue?
    Is there any setup necessary in PI server to send message through SOAP?
    Thanks,
    Arthita

    Is there any setup necessary in PI server to send message through SOAP?
    No
    Solution
    Check if there are any firewall rules in place which are restricitng the PI system to connect with the URL
    : http://www.webservicex.net/SendSMS.asmx?WSDL
    Suggestion
    Copy paste this URL in browser and verify if it is accessible
    Sourabh

  • (SUP for Blackberry) JCo unknown type error when using PT_ARQ_REQUEST* RFC

    Dear community,
    I am encountering a weird error when trying to execute the PT_ARQ_REQUEST_PREPARE RFC in a Leave Request scenario for BlackBerry with the SUP.
    When creating the MBO from the RFC PT_ARQ_REQUEST_PREPARE and testing it with the parameters
    im_command = create
    im_modus = r
    im_pernr = 00001000
    im_wi_id = 000000000000 (initial value)
    im_request_id =  *emptyString* (initial value)
    I get an "execution suceeded" everytime EXCEPT when I try to return the output structure ex_request! However, this is exactley the information needed to execute the following RFCs PT_ARQ_REQUEST_EXECUTE and PT_ARQ_REQUEST_CHECK. The error I get when executing is the following:
    unknown JCO type
      java.sql.SQLException: unknown JCO type
    I checked for short dumps in the transaction ST22 and found an OBJECTS_OBJREF_NOT_ASSIGNED_NO     (CX_SY_REF_IS_INITIAL) error that marks an error when retrieving the attributes (most likely from the ex_request structure). I looked at the structure and found out that it is a deep structure. Could that be the reason for the error? How can I fix it and get the correct output? Does anybody has experience with a similar problem?
    Thank you for your help in advance!
    Best regards,
    Jenny
    PS: some additional info about the error message:
    unknown JCO type
    unknown JCO type
      java.sql.SQLException: unknown JCO type
      com.sybase.vader.jca.sap.connector.cci.SapJcoResultSetMetaData.getColumnType(SapJcoResultSetMetaData.java:135)
      com.sybase.uep.eis.RecordSetImpl.<init>(RecordSetImpl.java:69)
      com.sybase.uep.tooling.eis.BaseEISOperation.getRecordSetFromResultSet(BaseEISOperation.java:980)
      com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:259)
      com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:154)
      com.sybase.uep.tooling.eis.SapEISOperationImpl.execute(SapEISOperationImpl.java:401)
      com.sybase.uep.tooling.ui.ModelsUtil.getEEISOperationMetaData(ModelsUtil.java:252)
      com.sybase.uep.tooling.ui.ModelsUtil.refreshAttributes(ModelsUtil.java:892)
      com.sybase.uep.tooling.ui.ModelsUtil$3.run(ModelsUtil.java:778)
      com.sybase.uep.tooling.om.util.MobileObjectModelsUtil.execUpdate(MobileObjectModelsUtil.java:1027)
      com.sybase.uep.tooling.ui.diagram.extension.commands.CommandUtils.runUpdate(CommandUtils.java:219)
      com.sybase.uep.tooling.ui.ModelsUtil.refreshRead(ModelsUtil.java:742)
      com.sybase.uep.tooling.ui.ModelsUtil$6$1.run(ModelsUtil.java:1046)
      org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection$3.doExecuteWithResult(AbstractModelerPropertySection.java:584)
      org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
      org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
      org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
      org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:135)
      org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
      org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection.executeAsCompositeCommand(AbstractModelerPropertySection.java:315)
      com.sybase.uep.tooling.common.ui.property.view.UEPPropertySheetSection.executeAsCompositeCommand(UEPPropertySheetSection.java:406)
      com.sybase.uep.tooling.common.ui.property.view.UEPPropertySheetSection.runAsCommands(UEPPropertySheetSection.java:389)
      com.sybase.uep.tooling.ui.properties.sheets.mbo.MBOAttributesBoundMappingPropertySection.runAsCommands(MBOAttributesBoundMappingPropertySection.java:583)
      com.sybase.uep.tooling.ui.tableviewer.common.editingsupports.PropertyViewCommandDelegate.runInCommand(PropertyViewCommandDelegate.java:48)
      com.sybase.uep.tooling.ui.ModelsUtil$6.run(ModelsUtil.java:1039)
      org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Edited by: Jenny Bachmann on Feb 8, 2011 6:29 AM

    Hi Jenny,
    I can't remember what the issue exactly is but I think it's related to one of the data types used in the returned structure.
    In any case it's probably a good idea to create your own RFC enabled function module to call the 3 standard function modules instead of calling them one after the other. This way you will avoid unnecessary network communication and you have more control on the data that is exchanged.
    Regards,
    Pierre

  • Programmatic access to multiple backend systems using adaptive RFC

    Hello,
    The following  link http://help.sap.com/saphelp_nw04/helpdata/en/af/84a34098022a54e10000000a1550b0/content.htm talks about the support to map multiple backend systems by specifying the backend system as URL parameters in a webdynpro application.
    For example:
    http://<hostname>:<port>/webdynpro/dispatcher/local/ESSProject/ESSApp?
    sap.wdarfc.useSys=WD_MODELDATA_DEST:ABC&
    sap.wdarfc.useSys=WD_RFC_METADATA_DEST:ABC
    Is it possible to programmatically change the backend systems the application connects to? in other words can a single application while executing connect to different backend systems by dynamically changing the model parameters?
    (This should be possible without the portal in the picture)
    Cheers,
    Praveen

    Hi,
       [This|JCO connection to multiple R/3 Back end system; might help especially the reply from Bertram Ganz.
    Regards,
    Satyajit.

  • Error in Adaptive RFC

    Hi Experts
    Some time ago, when i used NW EHP SP01, i developed an application using Adaptive RFC in Web Dynpro.
    I call RFC BAPI_REQUISITIO_CREATE from ECC.
    Now i have instaled NW EHP SP04, and when i tried to used this application i have this error:
    java.lang.NullPointerException: while trying to invoke the method com.sap.mw.jco.IMetaData.getFieldCount() of an object loaded from local variable 'metadata'
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:181)
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:149)
    at teclogica.com.br.purchase_request.purchasemodel.Bapi_Requisition_Create_Input.<init>(Bapi_Requisition_Create_Input.java:54)
    at teclogica.com.br.purchase_request.purchaserequestapp.PurchaseRequestApp.wdDoInit(PurchaseRequestApp.java:140)
    at teclogica.com.br.purchase_request.purchaserequestapp.wdp.InternalPurchaseRequestApp.wdDoInit(InternalPurchaseRequestApp.java:349)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
    at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:254)
    This happen in the method wdDoInti of component controller when i create the Model:
    Bapi_Requisition_Create_Input createRequisitionInput = new Bapi_Requisition_Create_Input();
    I tried to reimport the model, but didn't work.
    The RFC Destinations are created and working.
    Someone could help me, please?
    Regards
    Marcos Brandao

    Hi Marcos,
    I would rather say first check the status of JCOs. Then delete the model node from context and even from DC. Now freshly import the model, create a model node in context and then bind it to the input structure of the BAPI before you call the code.
    Even in the code, check if you bind the instance of input structure of the BAPI to the model node in conext before you execute the model instance.
    Regards,
    Tushar S

  • Error msg-Adaptive RFC reimport could lead to inconsistency of R/3 metadata

    Hi Experts,
    I am trying to reimport the model for Webdynpro application.
    I wanted to include more BAPIs to the existing model.
    When i am trying to do that I get pop up, with following message;
    "Adaptive RFC reimport could lead to inconsistency of R/3 metadata cached on J2ee server.
    Thus it is recommended to invalidate the cache this could be done either by re starting the J2EE server or by using adaptive RFC metadata cache invalidatation tool within webdynpro Console"
    Could anyone one help me in resolving this?
    Thanks and regards,
    Pradnya

    Hi,
    When you reimport an RFC/BAPI the metadata which is stored in the cache is not cleared. So it still refers to the old RFC/BAPI metadata. We need to clear this. This can be done by either restarting the server or webdynpro console.
    For Clearing through webdynpro console the version should be NW04 or 6.40 SP21 Onwards 2. NW04S or 7.0 SP12 Onwards
    Check this link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
    Thanks,
    Gopi

  • Adaptive RFC use in test/dev systems

    The Adaptive RFC model requires a msg.server for metadata. Does that mean it can't be used in test/dev system where there is only an app server? I find that hard to believe.
    Secondly, during the creation of JCO Connections in the webdnypro content admin tool, the drop down boxes for message server and application server are empty. where is this data defined? saplogon.ini + ...drivers/etc/services files were copied to the WAS/SLD host machine.
    Furthermore, is the Adaptive RFC the best way to use SAP data (called from function modules) in a webdynpro?
    Thanks,
    faB.
    Message was edited by: faB

    Hi,
    1.Even in development system you have centrall services, and as part of this you have a message server. So you can use Adaptive RFC model in development sysetems without any problem.
    2.Regarding you second question: you should define you application system in SLD before using JCO destinations. Just search for SLD in this forum and you will fine the how to configure it.
    3. AFAIK, Adaptive RDC model <b>is</b> the best way (it's better to say the <b>proper</b> way) to use your SAP application system in the WAS context.
    Hope it helps.
    Victor.

  • 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

Maybe you are looking for