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

Similar Messages

  • Consuming AWS model in webdynpro java application

    Hi,
    We are using the following environment.
    SAP Netweaver Portal 7.3
    Netweaver Developer Studio 7.3.
    We have imported a AWS webservice model in a webdynpro application. When we deploy the application in portal, we are receiving the following runtime error,
    error in executing the model: Illegal model class renaming: Model classes with QNames '/definitions/types/xsd:schema[5]/xsd:element[15]/xsd:complexType' and '/definitions/types/xsd:schema[5]/xsd:element[15]/xsd:complexType#Choice1' were both renamed to the same name 'com.sap.demo.harmanmdmui.wd.models.addresswebservice.RunBatchJobRequest'
    Addresswebservice is the webservice name and harmanmdmui is the application name.
    Pleaae advise me with a probable solution.
    Thanks,
    Appachi

    Hi
    What does the log say?
    Regards
    Yuval

  • My Iphone 5 has some issues when I tried to restore it, I could not, can someone help please?

    My Iphone 5 has some issues when I tried to restore it, I could not as it is displayed "iTunes could not contact the iphone software update server because you are not connected to the internet Make sure your internet connection is active and try again, while I am connected to the internet. can someone help please?

    Hi, Jam 974. 
    Here is an article I would recommend going through when experiencing this issue. 
    iTunes for Windows: iTunes can't contact the iPhone, iPad, or iPod software update server
    http://support.apple.com/kb/ts1814
    Cheers,
    Jason H. 

  • I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    Hi miffyzoo,
    If you are having bluetooth pairing issues with your iPhone and your Mac, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Regards,
    - Brenden

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • How to send pdf attachment through mail using Webdynpro-Java

    How can i send the Adobe Interactive Form with data involved as a PDF attachment to mail? using Webdynpro-Java.
    Is there any Adobe API or jar file for generating pdf?
    Helpful answer is highly appreciable and rewarded with points.!

    Hi Sankar,
    try [Offline Interactive PDF Form Using E-Mail|/docs/DOC-8061#49]
    Michal

  • Handling EDT issues when listening to model events with ModelViewPresenter

    I'm planning on using model-view-presenter (passive screen/humble dialog variant) http://martinfowler.com/eaaDev/PassiveScreen.html as the basis for my Swing application.
    view <-> presenter <-> model
    The view is very thin and dumb and only shows what presenter tells it to. Presenter listens to UI events from the view, updates the model based on them, listens to model update events, and reads view state and updates view state.
    I'm now searching for a good practise for handling EDT-threading problem. The model is inherently multithreaded in the sense that we have several threads running concurrently. They for example fetch data from different sources and update the model accordingly. An event is created, presenter listens to it and updates the view.
    There's also operations that the user initiates. Those start in EDT, presenter does some actions on the model and possibly updates the view state as a result. If the action is fast, the whole thing can be done in EDT. If the operation takes a long time, the processing needs to jump out of EDT at some point to not block the UI.
    When thinking about the events that are created from model due to some background thread, where should we jump back to EDT? There's options:
    a) jump to EDT when presenter updates the view
    view (EDT) <- presenter (either EDT or other thread) <- model (either EDT or other thread)
    b) jump to EDT when moving to presenter layer
    view (EDT) <- presenter (EDT) <- model (either EDT or other thread)
    a)
    - could be implemented by creating an AOP aspect for all View interfaces(?) The aspect would jump to EDT if not there yet always when any method of the interface is called
    - if one ModelEvent is received in non-EDT thread in Presenter, and 15 different View setters need to be called to update the view state, causes 15 separate SwingUtilities.invokeLater() calls...problem?
    - model events and eventlisteners are straight forward to implement. Presenter and model do not need to be aware of Swing (existence of event dispatch thread)
    - Presenter is multithreaded and presenter objects need to be implemented so that threading problems do not occur
    b)
    - could be implemented for example by creating special model EventListener implementations that jump back to EDT when event is received
    - model events and eventlisteners are not as straightforward to do as with a). Somewhere the events need to jump to EDT (event source or listener) and you cannot code just "simple plain" listeners and event sources
    - Presenter needs to be aware of Swing (existence of event dispatch thread and need to jump back to it when events come from model) at least in the sense that it uses the correct EventListener implementations
    - View interface could still check that thread = EDT when methods are called (using similar AOP) to ensure threading rules are not broken
    - Presenter can be single threaded (always in EDT) and presenter implementer does not need to worry as much about threading
    - note that above point requires that user-initiated long running operations, that can't be run in EDT, need to jump from EDT the model layer. If view initiates new non-EDT threads (for example using SwingWorker), Presenter still does have multiple threads running on it (although only "one way", from view to model) and needs to be made threadsafe. This is starting to sound bad, but even if Presenter is single threaded only "one way", it may still be easier to implement than presenter that is completely multithreaded?
    I think major point in deciding is the difficulty of creating thread safe Presenters. Thread safe code is notoriously difficult to implement and even things that seem trivial at first sight can cause big problems. I can't help thinking that since the application's core is already multithreaded by nature, how much more difficult can it be to make the Presenters thread safe as well? Presenters should be quite simple in any case, can receiving events from model and calling a few setters on the view cause threading problems?
    Note that this problem is not limited to programs where background threads update the data....any program where some long running operations are run outside of EDT, and may cause events that are listened to in some presenter, has to solve this issue.
    Any views or ideas?

    RickyT wrote:
    Hello Helpful Nokia Users,
    When I am using my BH 103 blue tooth stereo earphones to listen to music on my N900, the sound drops out for about half a second (or less) then the music sounds slower (like a record player that has been slowed down) for about 4 seconds, then goes back to normal. This sometimes happens on each song, one after the other, sometimes it is just @ random times.
    This NEVER happens when using plug in head phones or when I hook it up to my stereo.
    The BH 103 are about 2 years old.... would the battery be failing? Causing them to run out of power super quickly? My N95 8GB used to beep when the battery in the earphones was low, would the N900 be "pausing" instead?
    Are the BH 103 not compatiable with the N900.... even though Nokia store lists them as accessories. Would I be better off with a newer model of ear phones?
    Cheers for your help!
    i think its the battery issue .
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • Flash Professional trial download button says "experiencing some issues" when downloading in Linux

    I'm trying to download the trial version of Flash Professional from here : https://creative.adobe.com/products/flash
    ... but clicking the button always results in the message "We are currently experiencing some issues, please try again later. If the problem persists, contact customer support."
    The problem persists, so here I am. Any idea when will this will be fixed?
    By the way, the user experience of submitting a question here sucks ***. After I type in the heading of my question and click submit, I'm taken to a form telling me I need to sign up first. If I need to sign up first, why waste my time letting me type in my question?
    Then after I've signed up and logged in, I type in the heading of my question again. Clicking submit now takes me to a form where I need to... type in the heading of my question yet again (a third time). Going back to the previous page to try and copy the heading from where I had just typed it a moment earlier does not help because some Javascript has cunningly cleared away what I had entered.

    Hi Iforce2D,
    Welcome to Adobe Forums.
    We aplologize for the inconvenience caused to you.
    If you are facing an issue while downloading from creative cloud then
    please use the below alternate link.
    http://prodesigntools.com/adobe-cc-direct-download-links.html
    Please make sure to complete the very important instructions prior to clicking on the download link.
    Thanks

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • OAM- Apache Reverse Proxy issue when Form Authenticaion is used

    Hi All,
    Customer is using Apache 2.0.65 as a reverse proxy server. OAM has been integrated with OAS. A WebGate has been installed on OHS in infra.
    When a protected resource (portal) is accessed, a login form appears. After entering the correct credentials, it does not go to the resource, instead gives displays some Header Variables on the Browser, instead of actual resource.
    This happens only when a resource is protected with Form Authentication Scheme and while using with reverse proxy. The same Form Authentication scheme works without reverse proxy. With Basic LDAP Authentication, the same resource perfectly works even when reverse proxy is used.
    Any suggestions?
    Thanks in advance.
    Regards,
    Amol

    Hi Amol,
    Check the passthrough parameter in your form scheme. If this is set to yes, what you are asking OAM to do is to pass through to the form action instead of the URL the user originally requested. I know this still does not explain why things work when the reverse proxy is not used - but it might make sense if you actually have 2 form schemes and when you access the resource via the reverse proxy, the policy domain/policy in question actually invokes the scheme which has passthrough enabled. You could ascertain this via the access tester by trying the reverse-proxied URL and direct URL.
    -Vinod

  • Issue when i try to use IMMCP3.

    I have changed the existing values of a WBS in CJ40 & made one of the WBS value to ZERO. But when i try to use IMCCP3 the value of ZERO WBS is not getting copied to the Budget but instead it is showing the Previuos values.
    Before Changing the values in CJ40.
    WBS A - 16000
    WBS B - 0
    WBS C - 0
    After changing Values in CJ40
    WBS A - 0
    WBS B - 8800
    WBS C - 7200
    After Executing the IMCCP3 the WBS with ZERO is not getting updated....i have seen the Budget Reports. It shows as
    WBS A - 16000
    WBS B - 8800
    WBS C - 7200
    Please help me in getting rid of this 16000 value in the WBS.... Thanks

    Hi,
    When you used 1st time IMCCP3 the plan value become your budger for WBS A as 16000.
    When you Chnaged Plan Value For  as
    WBS A - 0
    WBS B - 8800
    WBS C - 7200
    and run IMCCP3 , the sytem takes that there is no value to transfer for WBS A, there is only Value for WBS B and WBS C.
    at that time Your already budget value remain unchanged aas 16000.
    IF you dont have to budget for WBS A as 16000, then remove budget by using cj38 from WBS A.
    Thanks

  • Consuming PI Webservice from Webdynpro Java Not working

    Hello SAP,
    Environment: CE 7.2.
    Resolution expected immediately, Helpful answer is highly appreciated.
    Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
    I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
    I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
    Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
    Options tried so far:
    1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
    2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
    3) Changing the Business Systems in PI and there after calling the service - Not worked
    4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
    5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
    For all the Options, I am facing the same error which is provided in the screenshot.
    Below procedure which I have followed for calling the PI Webservice:
    1) Created Adaptive Webservice Model
    2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
    3) Selected Option - No Service Group Configuration
    4) Provided Logical Destination
    6) Completed creation of Model
    7) Added the model as a UsedModel
    8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
    9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
    10) Build the project.
    11) Activated the code and Run the Application.
    12) Getting the below error which is showed in the message.
    ERROR MESSAGE:
    Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • IE11 compatibility of application developed using webdynpro java in NWDS7.01.12

    Hi,
    I have a webdynpro java application developed using NWDS 7.01.12 with jdk1.4. This portal application is not working when accessed using IE11 browser. The action on buttons and selection from a drop down list in this application is not responding in IE11. Its working well with mozila fire fox vrs 31. On click of action the following error is encountered:
    SCRIPT438: Object doesn't support property or method 'attachEvent'
    File: sapUrMapi_ie6.js, Line: 683, Column: 7
    which points to the below piece of code:
    function sapUrMapi_initLinkStatus() {
      var oNodes = document.getElementsByTagName("A");
      for (var n=0;n<oNodes.length;n++) {
        if (oNodes[n].href.indexOf("javascript:void")>-1) {
          oNodes[n].attachEvent("onmouseover",sapUrMapi_resetStatus);
          oNodes[n].attachEvent("onfocus",sapUrMapi_resetStatus);
    Also on selection from the combo box the below error is displayed.
    SCRIPT438: Object doesn't support property or method 'createEventObject'
    File: sapUrMapi_ie6.js, Line: 2193, Column: 2
    Code:
    oComboBoxSCEvent = document.createEventObject( oEvt);
    The above mentioned errors are being pointed to sapUrMapi_ie6.js file.
    Is there any solution to over come these issues other than setting "user agent string" value in the browser?
    Can this be resolved with any changes in the application or is there any SAP provided solution?
    Please help me to resolve this issue.
    Similar issues are also pointed to popup_ie6.js files at "window.attachEvent("onload",sapPopup_init)" and
    "window.document.attachEvent("onmousemove",resetMouseOver)".
    Thankyou.

    Hi Karthika,
    It is mentioned in Ervin's famous doc, that NWDS version must match that of RunTime System.
    NWDI vs. NWDI content
    I thought the NWDS must be updated via update sites, but surprisingly I could find the patch in service market place.
    I do not know how to get the download link directly for you.
    Perhaps you can spare a few seconds and navigate to
    http://service.sap.com/swdc
    Support Packages and Patches
    A-Z Index
    N
    SAP NetWeaver
    EHP1 for NetWeaver 7.0
    Entry by Comopnent
    Developer Studio
    BR, Tom

  • Advantage of using WebDynPro Java?

    Hi,
    What is the advantage/disadvantage of using Web dynpro in developing web-service based applications in terms of cost, development capability, security and compatibility? in comparison with Visual composer or CAF?
    Thanks,
    Aravind

    Hi,
    What is the advantage/disadvantage of using Web dynpro in developing web-service based applications in terms of cost, development capability, security and compatibility? in comparison with Visual composer or CAF?
    All this tools are created with different purposes, so you cant compare them.
    For creating ui's you have to use webdynpro
    For webservice either you have to create java classes and expose them or else expose ejb(session facades).
    Visual composer is a modeling tool, you cant create webservices their, but you can consume.
    CAF is building applications using existing or new services, here also you can create service and consume as well.
    Regards
    Ayyapparaj

  • Table Filters using webdynpro Java

    Hi Experts,
    I am trying to implement Table Filter i did every thing mentioned in this
    Generic Web Dynpro Java Table Filter still am not getting the filter values
    all the table columns remains same it is not doing any filtering , please help me in solving this logical issue
    Thanks a lot in advance.
    Regards,
    Ken.

    Hi Ken,
    I believe you might came across these blogs as well: if not pls go through the below blogs:
    How to get ready-made filter for your Web Dynpro Table with minimal coding ?
    Filtering Table Values using WebDynpro
    Hope this helps.
    Cheers-
    Pramod

Maybe you are looking for

  • RFC Connection error in SM59 for SAP J2EE

    Hi All, i am getting the following error description while testing the connection for SAP J2EE ... Connection Test SAPJ2EE   Connection Type TCP/IP Connection   Logon              Connection Error Error Details     Error when opening an RFC connectio

  • Printing too light from imac - Canon MP210

    Have recently bought the Canon MP210 connected it to my imac and the printing is too light, except for iphoto's. Any ideas?

  • PERNR and PERAS

    Hii All- Whats the difference between GET PERNR and GET PERAS? when do we use each of these? their usage?? Tx

  • EP Version Requirement for SAP CRM4.0 Server

    Hi all, Can anyone please tell me which version of EP is the minimum requirement of CRM Server 4.0 IS EP 6.0 SP2 compatible with SAP CRM4.0 Thanks in Advance Karthik

  • Formatted search on invoice

    I want to do a formatted search on a invoice, and i must get the LineNumber of each invoice line , and with this linenumber and the docentry, put a value in a userfield(the userfield is in each line) How can i get this linenumber? It's something like