2009 Jul 15 1:11 PM
Hi everybody ,
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = is642-bzirk
IMPORTING
output = is642-bzirk
BZIRK field is char(6) .
My values : Output :
12 000012
12T 12T
13 000013 .
Problem is 12T . I want to add char to output . Error is bzirk type is char . not numaric ..
How can I add character to char ?
I use this At end bzirk(6)
thanks for reply
serkann
Hi Serkan,
Conversion exit FM will work only with numbers....you can use the method vijay has told above...
Regards,
Vimal.
2009 Jul 15 1:16 PM
Hi Serkan,
If you are facing problem with char.
then try to use alternate method.
data : x type i.
x = strlen( is642-bzirk ).
x = 6 - x.
Do x times.
Concatenate '0' is642-bzirk into is642-bzirk.
enddo.
Hope this will help.
Regards
Vijay
2009 Jul 15 1:17 PM
2009 Jul 15 1:22 PM
Hi Serkan,
Conversion exit FM will work only with numbers....you can use the method vijay has told above...
Regards,
Vimal.
2009 Jul 15 1:24 PM
Hi Serkan,
I want to add char to output .
You want to fill with 0s or spaces?
With 0s, your conversion FM works well.
With spaces, try:
SHIFT tex RIGHT DELETING TRAILING space.Hope it help,
Frisoni
2009 Jul 15 1:24 PM
Hi
The routine CONVERSION_EXIT_ALPHA_INPUT works only if the input is a numeric value, if it's an alphanumeric value u need to insert the leading 0 by yourself.
So u can concatenate the missing 0.
Max
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |