simple question: search for enter character in a line

Question:
HIALL,
How to identify or compare a carriage return or a enter character in a string in abap.It comes as ## but the if i use the pattern in IF statement I found it skips it as the one we see on keyboard is different when I debug it i found the hexapattern is different .
Abap should be having something to identify enter pressed in a string.
Thanks
Answer:
The carriage return for the ENTER key is '0D0A' or '0D' itself works fine.
Eg: Data: g_enter type x value '0D'.
Use this variable in ur program.
Good luck.
CCSabaper
Answer:
Actually the thing is I get back the enter as a character ## in the character format but if i am comparing it with hexa then also it would not would work.and comparing the keyboard ## also does not work.ABAP should have some thing for comparision of line feeds
I need this since i am getting back a stream from text edit control the line feeds come as ## character .But I don't know how to compare and identify this character comes.
THANKS
Answer:
case sy-ucomm
when space: write code here.
Space works for enter key.

More Articles:

need the print program and layout name for check print?
Books on ALE/EDI/IDOC?
Download into different sheets of excel?
Customized Menus in ABAP Program?
Local Field?
Dropdown in ALV Grid (OO)?