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

Similar Messages

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

  • 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

  • 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

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

  • Help regarding adaptive RFC settings

    Hi,
    I am trying to make the WD tutorial flight list module work which uses adaptive RFC model...
    I am in a bit of confusion as to the all the settings required to be made so that the RFC call works with no errors...
    In the visual administrator --> Server --> Services --> SLD Data Supplier
    am i supposed to give the login and server details of the SAP R3 system
    or of the remote system which connects to the SAP R3 system... Please let me know as this is a big confusion i'm facing currently...

    Hi,
    Actually you dont connect Visual Admin directly to R/3,
    But it goes like below.
    1) In visual Admin --> SLD Data Supplier
    You specify the connection parameteres with user name & password to connect to the SLD,
    give  localhost:50000    (if u are using SLD of local WAS)
    give  <RemoteSLDServer>:<port> (if u r using SLD of some remote server)
    2) Now in SLD, you create a technical system, which will be connecting SLD to R/3 system.
    3) Now using above technical System, you define & create Logical System (JCo Connections) in your content Administrator of Web Application Server, on which you will deploy your Dynpro Application.
    Hence your application will connect to R/3 function modules using JCO's which will use technical system defined in SLD & which will be connected & authorized by configuration Visual Administrator.
    Hope you will get clear idea from above.
    Regards
    Deepak

  • 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

  • Web DynPro Adaptive RFC proxies configuration

    Hi,
    When using Adaptive RFC proxies to call BAPIs in my Web DynPro application I need to go to the content management web interface (localhost:50000/webdynpro/welcome) to set them up. How can I automate this configuration for, say, quick deployment on another server ?
    Thanks,
    Romain GUY
    Cap Gemini France

    From your problem description, I assume it's the JCO destinations that you want to create programatically in the SLD. This is possible. Check out the API documentation for the class WDSystemLandscape.
    Regards
    Shakeel

  • 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

  • Wht mean by adaptive rfc class?

    hi
      i m new in ep development. some one ask me which class ur using in adaptive rfc?
    plz any one tell me ,class that we use during adaptive rfc or webservices in webdynpro java.

    Hi,
    Didn't get your question.
    When you use Adaptive RFC, and import bapi / web service then MODEL CLASS will be generated.
    you can say you used input class (for input paramenters) or output class (for ouput parameters) of model class.
    have a look at adaptive rfc http://help.sap.com/saphelp_nw04s/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    regards,
    Pradeep

Maybe you are looking for

  • Mac Pro Screen Freezing Issue with NVIDIA 8800 GT too

    There were lots of entry in threads, where the screen freezing issue was described (disorted screen with strange lines, only reboot helps). Nearly all cases seem to be related to the ATI 2600 card. http://discussions.apple.com/thread.jspa?threadID=13

  • How to create new Sheet in Excel file and write into it

    Hi to all, my requirement is this: I have an excel file (.xls) with multiple sheets (three sheets for precision: sheet1, sheet2 and sheet3). I must create in the same excel file new sheet, say sheet4, read data from sheet1, sheet2 and sheet3 and writ

  • How to use md5 Checksums to verify thousands of copied files

    Hello, So I need to be able to verify the succesful copy of thousands of files using md5 checksums. is there a program for this or a string of code for terminal? Please help. Cheers.

  • Jumping cursor as I type

    I just recieved my new PB today and havne't been able to use it because of the jumping cursor problem when I am trying to type. When I type my hands are elevated at about 1/2 an inch over the track pad. As I type in both Entourage and Word, my mouse

  • Photoshop version with Production Premium CS6

    Hi! I have Production Premium CS6 - student/teacher edition. I teach a video communications course at my school. Everything I have read online indicates that production premium should include Photoshop Extended. I know I have accessed the 3D menu in