cancel
Showing results for 
Search instead for 
Did you mean: 

Content conversion problem

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Regards,

Sarvesh

prateek
Active Contributor
0 Kudos

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

Former Member
0 Kudos

the file is identical

payload from inbound message

for example

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

- <IP_CUSTOMER_HEADER>

- <item>

<CUSTOMERID>1000001</CUSTOMERID>

<COMPANY>One-time ship-to</COMPANY>

<SHORT_NAME>ONE-TIME</SHORT_NAME>

<STREET />

<STREET2 /> .......

Paylioad under Receiver Grouping

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

- <IP_CUSTOMER_HEADER>

- <item>

<CUSTOMERID>1000001</CUSTOMERID>

<COMPANY>One-time ship-to</COMPANY>

<SHORT_NAME>ONE-TIME</SHORT_NAME>

<STREET />

<STREET2 />

......

etc

text file 100001;1000001........ etc

There's no Payload that I can see under the response (checkered flag) where it says processed successfully.

cheers

jimbo

prateek
Active Contributor
0 Kudos

What is ur scenario? Are u performing any mapping? If u don't perform FCC, what is the output at receiver? The problem is the namespace of ur receiver structure shows RFC namespace instead of any other namespace. Have u used it deliberately?

Regards,

Prateek

Former Member
0 Kudos

I am not very sure but there can be an issue with ROOT node also. Have a look in this thread..