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

CONVERSION_EXIT_ALPHA_INPUT for characters

Former Member
0 Likes
652

Hi Friends,

is there a function module or any program to convert strings into their real length .

E.g.

There is variable defined like see below.

data lv_var   TYPE string.
data lv_var2 TYPE CHAR30.
 lv_var2  = 'Test'.

The output lv_var2   must be:
NOT Test
BUT '                          Test'
OR  'Test                          '

Because of the length of variable type.

Just kind of CONVERSION_EXIT_ALPHA_INPUT for characters.

Regards

Marco

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

Press F1 on SHIFT.

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
541

Hello Marco,

In this example you are passing to variable type char...

by the way if you are not passing leading space it will not take as ' test'

and there is no count on trailing space with type char or string type..

Thanks

Read only

Former Member
0 Likes
542

Press F1 on SHIFT.

Rob

Read only

0 Likes
541

Hi Rob that was it.

Thank you very much

Marco.