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

Equipment Number Conversion Exit

Former Member
0 Likes
2,206

Hello,

I am using the Coversion Exit "CONVERSION_EXIT_ALPHA_INPUT", but it is not giving me the desired output (not converting the equipment number into an 18 char).

Please help me to resolve this, or suggest any other method.

Regards,

Pankaj Agarwal.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,432

hi,

when u use CONVERSION_EXIT_ALPHA_INPUT FM in se37 it gives ur output with 0's precding ur equnr more than 18 char.

But when u use in ur program it wwill work fine.

Rewards point if helpful.

Regards

Santosh

Hello,

I am using the Coversion Exit "CONVERSION_EXIT_ALPHA_INPUT", but it is not giving me the desired output (not converting the equipment number into an 18 char).

Please help me to resolve this, or suggest any other method.

Regards,

Pankaj Agarwal.

5 REPLIES 5
Read only

Former Member
0 Likes
1,432

Hi,

Use

CONVERSION_EXIT_ALPHA_OUTPUT

and see

reward if sueful

regards,

Anji

Read only

Former Member
0 Likes
1,432

Hi!


CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input         = lv_eq_number
  IMPORTING
    OUTPUT   = lv_eq_number
          .

With this code, the output can be the following, depending on the input:

- if the input contains only numbers (123456789): the output will be 000000000123456789

- if the input contains characters also (A123456789): the ouput remains unchanged A123456789

Regards

Tamá

Read only

0 Likes
1,432

"if the input contains only numbers (123456789): the output will be 000000000123456789"

This is the problem that it does not convert it as you have written, but it appends so many '0' that the length exceeds 18 chars.

Read only

Former Member
0 Likes
1,433

hi,

when u use CONVERSION_EXIT_ALPHA_INPUT FM in se37 it gives ur output with 0's precding ur equnr more than 18 char.

But when u use in ur program it wwill work fine.

Rewards point if helpful.

Regards

Santosh

Read only

Former Member
0 Likes
1,432

Hi,

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input         = equip_number
  IMPORTING
    OUTPUT   = equip_number          .

Regards

Sudheer