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: 

STRINGS

Former Member
0 Kudos

MY END USER WANT ME TO PRINT THE KARAT VALUE FOR MATERIALS THIS VALUE DEPENDS UPON THE 12TH CHARACTER OF MATERIAL NO. I.E. IS 12TH CHAR OF MATNR IS ' 4' THEN MATERIAL IS 4 KARAT AND SO ON..

HOW CAN I SPLIT THIS MATNR AND FIND VALUE OF 12TH CHAR OF IT?

ITS URGENT.

THANKS & REGARDS

GUARAV

REWARDS IF HELPFUL

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi..

You need to Access the 12th char of Material .. then..

WRITE:/ ITAB-MATNR+11(1). "This will give the 12th Character .

"Bcoz the Position starts with 0

Eg:

data : v_karat type c.

v_karat = itab-matnr+11(1) .

REWARD IF HELPFUL.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Juse use MATNR+11(1) for checking.

Regards

Raju chitale

varma_narayana
Active Contributor
0 Kudos

Hi..

You need to Access the 12th char of Material .. then..

WRITE:/ ITAB-MATNR+11(1). "This will give the 12th Character .

"Bcoz the Position starts with 0

Eg:

data : v_karat type c.

v_karat = itab-matnr+11(1) .

REWARD IF HELPFUL.

Former Member
0 Kudos

Hi,

Use follwing statement.

write 😕 'KARAT' , matnr+11(1).

See if this will help you out.

Cheers,

Hetal