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


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


time literal - Overview

  • 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.


time literal - Details


  • 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).

    Already have an account? Login here!





time literal - Related SAP Terms

Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant