cancel
Showing results for 
Search instead for 
Did you mean: 

Solution for sending the files to multiple FTP locations based on the plant

former_member257758
Participant
0 Kudos

Hello Experts,

My scenario is read the SAP R/3>PI>Different FTP locations based on the plant code.

I need to read the IDOC and convert in to file, But based on 10 plant codes I need to create 10 different files and send 10 different files to 10 different FTP locations.

Pls suggest the solution to how to go about it? Is there any way to dynamically pass the FTP credentials to File adapter?

Thanks

Arun

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member206439
Contributor
0 Kudos

Please check this link.

http://wiki.sdn.sap.com/wiki/display/NWTech/OneIDOCtoMultipleFilessendingtoMultiplefoldersoftheFTPusingsingleCommunicationChannel(SAPXI-PIProcess+Integration)

the last point will explain how to pass the multiple files to different folders.

Edited by: Naresh Nelapatla on Mar 8, 2012 5:48 PM

former_member257758
Participant
0 Kudos

Thanks Naresh. That was helpful to build the logic. But i have send the files to multiple FTP servers.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Depends on the requirement. In addition to different FTP server credentials, the directory structure for each server to handle might be different. So you need to use 10 different File channels. Design receiver determination based on the context object (PLANT field value) and decide the appropriate target file receiver. This is one way to implement.

former_member257758
Participant
0 Kudos

Thanks Bhaskar,

I will implement the scenario and come back if any errors.

Shabarish_Nair
Active Contributor
0 Kudos

if it is going to be different FTP servers, then the best way will be to use conditional routing and call multiple adapters.

Else if only you need to change the path and file names you can used dynamic configuration and ASMA parameters