For level in BOM component explosure . like in CS11 , CS12 ( Urgent )
Hello all,
i have all the material and the components for the material in an internal table .
Now i am not getting the logic for getting the level number of the component.
Now i am having the data in an internal table as in CS11 ,with out the yellow record which represents the header of the components .
And i am using the funtion module 'CSAP_MAT_BOM_READ'
BOM Header Material 1111 has the components 1121 and 1122. These components are at level 1
Component 1121 is a BOM Header as well and contains the components 1311, 1312 and 1313. These components are at level 2.
Component 1313 is a BOM Header as well and contains the components 1141,
i am getting out put as
material component
1111 1121
1111 1122
1111 1311
1111 1312
1111 1313
1111 1141
along with this i want the level number ...
Can any one please help me on this .
Thanks and regards ,
Prem
Use function module CS_BOM_EXPL_MAT_V2, and in the import parameter set the MEHRS to 'X" 9 Set Multi level explosion to true.
Like this -
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = C_CAPID
DATUV = P_DATUV
MTNRV = T_MAST-MATNR
STLAL = T_MAST-STLAL
STLAN = T_MAST-STLAN
WERKS = T_MAST-WERKS
MEHRS = 'X'
TABLES
STB = T_STB
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
Similar Messages
-
Hello logic for level in BOM component explosure . like in CS11 , CS12
Hello all,
i have all the material and the components for the material in an internal table .
Now i am not getting the logic for getting the level number of the component.
Now i am having the data in an internal table as in CS11 ,with out the yellow record which represents the header of the components .
Can any one please help me on this .
Thanks and regards ,
Prembetter to use the fn module
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01' " application area
DATUV = SY-DATUM
MEHRS = 'X' " for multi level bom explosion
MTNRV = P_MATNR "Header material
WERKS = P_WERKS " Plant
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
here in i_bom-stufe is the level of the bom.
regards
shiba dutta -
Automatic PR for non-stock BOM component for Subcontract PO
Dear Guru,
Can you any master please advice me on below question?
We have a subcontract PO with the BOM component of non-stock, can i know if there is possible for those non-stock BOM component to generate a Purchase Requisition automatically, any existing configuration that we can do?
Thank you very much,
Regards
Chee WeeHi,
You can use Material Type "NLAG" for Non-stock materials.
Non stock materials cannot be stored, right, hence the name non-stock.
Non-stock material includes materials that are not managed on an inventory basis (for example, small parts such as nails) though physically in stock.
You can create a BOM which contains an NLAG item or directly use in Production order also.
item Category "N" So system will create the purchase requisition when there is requirement.
We receive the non stock material using movement type 101. upon receiving the material will be consumed.
Please refer link below for better understanding.
BOM explosion in MRP for non-stock material
What is use of Item Category N(non-stock item) in BOM creation
Believe this could help your queries. TQ
rgds,
nanthakumar -
Overwrite material BOM component
Hi,
I am trying to over-write the component of a material BOM with another component in the same position. I am using FM CSAP_MAT_BOM_MAINTAIN for this. I am passing values to the the below parameters.
MATERIAL H.1013.2476
PLANT 3000
BOM_USAGE 1
ALTERNATIVE 1
VALID_FROM 01.01.2003
FL_COMMIT_AND_WAIT X
FL_DEFAULT_VALUES X
Values that I am passing in T_STPO
ITEM_CATEG L
ITEM_NO 0010
COMPONENT H.1013.4572
COMP_QTY 5.0
COMP_UNIT EA
Here initially the BOM component is H.1013.4570 and I am trying to change it to H.1013.4572. This should be like replacing H.1013.4570 with H.1013.4572 in the same position. This can be done by CS02. However when I am using the above FM and then checking CS03 i see 2 BOM components H.1013.4572 and H.1013.4572. So basically this is not a replacement.
I also tried FMs for the same activity but didn't get the desired result.
a. CSAP_MAT_BOM_OPEN
b. CSAP_BOM_ITEM_MAINTAIN
c. CSAP_MAT_BOM_CLOSE
Could anyone tell me how it can be done.
Regards,
RakeshI was looking into a possible solution for changing the BOM component. I tried to get the result with some other BAPIs however I found none to achieve the desired results.
However I found a possible solution with the original BAPI CSAP_MAT_BOM_MAINTAIN. After passing some possible combination of values I came to the conclusion that in table structure T_STPO type STPO_API03 we can use 2 fields u201CITEM_NODEu201D and u201CITEM_COUNTu201D to get the results (I see that these 2 fields have values in SAP Table STPO in fields u201CSTLKNu201D and u201CSTPOZu201D).
If we are passing the values to the below fields of the structure T_STPO, then the desired results can be achieved.
T_STPO (Mandatory Fields to get the result)
ITEM_CATEG L
ITEM_NO 0010
COMPONENT H.1013.4572 (New BOM component that would be replacing the old one)
COMP_QTY 4.0
COMP_UNIT EA
ITEM_NODE 00000016
ITEM_COUNT 00000032
Here, the only part that I am not sure of is whether ITEM_NODE and ITEM_COUNT can be passed from the 3rd party system. I believe that these are automatically generated numbers when a BOM component is created. -
BOM changes inputting the BOM component -reg
Hi Friends,
we would like to know the BOM quantity changes happened for a particular BOm component .
Using CS80 we have to input BOM header to know BOm changes , but our requirement is for a BOM component what changes are made and when they are made .
Our BOM component say a paint part number is used in many BOM headers
it is not possible to see CS80 by inputting one by one BOm header and check whether the BOM component quantity changes are there .
instead we would like to input BOM component and know when and what changes are made to its quantity (menge) in what BOM header by which use
please help
regards,
madhu KiranDear Madhu Kiran,
This is possible only if you are using ECM - Engineering Change number and you can obtain the details
from the tables STAS,STKO,MAST &STPO.
Without ECM I dont think its traceable.
Check & revert back.
Regards
Mangalraj.S -
Third part PR & PO - for structured article (BOM containing LEER article)
We have an interesting case:
Our article masters are as follows:
VOLL (main article) has sales order and purchase order unit CAR, while base unit of measure is PC.
This VOLL article has a LEER component (BOM) article defined in it.
The BOM component is defined for 1 CAR of VOLL article there is 1 PC of LEER BOM component.
In out 3rd party process:
When we create a 3rd party sales order, a purchase requisition is automatically created.
So in the sales order for a VOLL article entered in CAR the BOM component LEER article is automatically determined in PC.
But the issue is that when the purchase requisition is created it has only the main article VOLL in it and the BOM component LEER article is not determined.
Note: In the Purchase requisition the main article (VOLL) has units as PC which is the base unit of measure. (Because PR always have quantities in base units).
How can we make the LEER article (BOM component) appear in the purchase requisition and subsequently in the PO?
Usefull answers will be awarded!!!Check following link for understanding:
- [BOM in PO|http://www.sap-img.com/materials/bom-is-not-exploding-in-po.htm]
- Re: Automatic PR for non-stock BOM component for Subcontract PO
- Re: How to create a PR for BOM from a Project (WBS, Network or Activity) ?
Hope this can assist you.
Thanks & Regards
JP -
BOM: Component Substitution
Hi All,
How to set up in the system for auto substitute BOM component when the main component not available. I have tried the alternative item where the substitute item also maintained as BOM item and assigned alternative group as 1, priority 2, strategy 2, usage probability 100% as well. When I perform MD02, the result it seems not correct because system create PR for the main component even though the stock is zero. My requirement system auto switch to alternative item due to the substitute component still plenty enough stock. Your advice is appreciated.
Best regards,
MahnansaDear Mahnansa,
Plz find Mr. Mangalraj inputs on Altenative items in BOM
Eg:
If there's a material Alt2 which can be used instead of a material called Alt1,now we will first form an Alternative item group using this 2 material.It can be more than 2 materials also.
Now in our case after u enter Alt1 as the line item for a HALB or FERT,select that entire row and click on Item details or Press F7.In Item data screen,in the bottom under general data u can find the field for Alternative item group.
Click that and enter the values as follows
A-Alt Item Group
2- Priority
2- Strategy
70% - Usage probability ,now come back.
Now enter Alt2 as the line item and after that as i said select that row & press F7.
Click on Alt.Item group button and enter the values.
A,
1,
2,
30%.Now save.
Now let's assume this BOM is used for a HALB.Let's assume 10 quantity is mentioned in the BOM for each of this line item.
Now if there's PIR for say 100 quantity
After running MRP for the HALB the requirements will be seen as Alt1 700 required & Alt2 300 required.
Here for the planning Only Usage Probability comes into picture.
When you are doing the production booking for making 100 quantities,the system shows 1000 quantity of Alt1 and no Alt2 will be seen in good's movement's screen.
Now the priority comes into picture,as we have given priority as 1 to Alt1 the systems proposes 1000 quantity of Alt1.
So while planning Only usage probability is considered and requirements fallas as per that.
While doing Production booking priority comes into picture.
So Here as we have maintained priority 1 and strategy as 2 for Alt1,the systems proposes 1000 quantity of Alt1.
If your strategy is then the planning & production will be as per the usage probability.
Second case:
If for Alt1 A & for Alt2- A
2 1
2 1
70% 30%
Planning will be 700 & 300 of Alt1 & Alt2.
But for production booking 1000 & 300 of Alt1 , Alt2 will be proposed by the system.Because For Alt1 though the priority is 2,but its strategy is 2.
For Alt2 priority1 but strategy is 1(Manual maintenance).
also Plz check the below links
[Alternative item in BOM;
[Alternative BOM;
[http://help.sap.com/saphelp_erp2005vp/helpdata/en/f4/7d3f9344af11d182b40000e829fbfe/frameset.htm]
Regards
kumar -
SG:50, Cannot convert planned orders to prod orders at BOM component level
Test scenario for Strategy Group 50 (Planning without final Assembly)
Product Structure
Material--> SG50.00 > FERT> (Strategy Group: 50)
Material---> SG50.02 --> HALB --->(Strategy Group: 40)
Material---> SG50.04 ---> ROH --->(Strategy Group: Blank)
Maintained PIRs and Ran MRP at the header level, Planned orders are created
with order type VP at levels of BOM structure. Thus cannot covert planned orders
to production orders without having sales order.
But my understanding of Strategy Group 50, is BOM components can be produced before hand (i.e.
before sales orders are recieved ). Now planned orders with order type VP not able to convert
planned orders to prod orders at BOM component levelStuti/Prasobh:
Thanks for your inputs, it answers my question
Intially maintained Individual/Collective indicator to "2" at header level (FERT), which is why all the planned orders are created with order type VP
Changed the Individual/Collective indicator to "blank " at header level (FERT), and maintained Individual/Collective indicator to "2" at component level
Reran the MRP (MDO2), with the following settings --> Delete and Recreate planning data and Check mark on Also plan on unchanged components
Able to see planned orders at component level with order type LA
Due points have been assigned -
FM For Finding if Material BOM exits for BOM component.
Hi,
Is there any FM or BAPI to find out if there is any material BOM exists for the BOM component.
How is Indicator assembly get assighned..?
Any inputs would be appreciated.
Thanks,
MarkSample program.
report zrich_0001 .
* Internal Tables
data: i_stpov like stpov occurs 0 with header line.
parameters: p_matnr type marc-matnr,
p_werks type marc-werks.
start-of-selection.
perform where_used tables i_stpov
using p_matnr
p_werks.
loop at i_stpov.
write:/ i_stpov-matnr, i_stpov-werks.
endloop.
* FORM WHERE_USED.
form where_used tables itab
using matnr
werks.
data: selpool like mc29s.
data: eqpcat like cscequi occurs 0.
data: kndcat like cscknd occurs 0.
data: matcat like cscmat occurs 0.
data: prjcat like cscprj occurs 0.
data: stdcat like cscstd occurs 0.
data: tplcat like csctpl occurs 0.
clear itab. refresh itab.
call function 'CS_WHERE_USED_MAT'
exporting
datub = sy-datum
datuv = sy-datum
matnr = matnr
postp = ' '
stlan = ' '
werks = werks
stltp = ' '
importing
topmat = selpool "Not Currently Used
tables
wultb = itab
equicat = eqpcat "Not Currently Used
kndcat = kndcat "Not Currently Used
matcat = matcat "Not Currently Used
stdcat = stdcat "Not Currently Used
tplcat = tplcat "Not Currently Used
prjcat = prjcat "Not Currently Used
exceptions
material_not_found = 02
no_where_used_rec_found = 03
no_where_used_rec_selected = 04
no_where_used_rec_valid = 05.
endform.
Regards,
Rich Heilman -
GR for scheduling agreement pulling old BOM component
We have a scheduling agreement that contains a material BOM as a line item. This BOM was originally created with one component, but then was changed to a different component months later (in February). We then created a new scheduling agreement AFTER the BOM was revised (in March), however, when we do a GR for that BOM item, it is pulling in the old component. If we look directly at the scheduling agreement in ME38, it pulls in the correct, new component.
Any thoughts? We've checked the validity date on the BOM and it is correct so I don't know why it would be going back to the old component.
Thanks in advance for your help.hi,
do u have two levels of bom for that material..?? 1st level would be first bom..and the second level would be revised bom..is it right..? or u have just added the materials in the same bom..?? let me know this.
check the delivery schedules which you have maintained for that scheduling agreement and posting date for grn too.
regards,
prasath -
BOM Component Query for MRP during BOM explsion
Hi all,
Bom what I am talking is Revese Logistics BOM(Repair BOM).Here something called attach rate we are using.That means if phone comes for repair then what is the possibility that the particular component will be used.It is usually in decimal places like 0.5,0.7,0.05 etc for components.
ex.
Component A in BOM we will put as 1.But somewhere we need to use this attache rate as 0.5.
This attach rate is not fixed.Every time it varies based on user entry
Means assume for header qty is 100 MRP run should calculate qty 50 for component A.
Please suggest how to use this attach rate in BOM.
Thanks and Regards
Raghavendra PaiHi,
A way of doing what you ask for, is to define the BOM header quantity, for example 100, and the if you define 50 for component A, then you get a 50% rate of usage.
But you need to be careful that quantities for which production orders are created are normally not significantly smaller then the BOM header quantity, becuase then you may get some quantity rounding issues.
These ratios (quantities actually) can be manually changed during the creation of a specific production order, to accommodate a different rate for that specific lot.
Regards,
Mario -
BOM Component and quantity like cs03
Hi friends,
I want output like cs03 i want component list and its quantity which r use for perticular material as like in CS03.
Means I just give material no in input for that perticular material number in output it display components which are used for that perticular material and its quantity,plan.
I don't know PP tables and link between them so plz give me tables name and related llink so i can get output in SQVI OR REPORT.
Thanks in Advance.Dear Prashant,
Dear First check with T codes CS11,CS12,CS13.
But if you are planning to make use of tables for creating a query then
Using the Following tables,you can create a simple query and get the necessary
details.
STPO BOM Item Details
STKO BOM Header Details
MAST BOM Group to Material.
Regards
Mangal -
To create req for new BOM component
hello all,
i confirm the order and now i need to add one more component to the header material for the same order.
how can i create requirement for new BOM component.
what i done is i 1st cancel the confirmation. then go for read PP mater data. after that should i run the MRP for header material to create planned order for new BOM component?
regardsDear,
If you have execute any transaction like GI confirmation then read PP master data will not work.
Best way you can cancel the confirmation and reveres the good issue by 262 movement type. Then do TECO to the order all reservation get deleted.
Then update the BOM with new component and run MRP with planning mode-3 delete and recreated. It will create planned order then convert it to production and go ahead.
Regards,
R.Brahmankar -
Group delivery for BOM's when one of the BOM component has no confirmed qua
Hi,
We have an issue. We have group delivery for BOMs. However it might be in some cases that one of the component has no confirmed quantity. Still we do not want delivery for any of the component to be created. What is the easiest way to achive this?
thanks in advance.
regards CamillaHi Camilla,
In VOV7 for the item category of main item Create Delivery Group must be assigned a value X (Form delivery group with one delivery date). If you have this configuration set-up done system will assign one delivery group for the entire group of BOM materials and all will be delivered on the same date. Can you check this? -
Direct Procurement for BOM component
Hi there,
If we want to use direct procurement for BOM component then where do we set the indicatior in BOM. I am not able to find the same in BOM.........??
Please advice me ....
Regards
KaushikHi Kaushik,
Maintain Direct Procurment is OPPQ-Plant paramaters. Here you specify whether the direct procurement is triggered by the Planning Run or the MRP.
And also maintain a key for Special procurement Direct Procurement in OPPQ.
Please assign Special Procurement Key as Direct procurement is MRP-2 view of material master.
Thanks and regards
Murugesan
Maybe you are looking for
-
So a few months back I purchased a new 17" Mac Book Pro through the online apple store because I needed a computer for school. At the time there was a promotion through apple that promised with any purchase of a laptop for school, the buyer would rec
-
Payment advices to vendors using F110
Hi Can you please let me know how it is possible to restrict payment advices to only some group of vendors using F110? Eg:Required settings are made and activated in the system to send payment advices to vendors via email using Tcode F110. Now the i
-
Hello i tried recharging my account with CashU payment method right now and it couldnt load up right on time. i also make use of other browser hoping its from my computer but i guess there is a problem with the skype website redirecting me to cashu h
-
WPA2-enterprise WIFI can't connect after upgrading to 6.1 or higher
Hi. Please help. We have a campus wifi with two ssids: one open for everyone and one closed with wpa2-enterprise (PEAP) security for staff. All iphones and ipads works just fine on ios version 6.01 but they can't connect to secured wifi network after
-
hi i want to know conceptually what are User Exits and varients , what is the purpose of using these . iAftr learing that i want to a practical example on both topics then , if any one have some good material on these plz send me on [email prot