cancel
Showing results for 
Search instead for 
Did you mean: 

Scenario - IDoc - XI - RFC - IDoc

Former Member
0 Kudos

Hi Experts,

I am new to BPM.

We have 2 sap systems...SAP1, SAP2.

The BPM scenario is,

When Material changes made in MM02 of SAP1, changepointers creates an IDoc1. IDoc1 is first sent to XI. Now in SAP2, it is to be checked whether that particular changed in SAP1 exists in SAP2 or not. For this, from XI an RFC call is made to SAP2, depending on the return values, the IDoc message that has been reached to XI (from SAP1) is sent to SAP2.

How to achieve this.

Any docs, links would help me. I am very new to BPM.

-Naveen.

Accepted Solutions (0)

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

have a look at this weblog:

/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm

to understand BPM

basically you need to do a simple RFC call from the

BPM and post IDOCs

Regards,

michal

Former Member
0 Kudos

Krishna Moorthy and Michal,

Thank you very much for ur reps.

What will be the steps involved in my scenario.

I have done the following.

1.Receive step to receive Idoc from SAP1

2.Send step to send an RFC call check to SAP2..this should be Sync.

For the interfaces,

For the IDoc - one outbound from SAP to XI...what about others.

What will be the next. I am not sure what I have to do next.

-Naveen.

Message was edited by: naveen chitluri

moorthy
Active Contributor
0 Kudos

You can use Switch step to check the response in the BPM. If Success, then send the idoc to SAP2 else , if you want to send some mail etc. You can execute this logic over there.

Your RFC Req and Resp mapping is done outside the BPM.

Regards,

moorthy

Former Member
0 Kudos

Naveen~

Normal methodology is to have

1) BPM act as bridge to first do a sync check in SAP2 for the change

2) Once the response is received back in BPM, perform another Send to post back data after making a Content validation

But if I were you, i would have rather a wrapper BAPI which would handle both logic and would be called only once from BPM.

Regards

Sriram Vasudevan.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if the call is successful you can use the

info from the first IDOC container

and send it as a second IDOC message to SAP2

if not you can do a mapping to change some values

etc.

BTW

why do you need to do the RFC call to check anything

in the SAP2 ? as I don't understand this reason for this point

Regards,

michal

Former Member
0 Kudos

Michal,

><i>why do you need to do the RFC call to check anything

in the SAP2 ? as I don't understand this reason for this point</i>

>>Before sending the material changes from SAP1 to SAP2, we have to make sure that the particular material is existing in SAP2. For this we are making RFC call.

I hope this is clear

-Naveen.

Former Member
0 Kudos

Hello,

Can any one give me some direction.

moorthy
Active Contributor
0 Kudos

Hi,

<i>Can any one give me some direction.</i>

>>>Are you talking about BPM steps ? if so I have given that.

For Message Interfaces-

1) Abs, Async, Message Interface of type Idoc

2) Abs, Sync, Message Interface of type RFC

3) Abs, Async Message Interface of type Idoc , which is sending to SAP2 system. If you have mapping changes.

Mapping is outside the BPM, Create a dummy message type for RFC response. To check the response in the BPM

i.e Idoc to RFC Req Mapping

RFC Response to Dummy RFC response

Hope this helps,

Regards,

Moorthy

moorthy
Active Contributor
0 Kudos

Hi,

Have a look into this blog-

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Instead of file Sender, you can think of Idoc Sender.

Regards,

Moorthy