Skip to Content
avatar image
Former Member

How to decide target depending upon payload

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Aug 17, 2007 at 10:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Aug 17, 2007 at 10:14 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 10:16 AM

    Hi Gouri,

    Just check the following link for dynamic configuration and UDF

    Content Validation before Mapping

    Warm Regards,

    Vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 01:03 PM

    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>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 02:05 PM

    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>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 02:32 PM

    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...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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