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

Material Number Conversion

Former Member
0 Likes
7,714

Hi,

What is the function module that is used to convert the material interanl number to the material name?

i.e from ex: 20000000000010 to MC78-62:92802.

And before doing this is there requisite?

Thanks in advance.

Regards

Saurabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,331

Hi,

When i use the function module CONVERSION_EXIT_MATN1_INPUT and enter the material name i.e say MC78-62:92802 it gives me the internal material number i.e 20000000000000010.

What i need is when i give this internal number 20000000000000010 i wnat to retrieve the name i.e MC78-62:92802.

How is that possible? The maktx field would give the material description.

Regards

Saurabh

14 REPLIES 14
Read only

Former Member
0 Likes
4,331

If i understood your question right than you may try with table MAKT field MAKT-MAKTX

Read only

Former Member
0 Likes
4,331

Hi SM,

Use the MAKT table.

Just inout the MATNR and get MAKTX you want with spcecification of desired language in SPRAS.

Regards,

R.Nagarajan.

-


We can -


Read only

Former Member
0 Likes
4,332

Hi,

When i use the function module CONVERSION_EXIT_MATN1_INPUT and enter the material name i.e say MC78-62:92802 it gives me the internal material number i.e 20000000000000010.

What i need is when i give this internal number 20000000000000010 i wnat to retrieve the name i.e MC78-62:92802.

How is that possible? The maktx field would give the material description.

Regards

Saurabh

Read only

0 Likes
4,331

CONVERSION_EXIT_MATN1_OUTPUT

???

Read only

0 Likes
4,331

Hi

Answer is assumption

I think for reverese output, you should try

CONVERSION_EXIT_MATN1_OUTPUT

Regards

Madhan

Read only

0 Likes
4,331

Hi,

May I know the Field for Material Name?

Rhea.

Read only

0 Likes
4,331

MATNR is the field for material.

Regards,

Vishwa.

Read only

0 Likes
4,331

>

> Hi,

>

> May I know the Field for Material Name?

>

> Rhea.

Material Number = MATNR

Material Name = MAKTX

Read only

0 Likes
4,331

Thanks,

Got confused by S.M 's material name

(name and desc are same)

Rhea.

Read only

0 Likes
4,331

Hi ,

this is conversion exit which would be usedful to oversome the data conflict between two different data types but not for what you have expected.

for material conversion go to se37 and find out by providing descr as in * * ,you ll get the function module .

gr

Read only

Former Member
0 Likes
4,331

Yup, Thanks a lot.

Read only

Former Member
0 Likes
4,331

Hi SM,

Is the issue fixed?

Please let us know....

Read only

0 Likes
4,331

Hi Krishna,

Yes this is fixed and working. I had replied earlier for this and marked it as answered. (Sorry, but I didn't mention that this is fixed).

The function module CONVERSION_EXIT_MATN1_OUTPUT is the one.

Thanks again.

Regards,

Saurabh.

Read only

4,331

For information, note that this can also be achieved by (it's more easy to remember, and applies to any fields) :

DATA l_matnr TYPE mara-matnr.
DATA l_text TYPE c LENGTH 30.
WRITE l_matnr TO l_text.

WRITE implicitly calls the conversion exit (output) based on the domain conversion routine of mara-matnr data element.