Skip to Content

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

padding zeros.

Hi All!

I have a situation where in i will be having a value like

1234909098

and i have to pad eight zeros in front of it like below

000000001234909098

Any FM to achieve this or any simple code to get this .

Regards

Praneeth

Tags:
Former Member
replied

Hi,

check this code..

REPORT  ZTEST_APLHA                             .
data: text(18).

text = '1234909098'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = text
 IMPORTING
   OUTPUT        = text
          .

write text.

Regards

Vijay

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