Function modules: Amount and Currency

 

Example 1: Convert amount to/from string

Amount to string:

CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'
  EXPORTING
    betrg                         = 3000
    WAERS                         = 'DKK'
*   NEW_DECIMAL_SEPARATOR         =
*   NEW_THOUSANDS_SEPARATOR       =
 IMPORTING
   STRING                        =  slam
          .

String to amount:

CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'
  EXPORTING
    string                    = slam2
    DECIMAL_SEPARATOR         = '.'
*   THOUSANDS_SEPARATOR       =

    WAERS                     = 'HUF'
 IMPORTING
   BETRG                     = b2
* EXCEPTIONS
*   CONVERT_ERROR             = 1
*   OTHERS                    = 2

 

 

   
Converted from CHM to HTML with chm2web Standard 2.7 (unicode)