Skip to Content
author's profile photo Former Member
Former Member

ALV

how to print amount in words in alv ?? will the function module spell_amount work ??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 08, 2007 at 01:14 AM

    Hi,

    TABLES SPELL.
     
    PARAMETERS: P_AMOUNT LIKE BSEG-WRBTR,
                P_WAERS  LIKE T001-WAERS.
     
     
    CALL FUNCTION 'SPELL_AMOUNT'
         EXPORTING
              AMOUNT    = P_AMOUNT
              CURRENCY  = P_WAERS
              LANGUAGE  = SY-LANGU
         IMPORTING
              IN_WORDS  = SPELL
         EXCEPTIONS
              NOT_FOUND = 1
              TOO_LARGE = 2
              OTHERS    = 3.
     
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
     
     
    WRITE: 'Integer part:', SPELL-WORD,
           'Decimal part:', SPELL-DECWORD.
    

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2007 at 01:15 AM

    Yes ,it should work,pass the parameter to SPELL_AMOUNT,it gives the amount in words,move that value to Internal table.

    use this internal table in ALV.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.