Skip to Content
avatar image
Former Member

File receiver adapter - content conversion


Hi Folks,

I have an annyoing situation when creating a file with file content conversion that I can't seem to get through.

My XML looks like this:

<? xml
version="1.0" encoding="UTF-8" ?>


- < ns1:MT_FileContent xmlns:ns1 =" urn:FileSplit:10 " >

      < MessageType >INVOICE </ MessageType > -      < Recordset > -           < Rows >

                < DataRow >Some sample data </ DataRow >              </ Rows >      </ Recordset > </ ns1:MT_FileContent > My problem is that I alway get,when creating the file, whatever I put as endSeparator at the beginning of the file. So, I do not get a file having just: Some sample data but I get, if I place the separator as tab, I get this:      Some sample data. Why does this happen, I don't get it? There is just one field and one element, why should it receive a separator in the beginning when there isn't any. The data in the file needs to be exactly as in the field, there can't be extra CRLFs or tabs or anything in the beginning. Attached you also find the configuration of the file receiver adapter. Please help if you have any idea. I can't remove the message type because I use it for variable substitution in the filename. Best regards, George P.S.: Please no links to help.sap.com because I've been through all of them already.
FCC Config2.PNG (16.1 kB)
FCC Config.PNG (13.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 07, 2015 at 03:18 PM

    Change the record-set structure in your File receiver channel to Recordset,Rows

    File Receiver with Content Conversion

    Do you really need the Message type node in your structure?

    Add comment
    10|10000 characters needed characters exceeded

  • May 07, 2015 at 03:56 PM

    Hi George,

    If you are using MessageType in variable substitution instead of that you can use dynamic configuration UDF in the mapping to set the file name, then you can remove the MessageType element from the message.

    If you want to keep it you can use below FCC.

    But change the target structure to :

    Output File:

    Regards,

    Praveen.


    FCC.png (7.2 kB)
    target.png (5.3 kB)
    output.png (3.2 kB)
    Add comment
    10|10000 characters needed characters exceeded