Fixing indicator for BOM explosion marked by default
Hello Experts,
I'm in a repetitive manufacturing scenario and I want to know if it is possible to generate planned orders with Fixing indicator for BOM explosion marked by default. Does anybody know if it can be done??
Hello Laura
As far as I know, this is not possible to do using customizing, however, you can do that using BAdI
MD_PLDORD_CHANGE.
Check the following document for more details about the BAdIs available for MRP:
BAdIs for MRP
BR
Caetano
Similar Messages
-
RFC BAPI for BOM explosion with parametric effectivity
Hello,
I'm searching for a RFC enabled BAPI for BOM explosion which allows to evaluate parametric effectivity.Hi you can also check CS_BOM_EXPLOSION_MAT
If its not remote enabled, write a custom fm(Remote enabled) and wrap this Fm. -
What are the alternatives for BOM explosion?
Hi.
I am developing a report based on ck13n.I need the product costing of the Whole BOM upto the lowest level. right now i am js gettin the costing of the topmost heirarchy.Hw can i explode the BOM to the lowest level??? what are the alternatives?These are the userexits available for the BOM transactions CS11, CS12, CS13.
Exit Name Description
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
PCSD0014 Knowledge-Based Order BOM: Status
regards
Abhay.
<b>rewards point</b> -
FM for BOM Explosion (BOM is with model-unit effectivity)
HI Experts,
I am looking for a bom explosion function module that allows me to explode Model-Unit BOMS.
For example, if I have a bom that uses Change Master to control Model-Unit effectivities, I want to able to provide a Model and Unit, and explode the neccessary components at the next level.
Does anyone know such function modules?
Thanks in advance,
CharlieWas able to do it by using the following code:
MTCOM-MATNR = LKL_MATNR.
MTCOM-KENNG = 'MC29M'.
MTCOM-SPRAS = SY-LANGU.
MTCOM-NOVOR = 'X'.
CALL FUNCTION 'MATERIAL_READ'
EXPORTING SCHLUESSEL = MTCOM
IMPORTING RETURN = MTCOR
MATDATEN = MC29M
TABLES SEQMAT01 = DUMMYTAB
EXCEPTIONS MATERIAL_NOT_FOUND = 4
PLANT_NOT_FOUND = 8 .
CALL FUNCTION 'ECM_PROCESSOR_INIT'
EXPORTING
TOPMATNR = LKL_MATNR
E_TECHS = LKL_TECHS
DEFAULT_TECHS = 'X'
FREIG_KALKULATION = 'X'
FREIG_PLANUNG = 'X'
FREIG_FERTIGUNG = 'X'
display = 'X'
no_pop_up = ''
FREIG_EINGABEBEREIT = 'X'
BATCHLAUF = SYST-BATCH
TABLES
VALID_OR_INVALID = CCVAL
PARAMETER = PARAM
OUTPUT_PARAMETER = ECM_SL
EXCEPTIONS
exit_in_dynpro = 4
OTHERS = 0.
Then with this fm to explode bom;
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
aumgb = 'X'
capid = 'PP01'
datuv = sy-datum
ehndl = '1'
emeng = 1 "required qty
mktls = 'X'
mehrs = 'X'
mmory = '0'
mtnrv = 'TEST12345'
stlal = '02' "Alternative
stlan = '1'
SVWVO = 'X'
STKKZ = 'X'
werks = '0001'
VRSVO = 'X'
IMPORTING
topmat = topmat
dstst = dstst
TABLES
stb = stb
matcat = matcat -
I want program for bom explosion
hi
i want program for bom explosionHi,
Using the function module below.
FM. CS_BOM_EXPL_MAT_V2
The required fields for this function module are :
Material
Plant
Date
Application(CAPID)
Values for CAPID can be found in table TC04
For production BOM it is PP01 .
The return parameter STB of type STPOX will contain all the BOM sub components. Using field IDNRK field of the STB table retrieve the subcomponents you need.
Else there is alternate approach too.
Chek the code below.
report zppprm_1087_bom.
include zbom_data_declarartion.
include zbom_selection_screen.
include zform_used.
*initialization
initialization.
prm1 = 'SELECTION'.
prm2 = 'Materials'.
START-OF-SELECTION
start-of-selection.
Get the data from data base tablees
perform get_data.
*Format the final data
perform final_data.
*Display the final data
perform display_final.
*& Include ZBOM_DATA_DECLARARTION
T Y P E - P O O L S
tables: mara, "Material Master
mast, "Material to BOM Linkage
stpo. "BOM item
type-pools: slis .
types: begin of ty_mara,
matnr type matnr,
mtart type mtart,
end of ty_mara.
types: begin of ty_mast,
matnr type matnr,
werks type werks_d,
stlan type stlan,
stlnr type stnum,
stlal type stalt,
end of ty_mast.
types: begin of ty_header,
matnr type matnr,
werks type werks_d,
end of ty_header.
types: begin of ty_stpo,
stlty type stlty,
stlnr type stnum,
stlkn type stlkn,
stpoz type cim_count,
idnrk type idnrk,
meins type kmpme,
menge type kmpmg,
preis type cprei,
peinh type peinh,
end of ty_stpo.
types: begin of ty_bom,
matnr type matnr,
werks type werks_d,
idnrk type idnrk,
meins type kmpme,
menge type kmpmg,
end of ty_bom.
Internal tables used in the code
data: it_stpo type standard table of ty_stpo,
it_mara1 type standard table of ty_mara,
it_mara2 type standard table of ty_mara,
it_mast type standard table of ty_mast,
it_bom type standard table of ty_bom,
it_header type standard table of ty_header.
Work Areas used in the code
data: wa_mast type ty_mast,
wa_stpo type ty_stpo,
wa_mara type ty_mara,
wa_bom type ty_bom,
wa_header type ty_header.
data: v_matnr type mara-matnr.
data: col_pos type i.
data: sortcat type slis_t_sortinfo_alv,
sortcat_ln type slis_sortinfo_alv,
fcat type slis_t_fieldcat_alv,
s_fcat type slis_fieldcat_alv.
data: obj_hieralv type ref to cl_salv_hierseq_table.
data: it_binding type salv_t_hierseq_binding,
wa_binding type salv_s_hierseq_binding.
*& Include ZBOM_SELECTION_SCREEN
*-Declaration of selection screen forthe program-*
selection-screen begin of block blk1 with frame title prm1.
selection-screen begin of line.
selection-screen comment (10) prm2 for field so_matnr.
Selection Option.
select-options : so_matnr for v_matnr.
selection-screen end of line.
selection-screen end of block blk1.
*& Include ZFORM_USED
*& Form GET_DATA
text
form get_data .
*LOADING FINISHED MATERIALS INTO AN INTERNAL TABLE
select matnr
mtart
into table it_mara1
from mara
where matnr in so_matnr
and mtart = 'FERT'.
if sy-subrc = 0.
sort it_mara1 by matnr.
endif.
*LOADING CORRESPONDING FROM Material to BOM LINK TABLE
if it_mara1 is not initial.
select matnr
werks
stlan
stlnr
stlal
into table it_mast
from mast
for all entries in it_mara1
where matnr = it_mara1-matnr .
if sy-subrc = 0.
sort it_mast by stlnr.
loop at it_mast into wa_mast.
move-corresponding wa_mast to wa_header.
append wa_header to it_header.
endloop.
endif.
endif.
*LOADING CORRESPONDING BOM COMPONENTS FRON BOM ITEM TABLE
if it_mast is not initial.
select stlty
stlnr
stlkn
stpoz
idnrk
meins
menge
preis
peinh
from stpo
into table it_stpo
for all entries in it_mast
where stlnr = it_mast-stlnr.
if sy-subrc eq 0.
sort it_stpo by stlnr.
endif.
endif.
*LOAD SEMIFINISHED MATERIAL
select matnr
mtart
from mara
into table it_mara2
where mtart = 'HALB'.
if sy-subrc eq 0.
sort it_mara2 by matnr.
endif.
endform. " GET_SELECT
*& Form FINAL_data
text
form final_data .
loop at it_stpo into wa_stpo.
clear wa_mara.
read table it_mara2 into wa_mara
with key matnr = wa_stpo-idnrk
binary search.
if sy-subrc ne 0.
continue.
else.
read table it_mast into wa_mast
with key stlnr = wa_stpo-stlnr
binary search.
if sy-subrc eq 0.
clear wa_bom.
wa_bom-matnr = wa_mast-matnr.
wa_bom-werks = wa_mast-werks.
wa_bom-idnrk = wa_stpo-idnrk.
wa_bom-meins = wa_stpo-meins.
wa_bom-menge = wa_stpo-menge.
collect wa_bom into it_bom.
move-corresponding wa_mast to wa_header.
append wa_header to it_header.
endif.
endif.
endloop.
sort it_header by matnr werks.
sort it_bom by matnr werks idnrk.
delete adjacent duplicates from it_header comparing matnr werks.
endform. " FINAL_data
*& Form display_summary
text
form display_final.
wa_binding-master = 'MATNR'.
wa_binding-slave = 'MATNR'.
append wa_binding to it_binding.
*Process of binding the header and BOM info in hirarchial form
try.
call method cl_salv_hierseq_table=>factory
exporting
t_binding_level1_level2 = it_binding
importing
r_hierseq = obj_hieralv
changing
t_table_level1 = it_header
t_table_level2 = it_bom.
catch cx_salv_data_error .
catch cx_salv_not_found .
endtry.
*to dispay the info
call method obj_hieralv->display.
endform.
Hope this will help you,
With best wishes,
Rama. -
Set cad indicator for bom?
Hello,
i have the following question in the CAD/CAD-Desktop-environment:
i copied material-bom-data from one plant to another by using batch-input. i didn't notice, that with batch-input the cad indicator cannot be set.
The result is, that i have all bom without this cad-indicator and now it is not possible to work properly with these data in the cad-desktop.
my question is: is it possible to set this field afterwards? Is there a function module to do this (i have'nt found one to CHANGE this field)? Or is it possible to simply set the fields in the database (STKO-CADKZ & STPO-CADPO) without crashing any data references?
Or do i have to delete all the bom an create it again the right way?
Thanks for any help
SvenHi Sven,
try the function module BAPI_DOCUMENT_CHANGE2. In the table DOCUMENTSTRUCTURE you can handle document stuctures.
regards Iring -
Function module or include for BOM explosion
Hi,
Please can any body tell me what is the function module used for exploding the BOM components.
As I need this for developing a new report
Regards,
KumarKumar,
Try using "CS_BOM_EXPLOSION_MAT" or "CS_BOM_EXPL_MAT_V2".
Hope this is helpful, reward your points if so,
Regards,
Prasobh -
FM for BOM Explosion at Production Order
Hi all,
I am using 'CS_BOM_EXPLOSION' to get the list of component of a material, for rework order we used to delete some component in that case this FM gives same list of component, so I need a FM which gives me list of component with respect to Production Order.
Thanks
VarunHI,
You can always get the BOM Material Code by:
Select Single * from AUFM where AUFNR = w_order_no.
& then use FM CS_BOM_EXPL_MAT_V2 to fine out the Materials consumed by the BOM material.
I hope this helps,
Regrads
Raju Chitale -
Hi All,
Can you please tell me - where the BOM Explosion No. is assigned with Plant?
Is there any setting for BOM explosion no. - number range assignment with plant.
Thanks in advance
regards,
snehasish maityDear snehasish
1. Starting from the MRP menu, choose Master data => BOM explosion number => Edit.
The system displays the initial screen for maintaining the BOM explosion number.
2. Choose .
The screen for maintaining the BOM explosion numbers now appears.
3. Choose New entries.
A screen now appears where you can enter new BOM explosion numbers.
4. Enter data as required.
o BOM explosion number
The BOM explosion number is the object for which the following data is maintained. It can be entered alphanumerically.
o Fixed key date
The fixed key date determines which bill of material is exploded.
o Plant
You can also specify a BOM explosion number for a specific plant. Enter the appropriate plant in this case.
o Material
You can specify a BOM explosion number for a specific material. Enter the appropriate material in this case.
o Status
You can set the BOM explosion number to active or inactive using the status field. Only active BOM explosion numbers are used in the planning run.
5 Save your entries.
Thanks
G. Lakshmipathi -
Bom Explosion first level, if first level having phanthom it has to explode
Dear All,
Kindly tell any function module is available for BOM explosion first level.
if first level having any sub assembly part, bom not to explode below level.
if first level having any phanthom material, it has to explode below level, in this phanthom material having any below phanthom material part of bom, it also explode below level.
it means only phanthom material has explode below level, no sub assembly part.
If any functional module is available for this bom explosion.
i tried functional module - CS_BOM_EXPL_MAT_V2, but if i put "X" in field - MEHRS, sub assembly part also exploding below level.
kindly help on this.
Regards,
sakthiHi,
i tried functional module - CS_BOM_EXPL_MAT_V2, but if i put "X" in field - MEHRS, sub assembly part also exploding below level.
Ans: Do not set this MEHRS indicator. This will explode the BOM to first level.
Then add another loop on first level materials to check if any of them is phantom and explode the phantoms using same FM module in a loop. Follow this until all are done.
Regards,
Santosh Sarda -
Is there any other API for BOM Explosion in R12 other than the one given below?
Bompexpl.Exploder_Userexit
Thanks
Manuhi Janardhan,
phantom assembly is the assembly which is not kept in stock rather it consumes directly.
Use of phantom assemblies are as below
Phantom assemblies are assemblies that have their own product structure, but whose assembly does not actually physically exist. The components of the phantom assembly are incorporated directly in the superordinate product. The product structure of the superordinate product contains a reference to the phantom assembly.
example - A car with music system.
During backflush, only the goods movement for the phantom assembly components are posted. The phantom assembly is marked as backflushed but does not trigger any goods movement.
Experts pl correct me if i'm wrong.
Regards,
Anil -
Date of BOM Explosion/Routing in the production order
Dear gurus,
i would like have the Date of BOM Explosion/Routing in the production order same the "Basic start date" .
I setting the value 1 = Basic start DATE in the customizing transaction OPPQ and OPPR but the system calculate this date wrong.
Are the the other setting for this necessity ?
Thanks a lot
Daniele
PP TEAMDear Toto,
The standard procedure is that the system first checks whether a BOM explosion number exists for the BOM. If one does exist,
the BOM is exploded using the fixed key date contained in the BOM explosion number. If a BOM explosion number does not exist,
the BOM is exploded with the order start date.
Check the setting in OPPQ for BOM explosion.
Regards
S Mangalraj -
BOM explosion in chracteristic Plng
Hi
I am trying to map a scenario by characteristic plng. scenario is like, i have steel industry product which is differentiated on basis of grade, dia, shape (major characteristics). and my major objective with plng of finished good is to aggregate molten metal requirement (SFG) on grade wise.
so what I planned is i made configurable material grade wise using material type KMAT, plng stratagy 56.
I have defined character (dia&shape, grade) and assigned to a class type 200(as per literature on sap help). and in class is defined for bom explosion.and in class object are assigned as per characteristic.
i have defined BOM for configure material ,,,,bom item is class(as defined above one) with all required setting.
I have created planning table & profile in DM.
when i m creating PIR ...characteristic wise it is taking but on taking MRP run it is not exploding bom....i.,e it is not picking right material as per class characteristic match.
help me on this
thanks in advance
RajeshHi prakash
yaa...it is variant based planning. but it is based on characteristics and for that I am using class type 200 & strategy 56. as per your reply if I go for strategy 54 than i have to use class type 300 and I have to make configure profile that is not my case.
In my scenario first i have to create PIR for configure material for that pre-requisite is planning profile, planning table & chracteristics combination. I have maintained all these, these thing are all reflected when i am creating PIR (MD61) but when I am taking MRP run Planned order for configure material is generated but dependent requirement is not generated for down level material. I am using class item as BOM component, I don't know why it is not picking right component as per characteristics.
thanks
Rajesh -
Hello Gurus,
Is there any field for BOM explosion number in production order header data too?One field is in assignment tab in CO02 but I guess it is at item level.
I dont find this field at header level but perhaps it is hidden. Do you see it?
cheers
SunnySunny,
This is just an understanding problem i think. In SAP the header data is maintained in 2 tables infact in 3 tables.
1. - AUFK - Basically the order master table.
2. - AFKO - Basically the Header table, containing details of the order which is common if the order has multiple items.
3. - AFPO - Basically this is where specific to the Order Item data is stored, for normal order you can find only one item per order. But you can really see the difference when you have co-products in your order, here in AFPO table you can see multiple items for the order.
Hope this helps your understanding,
Regards,
Prasobh -
Use of CS_BOM_EXPL_MAT_V2 fro BOM explosion on plant basis
hello ,
I dont have any documentation for this FM and need to use it for BOM explosion on plant basis plz let me knw how to use it?Try something like this :
* Tables "call CS_BOM_EXPL_MAT_V2 "
DATA: BEGIN OF t_stb OCCURS 0.
INCLUDE STRUCTURE stpox.
DATA: END OF t_stb.
DATA: BEGIN OF matcat OCCURS 50.
INCLUDE STRUCTURE cscmat.
DATA: END OF matcat.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
auskz = ' '
capid = 'PP01'
datuv = sy-datum
emeng = '1.000'
stlan = '1'
stlal = mast-stlal
mtnrv = matnr
mehrs = 'X'
mmory = '1'
stpst = '0'
werks = werks
IMPORTING
topmat = selpool
dstst = dstst_flg
TABLES
stb = stb
matcat = matcat
EXCEPTIONS
material_not_found = 4
no_plant_data = 8
no_bom_found = 12
no_suitable_bom_found = 16.
Hope this helps,
Erwan
Maybe you are looking for
-
Hi, i need to know , how many internal oder is in a center ? Please advise if you can pull list of internal oder which assigned to cost center> thanks a bunch peace
-
Hey, wonder if anyone has had this problem and knows how to solve it. I have a book with details on how to solve the error but its hard to understand. The error is: 80004005 - Data source name not found and no default driver specified. In the book it
-
Hi. Good morning. I am new to this SAP field. I want to know the latest versions in SAP ABAP. What are the different versions that are available in SAP ABAP ? When did they come into existence ? The differences between older and newer versions of SAP
-
Hello Everyone, I am sorry if someone asked this question before but I couldn't find it even after spending too much time. Anyways, I am a new iPhone user and have created some picture folders using iTunes. What I understood after reading some articl
-
Two MAJOR Safari 6 issues...
First is the "Search Google Or Enter An Address" bar, before if I wanted to go to Walmart.com all I would have to do is type Walmart and Safari would add the ".com" for me. Now if I just type Walmart it will Google search for Walmart instead of takin