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_MATN1_INPUT

Former Member
0 Likes
1,779

ihave

matnr = '3al78830aa'

i use this FM and it's not making convert

so this

SELECT SINGLE * FROM MARA

WHERE MATNR = MATNR.

dont work

idea???

8 REPLIES 8
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,283

hi little richi,

conversion only takes place for fields where are only numbers inside, for example:

123 will be converted to 000000000000000123 if it is a material number.

I guess you have to convert the letters to uppercase, than it why it is not retreiving any data.

hope this helps

ec

Read only

0 Likes
1,283

eric

if i have matnr with alpha what shell i do???

Read only

Former Member
0 Likes
1,283

hey declare variable v_matnr ........

parameter: p_matnr like mara-matnr default '3al78830aa'.

data: v_matnr type mara-matnr.

then write u r select single

SELECT SINGLE matnr FROM MARA into v_matnr

WHERE MATNR = p_matnr.

reward points if helpful......

Message was edited by:

raam

Read only

Former Member
0 Likes
1,283

the fm is correct - it should format your material number into upper case. in fact it is working perfect in my systems.

There are a few customer exists inside that FM - just ensure somebody didnt mess with those.

Read only

Former Member
0 Likes
1,283

first translate the matnr into upper-case.

Translate var to upper case.

Then apply the conversion exit. SAP stores things in uppercase. Now it will work.

Regards,

Mallick

Read only

Former Member
0 Likes
1,283

hey no need to use conversion exit here ...........jst try wat i have given above it worked for me .............

reward points if helpful....

Read only

Former Member
0 Likes
1,283

conversion exits work only for Numericals

Read only

0 Likes
1,283

there is no solution for this

i have a matnr with numric and alpha '2ff562fg''

and when i make selct from mara it is not recognize it...