0% found this document useful (0 votes)
103 views15 pages

How To Create Inner Joins Between Tables Using SE16H

The document describes how to create inner joins between tables in SE16H to retrieve related data from multiple tables in a single view. The steps are: 1. Select the main table and create a join 2. Select fields from the first joined table to link the tables 3. Add additional joined tables and select fields to retrieve asset descriptions and material document details 4. Ensure the correct sequence of joined tables and execute the joined view to show consolidated data from multiple tables.

Uploaded by

gnafoo2003
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)
103 views15 pages

How To Create Inner Joins Between Tables Using SE16H

The document describes how to create inner joins between tables in SE16H to retrieve related data from multiple tables in a single view. The steps are: 1. Select the main table and create a join 2. Select fields from the first joined table to link the tables 3. Add additional joined tables and select fields to retrieve asset descriptions and material document details 4. Ensure the correct sequence of joined tables and execute the joined view to show consolidated data from multiple tables.

Uploaded by

gnafoo2003
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/ 15

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

Info@ambikeya.com || www.ambikeya.com || +917746805189


2- Enter a name and a description for the join (1) then create (2).

Info@ambikeya.com || www.ambikeya.com || +917746805189


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.

Info@ambikeya.com || www.ambikeya.com || +917746805189


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.

Info@ambikeya.com || www.ambikeya.com || +917746805189


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.

Info@ambikeya.com || www.ambikeya.com || +917746805189


7- We will add a new join table (ANLA) Asset master record table to get the description of the Asset
number.

Info@ambikeya.com || www.ambikeya.com || +917746805189


8- We will select the Description field from ANLA output then execute.

Info@ambikeya.com || www.ambikeya.com || +917746805189


9- Like we did in the pervious steps , we will select the table line and add the fields.

Info@ambikeya.com || www.ambikeya.com || +917746805189


Info@ambikeya.com || www.ambikeya.com || +917746805189
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.

Info@ambikeya.com || www.ambikeya.com || +917746805189


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.

Info@ambikeya.com || www.ambikeya.com || +917746805189


13- Make sure you have selected the outer joined you saved, you can execute now.

Executed table:

Info@ambikeya.com || www.ambikeya.com || +917746805189


Info@ambikeya.com || www.ambikeya.com || +917746805189
Info@ambikeya.com || www.ambikeya.com || +917746805189

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