很开心做了这个程序,递归bom反向展开的
需要取物料的顶层物料
思路是:反向展开失败就得到叶子节点,即顶层物料
*&---------------------------------------------------------------------*
*& Report Z_BOM_REV *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
report z_bom_rev .
types : begin of ty_mat,
matnr type matnr,
andat type andat,
maktx type maktx,
vwalt type stalt,
end of ty_mat.
data it_mat type table of ty_mat with header line.
data: itab type table of stpov with header line ,
equi type table o

这篇博客介绍了如何使用ABAP解决物料的反向BOM展开问题,通过递归查找顶级物料。程序通过调用函数模块'CS_WHERE_USED_MAT'获取物料的使用情况,并进行递归调用来找到顶层物料。

907

被折叠的 条评论
为什么被折叠?



