In application services i am using entity services

hi all
i have created application services in entity services i have created findAll ()method that method i have accessed in application services by
getEntityServices.findAll .and i have made application service as a webservices but when i am testing this method in wsnavigator
this method gives error.please reply soon
com.sap.engine.services.webservices.wsnavigator.WSNavigatorException: null
Exception id: [02004C4F4F50004E000006FA00000E4000042DBF06435C4C]

Hi, I tested the application using the CAF Runtime Configuration service test and it was an authorization Issue. The entity was set to check permissions. I disabled this in NWDS and it works fine now

Similar Messages

  • How to use bapi /external service directly in application service

    Hi
    I have to use BAPI_ALM--RDER_MAINTAIN in my caf application
    i have imported it as external service.As there are problems mapping its input fields to entity service , it has to be consumed directly vai application service.
    But i ahve never done so before.Can someone give me an example as to how t do it.
    If someone can give example of how to code in the application service to call  the bapi , it would be great . as i have some time constraint.
    Thanks ,
    Points assured for help.

    Hi Vivek,
    As you asked for an example to call a bapi directly from Application Service you can follow this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/57fff3b10b3672e10000000a114a6b/frameset.htm">Using Generated External Proxy in Application Service</a>
    Thanks and Regards
    Avijit

  • CAF  entity and application service

    hi
              when we are importing RFC or Webservice  for  external service 
               can we use application service directly  instead of  entity service
                   is it possible to use only  external service and  without entity  service  .

    Hi
    Yes you can do that.
    Entity Service is Used to Store the Persisitant data relavent to the Business Object.
    Application Service is used to Manipulate the Entity Service.
    Regards,
    Rajendra

  • Sharing CAF Entity/Application Service to Other CAF Project ?

    Hello,
    Currently we don't have NWDI in place and only doing local development;
    ie, using local DC's. Now we'd like to contain all CAF Entity Services
    and related Application Services in one CAF Project (CAF_BASE) and
    create other CAF Project (CAF_APP) to refer to these exposed
    Entity/App Services.
    I tried to add all entities of types [Common Model] and [Java Package Tree]
    to one Public Part  (PP01) in DC of Project CAF_BASE. In DC of Project
    CAF_APP, I included PP01 as a used DC.
    Still those Entity/App Services in CAF_BASE are not shown in CAF_APP.
    Is this by design or I did it the wrong way ?
    Ying-Jie Chen

    Hi Francesco,
    From SAP Help (see URL below),
    http://help.sap.com/saphelp_nw2004s/helpdata/en/32/07c93f26903a1ce10000000a114084/content.htm
    A statement is specified :
    >>> Start-of-SAP-Help
    Restrictions for Relations
    The following restrictions apply for relations between entity services:
         Relations between entity services can only be unidirectional. A bidirectional relation has to be modeled as two unidirectional relations.
         Entity services can only refer to (relations and inheritance):
          Other entity services of the same project
          Core entity services
         Entity services can only reference other entity services.
    <<< End-of-SAP-Help
    It says that a entity service can only refer to other entity services in the
    same project so there is no way for us to share entity services between
    projects.
    FYI,
    Ying-Jie Chen

  • How to use an Adobe interactive form in an Application service operation?

    Hi,
    I have a peculiar requirement here:
    The user wants that on the trigger of a specific operation an operation of the Application service should get invoked: this operation should pick up a Adobe form template from a destination and then prefill this forms with some values and then store the same in the backend DMS.
    It's very easy to accomplish this task in WD Java with the use of Interactive form element but here we don't want any kind of user interaction for these forms, just the form templates will be prefilled with some dynamic values and then the same will be saved as is.
    Can some one please provide some insight into how the same can be acieved, any API's etc?.
    Please reply ASAP.
    Regards,
    Manish

    hi
    try this tutorial on
    online interactive
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on online interactive pdf form - 29.htm
    for offline interactive form
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using download - 30.htm
    for downloading and uploading pdf forms
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using e-mail - 31.htm
    regards
    saravana

  • I forgot my Apple ID password and security question. Also the email I'd is not accessible as the organisation has stopped their email service. How can I now update my applications which I downloaded using this Apple ID. Please help

    I forgot the password of my Apple ID that I used for downloading apps when I newly bought my mac book back in 2011 October.
    Now I forgot the password and also the security question.
    Also the email service provider has stopped their email service and hence m not able to use email authentication as well.
    Now I am lost, how will i update the applications that I downloaded using this Apple ID.
    Please help

    Saunakhvshg,
    contact Apple directly.

  • 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

  • How to use an Interactive form in a CAF Application service operation ?

    Hi,
    I have a peculiar requirement here:
    The user wants that on the trigger of a specific operation an operation of the Application service should get invoked: this operation should pick up a Adobe form template from a destination and then prefill this forms with some values and then store the same in the backend DMS.
    It's very easy to accomplish this task in WD Java with the use of Interactive form element but here we don't want any kind of user interaction for these forms, just the form templates will be prefilled with some dynamic values and then the same will be saved as is.
    Can some one please provide some insight into how the same can be acieved, any API's etc?.
    Please reply ASAP.
    Regards,
    Manish

    Hi Manish,
    If I get you correctly then you want to Upload a prefilled Adobe IF from some location without any user interaction and save it to some Backend/Temp storage: You need to have something like you have a user inbox and mail comes to this with the Adobe Form as an attachment, you extract the attachment and read it using available Java apis for reading. You can also specify a particular folder where you can place the filled form and then read it using FileInputStream and can save it in the backend after you have it in binary form in your application.
    Hope this helps!!
    Cheers,
    Arafat

  • What is HANA extended Application services and what is its use ?

    Hi,
    What is SAP HANA extended application services and what is the use of it under Development Perspective ?.
    Regards
    Pavneet Rana

    Hi Pavneet,
    Here are two more links which you can find some new features like HDBDD, Outbound Connectivity, Job Scheduling, etc..
    SAP HANA SPS6 - Various New Developer Features
    SAP HANA SPS07 - Various New Developer Features
    Best regards,
    Wenjun

  • Problems updating Entity services or application services

    Hello all,
    I'm working with SAP Netweaver Developer Studio creating a new CAF application.
    First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
    However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
    So, sadly I must start again configuring the entity and application service.
    Any idea??
    Thanks,

    everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

  • Use the findByMultipleParameters bo operation in application service

    Hi
    I am trying to use the default findByMultipleParameters operation of a business object in an application service.
    I want to use the application service exposed as a webservice within webdynpro.
    But how can I pass all the parameters i a way, that it is not necessary to fill all fields in webdynpro? Is there any example code?
    Any help would be appreciated.
    Bernd

    Hi Ketan,
    You can implement findAll or findById in application service. First while defining the operations set the output parameter to be a structure which contains that BO(You create yourself a complex structure for it-there you can set cardinality).
    Then in the application service under that operation using the service Bean of the BO access the Bo's corresponding methods(either findById or findAll). Get that output and set it in the output parmeter and return it.
    public com.caf.types.FindAllAmendmentsResMsg findAllAmendments(
                   @javax.jws.WebParam(name="inputParameter1")
                   com.hcl.xapps.ipr.caf.types.FindAllAmendmentsReqMsg inputParameter1) {
              FindAllAmendmentsResMsg response = new FindAllAmendmentsResMsg();
              try {
                   List<Amendment> amendmentList = new ArrayList<Amendment>();
                   amendmentList = (List<Amendment>) this.getAmendmentService().findAll();
                   response.setAmendmentList(amendmentList);
              } catch (CAFFindException cfe) {
              return response;
    The above is an example for findAll.
    Hope it helps you
    Regards,
    Srinivasan Subbiah

  • BO-findAll operation to use in Application service

    Hi Experts,
    I am new to CAF development, i have requirement that i need to read the CAF database records based on the Custom key created. It returns a object with the entire record( sometimes multiple records) so how to read those records from the object(return value) and display them one by one.
    It would be helpful if you could send some sample code.
    thanks
    ketan

    Hi Ketan,
    You can implement findAll or findById in application service. First while defining the operations set the output parameter to be a structure which contains that BO(You create yourself a complex structure for it-there you can set cardinality).
    Then in the application service under that operation using the service Bean of the BO access the Bo's corresponding methods(either findById or findAll). Get that output and set it in the output parmeter and return it.
    public com.caf.types.FindAllAmendmentsResMsg findAllAmendments(
                   @javax.jws.WebParam(name="inputParameter1")
                   com.hcl.xapps.ipr.caf.types.FindAllAmendmentsReqMsg inputParameter1) {
              FindAllAmendmentsResMsg response = new FindAllAmendmentsResMsg();
              try {
                   List<Amendment> amendmentList = new ArrayList<Amendment>();
                   amendmentList = (List<Amendment>) this.getAmendmentService().findAll();
                   response.setAmendmentList(amendmentList);
              } catch (CAFFindException cfe) {
              return response;
    The above is an example for findAll.
    Hope it helps you
    Regards,
    Srinivasan Subbiah

  • Application Services uses other application Services like business Object

    Hallo
    I use the SAP NetWeaver 7.1 SP3.
    One question can i use in the Applcation Service another Application Service (not Business Object)?
    The reasons I want to have this possibility:
    If I use the external service and I will be exposed as a new Applicaiton Service, thus it can be used by several application Services.
    I have put one Application Service A into the dependency of Application Service B... but in code i can not find out the API to lauch to the Application B.
    Thanks and Kind Regards
    Ping

    Thanks
    But I can not find  the Object ApplicationServiceALocal
    and the code
    ApplicationServiceALocal appServiceA = this.getApplicationServiceA();
    I can not get it.
    Maybe I should after the add dependency Generate Application, buîld Application?
    Kind Regards
    Ping

  • Entity an application service Operation!!

    Hi Experts,
    A small question!!! Can I create an Entity service operation without any custome key and without giving any inpu parameter and the corresponding Application service operation in the same way??
    This is so that someone can directly get access to all the data stored in the local persistency in the Entity service without giving any input parameters to access them???
    Thanks,
    vikram..

    Hi Vikram,
    You can create it. Create an operation within entity service, do not set any input parameter. Within your application service go to dependency tab page and set the dependeny with your entity service. Then within the operation tab page of your application service create an operation of type "Query" abd within data source select your entity service. Now within inplementation tab page of your application service select the operation which you have created. Now put the following code within the custom codding area of your operation.
    retValue = null;
    <Name of Entity>ServiceLocal cs = this.get<Name of Entity>Service();
    retValue = cs.<Name of Operation of Entity service>;
    I think this will solve your problem.
    Thanks
    Chandan

  • How to use a jar-file in an Application Service - NWDS 7.01

    Hello everybody,
    I want to create an Application Service in SAP NetWeaver Developer Studio 7.01.05. Can you explain me how i can import an external jar into my project?
    I found out that I can implement or create simple java files:
    Java Perspective --> package project_name.utils --> insert/create java file
    I try to add the jar into the java build path of my project, but when i build it the jar is gone.
    I would be very thankful for every hint.

    solved
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b7199b]

Maybe you are looking for