cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BOm component Validation

Mahil
Participant
0 Kudos
100

Dear Team,

We are validating BOM components using user exit PCSD0005.
In CS02, when we add a new component in Alternative BOM 1, the system throws an error Duplicate component not allowed.

However, Alternative BOM 1 does NOT have this component.
The duplicate component exists only in Alternative BOM 2.

We need to validate the component based on the correct Alternative BOM (STLAL) only.

I_RC29P contains the field STLAL, but it is always initial (empty) inside the user exit.

How can we correctly get the STLAL value in PCSD0005 for proper validation?

Accepted Solutions (0)

Answers (1)

Answers (1)

Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

I_RC29P-STLAL is always initial in PCSD0005 because SAP doesn’t fill it at that stage. Use RC29K-STLAL (global BOM header structure) or read from MAST/STKO to get the correct alternative BOM. This way, your validation will only compare components within the same alternative BOM, avoiding false duplicate errors across different alternatives.

Mahil
Participant
0 Kudos
Thank you for your valuable reply. In CS02, when I navigate to Alternative BOM 1, I can see that in debug mode the MAT_BOM_ALLOCATION table contains all alternative BOM data. I also check RC29K-STLAL it shows like invalid variable.