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

issue in conversion

Former Member
0 Likes
769

hi friends,

i have my vendor number as 00000I00015...

i have to convert it as I00015.

i have tried conversion_exit_aalpha_input...

but its not working...

Please suggest some solution..

Thanks

Praveen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
731

YOU HAVE TO USE conversion_exit_aalpha_OUTPUT OR

SHIFT ITAB-LIFNR LEFT DELETING LEADING '0'.

REGARDS

SHIBA DUTTA

6 REPLIES 6
Read only

Former Member
0 Likes
731

Hi,

Goto the Vendor Data element and double click that, you will get the Data element screen, there you will find the Conversion exit for the VENDOR field,

use that Function module to convert the Vendor Number

or else, use CONERSION_EXIT_ALPHA_INPUT

Regards

Sudheer

Read only

Former Member
0 Likes
732

YOU HAVE TO USE conversion_exit_aalpha_OUTPUT OR

SHIFT ITAB-LIFNR LEFT DELETING LEADING '0'.

REGARDS

SHIBA DUTTA

Read only

anversha_s
Active Contributor
0 Likes
731

hi,

try this.

data : v_matnr(40) type c,
       v_mat type matnr.
 
v_mat = '000000123456789'.
 
       pack v_mat to v_matnr.
 
write v_matnr.

Rgds

Anversha

Read only

Former Member
0 Likes
731

hi

good

CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer

Example:

input = 00000000000123

output = 123

thanks

mrutyun^

Read only

sharat_chandra
Product and Topic Expert
Product and Topic Expert
0 Likes
731

Hi,

The conv exit doesnot work because 00000<b>I</b>00015 , the vendor num has an alphabet.

l_data TYPE lif16 VALUE '00000I00015'.

Use the below to do your task.

SHIFT l_data LEFT DELETING LEADING '0'.

replace l_data by your vendor num

Read only

0 Likes
731

Thanks a lot friends.......

u r the masters..........