How to start a BPM process from ERP system
Hi,
I created a process in Netweaver Developer Studio with the Process Composer in SAP CE 7.1 BPM, now I want to automatically start the process by saving a SAP document like purchase requisition or purchase order. Therefore I think about implementing a UserExit / Badi or something else.
The following systems are available in my Landascape:
- PI 7.1
- ERP 2005
- CE 7.1 EHP1 with ESR
Does someone have an idea how to start the BPM Process or how to trigger start event?
Greetings,
Christian
the process by saving a SAP document like purchase requisition or purchase order.
Based on your business process, you will have to decide what data should be sent to other system. It could be in the form of Idoc trigger or an RFC calls. If there are non-SAP systems involved, you should be using PI 7.1 too. In that case, you can communicate using Abap proxy call too. For this you may either call an RFC internally in a report and schedule it.
Regards,
Prateek
Similar Messages
-
How to start a GP process from a url within EP?
I know how to start a GP process from the webdynpro url generated from the instantiation tab of a GP process.
But if I use this url, the end-user will be prompted with a login screen to authenticate to the J2ee server because it's a webdynpro url and it doesn't recognized that the user is already logged in the Portal.
How can i avoid this login screen or how can I get a Portal url that launch the GP process directly? Thanks, AndreHi Austin,
There is a strange problem when creating a web dynpro with the URL parameters. It web dynpro window pops up a new portal window in which the process is displayed. Rather, if I create a URL iView of the form http://<host>:port>/webdynpro/dispatcher/sap.com/cafeugpuiinst/AInstantiation?process.template.id=<...>&process.autostart=t it works fine!
I'd like the web dynpro iView to work cause otherwise I'll have to add static sapcssurl parametes for the theme etc. which I want to avoid.
Regards,
Nirav -
How to trigger the BPM process from WD Application
Hello All,
I have a simple business process with two ui activities. I am able to start the process from NWA -> Process Repository.
But, I need to start the process from the application. Here is the requirement:
User opens the application. ON completion, the BPM process for approval needs to be triggered. How do i access/obtain process?
If I need to call a particular task in process, How do i do that?
Kindly assist.
Thank you.
Regards,
Sharathif you want to know the whole story, please refer to the doc
http://help.sap.com/saphelp_nwce72/helpdata/en/44/4d2bb1c6b00597e10000000a155369/frameset.htm
the profile, provider system,endpoint。。。。。
search this doc in sdn, it is a good example regarding the configuration.
How to Use SOA Configuration to Call RFCs and Web Services from within SAP NetWeaver BPM
hope those may help. -
How to initiate a BPM process from Service actions
I need to start a BPM workflow process automatically whenever a document is checked in or imported into WCC, what's teh best way to do that please?
https://blogs.oracle.com/practicalbpm/entry/webcenter_content_ucm_bpm_integration
http://docs.oracle.com/cd/E21764_01/doc.1111/e16759/toc.htm -
How can we explain the process from project system to final asset
Dear masters,
how can we explain from project system to final asset flow in the configuration level.
thanks
Moderator: Please, refer to basic SAP materialHi,
Project & its related WBS will be initial cost collector (i.e invoices are booked against them). Once the status of Project/WBS is set to tech complet and AUC is assigned in the settlemnet rule. That particular asset record will recive values when we run the suttlemnets.
This is an broad line view. Specific will depend on case to case.
Thanks
Vaibhav -
Start BPM process from ABAP report. Need some investigations.
Hi there!
I have to start a BPM process from ABAP report. I found an article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d75b45-7fef-2b10-bc8e-c6012e0a9457?QuickLink=index&overridelayout=true and have done everything it describes but the process doesn't start.
What I've done:
1) Created a service proxy in SE80.
2) Created a logical port in SOAMANAGER.
3) Write a code to start a WebService in ABAP Report.
But when I start a program nothing happens, no errors.
What analysis I did:
1) See logs and traces in SOAMANAGER - there is nothing appears after I start the report.
2) Tried to test connection to my WebService in SM59 - the connection works, but it use a POST method instead of GET:
Error: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
But I think it is OK and from the report it use a right method.
3) Tried to delete a logical port - the error of communication problem appears. So it means that all settings are right.
4) No logs in NWA logs
My thoughts - if there is not any errors and no result, it can be because the user authorization. E.g. it tried to start a process by a user who doesn't have SAP_BPM_SuperAdmin role. But I can't find a way how to check what really happens. So I want to ask for a help, colleagues:).Dear Kirill Zhuklinets,
Can you share your solution as i am facing the same error while trying to consume BPM webservice from SRM ECC
Error Message from SRM ECC :
Exception occurred in communication framework:Error in HTTP Framework:405Method Not Allowed
Log from BPM Web service
Error: process()
[EXCEPTION]
com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
Please share your solution..
Regards,
Yasin -
How to call BPM process from Java
Hi All,
Can anybody help how to call a BPMN process from java.Please give any sample exaple on this.
Thanks,
GaneshFor 11g BPM please look at this post. Re: Getting while running the BPEL process from java
It references an ATeam example app that can start processes from a web client. But the Java APIs are described too. -
How to trigger BPM Process from SRM Portal
Hello Experts,
I'am new to BPM and NWDS 7.3 but experienced with Abap and NWDS 7.0 Development...
Before posting, i have been through the forum and couldn't find exact answer to my case..
Basicly what i need to do is to trigger BPM Processes on the BPM Server from SRM Portal Server, I'm aware that i can communicate between these servers with WSDL basicly but how am i going to call the BPM Process' Web Service from Standart SRM Processes?
These processes will be standart ones mostly and also i am new to SRM.
Kindest Regards,SAP SRM 7.0 user interface is developed in WebDynpro and runs on NetWeaver Portal (Portal was optional component in earlier versions of SRM but it is mandatory component now). So in order to call BPM Webservice (i.e., to trigger a BPM Process) from NetWeaver Portal / SRM 7.0 you can do the following
- Develop a custom application (using EJBs,etc) to call the BPM web service by creating a web service proxy client using NWDS and then deploying it on Portal Server.
- Directly create a model in WebDynpro project by using the WSDL of BPM trigger webservice (using NWDS). You can then call the model in WD User Interface, which in turn will invoke the BPM web service and start the process.
Hope this helps. -
Start BPM Process from ABAP with another User as GUEST
Hi all,
i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
Thanks in advance.
Regards,
Christophthe last reply is regarding the configuration at consumer side.
of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
you can check in this way,
CE nwa-> SOA Management->Application and Scenario Communication-->Single Service Administration
find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
you can edit this configuration.
go to configuration tab, select the endpoint, select security tab in the bottom tab list.
change the setting there.
Edited by: John Wu on Sep 10, 2010 7:29 PM -
Getting error while Startting a BPM process programmatically
Hi Experts,
I am getting an error while trying to start the BPM process programmatically. What i have done till now is
1. Created a WS in process composer
2. Binded this ws with start of the process
3. Created input parameters
4. Testing it in WS Navigator
I am following this doc /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
and I am getting error while testing in WS Navigator. I am getting error at the last step i.e. in result step and the error is
Web Service returned an error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Client" Fault String: "No operation found using soap keys [], [cn_comments]. InterfaceMapping Object class: com.sap.engine.services.webservices.espbase.mappings.InterfaceMapping mappings: (BindingType=Soap, SEIName=NewWSDLFile, BindingQName=(http://www.example.org/NewWSDLFile/)NewWSDLFileSOAP, PortTypeQName=(http://www.example.org/NewWSDLFile/)NewWSDLFile, SoapVersion=SOAP11, Galaxy_SDO=true, InterfaceMappingID=45ffb27c:1237f972cd8:-7d7e)."
If possible can any one help me out.
Thanks and regards
PranavHi Arafat,
Thanks for replying. Yes i have completed the output mapping. Input parameters i need for this service are :
1. cn_comments
ca_comments
2. cn_planningGroup
ca_account
ca_serialnumber
and few more attributes
Now, what i did was i have created a complex type and added elements in it. But to my surprise i was not able to get these nodes and elements in output mapping. So, i changed the type of "parameter" from "new operation" to my complex type. By doing this i was able to get my nodes and elements in output mapping. Now i tested the entire thing in WS Navigator and i got that error.
Please suggest how o proceed.
Regards
Pranav -
Start a BPM process programmatically
Hi Experts,
I am trying to start my BPM process using a button event from WD JAVA. I have created a Web service and I have assigned it with my start step of process. But, problem is in WS Navigator I am able to see that service in Local JAVA AS but not in my central server. Can any body please tell me how to publish web service in central server or any other alternative to start BPM from WD JAVA.
Regards
PranavThanks for replying again Arafat. I am not getting any deploy or build error. What i have done till now is
1. Expand the process modeling
2. Expand service interfaces
3. Right click on WSDL Files folder and selected new WSDL.
4. Followed all the steps.
5. Deploy local development
Not getting any error here. But when i tried testing it in WS navigator i am not able to see my service there in providedsystems.
please suggest some thing.
Regards
Pranav -
Problem start a BPM process, No ADF binding is defined for the service.
Hi,
I am trying to use oracle.soa.management.facade.Service.request method to start a BPM process.
The service works fine while being tested using Enterprise Manager. But while I am trying to invoke the service from a java client, exception occurs.
The Service toString:
Service {
name = TechDocModifyProcess.service
properties = {}
bindings = [Binding {
Name = WSBinding
Type = ws
Mode = entryPoint
Properties = null
WSDL URL = /TechDocModifyProcess.wsdl
WSDL URL = http://eis-bpm-server.eis.smec-cn.com:8001/soa-infra/services/default/TechDocModifyProject!0.2*soa_fee2a899-b630-4c7c-8bbb-c740d37a1b03/TechDocModifyProcess.service?WSDL
Below is the java code I used to call the service.
try {
NormalizedMessage input = new NormalizedMessageImpl();
String uuid = "uuid:" + UUID.randomUUID();
input.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID,
uuid);
// payload is the partname of the process operation
input.getPayload().put("creator", "jcooper");
input.getPayload().put("notificationId", 1L);
input.getPayload().put("title", "test");
// process is the operation of the employee service
NormalizedMessage res = null;
try {
svc.post("operation", input);
} catch (Exception e) {
e.printStackTrace();
} catch (ProcessMetadataServiceException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
Below is the exception stack trace:
oracle.fabric.common.FabricInvocationException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.RuntimeException: No ADF binding is defined for the service.!
at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:178)
at com.smec.eis.bpm.api.SOASvcProvider.main(SOASvcProvider.java:84)
Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.RuntimeException: No ADF binding is defined for the service.!
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1035_WLStub.executeServiceMethod(Unknown Source)
at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:837)
at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:174)
... 1 more
Caused by: java.lang.RuntimeException: No ADF binding is defined for the service.!
at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:982)
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:597)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
at sun.reflect.GeneratedMethodAccessor2129.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy411.executeServiceMethod(Unknown Source)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.executeServiceMethod(Unknown Source)
at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)fusion order demo to the rescue ..
specify binding.adf within the <service> in composite.xml and you are good to go .. -
Starting a CAF process from UWL?
Hi Guys,
I can see list of workflow items from R/3 in my UWL in Portal. Now I want to start a CAF process from the workflow item and not any R/3 workflow. Is it possible? If yes how can it be done? I've referred to documents explaining how to call a BSP or MiniApp or WebDynpro for ABAP , but that is not my requirement.
Any inputs/ pointers are welcome and would be rewarded suitably
Thanks in advance.
Best Regards,
-VaibhavHi,
Check this blog on Netweaver workflow capabilities,
Workflow in SAP NetWeaver
Hope this helps !
Regards
Srinivasan T -
Triggering BPM process from ECC
Dear All,
I created a WSDL in BPM and consumed it in ECC . After that created a logical port using SOAMANAGER.
While executing in the program(the code is shown below) or testing the service consumer it does not give any error. but still process not starting up.
REPORT ZTEST_BPM.
DATA : lv_port type REF TO zco_abapwsdl,
lo_sys_exception TYPE REF TO cx_ai_system_fault,
input TYPE ZNEW_OPERATION_REQUEST1,
in TYPE ztest.
TRY .
CREATE OBJECT lv_port
EXPORTING
LOGICAL_PORT_NAME = 'ZPORT'.
CATCH CX_AI_SYSTEM_FAULT.
ENDTRY.
input-in-first_name = 'ABCDEF'.
input-in-last_name = 'G'.
TRY.
call METHOD lv_port->NEW_OPERATION
EXPORTING
INPUT = INPUT.
COMMIT WORK.
CATCH CX_AI_SYSTEM_FAULT INTO lo_sys_exception .
CATCH cx_ai_application_fault.
ENDTRY.
write : 'Process Started'.
Your input will be helpful.
Thanks and Regards,
Prabhu KaruppasamyMake sure that the user you are testing this with, has all the necessary roles and authorizations on the portal to Start a BPM Process.
For all possible roles and authorizations related to SAP BPM, refer the following:
http://help.sap.com/saphelp_nw73/helpdata/en/45/d7d0e08a164c5e87e4604ba89c632a/content.htm
https://help.sap.com/saphelp_nw73/helpdata/en/9c/23eaeb4c53486f8d9c4cb376b99994/content.htm -
Problem in Starting a GP Process from Webdynpro Code
Hi Experts
I have a problem in starting a GP Process from webdynpro code. I have imported the following used DCs in my Webdynpro DC
caf/eu/gp/api/wd
caf/eu/gp/api (external)
com.sap.security.api.sda
Once I deploy I get the following error. No Syntax, Build errors in the application.
java.lang.NoClassDefFoundError: com/sap/caf/eu/gp/process/rt/api/IGPRuntimeManager
I have used the following code to start the GP Process - getUserDetails Context is of type IUser
//Starting GP Process
try {
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(
wdContext.currentContextElement().getUserDetails());
IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
"00A897714C5A11DE8E33005056A260C3", userContext);
IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
IGPProcessInstance prInstance = rtm.startProcess(process,
"New User Registration Process",
"New User Registration Process",
wdContext.currentContextElement().getUserDetails(),
roles,
params,
wdContext.currentContextElement().getUserDetails());
} catch (Exception e) {
e.printStackTrace();
Please do the needful EXPERTS.
FYI... SP17
Thank you
Best Regards
Ramamoorthy DHi Ram,
You have to add Library reference to your DC.
in the context menu of your DC select
properties->webdynproReferences->LibraryReference
add sap.com/cafeugp~api as refernce.
I hope this will solve your problem.
Regards,
Rajesh
Maybe you are looking for
-
HT3529 Help with multiple e-mail addresses under one Apple ID
My 3 kids each have their own e-mail addresses under my Apple ID for the iMessage feature on their iPod Touch's. Just recently I began receiving their iMessages on my iPhone despite the fact that each device has only its own email address selected.
-
How can I make a Twitter link open in the app instead of the web?
Hello, when I click on a Twitter link in an email, it opens the web browser instead of the app. Is there a way to change this? Thanks Andre
-
Hi there, I would like to know why when I want to download an application which is FREE and I try to download it, I type my password and then, I'm charged in my credit card for it. I don't understand the reason of this cost if the app is for free! I
-
Parameters of Init SID .ORA ???URGENT
Hi I have an Oracle 8.1.7 on Windows2000 with 640MB RAM.The Oracle home in D:\ drive and initial paging size on C:\ =960MB and Maxi. = 1920 MB and the total paging file size is 960MB. No. Of users 15. SO I want PLS the parameters of the Init<SID>.ORA
-
Is there a command available to purge cache by user? something like "SAPurgeCacheByUser" In the documentation the following comands are available for purging the cache 1. SAPurgeCacheByQuery 2. SAPurgeCacheByTable 3. SAPurgeAllCache 4. SAPurgeCacheBy