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

STRINGS

Former Member
0 Likes
483

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
Read only

varma_narayana
Active Contributor
0 Likes
456

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
Read only

Former Member
0 Likes
456

Hi,

Juse use MATNR+11(1) for checking.

Regards

Raju chitale

Read only

varma_narayana
Active Contributor
0 Likes
457

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.

Read only

Former Member
0 Likes
456

Hi,

Use follwing statement.

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

See if this will help you out.

Cheers,

Hetal