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

Check also   How to zip a file using ABAP in SAP with CL_ABAP_ZIP

How to link STKO and STPO Sample Code

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

Check also   How to Trigger IDOC immediately when SAP PO is created or updated ?

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

Sab125

Hi. I have been working as SAP Technical and functional for a decade. Through this blog, I am trying to share with you my experience. Hopefull, it makes your ways easier path ...Sab

Leave a Reply

Your email address will not be published. Required fields are marked *