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

String conversion to Char

Former Member
0 Likes
17,827

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

Hi Pratibha,

My undersatnding is thats not supported in ABAP.

You can call a C program from ABAP and that can help you do that. In C and C++ you can convert a string into a char is very much possible.

Btw if you are going to convert a string into a char how would you define your Char variable? How will you come to know the length of the string and dynamically define your Char variable?

Rgds

VJ

0 Likes

I don't think so  there is a need of calling of C or c++ program .

We can get string length using STRLEN. And declare char variable dynamically.

It will not result in loss of data.