cancel
Showing results for 
Search instead for 
Did you mean: 

How to route incoming file data to different ftp servers?

Former Member
0 Kudos

Hi all,........its urgent.

Our client requirement is

1.they are sending csv file , then the file is to be splitted according to company code and should be routed to particular FTP server.

But in our case we are using same message type and data type ..hence we are not using Mapping objects..then how to route this incoming data to different FTP servers

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Nandan

You mentioned that you are using Message Type & Data Type but no use of Mapping object ...

Does that mean you have a message tunneling in your implementation?

If this is true then better implement a 1:1 mapping and do content based routing as already suggested to you by few XI experts.

I hope my reply was helpfull.

Good Luck

Vijendra

Former Member
0 Kudos

Hi,

Use content based receiver determination.

For example,

If company code = XXXX then send to service A

If company code = AAAA then send to service B

You will a communication channel set up for each of the FTP servers and these will have a receiver agreement created - one for each service.

Cheers

Colin.

Former Member
0 Kudos

Hi,

we are using data type with one field , it reads as text format as whole row,

hence the same structures are used in both side .

we are not creating any Mapping objects.

Only we have Interface Objects(Data type ,message type ,Message interfaces IB & OB).

the text format contains diferent data like company code ,name etc .

Based on the company code we have to route to different FTP servers.

Regards Nandan

santhosh_kumarv
Active Contributor
0 Kudos

Hi Nandan,

U can configure the condition receiver in the receiver determination.

Use the X-Path to check for the value of the companycode and determine the receiver.

Have a look at this blogs,

<a href="/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object Determination based on the payload of input data.(Extended-->xpath,Context Object)</a> By Prasad Babu Nemalikanti

<a href="/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers to show the path (Multiple Receivers)</a> By Shabarish Vijayakumar

<a href="/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination your 'XPATH' Expressions in Receiver Determination</a> By Shabarish Vijayakumar

Regards

San

Former Member
0 Kudos

Hi,

You have to get the company code incase you have to route it to the receiver based on that value. Create an element CompanyCode in the target structure and do the mapping. This compay code can be suppressed in the output target file using content conversion parameters.

Regards,

Sudheer.

Former Member
0 Kudos

Hi Nandan,

Use X-Path in your receiver determination.

What is X-Path

http://www.w3.org/TR/xpath20/

/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

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

/people/prakash.darji/blog/2006/09/22/using-xpath-statements-within-sap-netweaver-2004s-bex-web-application-designer--part-1

Regards,

Sarvesh

****Reward points, if found helpfull.

former_member192343
Active Contributor
0 Kudos

use context routing in reciever determination