Application Development and Automation 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: 
Read only

Script text getting truncated in different currency

0 Likes
825

Hi Expert,

I was facing problem in getting amount in words.

It was getting truncated due to itcvl-val (80) in standard.

So we had split the variable and then concatenate that thing. but now this is working for 'INR' currency. For USD currency its coming as zero.

Can help me on this.

Regards

Swapnil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

Are you using SPELL_AMOUNT in your driver program?

Make sure you specify the currency and language parameter.

  CALL FUNCTION 'SPELL_AMOUNT'

       EXPORTING

            AMOUNT    = AMOUNT

            CURRENCY  = WAERS

            FILLER    = SPACE

            LANGUAGE  = 'E'

       IMPORTING

            IN_WORDS  = T_SPELL_AMOUNT

       EXCEPTIONS

            NOT_FOUND = 1

            TOO_LARGE = 2

            OTHERS    = 3.

3 REPLIES 3
Read only

0 Likes
762

I am Using SAPSCRIPT.

Regards

Swapnil

Read only

Former Member
0 Likes
763

Are you using SPELL_AMOUNT in your driver program?

Make sure you specify the currency and language parameter.

  CALL FUNCTION 'SPELL_AMOUNT'

       EXPORTING

            AMOUNT    = AMOUNT

            CURRENCY  = WAERS

            FILLER    = SPACE

            LANGUAGE  = 'E'

       IMPORTING

            IN_WORDS  = T_SPELL_AMOUNT

       EXCEPTIONS

            NOT_FOUND = 1

            TOO_LARGE = 2

            OTHERS    = 3.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
762

Put your code if you want some help (Crsytal ball out of stock)

  • build of text
  • split of data (field definition required)

Regards,

Raymond