cancel
Showing results for 
Search instead for 
Did you mean: 

have to create Different directories......

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

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

2. variable substitution

refer

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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