Application Development 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: 

FM for matl no

Former Member
0 Kudos

Hi,

Is thr any function module which converts the material number to 7 chars.

Regards

Saurabh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try CONVERSTION_EXIT_ALPHA_OUTPUT.

Regards,

Ravi

4 REPLIES 4

Former Member
0 Kudos

Try CONVERSTION_EXIT_ALPHA_OUTPUT.

Regards,

Ravi

0 Kudos

hi,

use FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>

Regards,

Santosh

Former Member
0 Kudos

Hai Sourab

check the code

tables : mara.

*data : v_mat1 type mara-matnr value '00000000000000002N'. "Example 1

data : v_mat1 type mara-matnr value '000000000000000002', ""Example 2

v_mat2 type mara-matnr,

v_len type i.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

INPUT = v_mat1

IMPORTING

OUTPUT = v_mat2 .

v_len = strlen( v_mat2 ).

write 😕 v_mat2,

v_len.

execute the above code with exact code.

next uncomment the above variable and comment the bellow variable already executed code that is V_mat1 and check it

Thanks & regards

Sreeni

Former Member
0 Kudos

tx