cancel
Showing results for 
Search instead for 
Did you mean: 

How to decide target depending upon payload

Former Member
0 Kudos

I am doing file to file scenario without BPM. In that depending upon source payload I want to send data to target.

For eg: If source= 1 it shd go to receiver1 folder

If source= 2 it shd go to receiver2 folder

Here both folders are on same target.So my target business system is same.

Can anybody suggest?

-Gouri

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

HI Gouri,

Conditinal routing not very big deal...

you can use standard or enhanced receiver determination..

but in you case why are using conditional receiver determination..because in anyway your receiver business system is same in both cases..

what exactly is required is that you should be able to decide based on the source data which folder should the target file be written..

so in your case there will be no conditional routing.. only one is required...

one file adapter is required...

but in file receiver adapter you have to user variable substitution... go to Advanced Tab and check the variable substitution...

in File directory/File schema give appropiate field syntax..

there is a blog on variable substitution ' Dynamic File Name using XI 3.0 SP12 Part - I'

Jayakrishnan Nair

just go through it...

Former Member
0 Kudos

Hay Ranjeet,

Thanks for replying. with variable substitution it is possible. And file scenario works fine.

This was a sample scenario which I was doing. My actual requirement is with JMS adapter. During run time I have to decide target queue name. But In receiver JMS adapter I didnt find queue name parameter in adapter specific attributes. Is it possible with JMS adapter??

In my scenario target system is same only different queues are present on it. and depending upon source I have to find out target queue.

Can u plz help?

-Gouri

Former Member
0 Kudos

Hi,

Just create a context object. Assigned it to a field in the File outbound MI. Activated the objects in IR.

ID -> Went to Receiver determination -> Condition Editor -> Left Operand -> Select Context Object -> Inut Help -> Pop up window -> Context Object is available.

Why context objects you can use XPATH too right.

Cheers,

*RAJ*</b>

Former Member
0 Kudos

Hey,

Got the output for the scneario but with lil modification jus in ID.

Steps.

1) Sender Business System -> 1 sender CC

2) 2 Receiver Business Service -> 2 receiver CC , Both refering to the same Message interface as defined in the target.

**tried to use Buis Sys was throwing error at run time for inbound interface so better use Buiss Service.

3) 2 Receiver Agreement -> conid= 1 -> Business Service 1 ,

conid = 2 -> Business Service 2

4) 2 Interface Determination

5) 1 sender agreement

6) 2 Receiver agreements.

Got the out put.

<b>Cheers,

*RAJ*</b>

Former Member
0 Kudos

Hay raj..thanks a lot for taking so much interest. I have followed the same steps. But I dont know why...my context object is not coming in ID.

As u r saying u have developed sample scenario, is it possible for u to take screen shots and send it to me on my id? it is joshi.gouri@gmail.com

your help will be really useful. Thanks a lot ojnce again.

Former Member
0 Kudos

Hi,

Yeap sure anytime.

<b>Cheers,

*RAJ*</b>

Former Member
0 Kudos

Done.....................

Former Member
0 Kudos

Hey,

So you have you defined 2 receiver communication channels ?

Anywayz i will try now and get back if get the output.

<b>Cheers,

*RAJ*</b>

Former Member
0 Kudos

Hi Gouri,

Just check the following link for dynamic configuration and UDF

Warm Regards,

Vijay

Former Member
0 Kudos

HI Gouri,

While configuring interface determination, I think u can put condition there using conditional editor.

the below link might help u

http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm

Ravi.

nisarkhan_n
Active Contributor
0 Kudos

One of the option is to use the conditional receivers where you define the same conditions there.

Or you can also use the enhanced recivers determination where you are defining the reciver depending upon the payload by using the mapping program.

Message was edited by: Khan

n Khan

Former Member
0 Kudos

I tried Conditional receiver. For that I have to create two separate mapping programs. which I dont want.

2nd thing I created context object, attached it to interface. Now in receiver dertermination when I am trying to use condition editor, there this context object is not coming.

Can u plz suggest?

Former Member
0 Kudos

>>2nd thing I created context object, attached it to interface. Now in receiver dertermination when I am trying to use condition editor, there this context object is not coming.

<i></i>

Check the Interface you assigned the Context object , whether for which inbound or outbound. Also check the Context Object is activated and the corresponding the Interface is activated . And also try to refresh the Cache.

also check whether your having correct swcv assigned to our Buiness system.

Ravi.

Former Member
0 Kudos

I checked all these things. Still my context object is not coming in condition editor.

Former Member
0 Kudos

Gouri,

Hope you have assigned the context object to the fields (not structures)in the Sender Interface.

Save it and activate once again.

Check this-

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

Ravi.

Former Member
0 Kudos

Obviously I have attached it to field and not to structure. And also everything is activated. Cache is also refreshed. Still it is not coming in condition editor.

Any suggestion?

Former Member
0 Kudos

Hi Gouri,

The following blog definetly help to you about Validating the Messages. Please try the following way

/people/morten.wittrock/blog/2006/03/21/validating-messages-in-xi-using-xml-schema

Warm Regards,

Vijay