Use the Function Module SPELL_AMOUNT to convert the integer into text.
DATA v_int TYPE i VALUE '1000'.
DATA words LIKE SPELL.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = v_int
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = words
.
WRITE words-word.
SAP,ABAP PROGRAMMING,Reports,Bdc,SAP Scripts,Smart Forms,Module pool,ALV Interactive, Classic reports,ALE,EDI,Work Flow,User Exits,Customer Exits,BADI,BAPI,Cross Applications,RFC,ABAP Dictionary,ABAP Performance,ABAP Optimization,Function Modules,Sub Routines,LUW'S,SMAPLE Codes,Modularization,Debugging,Internal table,interview Questions,FAQ'S...Series of Complete Course of all major topics of ABAP
Use the Function Module SPELL_AMOUNT to convert the integer into text.
DATA v_int TYPE i VALUE '1000'.
DATA words LIKE SPELL.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = v_int
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = words
.
WRITE words-word.
No comments:
Post a Comment