2010 Nov 03 7:22 PM
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
2010 Nov 03 8:11 PM
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
2010 Nov 03 7:31 PM
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
2010 Nov 03 8:11 PM
2010 Nov 03 8:26 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |