cancel
Showing results for 
Search instead for 
Did you mean: 

Message Spliting problem

Former Member
0 Kudos

Hi Friends,

I am working on File to IDOC scenario.

My File structure is as below.

Header 1.....1

FH1

FH2

FH3

ItemHeader 0...Unbound

FI1

FI2

FI3

ItemDetails 0....Unbound

FID1

FID2

Footer 1....1

FF1

FF2

I have input file with number of records.

In ItemHeader, the field called FI3 value varies every time (Bold value).

Example file:

Header;00001;abc;a11

ItemHeader;00002;abc1;<b>sapsys1</b>

ItemDetails;00003;abc2

Footer:00004;abc3

Header;00002;aaa;b11

ItemHeader;00004;abb;<b>sapsys2</b>

ItemDetails:00021;bbb

Footer:0000;ccc

I have to send first record to <b>sapsys1</b> and Second record to <b>sapsys2</b>.

I have tried with context based routing. But its creating 1&2 records in sapsys1 and sapsys2 which not correct.

And i have tried with creating two Message Mappings & two Interface Mappings.

In Message Mapping, I have put condition based on ItemHeader files value. Its working fine.

But problem is here...

In input file <b>FI3</b> value varies 85 times, so those 85 record has to move to 85 systems.

So do i need to go with 85 mappings or any other solution is there?

Please suggest me because it is hampering my development time.

Thanks in Advance

Vijji

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi vijaya laxmi

if you want to send the data based on the fields, then you can use in the receiver determination the same as i have provide you earlier

if you still face the problem please reply me back.

Thanks

Rinku

Former Member
0 Kudos

<i>I have to send first record to sapsys1 and Second record to sapsys2.</i>

-


>

For this kind of requirement try this out

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

This talks about extended receiver determination.. in the mapping you can decide your receiver

Former Member
0 Kudos

Hi,

You can give a try by using <b>XPath</b> in your <b>Receiver Determination</b>.

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers --> <b>Multiple Receivers</b>

Regards,

Sarvesh

***Reward points, if found helpful.

Former Member
0 Kudos

Hi

if you want this then you can do the conditional receiver determination.for this you will go as follows

1.In the receiver determination, in the configured receivers mention the condition and the receiver system.

so based on that condition you can split the message on different receivers.

if you still have the problem please reply me back

Thanks

Rinku

Former Member
0 Kudos

Hi Vijaya,

<<<i>In Message Mapping, I have put condition based on ItemHeader files value. Its working fine.</i>>>

can you tell me the condition?

Also if possible try to explain in simple words about your requirement. Because you have written something about 85 records and that has to be moved to 85 systems??? I am not getting this.

Also tell me the logic (condition) by which you want to send the file to sapsys1, sapsys2....

Regards,

Sarvesh