cancel
Showing results for 
Search instead for 
Did you mean: 

In BPM - How to populate the recievers

Former Member
0 Kudos

Hi All,

I need to create two files from my BPM. Basically I am using a fork (without any condition) and it should create me two files in anycase.

Mapping1 -> receiver detremination1 -> send1

Fork---> {

Mapping2 -> receiver detremination2 -> send2

But when I try to create the reciever det. the receiver that I created in the Containers get populated. I am not sure..how to attach this to my actual receiver from Configuration. Can anyone help?

or suggest a solution for my two files scenario. I dont want to use two BPMs as it will take more processing time.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Vijaya,

I think your BPM and the fork is quite okay, but you can omit the receiver determination steps.

Just do the following

1.) Delete the receiver determination steps

2.) In your send steps, in the field 'Receiver from' specify 'Send context' (Default value).

3.) Create normal receiver determinations In the integration directory with your BPM as sender service

Please also have a look at the following help page, it explains the possible values of the 'Receiver from' field in the send step:

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/6211b11c895f6ce10000000a1553f6/frameset.htm

Regards,

Matthias

Message was edited by:

Matthias Fueller

Message was edited by:

Matthias Fueller

Former Member
0 Kudos

Hi Matthias

<i>1.) Delete the receiver determination steps

2.) In your send steps, in the field 'Receiver from' specify 'Send context' (Default value).

3.) Create normal receiver determinations In the integration directory with your BPM as sender service</i>

1. I have deleted the RD steps.

2. Used default value.

3. Yes, If i create normal receiver dets. which will be two in this case..My whole purpose of having to do the Fork and two send steps will be lost. As using 2 receiver dets would mean creating a new BPM instace for each IDOC hit to create 2 XMLs (A.xml and B.xml)

Former Member
0 Kudos

Guess I am not clear with my requirement....

See what I want is....

I need to create two different XML files from the same IDOC. And I would need BPM for collecting all the IDOCs into one.

First I used two BPMs for each XML mapping.. but there is a problem with that..sometimes the same IDOC was received by one BPM and the other BPM use to miss it. So there was no consistent data recived at the reciever system.

I want to make sure that if one IDOC is recived...the data goes to both the XMLs or it doesnt go atall...

Pls suggest

moorthy
Active Contributor
0 Kudos

Hi,

If you receive the Idoc into XI, after collecting you need to send this One File into multiple Receivers right ?

If so, after collect block in the BPM, use 2 Send Steps in Sequence to do the same.

<i>I want to make sure that if one IDOC is recived...the data goes to both the XMLs or it doesnt go atall...</i>

>>>Anyway you are collecting the Idocs right ? If so, after this collection process, you will be sending the files. It will not be a problem.

Regards,

moorthy

Former Member
0 Kudos

>>><i>If you receive the Idoc into XI, after collecting you need to send this One File into multiple Receivers right ?</i>

No, I want to create two different mappings...like Same IDOC will be mapped to do different Message Interface. So even if I use the send step twice..How can create two difference files? Like A.xml and B.xml. which have different structures but the data is frm the same IDOC.

Now if i come to Configuration..

That means I would need to use two file adapters? which means two receiver agreements.

Again, if i am having 2 reciever agreements means that I am going to call the BPM twice...which is not what i want to do..basically i want to make sure I do this inside the BPM....Is it possible?

I dont mind putting both the files A.xml and B.xml in the same directory or even the same name, as long as the structures are different..

Former Member
0 Kudos

Hi,

If I am not wrong, you have two receivers, and both these receivers are not dynamic right?

If so, in the fork step, you would need the following:

Branch1: Mapping (of idoc to target message1) and send step.

Branch2: Mapping (of idoc to target message2) and send step.

In configuration:

You would need:

1 Receiver determination:

Here you need to specify, both the receivers, and specify the condition for routing to each of these receivers.

You could do with a single file adapter, if the target message that is being sent across can be made generic.

But since, you have speciied that you have two file receivers, you would need to use two different file adapters(the target path would differ in these adapters).

Regards,

Smitha.

moorthy
Active Contributor
0 Kudos

Hi,

For this Requirement ie sending the 2 files , it is not required to have Receiver Determination Step in the BPM.

The Receiver Determination Step- http://help.sap.com/saphelp_nw2004s/helpdata/en/14/d5283fd0ca8443e10000000a114084/content.htm

<i>suggest a solution for my two files scenario. I dont want to use two BPMs as it will take more processing time.</i>

>>If you don;t want to send these 2 files at parallel, then you can avoid Fork. And you can use just Send steps in the Sequence.. for this SAP has delivered some of the BPMPatterns in the SAP BASIS Software component.. You can refer this-

http://help.sap.com/saphelp_nw2004s/helpdata/en/77/0737133012b24b9d0a12c6df2b1054/content.htm

Btw, is this scenario is just a Message Split ? If so, you can do without BPM also,

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards,

Moorthy

Former Member
0 Kudos

Hi Vijaya,

why don' you do it the other way.

I suppose, when you got the mappings you also have two different message interfaces to send.

So, you do not need a receiver step. Just use your two send steps and configure two receiver determinations in ID.

Regards Mario