Skip to Content
avatar image
Former Member

ABAP datatype with 8 or 9 decimals


I need to add a field in an IDOC segment which should have a type of 8-9 decimals.

Please help me in case anybody is aware of any SAP standard data element.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 18, 2016 at 01:39 PM

    DEC_16_09_S for one

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2016 at 02:04 PM

    In an IDOC segment there should only CHAR-fields be used (as far as I know)

    Add comment
    10|10000 characters needed characters exceeded

    • Yes correct, as per the SAP Library Design Guidelines and Formatting Rules for Creating New Segments :

      • "The segment fields may only contain alphanumeric data. You can make sure that this is the case by using data elements which contain characters in the segment fields."
      • i.e. a number should be represented using characters, with no thousands separator, dot as decimal separator, negative sign at the right (for instance : "2097152.64-" )

      However, it's possible to choose a "P" data element for defining a segment type, but the actual type is converted into type C. A data element with 21 digits included 7 after the radix point, will be converted into a 23 characters field.

      The only interest I see of using a numeric data element, is avoiding creating a useless character-type data element with corresponding length and with same description.