CS13 & CS_BOM_EXPL_MAT_V2
Hello Everyone,
I am using CS13 and Functional Module CS_BOM_EXPL_MAT_V2 for multi level BOM explosion for final assembly.
But the number of components vary from both the results.
I mean if CS13 is giving me 100 entires , then Functional Module CS_BOM_EXPL_MAT_V2 is giving me 30 entries.
Why is this so if , both are performing the same function.
Regards,
Vishal
Vishal,
Please go through this Post, i think this should solve your problem.
[BOM explosion parameters Posted by Mr. Prabhu|http://www.erpgenie.com/forum/viewtopic.php?f=1&t=11280]
Regards,
Prasobh
Similar Messages
-
Hi Experts,
Why CS11,CS12,CS13 T codes are not showing the price control and the price in the ALV ?
Regds
JoeHi,
The setting of L_MBWLS is inside the program & not at user parameter level.
I would suggest create your custom report similar to CS11 / 12 / 13 & in that for the FM - CS_BOM_EXPL_MAT_V2 for field MBWLS pass the value 'X'. This will result in displaying the values. But do note that this will result in a relatively longer time for explosion depending on the bom size. This is what i have done at my end.
Regards,
Vivek -
Cost of components display in CS11 /Cs12 / CS13 T.codes
Hi,
I want to display cost of the components in CS11 / CS12 / CS13 T.codes Std SAP will not display the cost of components. for this they have given note 177006 and asked to change some manual correction. In the post processing of the note they have asked put "your_display_profl" This is making me confusing I wanted know whether I want to create a new display pofile using CLVL t.code or can I make the correction as said by SAP "your_display_profl". Could some body guide me in this regard.
Regards
RamanaHI
Check these reports for BOM Components and costs
CK79_99 Material: Itemization Comparison
K80_99 Material: Cost Components
CK84 Line Items in Cost Est for Product
CK84_99 Material: Itemization
CK86 Costed Multilevel BOM
CK86_99 Material: Multilevel BOM.
Also you can use this FM for developing reports,CS_BOM_EXPL_MAT_V2 provided X is included for the input parameter
Regards
Anupam Sharma -
FM to retrieve Summarized BOM (CS13) and get TOP parent
Hi Gurus,
I'd like to know what FM should I use to retrieve BOM so that I will have the same data generated if I run tcode CS13.
I tried to use CS_BOM_EXPL_MAT_V2 but the number or items returned was much bigger compared to CS13.
I'd also like to know if there's a way to get the TOP parent using select statements.
Thanks in advance.
DexterWhat about CS_BOM_EXPLOSION and leaving import parameter MEHRS = space?
-
Hi
Im going to use FM: CS_BOM_EXPL_MAT_V2 and I want to only pass WERKS, but when I execute FM is gives exception as CALL_INVALID.
I saw all the Import parameters are Optional, but I think I need to pass more inputs to FM.
Please let me know what are MINIMUM input parameters required to run this FM
ThanksHi
In my requirement, there are range of WERKS and MATNR which has to be given from selection screen, where as In CS_BOM_EXPL_MAT_V2 function module I can only give single value for WERKS and MATNR.
Can any one guide me how can I implement this? -
Dear PP gurus,
When processing CS13 transaction, the result is not correct.
e.g. BOM of material 12345, Component 67891 - Qty should be 4 PC instead of 0 PC
This problem occurs for all materials for which item number is blank.
I mean to say the result is showing correct in cs12, but in cs13, the system is showing to some material qty 0 to which item number is blank.
Is there any SAP note, or someone tell me whts the diffrence in cs12 & cs13?
Regards,
AnsarI got it, to be very clear i raised OSS, there i recieved reply from SAP,
Please note that there are 2 fields with component qty.
1 with base UoM, (BUoM)
1 with component UoM. (CUoM)
Standard variable list contains the BUoM, BUT it in my cs13 report i was displaying the CUoM.
Need to select it from column set.
I mean to say that:
In case of CS13, when the same material is present more than once in a BOM, the quantity will be summed up and displayed in the field "Comp.Qty (BQT)". This quantity is shown in base unit of measure of that particular material.
The other field i.e., Comp.Qty(CQT)(component unit of measure) will be zero in case of multiple occurrences of the same component.
Iam closing this issue..it was not a SAP bug, just missing knowledge of SAP.
Regards,
Ansar -
Short dump using CS_BOM_EXPL_MAT_V2 with different user ids
Hi
We are getting a short dump in our program when using FM'CS_BOM_EXPL_MAT_V2' and this is happening only for super user roles but not with regular user ids in production. We are not able to identify the solution yet, and it needs to be resolved as quickly as possible. Anyhelp, really appreciated.
Thanks
Anil
Here is our code:
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
aumgb = 'X'
capid = 'PP01'
datuv = p_valfrm
ehndl = '1'
emeng = 1
mbwls = ' '
mehrs = 'X'
mmory = '1'
mtnrv = p_matnr
stlal = p_stlal
stlan = p_stlan
werks = p_werks
TABLES
stb = i_stb
matcat = i_matcat
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.Hi senthil,
1. I suppose u want to explode the BOM.
2. CS_BOM_EXPLOSION
use the above FM
in the below mentioned fashion.
3.
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
capid = 'PP01'
emeng = bmeng
datuv = sy-datum
mtnrv = matnr
stlan = '1'
werks = werks
mehrs = 'X'
IMPORTING
TOPEQUI =
TOPMAT =
TOPTPL =
DSTST =
TABLES
stbd = stbd
stbe = stbe
stbk = stbk
stbm = stbm
stbp = stbp
stbt = stbt
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
regards,
amit m. -
Dear Guru's,
I need to develop a report CS13 for multiple material selection.Is it possible, Kindly provide ur expert input for this.
With Regards,Yes, please take the opinion of your technical ( ABAP), you can ask for using the same program as in CS13 as base and allow multiple products in selection and report - very much technical possible - with little work and thinking.
-
How to use CS_BOM_EXPL_MAT_V2 to include bom under Phantom
Hi every1,
How can I get documentation for this function module CS_BOM_EXPL_MAT_V2
We want to explode BOM on single level ,including Material which is coming under Phantom assembly too.
eg. I have one material 1xxxxx.
after exploding single level bom suppose I'll get these material
1xxxx1
1xxxx2
1xxxx3 and if 1xxxx3 is Phantaom assembly and under this item again I may have 1xxxx1 as bom item.
that means for my parent material 1xxxxx, I want 1xxxx1 should come 2 times !
Is there any simpliest way to get or for this item again I need to use this FM again ?
Pl. do help me.
Thanks in Advance.Hi,
THE FM 'CS_BOM_EXPLOSION_MAT' mentioned above holds true if u dont hv any alternatives for the BOM.
eg: If ur component in turn has BOM with 3 alternatives namely 01,02,03
then ideally FM should pick all the items uder these 3 components but this FM picks by default the 1st
alternative & ignores the rest.
So there are changes dat the list which u hv gpt is not 100%.
Through Tcode CS12 u can see the level wise components for a BOM.
U can gather the component details with this Tcode if u hv very few BOMs to explore.
But if the count is higher u hv to select acoding way for it....
Attaching a part of code to explore multilevel BOM.....hope dis ll help u......
1 ST LEVEL
SELECT MATNR WERKS STLNR IDNRK STLAL
FROM ZMAT_PLANT
INTO TABLE IT_BOM
FOR ALL ENTRIES IN IT_INPUT **maintain materials to be explored in IT_INPUT
WHERE WERKS = IT_INPUT-WERKS AND
MATNR = IT_INPUT-MATNR.
CONCATENATE DOWNLOAD
'1_FILE'
'.TXT'
INTO DOWNLOAD1.
LOOP AT IT_BOM ASSIGNING <FS_BOM>.
MOVE <FS_BOM>-MATNR TO IT_CHECK_MAT-MATNR.
MOVE <FS_BOM>-WERKS TO IT_CHECK_MAT-WERKS.
APPEND IT_CHECK_MAT.
COUNT = COUNT + 1.
ENDLOOP.
SORT IT_CHECK_MAT BY MATNR WERKS.
DELETE ADJACENT DUPLICATES FROM IT_CHECK_MAT COMPARING MATNR WERKS.
2 ND LEVEL
IF NOT IT_BOM[] IS INITIAL.
SELECT *
FROM ZCOMPONENTS
INTO TABLE IT_STPO
FOR ALL ENTRIES IN IT_BOM
WHERE MATNR = IT_BOM-IDNRK AND
WERKS = IT_BOM-WERKS.
ENDIF.
SORT IT_STPO BY MATNR WERKS.
CONCATENATE DOWNLOAD
'2_FILE'
'.TXT'
INTO DOWNLOAD1.
LOOP AT IT_STPO ASSIGNING <FS_STPO>.
MOVE <FS_STPO>-MATNR TO IT_CHECK_MAT-MATNR.
MOVE <FS_STPO>-WERKS TO IT_CHECK_MAT-WERKS.
APPEND IT_CHECK_MAT.
COUNT = COUNT + 1.
ENDLOOP.
UNASSIGN <FS_STPO>.
SORT IT_CHECK_MAT BY MATNR WERKS.
DELETE ADJACENT DUPLICATES FROM IT_CHECK_MAT COMPARING MATNR WERKS.
SORT IT_STPO BY IDNRK WERKS.
LOOP AT IT_STPO.
READ TABLE IT_CHECK_MAT WITH KEY MATNR = IT_STPO-IDNRK
WERKS = IT_STPO-WERKS
BINARY SEARCH.
IF SY-SUBRC <> 0.
MOVE IT_STPO-IDNRK TO IT_STPO1-MATNR.
MOVE IT_STPO-WERKS TO IT_STPO1-WERKS.
APPEND IT_STPO1.
ENDIF.
COUNT = COUNT + 1.
ENDLOOP.
REGARDS ,
AJIT.
Edited by: AJIT THAKUR on Apr 16, 2009 10:51 AM
Edited by: AJIT THAKUR on Apr 16, 2009 10:54 AM -
Hi, obsered that in cs13, certain raw materials are not appearing where as in cs11 all bom comonents were appeared. pls advise what is the difference between cs11, 12 and 13?
Hi,
Those are the BOM explosion methods for reporting purpose.
level By level explosion, and summarized BOM.
When you say not all the material are appearing in CS13, check the the quantity of the common materials across the levels.
You will get ur answer.
check these links
http://help.sap.com/erp2005_ehp_03/helpdata/en/a0/1016bd4c8311d189520000e829fbbd/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/en/a0/1016bd4c8311d189520000e829fbbd/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/en/a0/1016bd4c8311d189520000e829fbbd/frameset.htm
Regards
Raghu -
Hi,
I want to find last children of a material.I am using FM CS_BOM_EXPL_MAT_V2. Although STPOX internal table as STUFE for level but we can't get all the last child of material directly.
For example material A as child A1 and A2 this sub divided into A1- A11, A12 and A2 - A21 , A22 and again A21 -A211,A212 and A22 - A221,A222
so the last children are A11,A12,A211,A212,A221,A222. So if we use max of STUFE it will omit A11 and A12.Do i need to program a custom logic to get last child using Stufe and WEGXX or is there any other method available to get Last Children of the Material or is there any other Function module to get the Last child of the material.
Thanks in Advance.You will have to write your own custom logic after calling the function module. In my case, it is easy, because the lowest level materials will always be raw materials(material type ZROH) as opposed to a semi-finished material(material type HALB). Your's may be different.
REgards,
Rich Heilman -
Function module CS_BOM_EXPL_MAT_V2 Documentation
I cannot find any documentation for function module CS_BOM_EXPL_MAT_V2. It is a very powerful function module, however, it is not useful without documentation. I know that it can do single level boms as well as multi level and a host of other things, but I can only guess without documentation. Do you know where I can get documentation for this function module.
thank you in advance, Leonard Getz, Dy4 Systems Inc. Ottawa, Ontario, Canada.This is what I found:
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2' "BOM explosion for material
EXPORTING
ftrel = SPACE " csdata-xfeld Limited multi-level - stop explosion at items not relevant to production
aufsw = SPACE " csdata-xfeld Determine and enter order level and channel
aumgb = SPACE " csdata-xfeld Calculate scrap quantity
aumng = 0 " stko-bmeng Scrap quantity
auskz = SPACE " csdata-xfeld Scrap
bagrp = SPACE " mara-matnr Assembly restriction
beikz = SPACE " stpo-beikz Material provision indicator
bessl = SPACE " csdata-xfeld Material provision selection indicator
bgixo = SPACE " csdata-xfeld Load assembly information for exploded assemblies only
brems = SPACE " csdata-xfeld Limited explosion
capid = 'STD1' " tc04-capid Application ID
cospr = SPACE " csdata-xfeld Internal: (CO) order-spec. MatPreRead
cuobj = 000000000000000 " marc-cuobj Configuration
datuv = 00000000 " stko-datuv Validity date
delnl = SPACE " csdata-xfeld Delete items not kept in stock from list
emeng = 0 " stko-bmeng Required quantity
erskz = SPACE " stpo-erskz Spare part indicator
erssl = SPACE " csdata-xfeld Spare part selection indicator
fbstp = SPACE " csdata-xfeld Limited multi-level - stop explosion at externally procured item
mbwls = SPACE " csdata-xfeld Read material valuation
mdmps = SPACE " csdata-xfeld Limited multi-level - explode phantom assemblies at least
mehrs = SPACE " csdata-xfeld Multi-level explosion
mkmat = SPACE " csdata-xfeld Limited multi-level; explode KMAT
mmaps = SPACE " csdata-xfeld Limited multi-level - explode at least M assembly (M order)
mmory = SPACE " csdata-xfeld Memory use ('1'=on;'0'=off;' '=no reaction)
mtnrv = SPACE " mara-matnr Material
postp = SPACE " stpo-postp Item category
rndkz = SPACE " csdata-xfeld Round off: ' '=always, '1'=never, '2'=only levels > 1
rvrel = SPACE " stpo-rvrel Relevant to sales
sanfr = SPACE " stpo-sanfe Production
sanin = SPACE " stpo-sanin Maintenance
sanka = SPACE " stpo-sanka Costing
sanko = SPACE " stpo-sanko Engineering/design
sanvs = SPACE " stpo-sanvs Shipping
schgt = SPACE " stpo-schgt Bulk material
stkkz = SPACE " stpo-stkkz PM assembly
stlal = SPACE " stko-stlal Alternative BOM
stlan = SPACE " stzu-stlan BOM usage
werks = SPACE " marc-werks Plant
mdnot = SPACE " csdata-xfeld Restriction on MDMPS: do not explode M phantom
panot = SPACE " csdata-xfeld Restriction on MDMPS: no parallel discontinue
IMPORTING
topmat = " cstmat Data for start material
dstst = " csdata-xfeld Structure destroyed by filter
TABLES
stb = " stpox Collective item data table
matcat = " cscmat Material catalog (sub-assemblies)
EXCEPTIONS
ALT_NOT_FOUND = 1 " Alternative not found
CALL_INVALID = 2 " Incorrect parameter combination
MATERIAL_NOT_FOUND = 3 " Material not found
MISSING_AUTHORIZATION = 4 " No authorization (bill of material)
NO_BOM_FOUND = 5 " No BOM for this material
NO_PLANT_DATA = 6 " Material not maintained in plant
NO_SUITABLE_BOM_FOUND = 7 " BOM does not exist
. " CS_BOM_EXPL_MAT_V2 -
Refresh using CS_BOM_EXPL_MAT_V2 2 times
Hi,
my problem is:
1. use fm CS_BOM_EXPL_MAT_V2 to get BOM data.
2. I modify the BOM using a Batch Input
3. use fm CS_BOM_EXPL_MAT_V2 to get the BOM updated.
the FM in the 3th step load the old data and not the updated BOM.
Any suggest?
Can i clear the program cache?Hello,
I'm answering to this threat even though it's 5 years old just in case somebody is looking out for the solution like I was a couple of weeks ago.
The FM CS_BOM_EXPL_MAT_V2 calls internally another FM called GET_STPO. Inside GET_STPO you will find structure STPOCTL which will contain material's information for the previous run of CS_BOM_EXPL_MAT_V2. Also, FM GET_STPO calls FM GET_STATS which will contain the structure STASCTL; both these structures need to be cleared in order for the Function Module to retrieve fresh data from the database, instead of just returning the same data that was returned in the first run.
In the Function Group CSIO, which contains all these Function Modules, there's a Function Module in charge of clearing these structures plus another internal tables which will contain the material's information, you need to call this FM right after your 1st iteration in order to clear the buffer. The Function Module is CSIO_REFRESH_BUFFER or CS_IO_BOM_BUFFER_SMASH, depending on your SAP implementation.
Hope this helps anyone
Message was edited by: Matthew Billingham - changed formatting to make more readable -
Issue with CS_BOM_EXPL_MAT_V2
Hi All,
We are trying to fetch BOM data by calling the above function module i.e. CS_BOM_EXPL_MAT_V2.
The function module is called as shown below
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
capid = 'PP01'
datuv = sy-datum
mktls = 'X'
* mehrs = 'X'
mmory = '1'
mtnrv = gs_bom-matnr
stlal = gs_bom-stlal
werks = p_werks
TABLES
stb = gt_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.
Inspite of passing the plant......the function module seems to be checking other plants as well.....i.e. for one of the material it gives an exception saying that 'Material XXX not maintained in plant ABCL'
However the plant passed to FM is ABCM (p_werks)....then why is it checking in other plant?
Any idea?Hi,
Run report RCS12001 and check if the report is throwing a similar report with the parameters passed in the program.
If yes, Check for SAP notes.
If not, you may be missing some input fields.
Sujay -
Use CS_BOM_EXPL_MAT_V2
Since to make a report in form of tree to list the materials with its materials semielborados until arriving at all the components of this material. I am using BAPI CS_BOM_EXPL_MAT_V2 and not since I can do?
Check these links
Help reqd in CS_BOM_EXPL_MAT_V2
Thanks
mahesh
Maybe you are looking for
-
How to edit data from a "View Table"?
I am importing data from a "table view" where in sql it joins several tables into one view. When I passed it in using the template it doesnt have the "Edit command column" like other direct link tables. Is there anyway I could make a view table edita
-
Import parameter is empty after an RFC call from BW to JCo
I am calling a Java function (implemented using JCO and deployed on J2EE stack of the Portal box) from within a user-exit in BW (on a separate box) using RFC. The code in BW looks like: CALL FUNCTION 'Z_BW_VALIDATE_PROXY' DESTINATION 'ACF2PROXY'
-
External loading .txt file can I link URL in txt file?
So, I can't remember and it's not working. I basically want to add this to my text file: <a href="http://www.gap.com" target="_blank">Go here</a> which obviously doesn't work. what's the easiest way add HTML tags to a TXT file without changing the wa
-
How to transform the node structure
Hi GURUS, Here is the case actual schema is as below <aa> <bb></bb> <cc> </cc> <dd></dd> </aa> then the incoming message is look like this <aa> <bb>Testing</bb> </aa> When i trasnform(is a mapping in this case is one to one) and route to the business
-
Connecting to pear from zend core
Hi, I am trying to connect to oracle using zend core for linux. I have installed zend core along with apache2 in linux-x86 machine. I am able to run oci_connect() and connect to my remote database. But, when I try the same using PEAR DB, it is giving