cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use the same communication channel to place the file in 2 differe

Former Member
0 Kudos

Hello Guys,

We have a requirement where I need to archive the file that i am sending to the legacy FTP server in a Idoc to file scenario.

How can i place the file in 2 different locations. In this case place the file in the FTP server and a copy of it in the local NFS folder.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Akshay,

I need to place the file in the archive folder of the XI system.

The folder path i can see in the AL11 transaction code as /xiiface/xi/archive.

Can you please tell me what is the syntax of the command i need to use.

Former Member
0 Kudos

Hi Rajeev,

I guess the operating system would look like this

copy <source_absoulte path> /xiiface/xi/archive/<file_name>

Regards,

Akshay

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rajeev,

You can very well use one communication channel to create two files. Use the feature of "Run Operating system after Message Processing" in the receiver communication channel. Provide a copy command which will copy the file whcih was created by the communication channel to the archive directory.

The only constraint with this is that the operating system command will run only on the XI server. So, you have to create the file on the XI file system itself.

If this doen't suffice, you can create a batch job on your targert fiel system which will poll for the target file and create a copy of it in the archive directory.

Regards,

Akshay

Former Member
0 Kudos

Hello,

As per the standards we are supposed to use only one channel.

that is one idoc, one message in the sxmb_moni.

Former Member
0 Kudos

>

> Hello,

> As per the standards we are supposed to use only one channel.

> that is one idoc, one message in the sxmb_moni.

Rajeev,

You can use an ftp job and save it on XI's folder.

Process the file into tmp directory on local file system and run operating system command to run ftp job to send the file to your file server and then copy the file to your archive folder and then delete the file from tmp.

This should solve your problem.

Regards,

AV.

Former Member
0 Kudos

Hi,

U can create two communication channels at receiver side one is FTP and another is NFS and u can send the file to both of them.

if u dont wat to send the data to NFS in some cases then u can keep condition at receiver determination.

Regards,

Phani