How to link STKO and STPO for BOM in SAP

How to link STKO and STPO : Find the link between STKO and STPO is a common requirement in SAP PP for example. This post will guide through the SAP Tables Diagram for SAP BOM.

SAP BOM Tables: Header, items and links

The main SAP tables involved in this topic will be

  • STKO?SAP BOM Header
  • STPO?SAP BOM Items
  • STAS: SAP?BOMs – Item Selection

You can also, just use the following join without using the STAS link Table.

? ? ? ? STKO-STLTY = STPO-STLTY
AND STKO-STLNR = STPO-STLNR

Check SAP BOM Overview for details or Bill of Material (BOM)?.

Here an example how to retrieve Data with a sample ABAP Select code

READ SAP BOM Header Table

Read Data for BOM Header STKO from a SAP Production Version:

READ SAP BOM LINK PLAS Table

Read the different link STAS between BOM header STKO and BOM components STPO.

READ SAP BOM Component STPO

Read the BOM Components STPO using the link from STAS

How to link STKO and STPO Sample Code

Here a sample ABAP code to retrieve the SAP BOM component used for Production version

STPO Table in SAP, STKO Table in SAP, STPO BOM Component, STKO BOM