P. 1
ABAP function to convert Number to Words

ABAP function to convert Number to Words

|Views: 273|Likes:
ABAP function to convert Number to Words
ABAP function to convert Number to Words

More info:

Published by: Amarto Bhattacharyya on Jul 24, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

12/29/2014

pdf

text

original

ABAP function to convert Number to Words * * Converting Number to Words * * This function comes handy mostly for the

Finance module as they need to print out check * for the vendors. The function allows you to covert easily from numbers to wor ds. * * Written by : SAP Basis ABAP Programming and Other IMG Stuff * http://www.sap-img.com * REPORT ZSPELL. TABLES SPELL. DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE. DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '1234510'. SY-TITLE = 'SPELLING NUMBER'. PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'. WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD. FORM SPELL_AMOUNT USING PWRBTR PWAERS. CALL FUNCTION 'SPELL_AMOUNT' EXPORTING AMOUNT = PAMOUNT CURRENCY = PWAERS FILLER = SPACE LANGUAGE = 'E' IMPORTING IN_WORDS = T_SPELL EXCEPTIONS NOT_FOUND = 1 TOO_LARGE = 2 OTHERS = 3. ENDFORM.

" SPELL_AMOUNT

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->