1. SAP Glossary
  2. ABAP Runtime Environment
  3. week date literal


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


week date literal - Overview

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Date/time literal of the type week time field from Release 8.0. Only typed week date literals are available.


week date literal - Details


  • Key Concepts: Week date literal is a type of ABAP literal used to represent a date in the form of a week number and year. It is used to represent a date in the form of a week number and year, such as '2020W01'. This type of literal is used in the ABAP Runtime Environment (BC-ABA) to store and manipulate dates.
    How to use it: Week date literals can be used in ABAP programs to store and manipulate dates. To use a week date literal, you must first declare it as a data object. This can be done using the following syntax: DATA: lv_week_date TYPE wdyyyymmdd. Once declared, you can assign a value to the data object using the following syntax: lv_week_date = '2020W01'.
    Tips & Tricks: When using week date literals, it is important to remember that they are stored as strings and not as dates. Therefore, when manipulating them, you must use string functions instead of date functions. Additionally, when comparing two week date literals, you must use string comparison functions instead of date comparison functions.
    Related Information: For more information on week date 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!





week date literal - Related SAP 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