Skip to Content

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

ABAP

Hi,

I have this requirement.Suppose I have a number say 375 I need to have concatenate 8 zeroes in front so that the total number of digits is equal to 11.If the number is say 75,then I need to have 9 zeroes so that the total digits is still 11.The zeroes have to be at the front of 75.Can anyone tell how to do this using ABAP statements

Tags:
Former Member
Former Member replied

Hi,

Use like this...

DATA : lv_fieldval type numc11.

lv_filedval = <Your input field value>.

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = lv_fieldval

importing

output = lv_fieldval.

Hope it will helps

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