1. SAP Glossary
  2. ABAP Runtime Environment
  3. packed number literal


What is packed number literal in SAP BC-ABA - ABAP Runtime Environment?


SAP Term: packed number literal

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Number literal of the type packed number. Both typed packed number literals from Release 8.0 and untyped packed number literals are available.


Smart SAP Assistant

  • Key Concepts: 
    A packed number literal is a type of data object in SAP's ABAP Runtime Environment (BC-ABA). It is a fixed-length, numeric data type that stores up to 16 decimal digits. It is used to store and manipulate numeric values in a more efficient way than other data types. 
    
    How to use it: 
    Packed number literals are used in ABAP programs to store and manipulate numeric values. They are declared using the syntax “PACKED(n)”, where n is the number of decimal digits that can be stored. For example, “PACKED(16)” would declare a packed number literal that can store up to 16 decimal digits. 
    
    Tips & Tricks: 
    When declaring packed number literals, it is important to consider the size of the value that will be stored. If the value is too large for the declared size, an overflow error will occur. It is also important to note that packed number literals are not suitable for storing currency values, as they do not support decimal points. 
    
    Related Information: 
    For more information on packed number literals, please refer to the SAP Help Portal (https://help.sap.com/viewer/product/ABAP_RUNTIME_ENVIRONMENT/7.50/en-US).
    • Do you have any question about this SAP term?


      Upgrade now to chat with this SAP term.

Related SAP Glossary Terms

Click the links below to see the following related SAP glossary terms:
Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker