1. SAP Glossary
  2. ABAP Runtime Environment
  3. chained statement


What is 'chained statement' in SAP BC-ABA - ABAP Runtime Environment?


chained statement - Overview

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: An abbreviated notation for multiple ABAP statements with the same beginning. The beginning is written once and closed with a colon :. The remaining parts follow, separated by commas.


chained statement - Details


  • Key Concepts: A chained statement is a type of ABAP statement that allows multiple statements to be executed in a single line. It is used to reduce the amount of code needed to perform a task, and can be used to execute multiple statements in a loop or condition.
    How to use it: Chained statements are written using the “->” operator. The first statement is followed by the “->” operator, and then the second statement is written. This can be repeated for as many statements as needed. For example, the following code will execute two statements in a single line: WRITE 'Hello World'->WRITE 'Goodbye World'.
    Tips & Tricks: When using chained statements, it is important to remember that each statement must be separated by a semicolon (;). Additionally, it is important to note that chained statements are only available in the BC-ABA ABAP Runtime Environment.
    Related Information: For more information on chained statements, please refer to the SAP Help Portal at https://help.sap.com/viewer/product/ABAP_RUNTIME_ENVIRONMENT/7.50/en-US.

    Already have an account? Login here!





chained statement - 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