Table of Contents

Search

  1. Preface
  2. Part 1: Getting Started with PowerExchange for SAP NetWeaver
  3. Part 2: Data Integration Using PowerExchange for SAP Dynamic ABAP Table Extractor
  4. Part 3: Data Integration Using ABAP
  5. Part 4: IDoc Integration Using ALE
  6. Part 5: Data Integration Using BAPI/RFC Functions
  7. Part 6: Data Migration
  8. Part 7: Business Content Integration
  9. Part 8: SAP BW Data Extraction
  10. Part 9: Loading Data to SAP BI
  11. Appendix A: Data Type Reference
  12. Appendix B: Code Pages and Unicode Support
  13. Appendix C: Glossary

PowerExchange for SAP NetWeaver User Guide for PowerCenter

PowerExchange for SAP NetWeaver User Guide for PowerCenter

Joining Sources Using Exec SQL

Joining Sources Using Exec SQL

Exec SQL joins tables much like standard SQL. Exec SQL selects all tables with one SELECT statement. The Designer generates the WHERE clause for the join condition after the SELECT statement. When you join tables using exec SQL, the ABAP program performs an inner join.
The following sample exec SQL is generated to join the same transparent tables (KOHN, KOHM, and KONP) as above:
exec sql [...]   SELECT KONH.MANDT, [...], KONM.KOPOS, [...], KONP.MANDT, [...]   INTO [...]     FROM   KONP, KONH, KONM   where   KONP.MANDT = :client_var and   KONH.MANDT = :client_var and   KONH.MANDT = KONP.MANDT and   KONM.MANDT = :client_var and   KONM.KNUMH = KONP.KNUMH endexec.

0 COMMENTS

We’d like to hear from you!