cancel
Showing results for 
Search instead for 
Did you mean: 

How do we remove Carriage Return (line feed) inserted in FCC files

Former Member
0 Kudos

Hi Experts,

The file that we generate has a carriage return at the end.

Is there any way in which we can remove this carriage return (line feed) from the file?

The FCC parameters used at our end are as below:

structure.filedNames:

structure.fieldFixedLengths:

structure.fixedLengthTooShortHandling: Cut

Kindly tell us a solution ASAP.

Thanks & Regards

Dhwani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

since I cannot upload a document please, contact me directly.

Regards,

Ralph

Former Member
0 Kudos

Dear All,

Let me elaborate on my query

Consider that the files output looks like below:

12 34 45 545 5454 UL

23 33 43 434 4545 FG

45 44 44 586 6535 GM

Now there is an extra line(Carriage Return) getting inserted after the last line 45 44 44 586 6535 GM which is not required at our end.

The cursor of the file instead of stopping on the last character M, points to the next line.

Can you please suggest how to remove this extra line from the files.

I dont understan how will remove context help in this case.

Regards

Dhwani

Former Member
0 Kudos

Hi Dhwani,

do you use structure.endSeparator with the value 'nl'? This would add a line feed to every last column of a dataset. 'nl' is the default value.

If not, try to use structure.fieldSeparator with a semicolon as value in FCC. This adds a semicolon to the end of every column except the last. Probably the last line feed disappears.

Regards,

Ralph

Former Member
0 Kudos

Hi Dhawani

Use the hexadecimal value for new line instead of nl

new line (line feed) - hex byte 0x0A

Thanks

Gaurav

VijayKonam
Active Contributor
0 Kudos

Do you want new line after each line but not only at the end line? I do not think that would be possible. Endline separator would be same all through the file..!!

VJ

Former Member
0 Kudos

Hey Guys,

Closing this thread......and have concluded on the above issue.

SAP has said that it is not possible to remove a carriage return from the file, that is a standard behavior of the file adapter which cannot be avoided in any way.

In such case we tried uploading the file at the receiver R/3 and ensured that it accepts the file with a carriage return. this is the only possible solution.

Cheers

Dhwani

Former Member
0 Kudos

Hi Dhwani,

If SAP has said that it is not possible to remove the Carriage Return by File Adapter , Could you please let me the SAP NOTE for this so that it would really help us.

Thanks in Advance

Leela.

Former Member
0 Kudos

Hi,

I would like to know a few things to clarify your requirement..

Can u send me the details about required output and the current output u r getting ..if possible kindly explain taking a small example.

Still I feel that you need to use remove context in your mapping..

Regards,

Aditya