cancel
Showing results for 
Search instead for 
Did you mean: 

Integration Process/ccBPM - When to be used

Former Member
0 Kudos

Hi All,

I have a scenario where i need to trigger the webservices in a third party java based system based on a value provided by SAP Workflow. Here two different web services are involved which needs to be triggred based on the response from the user.

Below are the steps that are involved in the entire process:

1. User request for an order and if material quantity is found, service 1 is triggered.

2. If the material quantity is not found, Service 2 is trigerred providing user with alternate options.

3. Now based on user response, if he agrees for alternate option, service 1 is trigerred.

Can any body explain how to do this in XI or perticularly in ccBPM.

Please let me know if you need further information

Help will be appriciated.

Thanks and best regards,

Kulwant

View Entire Topic
Former Member
0 Kudos

Hi Kulwant,

I have written down the steps you would need in ccBPM to perform this scenario in your prevous post.

Well If you dont want to use ccBPM then you can also use conditional receiver determination to do this scenario. Without ccBPM, you are likely to gain on performance.

Please let me know if you need more help.

Thanks,

Varun

Former Member
0 Kudos

Hello Biplab/Varun,

I appriciate your effort.

Thanks for the details but i need more elaboration. if you can answer these particular questions then it will make easy for me.

Q1: Since there are two web services, i need to make 4 interfaces or 2 interfaces? I am asking this question because I need to know as the response from one web service will be sent back to SAP Work flow and then the same will be routed back based on user response to the another service interface.

Q2. What are the things that i need to create in Integration directory? As per my undersatnding, only the business service with out Party with basic objects will suffice.

Q3 Why do i need conditional routing ? As per my under standing, if the response needs to be sent back to the SAP work flow, i can choose the proper proxy calss object and populate it with corresponding data. But i think it will make a cycle of sending messages again and again. Please do correct me as i could be wrong and i need your guidence.

rest i will ask after your reply.

Thanks and best regards,

Kulwant Singh

Former Member
0 Kudos

Hi Kulwant,

You would need:

> > Q1: Since there are two web services, i need to make 4 interfaces or 2 interfaces? I am asking this question because I need to know as the response from one web service will be sent back to SAP Work flow and then the same will be routed back based on user response to the another service interface

1) One outbound asynchronous interface for SAP workflow request.

2) One inbound synchronous interface for webservice 1

3) One inbound synchronous interface for webservice 2

4) One inbound asynchronous interface for SAP workflow response from webservice 1.

5) One inbound asynchronous interface for SAP workflow response from webservice 2.

> > Q2. What are the things that i need to create in Integration directory? As per my undersatnding, only the business service with out Party with basic objects will suffice.

Yes, you are right, i have listed all the directory objects in my previous post.

> > Q3 Why do i need conditional routing ? As per my under standing, if the response needs to be sent back to the SAP work flow, i can choose the proper proxy calss object and populate it with corresponding data. But i think it will make a cycle of sending messages again and again. Please do correct me as i could be wrong and i need your guidence.

I think you need Conditional routing to identify which web service to execute at the first step.

I mean, you need to verify first up that you are getting material quantity or not and based on that only you can decide which webservice to execute 1 or 2.

Feel free to ask more questions Kulwant, we'll see your scenario through.

Thanks,

Varun

Former Member
0 Kudos

Hi Kulwant,

I have seen in most of the projects ppl avoid use of BPM due its performance.

In ur case u dont need BPM.It can be done easliy using conditional routing.My advise is.. u dont go for BPM!!!

steps in IR:

1)create 1 request DT,MT and 1 response DT,MT(for the workflow)

2)Import the WSDL's of the 2 webservice in IR under Externel def

3)create 3 message interfaces(1 for SAP,2 for 2 diff webservice)

4))create context object..fix it to MI or u can use X-path

5)Create 2 req message mapping , 2 response message mapping(sapws1,sapws2)

6) 2 interface mapping

Steps in ID

1)Create 2 Business service(rcvr systems)

2)use one Business system(sender system)

3)2 rcvr dtrmination,(use conditons)

4)2 interface dtrn

5)2 rcvr agreement

(no sender agrrement needed since using proxy)

see here how to use client/outbound proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Thanqs

Biplab

Former Member
0 Kudos

Hello Biplab,

I have some questions about it:

1. Why do i need business system here?

2. Can you provide some inforamtion about why you have written that "(rcvr systems)" and "(sender system)".

3)create 3 message interfaces(1 for SAP,2 for 2 diff webservice)

are these response message interfaces ?

Thanks and best regards,

Kulwant Singh

Former Member
0 Kudos

Hi Kulwant,

1. Why do i need business system here?

good question !!

see... u r sending data from SAP system ..here ur sender service must be a business sytem .

we use business system when sending data from our own landscape.. here it is R/3

2. Can you provide some inforamtion about why you have written that "(rcvr systems)" and "(sender system)".

dont get confuse with... here i meant to say that....

sender system means SAP

receiver system means Webservices

3)create 3 message interfaces(1 for SAP,2 for 2 diff webservice)

are these response message interfaces ?

nope...

u need to create the 3 following MI's

a) synchronous message interface

o/p message - request message type from SAP

i/p message -response message type to SAP

b)synchronous MI

o/p message - request message type to Webservice1

i/p message -response message type to SAP

c)synchronous MI

o/p message - request message type to Webservice2

i/p message -response message type to SAP

u need 2 business service for 2 webservices.

Regards

Biplab

Former Member
0 Kudos

Hello Biplab/Varun

Thanks for the entire details that you have provided till now. Now I am clear about what i need to do. Except one. I have listed down the interfaces that i need to create in IR as i got little confused with it. Please remember that i need to use PULL mechanism for the web services on the java side.

1. An outbound asynchronous Message Interface WorkFlowToXI_MI_async using message types in external definition for the SAP Workflow request structure.

2. Two inbound synchronous Message Interfaces Service1_MI_sync and Service2_MI_sync for Webservice 1 and Webservice2 using the message types defined in external definitions.

3. Two inbound asynchronous interfaces for SAP Workflow response from the two web services. Service1ToWorkFlowResponse_MI_async and Service2ToWorkFlowResponse_MI_async

Please correct me if i am wrong here about the direction (inbound/outbound)

Thanks and best regards,

Kulwant Singh

Former Member
0 Kudos

Hello Varun, Hello Biplab,

I am again back with a question related to the same scenario.

Can any one of you please tell me why did u have asked for an oubound interface for SAP Workflow side?

I hope that you remember the scenario. But just to refresh, I have SAP WorkFlow <> XI <> java based Third party system.

I need to trigger the web services in Java side based on the response provided by the SAP Work Flow.

Thanks and best regards,

Kulwant

Former Member
0 Kudos

Kulwant,

If u r using any IDoc or RFC then u need not create any outbound DT,MT or message interface.

if u want to use proxy then only u need to create outbound

DT,MT and message interface.

Thanqs

Biplab