Skip to Content
0
Former Member
May 13, 2008 at 02:41 AM

DEC to STRING conversion

75 Views

I can't seem to convert a DEC to a string. This is a field defined in the dictionary by type TZNTSTMPS (DEC 15). I tried the following to do the conversions:

d_string = d_dec.
write d_dec to d_string.
CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'
  EXPORTING
    betrg                         = d_dec
*   WAERS                         = ' '
*   NEW_DECIMAL_SEPARATOR         =
*   NEW_THOUSANDS_SEPARATOR       =
 IMPORTING
   STRING                        = d_string.

They all give me the same result which is an 8 character result with * being the first charcter. Ultimately, what I need is to grab the first 8 characters as that is a date.

Regards,

Aaron