Skip to Content
avatar image
Former Member

Content conversion problem

Hi gurus

I sem to have a really silly problem

I'm only getting the FIRST field on file content conversion and no new line

here's a part of the XML file from the payload manifest

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

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

- <IP_CUSTOMER_HEADER>

- <item>

<CUSTOMERID>100853</CUSTOMERID>

<COMPANY>Bram Van Tuyl Coldstore</COMPANY>

<SHORT_NAME>VAN TUYL</SHORT_NAME>

.....

<SALES_REGION>EUROP</SALES_REGION>

</item>

</IP_CUSTOMER_HEADER>

</rfc:Z_XI_005_RFC>

I've defined the following parameters in the content conversion

Recordset sructure item

content conversion parameters

item.fieldSeparator ; (a semi colon)

item.endSeparator 'nl'

if I look in my file all i get is

100853

where's the rest of the data ????

When I don't use content conversion xml file is generated correctly.

Any ideas

I am at 100% loss to see what's wrong here as this should be an EASY automatic conversion.

(the input structure is all character)..

Max pts to anyone who solves this

Cheers

jimbo

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Sep 25, 2008 at 01:00 PM

    The payload u provided here is the RFC payload. Check the payload after mapping to get a clear picture of the file that is required at output. Then let us know what is the output requirement for txt file.

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 25, 2008 at 01:16 PM

    Hi,

    There is nothing wrong in you FCC. Just remove 'nl' and put '0x0D''0x0A' as endSeparator and it will work. 😊

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 25, 2008 at 01:36 PM

    Your payload after Mapping (you can check the payload under Request Message Mapping step in SXMB_MONI) should look something like this

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

    <ns1:YourMessage Type Name xmlns:ns1=Your name space>

    <item>

    <field1>val1</field1>

    <field2>val1</field2>

    <field3>val1</field3>

    </item>

    <item>

    <field1>val2</field1>

    <field2>val2</field2>

    <field3>val2</field3>

    </item>

    </YourMessage Type>

    Regards

    Jaishankar

    Add comment
    10|10000 characters needed characters exceeded