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
Similar Messages
-
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
PingThanks
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 -
HI,
Can any one help me,
I am planning to install project server 2013, what are the service applications and Services ( Manage services on server in central admin ) in sharepoint are required for project server 2013 to work fine, so that i will run only service
application and services to increase server performance..i don't want to configure all service applications when i am configuring.
Thanks in Advance..
vijay kommireddiHi Vijay,
If you are installing Project Server on SharePoint farm, You need to start the service Project Application Service which would be available after you install project Server 2013.
For Project Server Reporting you need to start Excel service and Secure Store service.
http://technet.microsoft.com/en-us/library/ee662106(v=office.15).aspx
Thanks,
Phani -
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 -
Properties of Web Services generated from Application services in CAF
Hi to all,
first sorry for posting one question twice (in CAF and CE forums) but I am not sure where exactly it belongs.
I experience problems with exposing web services from application service in CE 7.1 (trial version).
I want to add fault elements or use document literal instead of RPC binding. I do it from the design page for web services. The problem is that after saving and regenerating the application, the changed information gets lost.
Is it possible to expose these services while changing some information?
And another question that would arise if this is possible. How can I catch the faults in VC? Is there e possibility to show different panels according to the value returned (from the data service, which is a web service with fault element).
Thank You in advance!
V SHi,
Please check note 1004108.
Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
It's a restriction that is planned to be solved in one of the next releases.
Regards,
Jan -
Work with Application Services in CAF
Hi.
I have a composite application en NWD 7.3, my project has a little custom Framework which implements basic operations (CRUD) , the methods of these operations are exposed as web services. Also the project has some external services.
My question is: Can I make an Application Service in which I could call an external service and the data obtained from this external service save them calling any web service from my custom Framework?
The Custom Framework isn't in the same CAF Development Component.
Thanks in Advance.
RegardsHi,
Please check note 1004108.
Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
It's a restriction that is planned to be solved in one of the next releases.
Regards,
Jan -
CAF-Application Service not visible in GP
Hi ,
I've created a composite appliocatioon service which contains an entity service and an application service.
After deploying, I also tested it successfully.
Now I want to use this service in callable object in GP.
But I'm not able to see the application service there.
My application is visible there, but next two column(Service name and method name) remains blank.
Wat I've read from tutorials is that only application service can be used in GP.
It is showing service name and method name for caf.core and caf.tc,but not for my application.
Can anybody tell me the reason what is the possible cause for that ?
regards,
PiyushHi Dipankar,
I have already tested the service by the procedure you have mentioned.It is working fine from service browser window.
Is there anything else need to be done to use that service in CAF GP(some configurations etc)?
While creating CO, it is showing the service name and methods for caf.core but not for my Application.
Regards,
Piyush -
How to log Exceptions raised in CAF Application Services
Hi All,
When there is an Exception rasing in CAF Application Service custom method implementation what are the steps need to follow for send that exception details to log files & where those log files will be generated i.e either in server, local system, etc.
If we use following 2 different lines please explain me where that trace is going to written:
1) System.out.println(e);
2) e.printStackTrace();
Thanks in Advance,
Uday.Hi Uday,
Try this (in my case I'm using that in Background CO that implements IGPBackgroundCallableObject ):
public static Location logger =
Location.getLocation(<yourClass>.class);
Catch block:
} catch (GPInvocationException e) {
throw new GPTechnicalCallableObjectException(
logger,
resourceAccessor,
"ERROR_PARAMETERS",
e);
} catch (GPEngineException e) {
throw new GPTechnicalCallableObjectException(
logger,
resourceAccessor,
e.getMessage(),
e);
Reward points if it's helpful. -
Error in executing RFC or CAF Application Service
Hello Everybody,
I am creating course approval process, in which I am calling RFC for user info and after course approval, calling CAF application service to persist this data.
But, both services are not working in process. I have tested callable objects for these services and tested successfully.
But, when I am attaching it in the process then process can't go forward from this point.
I have checked in Log viewer and found following error:
Path to object does not exist at com.sap.caf.eu.gp.model.pfw.local, the whole lookup name is sap.com/com.sap.caf.eu.gp.model.pfw.local/GPUWLBridge.
What should be the problem in this?
If I remove these services then whole process works fine.
Thanks in advance,
BhavikHello All,
Is there any concept like, I call perticular backgound object first time then I cannot call that object for some period of time?
I am getting same error in calling RFC callable object as well as CAF service callable object.
I can execute these callable objects in the process first time successfully. But, When I execute this process second time, these callable objects won't execute.
I can execute same process after 3 to 4 hours successfully once.
What should be the reason behind this? -
Unable to instantiate GP process from CAF application service
Hi,
I am trying to instantiate a process from my CAF application service as follows.
IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("7CE44BF090BF11D99817000D60B211F1",user);
When the execution reaches this step, I am getting the following exception.
com.sap.engine.frame.core.load.SAPClassNotFoundException
I suspect that CAF runtime is not able to load GPProcessFactory class. Is there any settings that need to be done or I have to deploy something on the server?
Please help.
Thanks
RaghavHi Raghavendra,
It seems you are using SPS7 !
Check runtime reference for J2ee application in application-j2ee-engine.xml :
<reference
reference-type="weak">
<reference-target
provider-name="sap.com"
target-type="library">cafeugp~api</reference-target>
</reference>
Best regards,
Aliaksei -
Web Service and CAF Application Services - How to return a table
Hello,
I'd like to build a CAF Application Service and expose it as a Web Service. This service should return an array or table which I'd like to display in a Visual Composer model.
I understand that there're limitations at CAF regarding supported data types.
Does anyone know how to get a workaround?
Any information is very appreciated.
Kind regards
StefanHi,
You can return a list.
The standard way to do this is you have to create a complex data type for response.
Configure the cardinality of this data type to 1..n so as to accomodate a list.
In your implementation add your list to this response message and return the list.
This waly you can return collections.
Hope it helps.
Regards,
Srinivasan Subbiah -
Web Dynpro and CAF (BOs, Application Services, returning Complex Types)
Hi All,
I am trying to develop an application using Web Dynpro and CAF for days now and did not get it running.. I need some help here.
What I am trying to do / have done is the following:
- Design a Business Object (BO) in CAF
- Implement an Application Service that has a method called getAllBOs that calls the findAll method of the BO
- call this method using AWS model or EJB model in Web Dnypro, show the result in a table.
My getAllBOs returns a set of BOs (Data Type is the Complex Type of my BO in CAF). I was able to design the Application Service so that it returns a collection of BOs (using a Wrapper Comple Type), but I was never able to call the generated Web Service successfully in Web Dynpro. The WebService worked fine when testing it in wsnavigator...
However, i never got it running.. is there anybody out there who is able to explain what to do to import a AWS model or an EJB model in Werb Dynpro and particularily how to implement the stuff so that it returns a set of BOs successfully...
Thanks in advance.. Useful help is highly appreciated
Please note: THIS IS ABOUT Netweaver CE 7.1 - do not post stuff about 7.0!Hi,
You have to return a single object from caf layer to webdynpro layer.
Since you are returning a list of BOs, create a wrapper in caf which contains the list of your BOs.
Your application service should return this wrapper.
Creating Wrapper:
1. Create a complex data type.
2. Include your BO as one of the properties in it. and set the cardinality to 0..n.
In Application service invoke your findAll() of BO and use the returned list to populate the wrapper's BO list.
Return this wrapper.
Hope it helps.
Regards,
Fazal -
Exception in CAF application service
Hi All
I am trying to access the BAPI bapi__mddataset__get__axis__info
from a CAF application service. But receive following exception. Any clue how to solve it.
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.createNewInstance(MessageEntityConverter.java:788)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.retrieveElementValue(MessageEntityConverter.java:494)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.retrieveMessageValue(MessageEntityConverter.java:447)
at com.ibm.cer_test.extsrv.MPConnector.process(MPConnector.java:65)
at com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.BAPI__MDDATASET__GET__AXIS__INFOBean.BAPI__MDDATASET__GET__AXIS__INFO(BAPI__MDDATASET__GET__AXIS__INFOBean.java:40)
at com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.BAPI__MDDATASET__GET__AXIS__INFOLocalLocalObjectImpl0.BAPI__MDDATASET__GET__AXIS__INFO(BAPI__MDDATASET__GET__AXIS__INFOLocalLocalObjectImpl0.java:115)
at com.ibm.cer_test.appsrv.mdapp.MdAppBean.getMdDataSet(MdAppBean.java:295)
at com.ibm.cer_test.appsrv.mdapp.MdAppLocalLocalObjectImpl0.getMdDataSet(MdAppLocalLocalObjectImpl0.java:115)
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.findByDataObject(ServiceWrapper.java:269)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.findByDataObject(CAFServiceAccessBeanImpl.java:223)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.findByDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:875)
at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.findBy(AspectServiceAccess.java:275)
at com.sap.caf.rt.ui.cool.generic.Query.execute(Query.java:218)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.execute(TableViewCC.java:323)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.setup(TableViewCC.java:276)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.setup(InternalTableViewCC.java:192)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.ServiceBrowserCV.onActionExecuteQuery(ServiceBrowserCV.java:180)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalServiceBrowserCV.wdInvokeEventHandler(InternalServiceBrowserCV.java:215)
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:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:707)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:229)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.ClassNotFoundException: com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.output.AXIS__INFO
Loader Info -
ClassLoader name: [ibm.com/cer_test]
Parent loader name: [Frame ClassLoader]
References:
common:service:http;service:servlet_jsp
service:ejb
common:service:iiop;service:naming;service:p4;service:ts
service:jmsconnector
library:jsse
library:servlet
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
library:ejb20
library:j2eeca
library:jms
library:opensql
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
interface:resourcecontext_api
interface:webservices
interface:cross
interface:ejbserialization
sap.com/cafruntimeear
library:com.sap.guid
library:com.sap.util.monitor.jarm
sap.com/com.sap.jdo
library:cafmetamodellib
sap.com/caf~core
library:cafruntimeconnectivity
library:cafruntimeconnectivity~base
service:applocking
interface:security
library:cafruntimeapi~lib
service:tcsecdestinations~service
interface:tcsecdestinations~interface
Resources:
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
src.zip
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
EJBContainer
applicationjars
ibm.comcer_testejbmodule.jar
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
EJBContainer
clientjars
clientibm.comcer_testejbmodule.jar
Loading model: {parent,references,local}
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.createNewInstance(MessageEntityConverter.java:781)
... 50 more
Thanks in advance
SudipHi,
I too got an exception like that.
1. Instead of code
patentServiceLocal local = this.getpatentService();
local.update(OBJECT);
use the following
this.getpatentService().update(OBJECT);
I got by problem solved this way.
Regards,
Srinivasan Subbiah -
Error in application services, CAF
Hello all,
When testear my application services gives the following error me:
<i>"ERROR. The following exception occured while processing your request: com.sap.caf.rt.exception.CAFFindException.:"</i>
To what it can be due?
Best Regards,
Luis Galey.Luis,
Check the server log for any exceptions. Make sure your project is built and deployed correctly. Could you post your findBy method and what are the parameters your are passing?
Thanx,
Mahesh -
Accessing CAF application service from outside
Hi,
Can CAF application service be called from outside the CAF? Example from a pure JSP page?
MayukhYou can also call a CAF service via the EJB protocol from JSP. Each CAF Service gets deployed as a Stateless Session bean. You can view these in the IDE if you switch to the J2EE perspective in your CAF project.
Maybe you are looking for
-
Append Structure to MCCOMP but not appear in Extract Structure (LBWE)
Dear Experts, We are using the datasource 2LIS_04_P_COMP 1) We append a field into MCCOMP and MCCOMPB, but that field doesn't appear in the pool of communication structure fields. Therefore, we cannot move from the pool (right side) to extract struct
-
Getting information about the last opened document?
Hi there! I've got a question about the reader and it's opened documents: Is there any possibility to get any information about a document, that was already opened by the Adobe reader? Example: I open xyz.pdf, and after closing the reader, i want to
-
some things sync if i go to icloud.com but it takes several steps and somethings like contacts dont sync?
-
Materialized view from prebuilt table doesn't work with spatial types?
Hello, I'm trying to build a materialized view of a table using the prebuilt option and a pre-built table. Oracle gives me an ORA-32304 error, saying it can't do this with user-defined types. The original table has no user-defined types, but does use
-
I have faced one of the client interview.... Suppose if come any error comes in FI-SD integration point of view where we can see?( I am give the answer vkoa COA.correct G/L acc.No. sales orgnization, account determination, customer account assignemen