Application Development 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: 

Regarding fetching a BOM's top level material

Former Member
0 Kudos

Hi friends,

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.

Regards,

Gayathri N.

5 REPLIES 5

Former Member
0 Kudos

i think loop at mast / stpo is the better option bcos one component may exits in another plant also , So better to fetch data from tables itself.

Regards

Prabhu .

Former Member
0 Kudos

Hi,

In the function module there is a option where you can get the only the top most BOM or multi-level components for a single FERT(finished product).

While calling the FM, if you set the option

MEHRS = 'X', then for a single FERT you can get all the components,

but if you ignore this parameter, you shall get only the top most BOM.

lakshminarayanan

Mark all helpful answers for points

Former Member
0 Kudos

Former Member
0 Kudos

Hi Lakshminarayanan,

My requirement is not to get the BOM. In contrast to it I want to get the top most level material for a given component.

Taking an example: Let us say 'A' has a component BOM 'B'. And 'B' when exploded further has a component 'C'. Now given material 'C', i want to track it reverse and tell that 'A' is the top most level material for 'C'.

Hope I have been able to explain my requirement better.

Regards,

Gayathri N.

0 Kudos

Hi gayathri,

I got your requiremen. You are asking way to find out a finished product based on a semi-fininshed material. It is something similar to CS15 transaction. You cannot get this feature in one shot.

Try using this FM 'CSEP_MAT_BOM_SELECT_WHERE_USED ', which shall take the material as a parameter. When yuo execute this FM,it shall give the next higher level component in the hierarchy.

Lakshminarayanan