Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

in words and subtotal

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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