Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

STRINGS

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

Tags:
Former Member
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question