cancel
Showing results for 
Search instead for 
Did you mean: 

CRM-->XI-->Webservice

Former Member
0 Kudos

Hi,

My scenario is CRM>XI>Webservice (Async). The customer has their own home grown legacy system where they maintain the customer data (master & transactional).

CRM IC Webclient is used as front end. There is a minimal amount of data that has been replicated from the legacy to CRM system like the customer info and etc. The user will change the CustomerName & Address in the CRM system and upon submit it has to go via XI and call a pre-existing webservice which inturn will update the customer system.

As we want to accomplish this scenario out-of-the-box are there any standard IDOCs or RFCs or BAPIs available in the CRM system. If so please give the name of the module.

Thanks in advance.

Krishnan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Using the XIF adapter you can call the webservice directly or pass it through XI.

RFC Names

<u>BP</u>

CRMXIF_PARTNER_SAVE

CRMXIF_PARTNER_*

<u>Order</u>

CRMXIF_ORDER_SAVE

CRMXIF_ORDER_*

The IDoc names are similar to above and will require the following pipeline steps:

BDoc to IDoc to SAPXI to WebService...

sincerely,

--NM

Former Member
0 Kudos

Hi Naomi,

We are using XI as an integration broker to call the webservice. In that case, I will have to import the RFC into the Integration Respository and do the required mapping between RFC and the Webservice. After this is done, when a customer data is changed in CRM IC Webclient user interface, the RFC is triggered with the data and XI inturn will transform the data and invoke the webservice to post it into the legacy system. Is my understanding right.

Please correct me if I am wrong.

Thanks.

Krishnan

Former Member
0 Kudos

Yes.... basically, you have to account for 2 parts.

1) ensuring that CRM will execute that function module upon save in CIC. This is a decision you make about how to trigger this:

- idoc from bdoc

- rfc call with XI as destination

- soap call through XIF adapter

2) ensuring that the webservice is called from XI.

- import webservice definition

- perform mapping

- setup configuration in the ID

There are numerous blogs on setting up webservices and how to consume them from XI.

sincerely

--NM

Former Member
0 Kudos

Hi Naomi,

Appreciate your detailed reply.

The call from XI to Webservice is already determined. The customer has given the required WSDLs and XSDs for import into External Definition.

However, how do we ensure that upon saving the data in the IC Webclient browser, the RFC is triggered. Is there any setting that needs to be done in SPRO and mention the appropriate RFC to trigger whenever data is saved in the browser.

RFC destination between CRM and XI is taken care. The question is how will the RFC gets triggered when the data is saved in the IC Webclient browser.

Thanks.

Krishnan

prateek
Active Contributor
0 Kudos

<i>The question is how will the RFC gets triggered when the data is saved in the IC Webclient browser.</i>

I think in the IC client code, u have to call the RFC and thats it. There is no need to structure a separate mechanism for the same. e.g. This RFC trigger could be on clicking of some button.

<i>However, how do we ensure that upon saving the data in the IC Webclient browser, the RFC is triggered.</i>

If RFC is called directly, then no need to ensure this issue.

Regards,

Prateek

Former Member
0 Kudos

The question is how will the RFC gets triggered when the data is saved in the IC Webclient browser.

1) if it is standard functionality you are calling then covered

2) if its standard functionality but require enhancement, check for user exits and call BADI etc accordingly

3) if its entirely custom functionality, you have to use a BSP in the CIC or create a button and trigger the RFC. CIC modifications are commonplace since every company has some 'special' thing they have to do.

maybe say what you are trying to do... since you gave orders and bp data save - these are standards and have user exits appropriately places, so I dont see the problem.

sincerely,

--NM

Former Member
0 Kudos

Hi Gurus,

We have imported the CRMXIF_PARTNER_SAVE function module to XI and mapped it to the appropriate target structure.

The RFC destination and the Sender RFC Adapter in XI is also configured.

Now what should be done at the CRM system so that the CRMXIF_PARTNER_SAVE is triggered and data is passed to XI. That is, in the BP transaction code, we will update the customer data and upon save it should trigger this CRMXIF_PARTNER_SAVE function module and the data should be passed to XI.

Please elaborate the approach.

Krishnan

Answers (0)