cancel
Showing results for 
Search instead for 
Did you mean: 

receiver fcc

Former Member
0 Kudos

Hello All,

I have a problem with the receiver FCC . I have the following text file attached. All i require is to convert it to xml and convert it back to text. I need this as I require the file name of the text file . This is a file to file scenario

The Message type is below.

MT_FILE

    LINE (0..UNBOUNDED)

    FileName - - ( Mapped to a UDF to get the file name )

Below is the Sender FCC parameters:

Recordset Structure : Line

Recordset Sequence: Ascending

Line.fieldSeparator :'nl'

Line.fieldSeperator: fromConfiguration

Line.fieldNames :Line

ignoreRecordsetName: true

The xml file before message mapping after the sender file content conversion looks like below.

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

- <ns:MT_File xmlns:ns="http://test.com/test">

- <Line>

<Line>101 144546546546546546554501308211421A094101BANK OF AMERICA , NA TX COMPANYABC</Line>

</Line>

- <Line>

<Line>5200TX COMPANYABCDIRECT DEPOSIT 5236003240CCDPAYABLES 130827 112555550240000001</Line>

</Line>

- <Line>

<Line>622411111100029749874 0000009550 COMPANYABC 01564546540000001</Line>

</Line>

- <Line>

<Line>82000000010014500240000000000000000000095505236003240 1254554440000001</Line>

</Line>

- <Line>

<Line>9000001000001000000010014100000000000000000000009550</Line>

</Line>

- <Line>

<Line>888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888</Line>

</Line>

- <Line>

<Line>888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888</Line>

</Line>

- <Line>

<Line>888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888</Line>

</Line>

- <Line>

</ns:MT_File>

Are the above parameters for sender FCC correct ?

Now in the receiver what parameters i need to pass to get back the txt file before the sender FCC .

Please advise .

Thank you,

Teresa

Accepted Solutions (0)

Answers (2)

Answers (2)

JaySchwendemann
Active Contributor
0 Kudos

Hi there,

if your anser to Baskar's question a) is "yes" (structure between sender and receiver different), please provide input file before sender FCC.

Thanks

Cheers

Jens

Former Member
0 Kudos

Hi Jen,

The sender flat file structure and receiver flat file structure are the same.

I have an extra field in the target Message type called FileName as below. I am dong this as I need the file name for variable substitution.

MT_FILE

    LINE (0..UNBOUNDED)

    FileName - - ( Mapped to a UDF to get the file name )

The scenario is source 1 [file] to target1 [file]

                           source 1 [file] to target2 [Proxy]

I am attached the sample input file in my first post.

Thanks,

Teresa

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Hi Teresa

If you are getting flat file and want to convert to xml, you need sender side fcc.  Similarly if you have xml and want to convert to flat file then you need receiver side fcc. If you have sender side flat file and receiver side sending same flat file then you dont need file content conversion. 

Question:

a) Is your sender flat file structure and receiver flat file structure different?  If not, just use the simple file to file scenario without ESR objects.  Just pass through scenario using configuration objects.

http://wiki.scn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario

b) If sender side flat file strucure and receiver side structure are different then you need to do  fcc sender and reciever.  Please go through sap help document and below links

http://www.riyaz.net/sap/xipi-file-content-conversion-for-simple-structure/75/

http://www.riyaz.net/sap/xipi-file-content-conversion-for-complex-structures/79/

useful links

http://scn.sap.com/docs/DOC-3716

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

http://scn.sap.com/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Muniyappan
Active Contributor
0 Kudos

Hi Teresa,

it looks you are taking each line into Line field. you can try this in Receiver CC.

can you tell us the logic you are writing in the udf?

give us the sender file name and receiver file name.

let us see if it is possible without writing UDF.

Regards,

Muniyappan.

Former Member
0 Kudos

Thanks for your reply.

The sender FCC parameters are

Below is the Sender FCC parameters:

Recordset Structure : Line,*

Recordset Sequence: Ascending

Line.fieldSeparator :'nl'

Line.fieldSeperator: fromConfiguration

Line.fieldNames :Line

ignoreRecordsetName: true

I have attached the sender file in the original post. The sender file name would be ACH_BOA and receiver file name would be ACH_BOA.

The scenario is source 1 [file] to target1 [file]

                           source 1 [file] to target2 [Proxy]

Thanks,

Teresa

Muniyappan
Active Contributor
0 Kudos

Hi,

so sender and receiver file names are same. correct me if i am wrong.

in that case you can just check the ASMA properties and filename in the sender as well as receiver adapter. you don't need any udf,variable substitution.

Regards,

Muniyappan.