‎2007 Sep 07 12:50 PM
Hi Experts,
Is there any BAPI for whereused list of materials????
Simply what we do through TCode CS15. I need BAPI for that.
I am using ECC6.0.
Thanks in Advance.
‎2007 Sep 07 1:34 PM
i dont think there is a BAPI for where used list of materials.
You can use CS_WHERE_USED_MAT but it is not RFC enabled. may be u can create a custom RFC enabled FM, inside which you can call the above FM.
SKC.
‎2020 Feb 11 1:06 PM
I managed to get this data with invoking two tables.
You need to get unique Bill of Material numbers, and then get the link from these back to material numbers.
Firstly table STPO (BOM items) [field STLNR], where I filtered by IDNRK (BOM component).
Then I invoked table MAST (Material to BOM link) [fields MATNR, STLNR], where STLNR filed is same as results from STPO table query.
You can also filter by Valid date from and to and also other fields like Plant etc.