Skip to Content
author's profile photo Former Member
Former Member

Can't get File content conversion to produce CSV file

Hi Guys

Have no problem at all getting XML file created via an RFC

Structure is something like this

From MONI message monitor inbound message payload

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

- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

- <IP_CUSTOMER_HEADER>

<CUSTOMERID>100853</CUSTOMERID>

<COMPANY>Bram Van Tuyl Coldstore</COMPANY>

<SHORT_NAME>VAN TUYL</SHORT_NAME>

<STREET>Middelkampseweg 1</STREET>

etc

.......

</IP_CUSTOMER_HEADER>

</rfc:Z_XI_005_RFC>

Receiver Grouping payload

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

- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

- <IP_CUSTOMER_HEADER>

<CUSTOMERID>100853</CUSTOMERID>

<COMPANY>Bram Van Tuyl Coldstore</COMPANY>

<SHORT_NAME>VAN TUYL</SHORT_NAME>

etc.

With no conversion xml file is created on output directory

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

100853 Bram" target="_blank">http://avenue.com/xi/test"> 100853 Bram Van Tuyl Coldstore

etc

Now trying to use File content conversion with the simplest possible conversion -- just insert a colon after all the fields in the structure.

Following parameters

Adapter type FILE

receiver box checked

Message protocol File Content conversion

File access etc as before

Content conversion parameters

Recordset : IP_CUSTOMER_HEADER

(have also tried Z_XI 005_RFC)

Name

CUSTOMERID.fieldSeparator : (colon)

MONI shows message received by XI and processed correctly but NO outfile gets written to the target directory.

?????

what am I doing wrong --it's probably something stupid.

The data into XI is a ONE RECORD structure -- not a table etc.

Cheers

jimbo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 02, 2008 at 01:38 PM

    The fieldSeparator and endSeparator parameters need to given for substructure only

    So have Atleast one substructure for Recordset structure.

    assume you have added Record as substructure in Target DT Editor.

    Record.fieldNames=CUSTOMERID,COMPANY,SHORT_NAME

    Record.fieldSeparator=,

    Record.endSeparator='nl'

    File Receiver with Content Conversion

    File Receiver with Content Conversion

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 02, 2008 at 01:12 PM

    Hi James,

    >Name CUSTOMERID.fieldSeparator : (colon)

    What about the other Fields

    <COMPANY>

    <SHORT_NAME>

    <STREET>

    Regards

    Agasthuri Doss

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Jimbo,

      Surprised to see in XI forums...

      A warm welcome here

      Coming to the problem in hand, you need to edit your target data type a bit.

      Currently you are using

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

      http://avenue.com/xi/test">

      <customerid>100853</customerid>

      <company>Bram Van Tuyl Coldstore</company>

      etc...

      You need to change this to

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

      http://avenue.com/xi/test">

      <Record>

      <customerid>100853</customerid>

      <company>Bram Van Tuyl Coldstore</company>

      etc..

      </Record>

      </MT_customer>

      Then Recordstructure value is "Record"

      FCC parameters

      Record.fieldSeparator :

      Record.endSeparator 'nl'

      Regards,

      Jaishankar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.