Entity Services: readByCustomKeys operation mapped to External Service

Hello *,
in my CAF application I'd like to read a product from SAP PLM. Within my Entity Service materialNumber is my custom key and therefore a corresponding operation exists: readByCustomKeys.
I map this operation to my External Service (Web service provided by XI).
As I can't test this operation directly with the Service Browser (deosn't appear there), I wrap  my Entity Service with an Application Service where I use the readByCustomKeys operation from Entity Service.
Now when I test the Application Service operation I get the following error message in Service Browser:
ERROR. Invalid type value :
In XI I can see that there was no error and I got well defined XML data as response. So the problem must occur anywhere in the mapping back from External Service data to Entity Service attributes.
Wrong data type mapping can be excluded as I already tested this possibility.
Does anyone know what could be the reason?
Thanks for your answers and best regards
Joschi

Hello Joachim,
I dont have a lot of experience with readByCustomKeys (one experience which failed) but uou can also use read itself. If you have defined materialNumber as a key in your entity service, then this field can be used in read operations as well (I have a lot of positve experiences with this approach). You will find materialNumber while mapping read with your external service and you need not map the key field generated by Entity Service.
For testing entity services, we have had several positive experiences with the config browser, specially for a findBy, read and even update operation. It was very easy to have a prototype UI to check the entity services.
I know this isnt the answer to your question, but just sharing my experiences.
All the best!!!
Regards,
Parag.

