0% found this document useful (0 votes)
792 views10 pages

How To Create Inner Joins Between Tables Using SE16H

This document provides steps to create inner joins between tables in SE16H to display related data from multiple tables in a single view. The example joins the EKPO, EKKN, ANLA and MSEG tables to show purchase order line items along with the associated asset code, asset description, document numbers and movement types. The steps describe selecting tables, linking them using common fields, and choosing the specific fields to display from each table. Following these steps allows retrieving and combining linked data from different sources without duplication.

Uploaded by

Shivraj Tivhane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
792 views10 pages

How To Create Inner Joins Between Tables Using SE16H

This document provides steps to create inner joins between tables in SE16H to display related data from multiple tables in a single view. The example joins the EKPO, EKKN, ANLA and MSEG tables to show purchase order line items along with the associated asset code, asset description, document numbers and movement types. The steps describe selecting tables, linking them using common fields, and choosing the specific fields to display from each table. Following these steps allows retrieving and combining linked data from different sources without duplication.

Uploaded by

Shivraj Tivhane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Mahmoud Nabeh

SAP MM Consultant
How to Create Inner Joins between tables using SE16H

The case: we have a PO that contains 4 line items, they have Account Assignment
(A) for Asset, so we want to Execute the PO number , line items, Company Code
,the asset code, Asset description , Material Document Number , Movement type
, All of these information in one Table like this photo.

Steps:
1- Go to Se16h, type the main table [EKPO] (1), then click on the icon of maintain
relationships of the outer join (2).
2- Enter a name and a description for the join (1) then create (2).

3- We will enter the first JOIN table (EKKN), and press on the output to select
the fields we want to execute.
4- We will select the Asset Number field (ANLN1) then execute.

5- Select the Line of table then press on the icon in the square to add table for
join creation, you will see that the table name appears downside in the selected
secondary table field.
6- Now press on the create icon (page left down) to add the fields we want to use
to get the data from the joined table.
Hint: this point is the like the spec we give to the ABAPER to get the data , in a simple way
, we have a po number in EKKO , to get the right asset number for a specific line item in po
, we want to enter EKKN table with PO number and PO line item number , so we will use
the fields EBELN & EBELP as our primary keys here to the right data without any
duplication.
Also, you can use the fields here as a constant Value to filter.
7- We will add a new join table (ANLA) Asset master record table to get the
description of the Asset number.

8- We will select the Description field from ANLA output then execute.
9- Like we did in the pervious steps , we will select the table line and add the
fields.
10- We will enter the ANLA table with the Asset number (ANLN1) and the
Company code (BUKRS) , to get the description of the Asset number.

11- We will add a new join table (MSEG) to get the Material Document numbers
and the movement type.
12- We will enter MSEG table with PO number, PO item line and Company Code.

Hint:
Make sure of the Sequence number for the joined tables before saving.
13- Make sure you have selected the outer joined you saved, you can execute
now.

Executed table:

Thanks

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy