cancel
Showing results for 
Search instead for 
Did you mean: 

Choosing a File type in XI

Former Member
0 Kudos

Hi,

I have a RFC -> XI -> File scenario.

Depending of a parameter information which I'll send to XI, I have to send a .XML or .TXT file in the Legacy System.

Is it possible? How and where can I configure this? In my Receiver communication channel?

Thanks,

Daniela

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thank you very much for helping me.

I still have one more question:

I understood that I have to create 2 communication channels, one for .xml and other for .txt

But where will I configure that:

If p_param = 'TXT', use cc_txt

If p_param = 'XML', use cc_xml?

Thanks,

Daniela

bhavesh_kantilal
Active Contributor
0 Kudos

hi daniel,

this is done using CONDITIONAL RECEIVER DETERMIANTION.

While doing your reciver determiantion, you can specify multiple receivers and also specify the condition on which the receiver is to be choosen.

Also, just check the last path of this blog for the same,

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

Regards,

Bhavesh

Answers (5)

Answers (5)

Former Member
0 Kudos

Bhavesh and all you,

Thanks!

Regards,

Daniela

Former Member
0 Kudos

Hi Moorthy/Michal,

Can't we do this using variable substitution and hence avoid creating two communication channels.

The condition to generate .XML or .TXT file can be checked in the mapping and generate a tag which has the filename which can be used in the file adapater.

Regards,

Anish

bhavesh_kantilal
Active Contributor
0 Kudos

hi anish,

The probelm is that one needs a content conversion and the other does not need the content conversion and so, we will need to have 2 comm channels. One for the content conversion .txt file and the other for the normal .xml file.

Regards,

Bhavesh

Former Member
0 Kudos

Oops.. I missed that part

Thanks for the info Bhavesh!

Former Member
0 Kudos

Hi,

You could achieve this using conditional receiver determination.

You would need to create two business systems/services on the receiver side. One for .txt and the other for .xml

In business system1 - use a receiver file adapter with the target file name as somefile.txt

and in business system2 - specify the target file name as somefile.xml

Regards,

Smitha.

moorthy
Active Contributor
0 Kudos

Daniela,

<i>Is it possible? How and where can I configure this? In my Receiver communication channel</i>

    • It is possible.

You need to create 2 communication channels -

1) for .txt extension

2) for .xml extension

And you can achieve this using Conditional Receiever Determination.

For more~

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a513f2632c332ce10000000a11466f/frameset.htm

Hope this helps,

regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Is it possible? How and where can I configure this? In my Receiver communication channel?

yes

you can have two receivers (receiver det based on XPATH for example)

based on the "parameter information which I'll send to"

and in one communication channel create txt

and in the other one xml type file

Regards,

michal