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


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


character literal - Overview

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Also text literal. Literal that has a character-type data type and whose value is a character string.


character literal - Details


  • Key Concepts: A character literal is a type of literal in SAP ABAP programming language. It is a sequence of characters enclosed in single quotation marks. It can be used to represent a single character or a string of characters.
    How to use it: Character literals can be used in various ABAP statements such as SELECT, WHERE, and IF. For example, the following statement will select all records from the table where the field ‘name’ contains the character literal ‘John’: SELECT * FROM table WHERE name = ‘John’.
    Tips & Tricks: When using character literals, it is important to remember that they are case-sensitive. For example, ‘John’ and ‘john’ are two different character literals.
    Related Information: Character literals are just one type of literal in SAP ABAP programming language. Other types of literals include numeric literals, date literals, and time literals.

    Already have an account? Login here!





character 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