Similar Messages

  • Problem external Services mapping to Destination

    Hi Experts
    I've developed a composite application, in this aplication, i've imported a external service. This service i get from esworkplace.
    I follow the steps of this tutorial:[http://sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c02f408d-7d72-2a10-5790-e268ec4d94ef|Consume enterprise service...]
    When i go to the external service configuration to map the service, this service isn't there.
    Then i can't map the external service with a destination, and i can't execute it, because i need authetication.
    How can i solve this? There are some steps to put the external service there?
    I use NWDS 7.11 EHP1 SP01.
    Regards
    Marcos
    Edited by: Marcos Brandao on Jun 17, 2009 3:15 PM

    Hi sampath
    i've done this things in this document, the only difference is my SR is pointed the esworkplace and my eclipse is pointed to my SR. Now, i try to do exaclty how is in this document.
    i configured my eclipse to access the SR of esworkplace, but when i import the service in the registry some error occur:
    Unable to connect to the Services Registry - Unable to connect to sr.esworkplace.sap.com:80 - Connection timed out: connect
    i've configure the service registry and proxy of my eclipse.
    What can i do now? Do you have some suggestion?
    Regards
    Marcos.

  • BAPI_ALM_ORDER_MAINTAIN not loading external services in order

    Hi, I am implementing the fm BAPI_ALM_ORDER_MAINTAIN and creating service orders massively, in which I call the bapi inside a loop and cleaning the tables that were used, the first order of loop is created correctly with the operations of the road map and external services, the problem is from the second order onwards are created with the operations but no external services.
    I think the problem is some internal variable named by the bapi that is not cleaned.
    Is there any function to clean the internal variables or could you recommend next steps.

    after using BAPI_ALM_ORDER_MAINTAIN  for updating object list have u used BAPI_TRANSACTION_COMMIT  to  get the changes reflected.

  • Call external service in a Application service created from ES

    Hi Experts
    I have the follow situation:
    I've modeled a new service in Enterprise Service Builder. This service i'll implement in caf application. In the method create by application i'll call one method of external service.
    I imported this modeled service in Create Web Service Provider option in external package, select the Enterprise Service Repository source option and choice the respective Service Interface.
    In this moment the caf created a new application service, with methods of modeled service. That's all right.
    Now i import a external service of esworkplace. All the step are ok. But the problem is going to next step.
    I need to call this imported service in the method of application service. I know 3 way to do this:
    1. Mapping the external service with this application service. In this case i have a problem - the method of external service is expose as web service, and i don't want this. Just the method of modeled service must be expose.
    2. Create another application service, map the external service with this application service, and create a depency between this application service and the application service created by modeled service. I think this work fine and resolve the problem of expose the method of external service. However i think this isn't a good way to do.
    3. Instantiate the service class of exernal service. From this class i can call the method of external service in application service. But now i have another problem. If i see the implementation of this class, it have a static block which call a URL class, and pass as parameter a wsdl file located in one directory of my computer like
    url = new java.net.URL("file:/D:/SAP7110Workspace.jdi/LocalDevelopment/CRVP/demo.sap.com//ejbmodule/
    _comp/tmp/0/EJB/src/META-INF/xml/ext/rootwsdl_WorkCentreSimpleByPlantQueryResponse_InService.wsdl");
    when execute the application in the server it don't find this file and i give one error.
    I think the best way to do is the 3° way. But why did the caf generate the URL with My computer directory instead of in directory of application? There are some solution to this problem?
    I've change this line manualy, but all the time when i generate the project, i need change this code again.
    Regards
    Marcos

    Hi,
    You may consume external service via JNDI
    Context context = new InitialContext();
    <JNDI OBJECT> local = (<CAST JNDI OBJECT>)context.lookup("<JNDI OBJECT>");
    //Call the method
    If you are using CE 7.11, go to NWA -> Problem Management -> JNDI browser  > ..... -> ObjectName for <JNDI OBJECT>
    - julius

  • External Service Exception

    Hi All
    I have created an entity service with remote persistensy.I have imported a web service as an external service and i am using this in the entity service.I have configured the external service in the external service configuration(service registry,business entities).Whan i am    testing this entity service in the service browser the fallowing exception is coming.
    com.sap.caf.rt.exception.CAFFindException: Problem in server response: [Unauthorized].
    Caused by: com.sap.caf.rt.exception.DataAccessException: Problem in server response: [Unauthorized].
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.queryWithoutEntityRefs(RemoteDataAccessService.java:859)
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.query(RemoteDataAccessService.java:746)
    at com.hcl.xiprcas.besrv.ipentity.IpEntityServiceBean.findByMultipleParameters(IpEntityServiceBean.java:330)
    ... 45 more
    Caused by: com.sap.caf.mp.base.exception.EngineException: Problem in server response: [Unauthorized].
    at com.sap.caf.mp.core.data.service.manager.wsdl11.WSDL11ServiceManager.executeOperation(WSDL11ServiceManager.java:240)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperation(DataServiceFactory.java:259)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeConsiderSSO(DataServiceFactory.java:1056)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperationCommon(DataServiceFactory.java:622)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperation(DataServiceFactory.java:511)
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.queryWithoutEntityRefs(RemoteDataAccessService.java:838)
    ... 47 more
    Caused by: com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: [Unauthorized].
    at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:207)
    at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:163)
    at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:325)
    at com.sap.caf.mp.core.data.service.manager.wsdl11.WSDL11ServiceManager.executeOperation(WSDL11ServiceManager.java:232)
    ... 52 more
    Can you plz tell me what is the problem?.
    Thanks
    Sampath.G

    It looks like you are not authorized to execute the webservice. Check the webservice authentication settings.
    Peter

  • External Service Generation - WSDL not accepted

    Hi,
    I am struggeling to import my WSDL into the CAP SP 8 in the NW DevStudio.
    A long time I received a an error "invalid WSDL" - no further comments.
    After reading the SAPNote and comparing with working WSDLs I came up with that WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://com.bis/xi/esabox/demo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://schemas.xmlsoap.org/soap/encoding/" name="CreateSAPOrderService" targetNamespace="http://com.bis/xi/esabox/demo">
         <types>
              <xsd:schema targetNamespace="http://com.bis/xi/esabox/demo">
                   <xsd:complexType name="row">
                        <xsd:sequence>
                             <xsd:element name="p_idproduit" type="xsd:string"/>
                             <xsd:element name="p_nom" type="xsd:string"/>
                             <xsd:element name="p_type" type="xsd:string"/>
                             <xsd:element name="p_pu" type="xsd:string"/>
                             <xsd:element name="p_count" type="xsd:string"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
         </types>
         <message name="CreateSAPOrderRequest">
              <!--
              <part name="p_idproduit" type="xsd:int"/>
              <part name="p_nom" type="xsd:string"/>
              <part name="p_type" type="xsd:string"/>
              <part name="p_pu" type="xsd:float"/>
              <part name="p_count" type="xsd:int"/>
              -->
              <part name="row" type="tns:row"/>
         </message>
         <message name="CreateSAPOrderResponse">
              <part name="SAPOrderResponse" type="xsd:string"/>
         </message>
         <portType name="SAPOrder_PortType">
              <operation name="createSAPOrder">
                   <input message="tns:CreateSAPOrderRequest"/>
                   <output message="tns:CreateSAPOrderResponse"/>
              </operation>
         </portType>
         <binding name="SAPOrder_Binding" type="tns:SAPOrder_PortType">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <operation name="createSAPOrder">
                   <soap:operation soapAction="createSAPOrder"/>
                   <input>
                        <soap:body use="literal" namespace="http://com.bis/xi/esabox/demo"/>
                   </input>
                   <output>
                        <soap:body use="literal" namespace="http://com.bis/xi/esabox/demo"/>
                   </output>
              </operation>
         </binding>
         <service name="Create_SAP_Order_Service">
              <documentation>WSDL File for CreateSAPOrderService</documentation>
              <port name="CreatSAPOrder_Port" binding="tns:SAPOrder_Binding">
                   <soap:address location="http://iwdfvm2160:51000/XISOAPAdapter/MessageServlet?channel=:BSe_GREENATTITUDE_WS:CC_GREENATTITUDE_WS"/>
              </port>
         </service>
    </definitions>
    No I receive the error "Cannot convert MP Service Definition SAPOrder_PortType into MMR External Service. Reason: Program Error: Unexpected MP data. IStructure struct instance have to be of type IElement."
    Well - for me that does not help a lot.
    Has anyone an idea what I am doing wrong?
    and BTW: I have the impression that CAF but also XI and VC heavily struggle to work with external WSDL. Does anyone know whether SAP is going to improve their products somewhen towards real-life applicability?
    Thanks for any comment!!
    Cheers.

    Hi Ankit
    I had managed to solve the problem with a workaround
    1) I created an Proxy Project to wrap XI WSDL file in it
    2) Then created EJB project to call wrapped XI web Service
       from ejb method. I then exposed this ejb method as web service
    3) Finally created ear for ejb and deployed it on Web Application Server
    4) now create External service project for the new wrapper web service it will get imported sucessfully and build and deploy also goes sucessfully
    The difference this workaround does is that we do not have to consume XI webService directly which has little different structure and instead we consume wrapper web service which is generated out of an EJB and is available on JAVA stack your web service itself
    CAF has no problem importing External services when they are hosted on web server JAVA itself
    Hope my explanation convince you to go with this workaround
    Thanks
    Asif

  • Error while using external service from application service

    Hello All,
    I have exposed webservice from a CAF project that i am importing as external service in another CAF project. Now i am using application service to directly call the external service. following is the code in my application service:
    Ns6_getCountryByCode__R inp = new Ns6_getCountryByCode__R();
                   inp.setNs6_countryCode(countryCode);
                   try {
                          HRServicesWSVi__DocumentLocal bn = this.getHRServicesWSVi__Document();
                          Ns6_getCountryByCode__RResponse result = bn.getCountryByCode__R(inp);
                          retValue.setCountryCode(result.getNs6_Response().getNs3_countryCode());
                          retValue.setCountryName(result.getNs6_Response().getNs3_countryName());
                     }catch(Exception e){
                          throw new ServiceException(e);
    I am getting the following error
    ERROR. Problem in server response: [Bad Request].:
    What could be the problem ? Thanks in advance
    Regards,
    Ashutosh Rastogi

    Hello,
    It's always a good idea to check the log file. In many cases you find hints what the reason for the error could be. The log file can be found here: <root>usrsap<SID>JC30j2eeclusterserver0logdefaultTrace.<xy>.trc where <root> is probably c:, SID something like F33, F41, ... and <xy> a number 0, 1, .... -> the highest number is the last and therefore most youngest log file. Please check out this file.
    Another very common (but trivial) error is that you forgot to specify the URL and the end point location of your Web Service in CAF's config tool. This tutorial explains this beginning on page 20 <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370">Using a Web Service as External Service</a>.
    Regards,
      Jan

  • CAF WebServices don't appear in CAF Admin's External Service Configuration

    Hi,
    I have developed Web Services in CAF and deployed them on the WAS but they don't appear on the CAF Administrative Tools -> External Service Configuration under Service Registry.  They appear in the Web Service Navigator running on the J2EE-Engine but I can't set the authentication mode.
    What am doing incorrectly?
    Thanks.
    Dick

    Hi Richard,
    as far as i know the External Service configuration is only for web services (or RFC's) which are imported as external service in a CAF-Project.
    I assume you developed a application service in CAF and applied a web service on this. Those web services are not visible in external Service Configuration only (as you have found) in Service Navigator)
    I hope this helps,
    best regards,
    Rene

  • External Service Managmnet

    Dear Friends
    I would like to know about External Service Management
    In configuration of External Service management
    Materials Management - External Services Management - Service Master - Define Organizational Status for Service Categories
    There are three organizational service categories
    1)     AS01 u2013 Basic data status
    2)     AS02 u2013 Controlling Status
    3)     AS03 u2013 Purchasing Data Status
    My query is what the importance of the above three is and what circumstances we have to use?
    As per configuration we can create new organizational service categories, what circumstances it would be help
    Please explain
    Thanks
    Vijayakumar TVN

    Hi,
    You can assign the service master records administered in your company to different groups, according to their usage. Such a group is described by the service category.
    To characterize the service categories in more detail, the latter are assigned an organization status. The organization status indicates the areas in which service master records are used.
    For example, units of your company may use services provided internally by other units of the company, or procure services externally (from other companies). Your company may also provide services for others.
    AS01: If you select this the service master data is at basic data level. That means basic data about the service will be depicted here.
    AS02: Service master stored at basic and CO level. To maintain the information at CO level this organizational stus is required.
    AS03: Service master stored at basic plus purchsing level. For procurement purpose(MM), THIS LEVEL is useful.
    I hope this will give you clarity. Thanking you.

  • PO7.31 and BPM: Using Operation Mapping within BPM

    Hello everyone!
    I am facing an issue while trying the import/execute an Operation Mapping within a BPM. Have a PO 7.31SP07 installation (NWDS also on 7.31 SP07), and the process already have some working interface calls to PI, however still having issue while trying to execute the Operation Mapping:
    1. After deploying the process, going to NWA -> SOA tab -> Application and Scenario Communication -> Application Communication -> select the process -> check the "localhost"/WS group for "Local System". The  "Processing State" shows the error below:
    Configuration for service group [localhost] failed. Error details:
    [No endpoints found. Check if the service is configured and if its
    endpoints are available in the . Service:
    [{http://fusionconsultoria.com.br/sales_order_create}fusionconsultoria_salesord_om_SalesOrderSplit_ServicePortType]
    Assigned Provider: [Local System]
    Service Group: [localhost]
    Service Group application: [fusionconsultoria/salesord]
    Service Reference application: [fusionconsultoria/salesord]
    2. During runtime, when trying to execute the OM automated step, on log viewer:
    Error during SCA Processing
    [EXCEPTION]
    com.sap.engine.interfaces.sca.config.exception.ESBConfigurationException:
    Could not process message for operation om_SalesOrderSplit_Service in
    web service plugin module.
    at com.sap.engine.services.sca.plugins.ws.WebServiceImplementationInstance.accept(WebServiceImplementationInstance.java:223)
    at com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:314)
    Caused by: com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException:
    Configuration not found for application:
    fusionconsultoria/salesord,serviceRefId:{http://www.sap.com}salesord_fusionconsultoria~salesord~BPMcomponent_29768b4e-f59a-4ba3-a2ff-dee594b01ecf_WS.
    Please check the configuration details from the NWA. You may have not
    assigned the Service Group to a Provider System, or the generation of
    the configuration has failed.
    3. Carried out the steps from the referenced links below. They are quite similar to each other, however still facing the issue:
    Reuse PI Operation Mapping as a service in SAP NetWeaver BPM
    Using Operation Mappings (PI) in a BPM Process - Process Orchestration - SAP Library
    Using NetWeaver PI’s Mapping in NetWeaver BPM
    - Marked as "local provider" and WS;
    4. Tried deleting, creating the automated step aswell reimporting the Operation Mapping.
    5. Already reviewed the input/output mapping of the automated activity;
    6. On ESR, the mapping works correctly.
    7. Tried changing the outbound and inbound Service interfaces for the OM from stateless to stateless XI3.0, as well from synchronous to asynchronous.
    At this moment I've completely ran out of ideas. Appreciate if anyone could give any insights, since I am running out of time with this project!
    Thanks in advance to all and
    Best regards,
    Lucas Santos

    Hi Lucus
    I'm facing the same type of problem.
    Why would re-creating the BPM fix this issue ?.    I fear I would spend all this effort for nothing.
    What does your operation mapping wsdl:service > soap:address look like ?   What does your NWA BPM application Communication Configuration look like now - before you had that red light - like I have now.  
    The WSDL that is generated from the imported Operation Mapping : what end point is expected here. My wsdl:service > soap:address location has a port of 50500 - which does not even exist!. How can it work  Does this get automatically deployed onto the Service Registry?.
    I have built and deployed this but I get a run time error when it executes the operation mapping.   A technical error during invocation: Could not invoke service reference name.
    I have seen in the deployed BPM's Application Configuration against the Consumed Service Groups an error against the associated service group
    Configuration for service
    group [SG_localhost] failed. Error details: [No endpoints found. Check if the  service is configured and if its endpoints are available in the . Service
    It almost seems that it wants me to publish the end point on the service registry -  no idea how....but I none of the blogs and post indicate that I need to fiddle with this at all.
    I have this question in SDN too if you care to take a look.

  • External Service mapping problem

    Hi guys
    I have integrated an External Service RFC function module.
    The parameters of this module contain "_" underscrores, e.g. "LFA1_LIFNR".
    When I go to the parameter mapping tab on block level, the "_" sign is omitted and I cannot automatically group those parameters with other ones. Is is displayed as "Lfa1lifnr".
    Is there a solution for this error??
    Regards,
    Go:khan

    Hi guys
    Sorry this posting should be inside "composite application framework".
    Regards,
    Go:khan

  • Changing print format for the Shop papers -External service operations

    Hi Friends ,
    We want print outs for the external service operations in our PM orders .
    The standard format available with shop papers is displayed with some extra info .
    We want to remove those info and add some extra info .
    Can we change the printing format for these and how much effort it rquires .
    Regards
    AM

    Hi,
    In OIDF, define the Shop Paper specially designed for External Service Operations.
    In Order, in Print option, go to Operation Selection, select the required operation & select the print layout which is designed for External Service, so that, you can get the print out according to additional fields requirements.
    regards,
    Maheswaran.

  • External service operation with PO associated with it.

    hi Gurus,
    If a PR - PO is created with reference to external service operation of a maintenance order, then do system allow to delete this operation ? Is it standard SAP practice ?
    I have observed in our case that, system is allowing external service operation to delete even though a PO is created with reference to the operation.  System only gives a confirmation prompt ( PO is associated with this operation ) , if we select yes then operation gets deleted.
    Is it logical when a operation is deleted though a PO is created with ref to it ?
    For a non stock item , system does not allow the component to be deleted if a PO is created .
    Kindly reply at the earliest.
    Thanks
    Maneesh

    Hi,
    In standard :- System does not allow you to delete external operations & components when PO is there ..
    I think in ur system for external operation they might have change the error message IW 707  to warning or no message ..
    Check this in config under spro >pm>maintenance and service orders -->message control -->Here for IW -707 , make as Cat -E Error message ..
    Then try it up
    regrds
    pushpa

  • Generate Entity Service from External Service / Web Service (CAF)

    Hi,
    is it possible to generate an Entity Service from an External Service in the CAF-IDE? Or do I need to create each attribute manually which the External Service provides?
    (in worst case by using an api?)
    regards
    Christian

    Hi,
    Unfortunately there is no possibility to create Entity Service based on another service. You have to do this manually for each attribute and method. Sorry ...
    Regards,
      Jan

  • Error in calling external services from CAF

    Hello Everybody,
    I have created one entity services which has remote persistency with RFC. I have mapped operations of entyty service to the RFCs. But when I tried to test this entity service it gives me the error:
    <b>Error when creating business object instance</b>
    Then i looked into the log viewer for the dump:
    [EXCEPTION]
    com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thrown in method readMappingRule. The transaction is marked for rollback.     at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.readMappingRule(MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.java:570)     at com.sap.caf.mp.core.data.service.DataServiceBridge.getMappingRuleIds(DataServiceBridge.java:472)     at com.sap.caf.mp_mmr_bridge.rt.impl.RuntimeHelper.getExternalOperationConfig(RuntimeHelper.java:141)     at com.sap.caf.mp_mmr_bridge.rt.IRuntimeHelper.getExternalOperationConfig(IRuntimeHelper.java:48)     at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:465)     at com.sap.xrfc.besrv.person.PersonServiceBean.create(PersonServiceBean.java:74)     at com.sap.xrfc.besrv.person.PersonServiceLocalLocalObjectImpl0.create(PersonServiceLocalLocalObjectImpl0.java:345)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDependentObject(ServiceWrapper.java:430)     at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDataContainerBean(ServiceWrapper.java:194)     at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.createDataObject(CAFServiceAccessBeanImpl.java:159)     at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.createDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:647)     at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.insertAspectRow(AspectServiceAccess.java:211)     at com.sap.caf.rt.ui.cool.generic.Aspect.insertRows(Aspect.java:1426)     at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1542)     at com.sap.caf.rt.ui.cool.generic.ServiceModule.sendChanges(ServiceModule.java:299)     at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.saveData(TableViewCC.java:377)     at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.saveData(InternalTableViewCC.java:196)     at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionSave(TableViewCV.java:396)     at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:371)     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)     at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:417)     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:415)     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:101)     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:650)     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.processRequest(ClientManager.java:155)     at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:105)     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:63)     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:50)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(Native Method)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)Caused by: java.lang.NullPointerException     at com.sap.caf.mp.mmr.adapter.MMServiceRetrievalAdapter.readMappingRule(MMServiceRetrievalAdapter.java:232)     at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerBean.readMappingRule(MMServiceRetrievalAdapterCallerBean.java:125)     at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.readMappingRule(MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.java:553)     ... 49 morejava.lang.NullPointerException     at com.sap.caf.mp.mmr.adapter.MMServiceRetrievalAdapter.readMappingRule(MMServiceRetrievalAdapter.java:232)     at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerBean.readMappingRule(MMServiceRetrievalAdapterCallerBean.java:125)     at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.readMappingRule(MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.java:553)     at com.sap.caf.mp.core.data.service.DataServiceBridge.getMappingRuleIds(DataServiceBridge.java:472)     at com.sap.caf.mp_mmr_bridge.rt.impl.RuntimeHelper.getExternalOperationConfig(RuntimeHelper.java:141)     at com.sap.caf.mp_mmr_bridge.rt.IRuntimeHelper.getExternalOperationConfig(IRuntimeHelper.java:48)     at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:465)     at com.sap.xrfc.besrv.person.PersonServiceBean.create(PersonServiceBean.java:74)     at com.sap.xrfc.besrv.person.PersonServiceLocalLocalObjectImpl0.create(PersonServiceLocalLocalObjectImpl0.java:345)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:324)     at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDependentObject(ServiceWrapper.java:430)     at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDataContainerBean(ServiceWrapper.java:194)     at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.createDataObject(CAFServiceAccessBeanImpl.java:159)     at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.createDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:647)     at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.insertAspectRow(AspectServiceAccess.java:211)     at com.sap.caf.rt.ui.cool.generic.Aspect.insertRows(Aspect.java:1426)     at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1542)     at com.sap.caf.rt.ui.cool.generic.ServiceModule.sendChanges(ServiceModule.java:299)     at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.saveData(TableViewCC.java:377)     at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.saveData(InternalTableViewCC.java:196)     at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionSave(TableViewCV.java:396)     at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:371)     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)     at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:417)     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:415)     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:101)     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:650)     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.processRequest(ClientManager.java:155)     at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:105)     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:63)     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:50)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(Native Method)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    I have configured RFC connections in the administrative tools. Still it is not working.
    What should be the reason behind this?
    Thanks,
    Bhavik

    Hi Guys,
    i have the same issue when calling a external service ...
    I'm calling a web service located on my server, and i get the same error ...
    I have a error while the method "loadbycustomkeys" is trying to get data from the web service.
    in the error trace i find the same error id : nullSourceOrTargetForMapping which occurs in the readMappingRule method.
    have you found a solution for your issue please ? let me know !
    Thxs
    MCT

Maybe you are looking for