on 08-17-2007 11:11 AM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
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.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
>>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.
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.