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

issue in cs02

Former Member
0 Likes
489

hi,

Any one can send a code for changing the BOM components ..

hi,

Any one can send a code for changing the BOM components ..

2 REPLIES 2
Read only

Former Member
0 Likes
462

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

Read only

0 Likes
462

Now i have to change the BOM in CS02

i got this function module, Could u explain about this FM

What r all the Input parameter i have to pass plz explain for all FM

CSAP_MAT_BOM_OPEN,

CSAP_BOM_ITEM_MAINTAIN, and then

CSAP_MAT_BOM_CLOSE.

Regards,

thanuskodi T.