Skip to Content
avatar image
Former Member

have to create Different directories......

Hi,

I have senario IDOC to File. at sender side i have two fields which are constant.

order and workcenter if order is AA and work center is BB the i have to send data to one directory and if order is CC and work center is DD then i have to send data to different directory. How to handle this.

Dont send links Explain me.

Regards,

Phani

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jan 24, 2008 at 11:33 AM

    Hi,

    U can handle it using xpath Expression in Receiver Determination.

    Go through these weblogs:

    /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

    Thanks,

    Maheshwari

    Edited by: Maheshwari Morbale on Jan 24, 2008 12:35 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 24, 2008 at 11:36 AM

    Hi Phani,

    This is a simple senario which depicts single Idoc to File stored in different directories.

    Since the values are constants and on the sender side, you can give the appropriate condition in the Condition Editor at the Receiver Determination -> if u have multiple Business Receivers or Interface determination -> if you have single Business System with multiple interfaces.

    And then you can create Receivers Aggrements for respective communication Channels.

    If the Solution is not clear, Please clarify your problem.

    Thanks !!

    Harpreet

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 24, 2008 at 11:38 AM

    Hi Phani,

    You can do it in the following way

    In IR

    1) create 1 outbound & 2 Inbound Message Interfaces

    2) Create 1 message Mapping

    3) Create 2 Interface mappings

    In ID

    1) Create 1 Sender & 2 Receiver CC's

    2) Create One Sender Aggrement

    3) Create 2 receiver aggrements

    4) Create 1 Receiver Determination with out mentioning any condition

    5) Create 1 Interface mapping.

    Here in Interface Determination you can specify Your Interfaces to execute based on the conditions.

    Regards

    Seshagiri

    Edited by: N V Seshagiri on Jan 24, 2008 12:40 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 24, 2008 at 12:41 PM

    if order is AA and work center is BB the i have to send data to one directory and if order is CC and work center is DD then i have to send data to different directory

    This could be possible in 2 ways

    1. Using dynamic configuration and adapter specific message attributes

    Refer

    Get filename and directory name during runtime

    Here you can check your condition in UDF and accordingly set the directory name in UDF accordingly

    2. variable substitution

    refer

    in comm channel target directory is %variable%.txt

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 24, 2008 at 03:02 PM

    hi,

    I think you want to send the data according to the diffrent paylod.

    You can configure this in receiver determination step.here you can select the condition option and now u have two option to select deffrent receiver.

    1)using context object:it is some thing like pointer

    2)or using Xpath

    here you have to define two sender communication channel. and assign this according to the condition

    why u requird two comm channel because here only you are defining the receiver directiry name .

    regards,

    navneet

    Add comment
    10|10000 characters needed characters exceeded