cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to file(TXT) scenario

Former Member
0 Kudos

Hi all,

i'm working in a idoc-to file scenario. now its working fine and the file has been written in the target directory of the receiver .but its in xml format i need to store it in a TXT format.

In the receiver communication channel configuration i used file content conversion message protocal and also mentioned the FILETYPE as text and FILEENCODING as UTF-8. i maintained content conversion parameters also.

but still i'm getting the file in a XML format. it wouldbe very helpul if anyone could solve this one.

Thanks,

Hari

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Its really surprizing the to see even after maintaining all the parameters you are getting XML output.

Can you verify the receiv er end structure of Message type

and refer

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

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

http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc

http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae... - conversion agent

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

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

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

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

/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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Thanks

Swarup

Edited by: Swarup Sawant on Feb 22, 2008 1:15 PM

Former Member
0 Kudos

my sourcestructure is a standard IDoc"FLCUSTOMER_CREATEFROMDATA.FLCUSTOMER_CREATEFROMDATA01" and

my receiverend structure refer the user defined datatype contains only few fields and its working fine when i was using test tab in integration repository.i think i might have done mistakes in Receiver communicationchannel. In that i specified the file name followed by the format, like .txt and changed the transfer mode to text as Prabu told.

Am i in the right way or else is there any other way to do it?

Thaks,

Hari.

Former Member
0 Kudos

Hari:

As far as I know, as long as you give filename with ".txt" extension like 'SOMENAME.txt" (with out quotes), your text file will be created irrespective of the transfer mode

Former Member
0 Kudos

Hi Guru,

I have given the file name in both ways (Within quotes and Without quotes for eg: xi_output.txt and 'xi_output.txt').and i used the transfer mode binary as well as text. but whatever it may be i'm getting in the XML format only.

can u pls suggest anyother way to do this one?.

Regards,

Hari.

Former Member
0 Kudos

Hi

can u please tell me what paramters u are using at the receiver side to convert the xml file into txt file.

Thanks

Rinku

nisarkhan_n
Active Contributor
0 Kudos

its strange:

did u activate the adapter? if yes did you changed the message protocl from File to FCC and activated?

check the cache in the RWB for AE it should be green..update the CPA Cache and delta cache and check

if your Communication channel is set with Message Protocol as FCC, then it cannot put XML ntill it is got getting upated in Pipleline...only cache block can cause this type of error.

make sure all your cache are updated.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check FCC parameters,

File content conversion sites

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

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

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

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

/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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Regards,

Phani

former_member614185
Contributor
0 Kudos

Specify the file name followed by the format, like .xml

change the transfer mode to text

Former Member
0 Kudos

Hi,

let me know ur FCC which u r using in File adapter along with the format in which u wanted.

have u selected the message protocol as File content conversion option.

Refer the weblog for help:

Receiver FCC

/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts

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

Thnx

Chirag