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: 

BOM of Sales

Former Member
0 Kudos
112

hi experts

I have one problem I have 4 materials (ie for line item). i want all sub level from Bill of Material.

for each material i want sublevel from BOM.

in 4 materials one is Main Material and i want sub level from BOM.

In which talbe i should find these sublevel item

4 REPLIES 4

Former Member
0 Kudos
82

Hi,

First hit against the MAST table with the material number. Then hit against STPO with the internal BOM number to get the components. There are also some function modules that will do this to.

data: xmast type mast.

data: istpo type table of stpo with header line.

Select Single * from mast

where matnr = p_matnr.

If sy-subrc = 0.

Write:/ 'This material has a BOM'.

else.

Write:/ 'No BOM found'.

Endif.

write:/ 'Components'.

select * into corresponding fields of table istpo

from stpo

where stlnr = xmast-stlnr.

loop at istpo.

write:/ istpo-idnrk.

endloop.

Regards

JayR
Participant
0 Kudos
82

Try the function module

CUBM_MATERIAL_BOM_READ

i_matnr =

i_werks =

i_capid = PP01

I_Menge = 1

With Wishes

Jai

Former Member
0 Kudos
82

HI JAI,

CUBM_MATERIAL_BOM_READ

I can use this functional module but i have only 2 inputs ie

Material.

BOM Application.

for these 2inputs what i should to.................

Plz its urgent

Former Member
0 Kudos
82

HI JAI,

CUBM_MATERIAL_BOM_READ

I can use this functional module but i have only 2 inputs ie

Material.

BOM Application.

for these 2inputs what i should to.................

Plz its urgent