How to get Technical Type of BOM

Technical Type of BOM
Share on Facebook3Share on LinkedIn1Tweet about this on TwitterShare on Google+0
Please Share!!
BOM Technical Type (RC29K-TETYP) is not directly saved in any table. We need to translate and determine the Technical Type. For this, we need to hit standard table STZU (Permanent BOM data) with STLTY (Item Category) and STLNR (BOM).
[adToAppearHere]
IF STZU-ALTST(Indicator: Alternative) is not blank, it means Technical Type is ‘M’ (multiple BOM).
IF STZU-VARST(Indicator: Variants) is not blank, it means Technical Type is ‘V’ (variant BOM).
Code snippet
      READ TABLE i_stzu INTO l_wa_stzu WITH KEY
       stlty = l_wa_stpo-item_categ
       stlnr = l_wa_stpo-bom_no
       BINARY SEARCH.
      IF sy-subrc EQ 0.
        IF l_wa_stzu-altst EQ abap_true.
          l_wa_ibom-tetyp = ‘M’. ” M
        ELSE.
          IF l_wa_stzu-varst EQ abap_true.
            l_wa_ibom-tetyp = ‘V’. “V
          ELSE.
            CLEAR l_wa_ibom-tetyp.
          ENDIF.
        ENDIF.
      ENDIF.

Share on Facebook3Share on LinkedIn1Tweet about this on TwitterShare on Google+0
Please Share!!

About the Author

SAP Yard
SAP Yard
SAPYard is one stop page for all Technical Folks in SAP. You would find un-conventional explanations, tutorials, and tricks. Please like our Facebook Page and also join our LinkedIn Group.

1 Comment on "How to get Technical Type of BOM"

  1. Wow nice info…

    Just now getting a glimpse of all the posts in this blog!

    Great going

    Cheers,
    Kripa Rangachari.

Comments are closed.