Skip to Content

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

Convert Numeric to string (4)

Hello

How can I convert numeric to string (4 characters)

n type i.

st (4) type c.

n= 1 , st = '0001'

n = 10 , st = '0010'

n = 20, st = '0020'

etc

Thanks in advance

Tags:
Former Member
Former Member replied

Hi,

try this -

DAta:n type i value 1,

st(4) type n.

st = n.

Write:st.

or

DAta:n(4) type n value 10,

st(4) type c.

move n to st.

Write:st.

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