cancel
Showing results for 
Search instead for 
Did you mean: 

What is CR LF. (carriage return and line feed) .

former_member623843
Participant
0 Kudos

Hi All,

What is CR LF. (carriage return and line feed) .

Can any body tell me..

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi subahani,

1. CR and LF are ascii characters, just like

A,B... etc. However, they are normally NOT displayed

rather interpreted for display purpose.

2. CR = Carriage return

LF = Line Feed

It is similar to an ENTER in a note pad file.

3. Suppose a notepad file has :

AMIT

then its size will be 4 bytes only.

4. However, we press enter and write like this

AMIT

MITTAL

then the size will be 4 + 2+ 6 = 12 bytes.

Here the 2 bytes are for CR and LF ie. ENTER.

regards,

amit m.

former_member623843
Participant
0 Kudos

Hi all,

it is possible to remove CR and LF's using the code the program.

you use char(10) and Char(13).

Just can you write a small program and send me please..

former_member623843
Participant
0 Kudos

Hi amit,

Here my input is :001 256 this is good 7869

Actually my output should be like this :

001 256 this is good 7869

Here 'this is good' is the text field data.

But is getting the output is:

001 256 this is good^M

7869

so i want to bring the full data in single line.

Just please tell me the procedure

Former Member
0 Kudos

Hi again,

1. u can use like this.

REPLACE ALL OCCURRENCES

OF CL_ABAP_CHAR_UTILITIES=>CR_LF

IN S

WITH ''.

(where s = your character/string variable/workarea)

regards,

amit m.

Former Member
0 Kudos

Erased as Dup.

Former Member
0 Kudos

CRLF is just that, in a text file it forces the line to return to the beginning of that line, then drop down one line before starting the next line.

In ABAP, you can define it as


CONSTANTS:
  c_CRLF(2) TYPE x VALUE '3338'.

Former Member
0 Kudos

Check this out

http://www.auditmypc.com/acronym/CRLF.asp

Regards,

Santosh