cancel
Showing results for 
Search instead for 
Did you mean: 

Last 2 fields missing in Idoc to Txt scenario

Former Member
0 Kudos

Hello experts,

I am facing a issue. I have an IDOC to .txt scenario using content conversion. The target message type has a node with 4 fields and a subnode with 3 fileds (in total 7 fields).

The mapping is simple (1 to 1 ).When txt file is generated using file content conversion only five fields are present i.e 4 fields of the node and first field of the subnode. The last 2 fields of the subnode are missing.

This issue is not happening in case of IDOC to .xml( all 7 fields are there) but when I do it for IDOC to .txt  only 5 fields are there.

There are no empty fields also.My text file is pipe separated.

I have used the following fcc parameters.

Recordset.addHeaderLine  3

Recordset.headerLine        all the fields for header

Recordset.fieldSeparator    |

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I think ur structure is not compliant enough for FCC. For FCC at receiver side ur XML structure generated after mapping should be like:


<Mt_Name>

<nameA> 

<value1>value</value1> 

<value2>value</value2> 

<value3>value</value3> 

</nameA> 

<nameB> 

<value4>value</value4> 

</nameB> 

</MT_Name>.


u can check this:

Thanks

Amit Srivastava

Message was edited by: Amit Srivastava

Former Member
0 Kudos

Hello  Amit,

My xml is like this now.

<Mt_Name>

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

<value4>value</value4>

     <nameB>

    <value5>value</value5>

    <value6>value</value6>

    <value7>value</value7>

    </nameB>

</nameA>

</MT_Name>.


So all i have to do is create a new data type with a single context node instead of having a sub node inside a  context node?

Former Member
0 Kudos

Hello,

>>So all i have to do is create a new data type with a single context node instead of having a sub node inside a  context node?

How u want target CSV file to look like?

That's for sure u cannot do FCC directly on above structure, so either use the approach as suggested in the blog mentioned above or use JM directly to create CSV file.


Thanks

Amit Srivastava

Answers (0)