on 06-19-2008 4:45 PM
Hi Experts,
I am doing idoc to file scenario,i have to creart a text file in which each line will have a record.
i am using
Recordset Structure -->DeliveryRecords
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
DeliveryRecords.fieldSeparator '0x09'
DeliveryRecords.endSeparator 'nl'
but new line is not working every thing is coming in the same line.i have also tried with '0x0A' , this is also not working.
Pls suggest what can be done.??
Hi
You have to use either fieldFixedLength or fieldSeparator.
You should not mix together.
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
or
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
DeliveryRecords.fieldSeparator '0x09'
DeliveryRecords.endSeparator 'nl'
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rohit,
Since you are having fixed length file.
verify that all the lines in the file has proper length like if last fields has only 3 character then one more character with space (' ') should be appended.
Verify that and then try.
Gaurav Jain
Reward Points if answer is helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DeliveryRecords.fieldSeparator '0x09'
DeliveryRecords.endSeparator 'nl'
In CC you configured this 0x09 and nl in single quotes if yes i guess u have to remove those in single quote and just type nl and 0x09.
Hope it works..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.