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

String conversion to Char

Former Member
0 Likes
17,831

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
Clemenss
Active Contributor
0 Likes

Hi Pratibha Gavurla,

this is a simple move opration:

charvar = stringvar.

If the defined length of charvar TYPE C variable is less than actual length of stringvar TYPE STRING variable, then it gets truncated.


The story about the C program is complete nonsense. Maybe Vijayendra Rao has a different understanding of your requirement.


Best way is give a small example with actual data and expected result.

Regards Clemens