a week ago
Hi Experts,
On CA03 transaction, I need to get the “Allocation” table records in a custom ABAP report.
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.
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 59 | |
| 30 | |
| 21 | |
| 11 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.