cancel
Showing results for 
Search instead for 
Did you mean: 

How can I route flatfiles from one directory to n receivers?

Former Member
0 Kudos

Hello,

I tried to route the flat file by content conversation. I built the structure with the following parameter in the sender ftp:

recordset structure: Header,1,Content,100

Header.fieldNames MessageType,Sender,Receiver,Variant

Header.fieldFixedLengths 12,8,8,6,9

Header.fieldContentFormatting trim

Header.processFieldNames fromConfiguration

Content.fieldNames ContentString

Content.fieldSeparator 'nl'

Content.processFieldNames fromConfiguration

The file has got one header line and n content lines, but max 100.

Now I can route the file with the Receiver determination.

I thought I solved the problem: With files without any empty line its works fine.

But there is a problem: Some flatfiles contain a line with no content, just a 'nl'.

Now the destination file is without this empty line. But is has to look exactly the same.

Is there a possibility to look in the flatfile for receiver determination without changing the file?

I hope there is an very easy solution without Java-Mapping. It is a very simple task, so the solution should be easy too.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

One way is Use BPM to send message to multiple receivers.using block parforeach mode.

The second way is use in receiver determination with extended option to send it to multipe receivers.

To handle the empty line in sender data, here you have the same 'nl' is the field separator.

we have the NameA.enclosureConversion you can set it to No, then the char will be unaltered.

see below link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Regards

Chilla..

Former Member
0 Kudos

Hello,

thank you very much for your help. I solved the problem with the

"NameA.enclosureConversion" = no

Now I have the empty line in the destination file.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for your fast answers.

Best Regards or 'Liebe Grüsse'

Matthias

prabhu_s2
Active Contributor
0 Kudos

matthias

pls refer to the link

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm</a>

A part from the above link:

<i>Choose Handling Empty Messages

&#9675; Write Empty File

&#9675; An empty file (length 0 bytes) is put in the target directory</i>

Former Member
0 Kudos

Hi Matthias,

create a BPM with a message-mapping that deals with you lines (empty or not).

The result should be a message that looks always the same, no matte if the origin message had 'nl' or not.

Send the new message from BPM back to your ID an than find the fitting receiver by a condition in the receiver determination.

Regards mario