We have a requirement wherein we are supposed to fetch the top most level material of a component. I am aware that to do the reverse process i.e. to find the component BOMs for a material we have the FM "CS_BOM_EXPL_MAT_V2".
But here our input is the component number and its corresponding plant. For this component we need to fetch the top most level material by looping at stpo and mast tables.
Also I would like to know if there is a direct function module available to get the top most level materials.
If anybody has worked on this logic/requirement before kindly provide your valuable inputs.
Thank you all in advance.