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: 

how to convert material with last 8 digit

Former Member
0 Kudos

Hi experts,

In my program i need the material with last 8 digit. Is there any function moudle is there to covert the material number with last few digits?

otherwise how todo?

Example : 000000000000010675

required : 00010675

Thanks in advance.

Anandhan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Move it to a field that only has 8 characters.

gv_matnr(8) type N.

2 REPLIES 2

Former Member
0 Kudos

Move it to a field that only has 8 characters.

gv_matnr(8) type N.

Former Member
0 Kudos

Hi,

try this:


data: matnr like mara-matnr VALUE '000000000000010675'.
data: matnr8(8).
matnr8 = matnr+10(8).
write: / matnr8.

Regards, Dieter