on 01-26-2010 3:59 PM
we use CSKB to create an order BOM. within the bom, we do a material replacement for one of the components, so that it's bom can also be modified. At the time of replacement, the material bom has a status of 1, but after copying to the sales order bom, the status is changed to 3. this causes history tracking to turn on for the sales order bom, and we dont want that.
is this change of status configured soemplace?
tia
Hi,
Not sure this is right place, but you can test it.
Check in t.code OS25, whether sales BOM History required is checked. You can uncheck the box and test it.
The path for OS25 is SPRO->Production ->Basic data-> Bill of material ->General data ->Configure history requirements of BOMs.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have found what i think to be th eproblem. the default bom status is set to 3, which is fine for a material BOM, but it appears it is also being used for the order bom.
so... i decided to implement a method in BOM_UPDATE BADI. I copied some code from another message on this site, as follows:
method if_ex_bom_update~change_at_save.
data: wstko type cs01_stkob.
data: name_tstko(30) value '(SAPLCSBT)O1-STPOB[]'.
field-symbols: <tstko> type table.
assign (name_tstko) to <tstko>.
read table <tstko> into wstko index 1.
if sy-subrc = 0.
* if an order bom at status 03, change it to status 01
if wstko-stlty = 'K' and wstko-stlst = '03'.
wstko-stlst = '01'.
modify <tstko> from wstko index 1.
endif.
endif.
endmethod.
The code compiles and executes fine, but the change is not made. i am guessing it has to do with the value in name_tstko, since that program is not even in my program stack when i save the bom (i put a breakpoint at the assign statement, and ran CSKB. I have tried various values based on the code that IS in my stack, and it simply short dumps, apparently unable to assign the names.
this could potentially fix my status issue (and a couple of other issues) if i can get it to work. any help is appreciated.
dave
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.