cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT: Choosing target directory according to file name.

Former Member
0 Kudos

Hi

I have a requirement for transfering a file to the directory according to the filename.

Example

If the file name is

FIABC it should be moved to directory DI_ABC in the target server and if it is

FIXYZ it should be moved to directory DI_XYZ.

No mapping is involved in this case .

Do we have some other way around than variable substituion

Regards

Abhishek mahajan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Yes its possible, for this we should ceate the two communications channels and we should specify the two paths(directories path).

In the receiver determination we specify the condition,if the file is FIABC it should be moved to directory DI_ABC(this directory should configure in one communication channel), and if it is FIXYZ file then it should be moved to directory DI_XYZ(this directory should configure in another communication channel).

Former Member
0 Kudos

Hi Abhi,

Kindly check my below answer

Edited by: Arpil Gupta on May 12, 2008 10:17 AM

Former Member
0 Kudos

Hi,

For this we have to configure Two Communication Channels one for one Location and the other for other location.

Use X-path concept in Interface Determination and call the corresponding inbound Message Interface and Interface Mappings based on the condition

1) Create Two Inbound MI's

2) Create One MM

3) Create 2 Interface Mappings

4) Create 2 Receiver CC and One Sender CC

5) Create One Receiver Det

6) Create 2 Interface Det

7) Create One Sender Agreement

😎 Create Two Receiver Agreements

Regards

Seshagiri

Former Member
0 Kudos

No IR is there .

"Use X-path concept in Interface Determination" ?????

U can think it as a simple file to file transfer without IR

Regards

Abhishek

Former Member
0 Kudos

Hi Abhi,

Better do two scenarios.

You dont have to configure IR, only ID.

Follow this link:

/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

Will take very less time.

Regards

Arpil

Reward points for useful ansewr

Former Member
0 Kudos

hi,

You can perform a check in the Configured Receivers section of the Receiver Determination....

In the Condition...you can check for the XPATH with the value

"FI---" and specify the receiver with corresponding folder name

Similarly u can check for the second value

reward points if helpful

Prashant