cancel
Showing results for 
Search instead for 
Did you mean: 

FCC receiver file adapter new line 'nl' is not working

rohit_goel
Participant
0 Kudos

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.??

Accepted Solutions (0)

Answers (3)

Answers (3)

GabrielSagaya
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

rohit_goel
Participant
0 Kudos

its ok but even then 'nl' is not working.

pls suggest some other thing.

Former Member
0 Kudos

Have u checked with the length?

Gaurav Jain

rohit_goel
Participant
0 Kudos

Yes Gaurav i have checked the length

still not working .

Former Member
0 Kudos

Hi,

Please try 0x0D

Thanks

Amit

Reward points if useful

Former Member
0 Kudos

Hi Rohit,

If the above solution doesn't work please try endSeparator as '0x0D''0x0A' instead of 'nl' or you can try '\n'

It should work.

Thanks

Amit

Reward points if it works

former_member240483
Contributor
0 Kudos

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..

rohit_goel
Participant
0 Kudos

field separator is working but new line 'nl' is not working.

i checked with nl also but not working