cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

String conversion to Char

Former Member
0 Likes
17,830

I have the particular requirement that I want to convert a String type to a char type. Are there any standard functions in ABAP for that?

Any help on the topic will be highly appreciated.

Thanks,

Pratibha

View Entire Topic
Former Member
0 Likes

Pratibha,

As String has no fixed length, your best bet is

CHAR_VAR = STRING_VAR+0(n).

n being the length of the CHAR Variable you have declared. There is a potential of data loss here.

regards,

Ravi

NOte :Please mark the helpful answers