cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI JMS to RFC scenario

Former Member
0 Kudos

Hello SAP PI gurus,

I have the following scenario and as newbie, I would like your inputs on the best way to achieve the below scenario.

We have a system which will send Cost Center data to SAP ECC via PI i.e. Sender --> SAP PI --> SAP ECC(Receiver)

The cost center will be created or updated in the Sender application and the record will be consumed by SAP PI over JMS transport, do some transformations, and eventually call the Cost Center BAPI to save the data in SAP ECC (Receiver)

When a record is created in the Sender system, the Cost Center creation BAPI will be called and when the record is updated in the Sender system, the Cost Center change BAPI should be invoked.

The source structure remains the change except for the fact that it will have an indicator whether it is create or an update to distinguish between creation/updation.

The target structure would be a default BAPI structure for Cost Center e.g. CreateCCBAPI or ChageCCBAPI.

My questions are:

1) Should we have 1 Outbound Async Service Interface, with 2 Operations i.e. CreateCostCenter and ChangeCostCenter or should be we only have 1 Service Interface and 1 Operation.

2) If we have 2 Operations for the Outbound interface, how would we invoke the respective operations for the respective records from the Sender application?

3) If we have only 1 operations, how would we invoke the respective CreateCCBAPI and ChangeCCBAPI in PI for the create and update records?

4) Should we have 1 Inbound Async Service Interface, with 2 Operations i.e. CreateCCBAPI and ChangeCCBAPI to call the respective BAPIs.

Would appreciate your inputs, possibly with some examples.

Regards,

Mustafa

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi Mustafa!

If your source message stays unchanged with the time flow and you just need to call different BAPIs in receiver SAP system depending on some payload signal element/attribute value, you can use one outbound interface with single operation and two inbound interfaces at receiver's side representing respective BAPIs.

In Interface determination you can use Conditions to set receiving interface according to source message data.

Regards, Evgeniy.

Answers (0)