04-24-2007 10:23 AM
HI ALL
I NEED TO PRINT THE FIELD BSEG-WRBTR using SPELL_AMOUNT please give the perform code and also give the code to calculate the subtotal of BSEG-WRBTR...please giv the code both in script and the code in the abap editor..
vijay
04-24-2007 10:30 AM
Use the Function Module SPELL_AMOUNT to convert the integer into text<b>.(it is in ABAP CODE)</b>
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.
subtotal of BSEG-WRBTR
u may use in at end of ....(in a loop)
reward if it helpful
vijay pawar