Skip to Content
author's profile photo Former Member
Former Member

Deleted or inactive components of a BOM

Hi,

I have a need to obtain deleted or inactive components of a BOM. Did you ever resolve this issue ? If so how ?

Thanks in advanace...

Regards,

Sudha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:44 AM

    Hi,

    Below is the sample code.

    data: temp_stlst type stko-stlst. "BOM status

    *Select Bill of material(no.) from MAST table

    SELECT SINGLE stlnr FROM mast INTO temp_stlnr

    WHERE matnr = p_matnr.

    IF sy-subrc = 0.

    *Fetch BOM status from STKO table

    SELECT SINGLE stlst FROM stko INTO temp_stlst

    WHERE stlnr = temp_stlnr.

    *If the BOM status is inactive,raise an error message

    IF temp_stlst = 2.

    MESSAGE 'BOM inactive' type 'E'..

    ENDIF.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:56 AM

    Hi,

    If the component of a bom is inactive or deleted you can find out comparing from the two table mast and and mara.

    From Mast table capture all the matnr then in the mara table see wheather the field lvorm is equal to 'X'. If it is equal to 'X' then the component is inactive . In this way you can get all the inactive bom component.

    This will resolve your problem.

    Reward some points.

    Regards,

    Anomitro Guha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.