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


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


SAP Term: chained statement

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


Smart SAP Assistant

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