1. SAP Glossary
  2. ABAP Runtime Environment
  3. time literal


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


SAP Term: time literal

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Literal whose value is a time from Release 8.0. Either a character-lik e time literal, a second time literal, or a minute time literal.


Smart SAP Assistant

  • Key Concepts: 
    Time literals are a type of ABAP language element used to represent a specific point in time. They are used to define the start and end times of a program or task, and can be used to compare dates and times. Time literals are written in the format ‘YYYYMMDDhhmmss’, where YYYY is the year, MM is the month, DD is the day, hh is the hour, mm is the minute, and ss is the second. 
    
    How to use it: 
    Time literals can be used in ABAP programs to define a specific point in time. For example, if you wanted to define a program that runs from 8am on January 1st 2020 until 5pm on January 2nd 2020, you could use two time literals to define this: ‘20200101080000’ and ‘20200102050000’. 
    
    Tips & Tricks: 
    When using time literals, it is important to remember that they are always written in 24-hour format. This means that 8pm would be written as ‘20200101200000’ instead of ‘20200101200000’. 
    
    Related Information: 
    For more information on time literals and how to use them in ABAP programs, 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