cancel
Showing results for 
Search instead for 
Did you mean: 

Recevier File Content Conversion Problem

former_member331856
Participant
0 Kudos

HI,

i am using File COntent Conversion on Recevier Side for getting output in .txt file.

My Input File:

0112345010101

021111112222

03100001111112222

03100011111212223

041000011111

021231116722

03100781119012332

041005611001

059453287699

My Fields are: "header,hbatch,body,tbatch,trailer"

RecordStrucure: header,hbatch,body,tbatch,trailer

I used fiexefiledlenghts and seperator and end seprator. But its not working.

Please guide me to generate the txt file in the output.

Regards,

Giridhar.C

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member331856
Participant
0 Kudos

Thanks you all for your quick responses.

I have used Sender FCC and created the following XML Format on the Receiver Side.

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

<ns0:MT_INPUT xmlns:ns0 = "http://sealchennai.com/FCC2">

<header>

<key1>01</key1>

<name>12345</name>

<date>01010</date>

</header>

<hbatch>

<key2>02</key2>

<hvalue1>11111</hvalue1>

<hvalue2>12222</hvalue2>

</hbatch>

<hbatch>

<key2>02</key2>

<hvalue1>12311</hvalue1>

<hvalue2>16722</hvalue2>

</hbatch>

<body>

<key3>03</key3>

<bvalue1>10000</bvalue1>

<bvalue2>11111</bvalue2>

<bvalue3>12222</bvalue3>

</body>

<body>

<key3>03</key3>

<bvalue1>10001</bvalue1>

<bvalue2>11112</bvalue2>

<bvalue3>12223</bvalue3>

</body>

<body>

<key3>03</key3>

<bvalue1>10078</bvalue1>

<bvalue2>11190</bvalue2>

<bvalue3>12332</bvalue3>

</body>

<tbatch>

<key4>04</key4>

<tvalue1>10000</tvalue1>

<tvalue2>11111</tvalue2>

</tbatch>

<tbatch>

<key4>04</key4>

<tvalue1>10056</tvalue1>

<tvalue2>11001</tvalue2>

</tbatch>

<trailer>

<key5>05</key5>

<value1>94532</value1>

<value2>87699</value2>

</trailer>

</ns0:MT_INPUT>

But i need the Output in the follwont text format on Receiver Side.

01,12345,010101

02,11111,12222

03,10000,11111,12222

03,10001,11112,12223

04,10000,11111

02,12311,16722

03,10078,11190,12332

04,10056,11001

05,94532,87699

Please do the needful help to create the fiel in the text format.

Regards,

Giridhar.C

Former Member
0 Kudos

hi

Record structure -- header,hbatch,body,tbatch,trailer

header.endSeparator -- 'nl'

header.fieldSeparator === ,

hbatch.endSeparator

use for other fields too...

Make sure the parameters are case sensitive.

Regards

Ramg

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Giri,

Your first Job done,implementing FCC at sender communiocation channel.

you have XML message ,now you want to send it as Text,please follow help documentation .

Implementing FCC at receiver side very easy.

http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/686e687f2a6d12e10000000a1553f6/content.htm

Regards,

Raj

Former Member
0 Kudos

My Fields are: "header,hbatch,body,tbatch,trailer"

RecordStrucure: header,hbatch,body,tbatch,trailer

Your recordset structure is wrong. Go through the SAP Help documentation for receiver FCC.

Regards,

Neetesh

former_member194677
Participant
0 Kudos

Hi ,

Please find the below FCC links.

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter

B/R

Santosh

Former Member
0 Kudos

Hi,

The File you have provided is Sender File right...first you perform File Content Conversion to convert to XML in Sender Comm. Channel. Then based on your Output you can do the FCC for converting from XML to File structure as per your Output Structure.

Thanks,

snair

Former Member
0 Kudos

Hi

Your input file is text so first you have to do sender FCC and then recevier FCC.

Regards

Ramg