Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for WhereUse List(CS15)

Former Member
2,963

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.

2 REPLIES 2
Read only

Former Member
0 Likes
1,623

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.

Read only

0 Likes
1,623

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.