cancel
Showing results for 
Search instead for 
Did you mean: 

How to Archive Files to Two target systems based on Condition

Former Member
0 Kudos

Hi All,

Iam doing Idoc--File Interface.

we have to send the file to Two Different systems based on the plant condition

If plant = 123 then send to ABC system ELSE if Plant = 999 then send it to XYZ system.

And Archive the file to one Archive folder of the any one system. this is working fine correctly.

Archive means not exactly Archiving, just we are droping one more extra file to Archive folder for refference

Now i need to construct like this

If plant = 123 then send to ABC system and Archive to Archive directory ELSE if Plant = 999 then send it to XYZ system and Archive to Archive directory.

Please suggest me on this

Regards

Vamsi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

1. Create 2 intermediate business system with 2 reciever file communication channel (ABC1 and XYZ1).

2. Use Dynamic receiver determination using plant id as condition to route message to correct receiver.

3. Dont touch file in sender folder (use test mode) and leave it to your original scenario to handle it.

Since 2 communication channels are different you are free to specify any archive folder you want as a reciever system.

Regards,

Gourav

udo_martens
Active Contributor
0 Kudos

Hi Vamsi,

this is not so easy, you could write a shell script which can be excecuted after processing.

Regards,

Udo

Former Member
0 Kudos

so you want to archive the files in the sender system itself but in different folders depending upon value of Plant?

Thanks

Aamir

Former Member
0 Kudos

No Aamir

in the receiving system i need to send a copy of the processed file for refference

this is not exactly Archiving process

I think i am able to do that like this

If Plant = 123 then select the BS1(ABC System)

Ex: //sapdev/test/ABC/item.txt

For Archive If Plant = 123 then select the BS1(ABC System) Archive folder

Ex: //sapdev/test/ABC/Archive/item.txt

If Plant = 999 then select the BS2(XYZ System)

Ex: //sapdev/test/XYZ/item.txt

For Archive If Plant = 123 then select the BS2(XYZ System) Archive folder

Ex: //sapdev/test/XYZ/Archive/item.txt

Regards

Former Member
0 Kudos
If Plant = 123 then select the BS1(ABC System)
Ex: //sapdev/test/ABC/item.txt

For Archive If Plant = 123 then select the BS1(ABC System) Archive folder
Ex: //sapdev/test/ABC/Archive/item.txt

If Plant = 999 then select the BS2(XYZ System)
Ex: //sapdev/test/XYZ/item.txt

For Archive If Plant = 123 then select the BS2(XYZ System) Archive folder
Ex: //sapdev/test/XYZ/Archive/item.txt

Then this becomes very simple:)

I m assuming you are already using conditional Receiver determination,now for each receiver just configure an extra interface in Interface determination.

so you will have 2 interface determination and each one of them will have 2 inbound messages,they can use same interface mapping.

you already will have 1 conditional receiver determination.

You can also do this via OS script if you have experience in that.

Thanks

Aamir