Ansicht
Dokumentation

ABENTABLE_CMPRHNSNS_JOIN_ABEXA - TABLE CMPRHNSNS JOIN ABEXA

ABENTABLE_CMPRHNSNS_JOIN_ABEXA - TABLE CMPRHNSNS JOIN ABEXA

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Table Comprehensions, Join

This example demonstrates a join between internal tables using a table comprehension.

Source Code

Execute

Description

The lines of two internal tables itab1 and itab2 that have the same value in the column key are combined in a table. This example shows two options:

  • The table itab3 is created after a simple FOR expression for itab1 in which the associated values are read using table expressions from itab2.
  • The table itab4 is created after consecutive FOR expressions for itab1 and itab2. The last FOR expression is restricted by a WHERE condition.

In both cases, only those key values are evaluated in itab1. In the second case, duplicate key values in itab2 would also produce multiple lines in itab4.






Addresses (Business Address Services)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 1278 Date: 20240419 Time: 093849     sap01-206 ( 24 ms )