Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hexadecimal code for return character

aaruljothi
Participant
0 Likes
766

Hi,

Can anyone tell the Hexadecimal code for return character or new line in abap. I want to use it in the following code.

data: w_ret type X value '<hex code>'

loop at it_tab.

concatenate w_ret it_tab-field1 it_tab-field2

into it_newtab.

append it_newtab.

endloop.

w_ret shoul be a new line character.

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
650

if you are on WAS 6.10 >

you can use CL_ABAP_CHAR_UTILITIES=>cr_lf

else

'09' as hex code

Regards

Raja

Note: please search the forum before posting a question. this has been discuessed many times here.

Message was edited by: Durairaj Athavan Raja

4 REPLIES 4
Read only

athavanraja
Active Contributor
0 Likes
651

if you are on WAS 6.10 >

you can use CL_ABAP_CHAR_UTILITIES=>cr_lf

else

'09' as hex code

Regards

Raja

Note: please search the forum before posting a question. this has been discuessed many times here.

Message was edited by: Durairaj Athavan Raja

Read only

0 Likes
650

Thanks but '09' is for tab.

i want it for new line

Read only

0 Likes
650

its '0A'

for a complete list check the following link

http://www.bbsinc.com/iso8859.html

Regards

Raja

If you find the answers helpful, reward them (by choosing the radio button) and close the thread.

Read only

0 Likes
650

Hi,

Pls check this forum link.

In order to be unicode compliant, you should use the CL_ABAP_CHAR_UTILITIES

Eddy