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

CA03 Transaction Code Question

VarunSinha
Explorer
0 Likes
144

Hi Experts,

On CA03 transaction, I need to get the “Allocation” table records in a custom ABAP report.

VarunSinha_0-1777491475013.png

We identified that the standard function module ‘CS_BOM_EXPL_MAT_V2’ can be used to get the flattened BOM. But we are struggling to match this flat BOM with the allocations table PLMZ.

VarunSinha_1-1777491490371.png

Since we use phantom materials on SAP, a single material can have multiple components, and each component can have many sub components and so on. This can result in having BOMs with many depth levels.

The problem is that when the same component appears twice at the same depth level, the flat BOM from standard function module ‘CS_BOM_EXPL_MAT_V2’ cannot be perfectly joined with PLMZ table, because a key value is missing. This key value is “Path in exploded BOM tree”.

On PLMZ table, we have field KANTE (Path in exploded BOM tree), and on function module ‘CS_BOM_EXPL_MAT_V2’, we get field WEGXX (Path Predecessor). Both fields seem to have the same purpose: to differentiate when a component appears twice at the same depth level. But the problem is that both fields have different values. Since both values are different, the join condition doesn’t match and shows no data.

Accepted Solutions (0)

Answers (1)

Answers (1)

janbuchmann
Contributor
0 Likes

Hello there

According to 2741311 - How to find component allocations in table PLMZ with item number keys STLKN? - SAP for Me, you should be using STVKN when reading PLMZ.

Jan