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 Problem ==????

Former Member
0 Likes
1,095

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

5 REPLIES 5
Read only

Former Member
0 Likes
689

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

Read only

Former Member
0 Likes
689

Hello

concatenate '000' BZIRK into BZIRK.

Read only

Former Member
0 Likes
689

Hi Serkan,

Conversion exit FM will work only with numbers....you can use the method vijay has told above...

Regards,

Vimal.

Read only

guilherme_frisoni
Contributor
0 Likes
689

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

Read only

Former Member
0 Likes
689

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