EXPLODING BOM !!
Hello all,
I never worked with such a kind of assignment.I have to
explode CS_BOM_EXPLOSION.I got syntax but could not retrieve the data.In this case
assume li_datuv is what user enters ie budat
li_werks is plantcode
li_mtnrv is material no.
i have declared STARTMAT as internal table of type CSTMAT. and further declared i_XXX tables based on corresponding structures.
Wil be definitely rewarded.
loop at i_mseg.
li_datuv = i_mseg-budat.
li_mktls = 'X'.
li_mehrs = 'X'.
li_mtnrv = i_mseg-matnr.
li_mmory = '1'.
li_stlal = '001'.
li_werks = s_werks.
li_svwvo = 'X'.
li_vrsvo = 'X'.
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
DATUV = li_datuv
MKTLS = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = li_mtnrv
STLAL = '01'
SVWVO = 'X'
VRSVO = 'X'
WERKS = li_WERKS
IMPORTING
TOPMAT = STARTMAT "includes structure CSTMAT
TABLES
STBD = i_tbd "includes structure CSXDOC
STBE = i_tbe "includes structure CSXEQUI
STBK = i_tbk "includes structure CSXKLA
STBM = i_tbm "includes structure CSXMAT
STBP = i_tbp "includes structure CSXGEN
STBT = i_tbt "includes structure CSXTDL
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MISSING_AUTHORIZATION = 3
NO_BOM_FOUND = 4
NO_PLANT_DATA = 5
NO_SUITABLE_BOM_FOUND = 6
OBJECT_NOT_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
endloop.
goto tcode cs13 and check for some entries...
check it with se37.
u want to get the child materials when passing FERT ( Upper to lower hierarchy )...
the below code part gets all its child hierarchically for a FERT part in a plant..check whethre its usefull..
DATA:wk_bom TYPE stpo-menge.
DATA:it_stpo LIKE STANDARD TABLE OF st_stpo.
DATA:it_stpo1 LIKE STANDARD TABLE OF st_stpo.
PERFORM get_stpo_data USING so_matnr so_werks '1'.
LOOP AT t_stpo[] INTO s_stpo.
MOVE s_stpo-component TO st_stpo-matnr.
MOVE s_stpo-comp_qty TO st_stpo-menge.
APPEND st_stpo TO it_stpo[].
CLEAR st_stpo.
ENDLOOP.
ENDDO.
LOOP AT it_stpo[] INTO st_stpo.
REFRESH t_stpo[].
PERFORM get_stpo_data USING st_stpo-matnr so_werks '1'.
LOOP AT t_stpo[] INTO s_stpo.
AT FIRST .
MOVE st_stpo-menge TO wk_bom.
ENDAT.
MOVE s_stpo-component TO st_stpo-matnr.
st_stpo-menge = s_stpo-comp_qty * wk_bom.
APPEND st_stpo TO it_stpo[].
AT LAST.
CLEAR wk_bom.
ENDAT.
ENDLOOP.
ENDLOOP.
SORT it_stpo[] ASCENDING.
*Sum up all menge for a part
LOOP AT it_stpo[] INTO st_stpo.
COLLECT st_stpo INTO it_stpo1[].
CLEAR st_stpo.
ENDLOOP.
REFRESH it_stpo[].
it_stpo[] = it_stpo1[].
FREE it_stpo1[].
*& Form get_stpo_data
* text
* -->P_SO_MATNR text
* -->P_SO_WERKS text
* -->P_0469 text
FORM get_stpo_data USING p_so_matnr TYPE marc-matnr
p_so_werks TYPE marc-werks
value(p_0469) TYPE any.
CALL FUNCTION 'CSAP_MAT_BOM_READ'
EXPORTING
material = p_so_matnr
plant = p_so_werks
bom_usage = p_0469
TABLES
t_stpo = t_stpo
EXCEPTIONS
error = 1
OTHERS = 2.
ENDFORM. " get_stpo_data
Similar Messages
-
Error in component quantity while exploding BOM
Hi
We are facing error while exploding BOM
i.e. the component quantity is 11.111 YD in cs03
but while exploring in CS13 we are getting component qty as 12 YD
Note : there is no rounding value maintained in the material master
waiting for your valuable response
Regards
BarlaHi Barla
Check the field "Roundoff" in transaction OS29, and maintainted it "1"
Regards -
Can we explode BOM without L as item category in ME21N
Dear all
Can we explode BOM without selecting the item category L in ME21N transaction?
Thank youHi,
What is the requirement for the same?
Regards,
Arpit -
How to explode BOM in vendor return delivery ?
I am working on creating item categories that will help explode BOM
But I have to do that for vendor return delivery
The BOM (structure A or B) settings are visible in item category for sales order but not for delivery item
So, how can I make an item category with BOM , for delivery (no sales order will be used) ?Hi,
J1IS is only to reverse exice duties which were captured earlier. in oder to cancel the excise you are using J1IS. However if you wich to pass the accounting entry for the same you ahve follows as below.
it will cancel the excise invoice .If u go to J1IS and cancel the document only the excise invoice created will be cancelled, no accounting entries will be generated. In order to capture accounting entries you have to fetch the accounting document of J1IS through table j_1iexcdtl and j_1ipart2, pass a reversal entry for the accounting document through FB08.
As per norms there is no possibility of reversal entry for CST as it will to material cost you have to pass the entry in FI.
Hope this helps you. -
Is it possible to selectively block re-explode BOM in Sub-contracting PO ?
In our business scenario, sometimes we are directly adding PO components in the Sub-contracting PO in addition to the existing components that have come in through BOM. After saving and somedays later when the user goes to edit PO through ME22N, since the components button & re-explode BOM button are very close, users by mistake press re-explode BOm and also save the PO. The directly added components go out and hence not consumed while GR. Is it possible to selectively block the re-explode BOM through PO user exit or any other method?
Some amount of user training should help.
If not discuss with your abaper if badi - ME_PROCESS_PO_CUST can be used or you can find user exits with a search using MM06E* -
Prod Order Type - do not explode bom
Hi Gurus,
Can we set a certain order type not to explode bom at order creation? Thanks for the advice!
Regards,
ManojI thnk you may create an alternative BOM which does not contain any components and select it for the order type, please go to customization OPL8, there is a field for BOM application for certain order type.
Then, go to customization Production > Basic Data > Bill of material > Aternative determination, there are 3 transactions for determining BOMs associate with BOM application (e.g. selection ID etc), please try if you can confirue them to have the system select the alternative BOM. -
Hello All,
In Purchase req, pur order for subcontracting there is a Explode BOM push button in material data tab page. My requirement is that when user will click on it, system should give a warning message that" Do you want to Reexplode BOM". How can I do thisnot possible with standard settings, go for ABAP development
-
Hi All,
I have created a sub contract PO. In the material data tab the 'Explode BOM' icon was not appearing. Only the 'Components icon' is appearing.
I have maintained the BOM correctly in CS01. Used item catergory as L.
Why is it so I am not getting the Explode BOM icon in PO?
Regards,
JagJagan,
You need to maintain the item category as 'L' in subcontracting PO too.
Then you will have explode BOM icon in item tab.
Hope this hels you.
SmanS
Edited by: SAP PP Consultant on May 6, 2009 1:49 PM -
Unable to explode BOM material
Hello PS Gurus,
I am unable to explode BOM material ( M) in CN22 for one network activity (A). The same material M can be exploded in same network but different activity (B)
Please throw some light in this
MMHello All,
Thanks for ur help.
I found out that date of the validity in CN22 made the issue.
Many thanks again.
Enjoy ur evening.
Thanks
MM -
Function Module to Explode BOM
Hi,
I need a function module to explode a BOM. The input for the funcion module is the material number and when I Execute, it should explode the BOM.
I found a couple of function modules, but my problem is I dont have a Sales Order Number, which is a Mandatory parameter for all these FMs.
So, could you please give a FM which explodes the BOM by taking the Material Number, Plant etc.
-PriyaPriya,
CS_BOM_EXPLOSION_MAT
CS_BOM_EXPL_MAT_V2
Also you can try searching CS* in transaction SE37.
Regards,
Prasobh -
Explode Bom in Purchase Order without Subcontracting
Hi Colleagues,
I have a sales BOM to represent a 'kitted item' (Lets say TV and TV stand) that are stocked as standard individual products.
These component level items are purchased from the same supplier
Is there a way of being able to raise a purchase order for the BOM header and then the PO explodes the component items and quantities? We are not using subcontracting, we simply want to be able to order the Kit header and then suggest the sub components that we can receive them seperately
Thanks
SteveHi,
In retail there's a similar functionality called structured article:
http://help.sap.com/saphelp_47x200/helpdata/en/2b/b03886df3611d1953b00a0c930e0da/frameset.htm
...but in standard SAP you have no such option - as per my best knowledge.
Generally, you get PurReqs during MRP run and you will create a PO from several individual PurReqs that belong to one vendor.
Other option is to copy the same PO (that already contains the components).
The BOM function in PO is for subcontracting exclusively as I know.
Regards,
Csaba -
Setting for "Exploding BOM in Process order"
Hello All,
I have a requirement where I want to create BOM for sales order using CS61 and then I want to explode this BOM automatically in Process order(Production order) and it should happen automatically.Please let me know the settings for the same.
Regards,
RohitHi Subhro,
I thought you are talking about the BOM material for the ref technical object say functional location or equipment in the service order. If you have maintained the BOM for the equipment you can pull the all the component list in the component tab.
In the component tab click on the List button available in the component tab. You will see the list of BOM material.
DP -
Re-exploding BOM at conversion of planned order to production order
Hi, all.
I'd like to be able to specify that the planned orders I'm converting to production order re-explode the BOM on the scheduled date rather than the basic date of the production order.
I want to be able to do this in customizing rather than specifying a BOM Explosion Date (fixed key date) in the planned order or independent requirements. Is there anything in customizing that could do this?
Thanks!
SarahHi Sarah,
I think you have checked the note:
391846 Modif: Reading master data when converting planned order
Because only with the modification of this note, you will be able to re-explode the BOM when converting the planned order to production order, however, there is no way to set the BOM explosion date to the scheduled date during the conversion, there is no such customizing as the note only add three action for this function:
' ' Do not read
'1' Read with explosion date from planned order
'2' Read with newly determined explosion date
So if you need such function, you may try to develop the modification by yourself.
Regards,
Rachel -
Hi
I'm looking for FM which summarize exploded multi-level BOM. To explode I use CS_BOM_EXPLOSION but I want sum of items on lowest level too.
please help me.Hi Magdalena,
Have you looked this FM <b>CS_BOM_EXPLOSION</b> or <b>CSAP_MAT_BOM_READ</b>?
Hoep this will help.
Regards,
Ferry Lianto
Please reward point if helpful. -
Hi All,,
I m working on VA01...
the case is that if Shipping condition is entered as 'Home Delivery ' the item category should be ZTAB.....
its happening ...and as BOM explodes the line items also getting changed as per the config...i.e. Box Level changes to ZTBB and Comp Level to ZTBC......
its working fine....
now case 2 is if after BOM exlopding ,customer wants to change the Shipping Condition to UPS...
automatically the Item category should also change and all line items wants to redetermine the item category.....to ZPNS and same with line items i.e. BOX level to ZSNP....comp level...etc.
it means for redetermining the item category , BOM has to explode again ......
but how to do that????
can any one suggest me ,is thr any possibility for that......
if so then how....
Plz help me...
Thnx
Rohitno clue
-
Hi gurus
We have a question which your team may be able to help us with. We have a need to re-explode Sales BoMs. I am not aware of a way to achieve this within the same document. You can do it when copying from one document to another.
Specifically we would like to update the BoM on the sales order when the BoM has been changed. By update I mean add new items and remove items.
For example.
=============
Material: SalesBom#1 contains Mat1, Mat2, Mat3, Mat4 & Mat5. All quantity 1. In addition Mat6 & Mat7 were added in the order as sub-items to SalesBom#1.
This has been placed on an order that has not yet been fulfilled- delivery date is due in 3 months time.
After only 2 months SalesBom#1 has been changed and now contains: Mat1, Mat3, Mat4 & Mat6, Mat8 e.g. Mat2 & Mat5 were removed and Mat6 & Mat8 added.
The ideal solution would be to invoke a change either within the Order or via a report where you select the target Order(s) and or Sales BoM(s) + Document create date range.
The BoM on the order would be compared to the latest valid version, as @ run date, and the order amended as follows:
Higher Level Item Rejection Reason ABAP Code
10 SalesBom#1 (No change)
20 Mat1 10 (No change)
30 Mat2 10 OB Old BoM (Sets the reason for Rejection)
40 Mat3 10 (No change)
50 Mat4 10 (No change)
60 Mat5 10 OB Old BoM (Sets the reason for Rejection)
70 Mat6 10 (Although this was added to the BoM it is already present in the order as a sub-item of SalesBom#1 so it stays)
80 Mat7 10 (Never a part of either BoM version so it is left)
90 Mat8 10 (Part of the new BoM so added to the order)
==================
Can you please guide me on thisno clue
Maybe you are looking for
-
What's new in BI Content 7.35
Hi Folks, Please let me know what is new i[SAP NetWeaver BI Content BI content 7.35 like new scenarios or new objects? I am looking at this link: [SAP NetWeaver BI Content|SAP NetWeaver BI Content] They show: What's New with BI Content Addon 7.04? Wh
-
Issue in Installing Oracle Database 11.2.0.2
Hi All- I am trying to install Oracle Databse 11.2.0.2. I have downloaded patch - 10098816 for 32-bit windows version from Oracle Support. I am installing it on 32-bit Windows Server Enterprise, Service pack 2 machine. When I install it process till
-
Hi, my apple ID verification email does not contain the link for me to click in order to verify my account. Re-submitting has not worked, what can i do to verify/activate my account in order to access Icloud?
-
Please help i am facing below error while running the page Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1) Timestamp: Tue, 1 Feb 2011 06:20:12 UTC Message: Object doesn't support this prop
-
Matching color problem on HP Photosmart Premium
I just purchased the Photsmart Premium. I am using Corel Photopaint. The print heads are correctly aligned. I have color corrected using my program. However, the printed images do not match the colors on the screen. I photographed a party last night