BOM explosion function module
Hi All,
I want to know some function module which takes material number which is a BOM as input and get all the component materials of it as the output. It should not take any other fields as input since I have only material BOM to pass an input field to FM
Thanks
Ricky
CSAP_BOM_ITEM_MAINTAIN
CSAP_DOC_BOM_CREATE
CSAP_DOC_BOM_DELETE
CSAP_DOC_BOM_ITEM_SELECT
CSAP_DOC_BOM_MAINTAIN
CSAP_DOC_BOM_READ
CSAP_MAT_BOM_ALLOC_CREATE
CSAP_MAT_BOM_ALLOC_DELETE
CSAP_MAT_BOM_CLOSE
CSAP_MAT_BOM_CREATE
CSAP_MAT_BOM_DELETE
CSAP_MAT_BOM_ITEM_SELECT
CSAP_MAT_BOM_MAINTAIN
CSAP_MAT_BOM_OPEN
CSAP_MAT_BOM_READ
CSAP_MAT_BOM_SELECT
CSAP_ORD_BOM_CREATE
CSAP_ORD_BOM_DELETE
CSAP_ORD_BOM_ITEM_SELECT
CSAP_ORD_BOM_MAINTAIN
CSAP_STOCK_TYPE_CREATE
CSAP_STOCK_TYPE_DELETE
try out these BOMs
regards
prabhu
Similar Messages
-
BoM Explosion Functional Module in subcontract PO
Can anyone suggest what is the functional module to extract the BoM in a subcontract PO?
SriniIt is PP/MM module. When we create a subcontract Purchase Order for a material, the bill of material is automatically copied on to the planned order, PR and PO. I was wondering if there is a functional module to fetch the bom, as it appears in the subcontract po.
thanks
Srini -
Bom explosion function module for bypassing phantom materials
hi,
function module "cS_BOM_EXPL_MAT_V2" is used to explode the componensts of first level only.
In my case there are components at first level are phantom assemblies so i want to drill down further to arrive at E or F part which may be at 2nd or 3rd level.
please suggest any BAPI or function module for the above requirement.
Thanks.
KumarDear Kumar,
check with following input values for the Functional Module
FTREL
ALEKZ
ALTVO
AUFSW
AUMGB
AUMNG 0.000
AUSKZ
AMIND
BAGRP
BEIKZ
BESSL
BGIXO
BREMS
CAPID PP01
CHLST
COSPR
CUOBJ 000000000000000000
CUOVS
CUOLS
DATUV 13.05.2008
DELNL
DRLDT
EHNDL
EMENG 2.000
ERSKZ
ERSSL
FBSTP
KNFBA
KSBVO
MBWLS X
MKTLS X
MDMPS
MEHRS X
MKMAT
MMAPS
SALWW
SPLWW
MMORY 1
MTNRV S7690339
NLINK
POSTP
RNDKZ
RVREL
SANFR
SANIN
SANKA
SANKO
SANVS
SCHGT
STKKZ
STLAL 1
STLAN 1
STPST 0
SVWVO X
WERKS 5501
NORVL
MDNOT
PANOT
QVERW
VERID
VRSVO X
I'm using this FM with the above input parameters and I'm getting the necessary details perfectly.
Please check & revert back.
Regards
Mangalraj.S -
BOM Explosion Function with variant characteristics
Does any one know function module which can explode BOM based on variant characteristics?
Thanks
-AlpeshHi,
Function module CS_BOM_EXPL_MAT_V2 is used to explore the Material BOm details.
I think it is useful for you. -
Routing explosion function module
Hello, I'm looking for the function module that will Display a resulting Routing where the VC object dependencies are processed.
There's a similar function for Bom... CS_BOM_EXPL_MAT_V2...
I have standard values(time) in the routing coming from the result of a dependency and this function would tell me the result...
Thanks in advance!Sankaran, I tried the function you gave me but it's not giving the appropriate time (VGW01).
By default this field is = 0. There's a VC object dependency on the operation ex: if color = white then time = 4 min.
I'm getting the correct time when i'm creating a Work order (CO01, CO01S) or when I'm doing a cost roll up. (CK11n).
What I'M looking is the function that will return the time (VGW01)after the dependency is processed.
I want to use this function in order to create a report..
As mentionned previously, for boms, there's a function that's doing this..
Let me now if you have an idea...
Regards!
Luc -
Update Equipment BOM using Function module (very urgent)
Hi All,
I am an ABAPER and trying to update equipemnt BOM.
I want to update equipment BOM using a function module. I am currently using 'CSAI_BOM_MAINTAIN' function module. But i am not able to update the Equipment BOM. After function call the sy-subrc value is 0, even though the BOM is not updated.
Please help its very urgent.
Kind Regards,
Sharat.Hi Sharat,
I am facing the same problem. Could you please let me know what might be the reason.
Plz mail me at [email protected]
Plz update this section once u have mailed the answer.
Thanks a lot in advance.
Regards,
Himanshu -
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 -
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 -
Function module to get BOM which WOULD be created if I open a production
Is there a function module to get the BOM which WOULD be created if I open a production order?
note that I don't have the produciton order created.
I already tried with the FM CS_BOM_EXPL_MAT_V2 and CSAP_MAT_BOM_READ.
I debuged the CO01, but I did not find it.
This BOM should include materials which are under a phantom component.
Edited by: Rodrigo Pelos on Jul 20, 2011 6:55 PMHi Greetson Shunmugasundaram,
thanks for the reply, but for the FMs CO_SD_RESB_FROM_BOM_CREATE and CO_SD_NEW_BOM_ASSIGNEMENT it's necessay to have an production order but I don't have it. And with CS_ALT_SELECT_COUPLED_PRODUCT I could not get a BOM.
Let me explain in more details how I'm going to use this information, I think I was not clear in my post.
I'm creating a report to compare the BOM of a production order with BOM which would be created today if I open a production order.
Then I can check if there was changes in the reservation (RESB) of the production order. If this changes happened, how many pieces. I'll check also if there was differences in consumption, because during the production order confirmation it is possible to make changes.
I would not like to make the BOM explosion "manually" because there are too many variables in the BOM like phantom, alternative, scrap and so on, but I don't know if the function module that I'd like to use exists. -
BOM function module to find sub components
Hi all ,
I got a requirement . I have to find out the components required for a given product .Like if A is made up of X,Y and Z . If i have A , a final product , then how could i know its sub components X,Y and Z .
Is there any Function module .
Regards ,
RajAparna,
One doubt.Does the function module metioned by you will even explode if a Component under the header material is having a sub-assembly which again is having some components and those componenets also have sub-assembly so on....
I mean in one shot if we give the header material it should explode all the BOMS of the corresponding components.
We have developed a small program kindly have a look at it.Does this whole program can be replaced by that function module alone?
As we need supply area w.r.t a component under header material we are displaying only those fields in the output.
REPORT ZBOMEXPLOSION.
TABLES: MBEW,
MARA, "Material Master
MAKT,
MARC,
MAST, "BOM Header
STKO, "BOM Detail
STPO, "Bom Components
STAS. "BOM Alternative
*Declarations for ALV
type-pools slis.
DATA:itfieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA:itrepid TYPE sy-repid.
itrepid = sy-repid.
DATA:itevent TYPE slis_t_event.
DATA:itlistheader TYPE slis_t_listheader.
DATA:walistheader LIKE LINE OF itlistheader.
DATA:itlayout TYPE slis_layout_alv.
DATA:top TYPE slis_formname.
DATA:itsort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA :itsort1 TYPE slis_sortinfo_alv.
DATA:itprintparams TYPE slis_print_alv.
DATA:itvariant TYPE disvariant.
data : title type lvc_title.
field-symbols <fs> type LVC_TITLE.
concatenate 'BOM Explosion level by level' ' ' into title separated by
space.
assign title to <fs>.
DATA:PARENT-MATNR LIKE MAST-MATNR,
CHILD-MATNR LIKE STPO-IDNRK,
CHILD-WERKS LIKE MAST-WERKS,
CHILD-STLAL LIKE MAST-STLAL,
W_MAKTX LIKE MAKT-MAKTX,
W_LEVEL TYPE I,
W_DOT(1),
W_LVL(12),
W_LVL1(12),
W_LVL2(2),
WCNT TYPE I.
DATA: BEGIN OF ITAB OCCURS 100,
CNT TYPE I,
LEVEL TYPE I,
LVL1 LIKE W_LVL1,
WERKS LIKE MAST-WERKS,
POSNR LIKE STPO-POSNR,
IDNRK LIKE STPO-IDNRK,
PRVBE LIKE STPO-PRVBE,
END OF ITAB.
DATA: BEGIN OF ITAB1 OCCURS 100,
WERKS LIKE MAST-WERKS,
IDNRK LIKE STPO-IDNRK,
END OF ITAB1.
DATA: BEGIN OF ITAB2 OCCURS 100,
CNT TYPE I,
SUBCNT TYPE I,
LEVEL TYPE I,
LVL1 LIKE W_LVL1,
WERKS LIKE MAST-WERKS,
POSNR LIKE STPO-POSNR,
IDNRK LIKE STPO-IDNRK,
prvbe like stpo-prvbe,
SBASE TYPE P,
MAKTX LIKE MAKT-MAKTX,
END OF ITAB2.
PARAMETERS: P_WERKS LIKE MAST-WERKS,
P_MATNR LIKE MAST-MATNR,
P_STLNR LIKE MAST-STLNR,
P_STLAN LIKE MAST-STLAN,
P_STLAL LIKE MAST-STLAL.
perform zmm.
perform alv.
*& Form zmmspt
* text
* --> p1 text
* <-- p2 text
form zmm .
SELECT * FROM MAST WHERE WERKS = P_WERKS
AND MATNR = P_MATNR
AND STLNR = P_STLNR
AND STLAN = P_STLAN
AND STLAL = P_STLAL.
SELECT SINGLE * FROM MARA WHERE MATNR = MAST-MATNR.
IF SY-SUBRC NE 0.
CONTINUE.
ENDIF.
IF MARA-LVORM <> 'X'.
PARENT-MATNR = MAST-MATNR.
CHILD-MATNR = MAST-MATNR.
CHILD-WERKS = MAST-WERKS.
CHILD-STLAL = MAST-STLAL.
CLEAR ITAB.
CLEAR ITAB-LEVEL.
MOVE MAST-WERKS TO ITAB-WERKS.
MOVE MAST-MATNR TO ITAB-IDNRK.
WCNT = WCNT + 1.
MOVE WCNT TO ITAB-CNT.
APPEND ITAB.
W_LEVEL = 1.
PERFORM GETCHILD.
ENDIF.
ENDSELECT.
SORT ITAB BY LEVEL DESCENDING.
LOOP AT ITAB.
PERFORM GET_BOM.
MOVE ITAB-WERKS TO ITAB1-WERKS.
MOVE ITAB-IDNRK TO ITAB1-IDNRK.
APPEND ITAB1.
CLEAR ITAB2.
MOVE-CORRESPONDING ITAB TO ITAB2.
APPEND ITAB2.
ENDLOOP.
SORT ITAB2 BY CNT.
LOOP AT ITAB2.
CLEAR: MAKT-MAKTX.
SELECT SINGLE * FROM MAKT WHERE MATNR = ITAB2-IDNRK AND
SPRAS = 'E'.
SELECT SINGLE * FROM MBEW WHERE MATNR = ITAB2-IDNRK AND
BWKEY = ITAB2-WERKS.
ITAB2-MAKTX = MAKT-MAKTX.
MODIFY ITAB2.
ENDLOOP.
endform. " zmm
*& Form GETCHILD
* text
* --> p1 text
* <-- p2 text
form GETCHILD .
SELECT * FROM STPO WHERE STLNR = MAST-STLNR
ORDER BY POSNR.
SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR
AND STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = MAST-STLAL.
IF SY-SUBRC EQ 0.
CLEAR: W_DOT, W_LVL, W_LVL1.
PERFORM MOV_DATA.
CHILD-MATNR = STPO-IDNRK.
W_LEVEL = W_LEVEL + 1.
PERFORM SUBCHILD.
W_LEVEL = W_LEVEL - 1.
ENDIF.
ENDSELECT.
endform. " GETCHILD
*& Form SUBCHILD
* text
* --> p1 text
* <-- p2 text
form SUBCHILD .
SELECT SINGLE * FROM MAST WHERE MATNR = CHILD-MATNR
AND WERKS = CHILD-WERKS.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
SELECT * FROM STPO WHERE STLNR = MAST-STLNR
ORDER BY POSNR.
SELECT SINGLE * FROM STKO WHERE STLNR = STPO-STLNR AND
STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = STKO-STLAL.
IF SY-SUBRC EQ 0.
W_DOT = '.'.
PERFORM MOV_DATA.
CHILD-MATNR = STPO-IDNRK.
W_LEVEL = W_LEVEL + 1.
PERFORM SUBCHILD.
W_LEVEL = W_LEVEL - 1.
SHIFT W_LVL.
ENDIF.
ENDSELECT.
endform. " SUBCHILD
*& Form MOV_DATA
* text
* --> p1 text
* <-- p2 text
form MOV_DATA .
W_LVL2 = W_LEVEL.
CONCATENATE W_DOT W_LVL INTO W_LVL.
CONCATENATE W_LVL W_LVL2 INTO W_LVL1.
MOVE W_LVL1 TO ITAB-LVL1.
MOVE W_LEVEL TO ITAB-LEVEL.
MOVE MAST-WERKS TO ITAB-WERKS.
MOVE STPO-POSNR TO ITAB-POSNR.
MOVE STPO-IDNRK TO ITAB-IDNRK.
MOVE STPO-PRVBE TO ITAB-PRVBE.
WCNT = WCNT + 1.
ITAB-CNT = WCNT.
APPEND ITAB.
endform. " MOV_DATA
*& Form GET_BOM
* text
* --> p1 text
* <-- p2 text
form GET_BOM .
SELECT SINGLE * FROM MAST WHERE MATNR EQ ITAB-IDNRK AND
WERKS = ITAB-WERKS.
IF SY-SUBRC EQ 0.
SELECT * FROM STPO WHERE STLTY = 'M' AND
STLNR = MAST-STLNR AND
DATUV LE SY-DATUM.
SELECT SINGLE * FROM STKO WHERE STLTY = 'M' AND
STLNR = STPO-STLNR AND
STLAL = MAST-STLAL.
SELECT SINGLE * FROM STAS WHERE STLNR = STPO-STLNR AND
STLKN = STPO-STLKN AND
STLAL = STKO-STLAL.
ENDSELECT.
ENDIF.
endform. " GET_BOM
*& Form alv
* text
* --> p1 text
* <-- p2 text
form alv .
IF itab2[] IS INITIAL.
MESSAGE 'No Values exist for the Selection.' TYPE 'S'.
STOP.
ENDIF.
DEFINE m_fieldcat.
itfieldcat-fieldname = &1.
itfieldcat-col_pos = &2.
itfieldcat-seltext_l = &3.
itfieldcat-do_sum = &4.
itfieldcat-outputlen = &5.
append itfieldcat to itfieldcat.
clear itfieldcat.
END-OF-DEFINITION.
m_fieldcat 'LVL1' '' 'Level' '' 04.
m_fieldcat 'POSNR' '' 'Item' '' 06.
m_fieldcat 'IDNRK' '' 'Component' '' 18.
m_fieldcat 'MAKTX' '' 'Description' '' 40.
m_fieldcat 'PRVBE' '' 'Supply Area' '' 12.
itlayout-zebra = 'X'.
itlayout-colwidth_optimize = 'X'.
itlayout-no_subtotals = ' '.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
IS_LAYOUT = itlayout
IT_FIELDCAT = itfieldcat[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
IT_SORT = itsort[]
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab2
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
EXPORT ITAB2 TO MEMORY ID 'KK_ITAB2'.
endform. " alv
K.Kiran. -
Hi All..
I want to know if there is any functional module in SAP which can gives Parent Material detail if I provide the child material number... (reverse to CS03)
I tried in SE37 but I am not able to pick the exact one.
Thanks & Regards,
Srib KHi,
Check the below FM's:
CS_BOM_EXPLOSION General BOM explosion
CS_BOM_EXPLOSION_EQUI BOM explosion - initial screen: equipment
CS_BOM_EXPLOSION_MAT BOM explosion (old version);
CS_BOM_EXPL_EQU_V2 BOM explosion for equipment
CS_BOM_EXPL_KND_V1 BOM explosion for material
CS_BOM_EXPL_MAT_V2 BOM explosion for material
CS_BOM_EXPL_PSP_V1
CS_BOM_EXPL_TPL_V1 BOM explosion for functional location
Regards
Kannaiah -
Function module to get the valid Subcontract BOM and components for Pur doc
Hello Gurus,
I need help to create a z report of subcontracting bom and their components exploded in Schedule agreement. Seems like there is no standard report which can give the boms from purcashing doc. Can someone please tell me the name of the function module for it? any help will be highly appreciated.
Regards,
Owaishi
u can use
STPO BOM - item
STAS BOMs - Item Selection
STZU Permanent BOM data
also check stko or mast or stpo
or
Perhaps you can run ST05 while run some transaction for display the
BOM.
Once the transaction for display the BOM gets finished, you need to stop the
trace on ST05 and then display it, you will see tables readden in the
transaction,
not tried plz check*
reward if helpful
regards
kunal
Edited by: kunal ingale on Jul 22, 2008 6:21 AM -
Function Module to Change / Update BOM Line Items
Hi,
I need a Function Module to Change / Update BOM Line Items.
Please help.
Thanks.Try this FM - CSAP_MAT_BOM_MAINTAIN
-
Bapi or Function module for getting Bom Item Details (Urgent)
Hi All,
I Want to get the Bom Item Details Corresponding to Production Order Number.
So Please Provide me Some Function Module or Bapi So that by giving the
Production Order number I will get all material related to that PO.
Thanks In Advance.Hi,
use the function module.
call function 'CS_BOM_EXPL_MAT_V2'
exporting
capid = 'STD1'
datuv = sy-datum
mktls = 'X'
mehrs = 'X'
mmory = '1'
mtnrv = matnr
werks = werks
tables
stb = it_stb2
matcat = it_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
others = 8.
Regards,
Sankar. -
Function Module for Sale order BOM
Hi
What is the function module to retrieve sale order BOM ?
thanks in advance
krishnaHi, Your thread has been moved to SD Forum.
Maybe you are looking for
-
Can you store Word, Excel, and Power Point files in icloud from macbook
Is there a way to store documents from my macbook using office 2011 for mac using iCloud? If this is possible, is there a way that they can be in separate files from the documents on other devices? MacBook OSX 10.7.5
-
Hi XI friends, its IDOC to file Scenario.. its daily scheduling report..if we run that report.....Number IDOCs are generated in SAP.. we have 5 legacy systems.. for one legacy systems file type is .txt file and for remaining xml files.. the catagariz
-
Document Display Options from portlet
How do I gain access to the user setting for the "Document Display Options" from a portlet? I want my portlet to honor this setting when creating links for the user to click on such that they open in a new window or in the main browser window as spec
-
Post payroll to FI server in another sap system.
Hi Experts, In order to post Payroll result to SAP FI system which is distributed, i doing the following, 1, I have done ALE setting and BAPI setting by t-code BD64, generate parnter profiles. 2, I have configured like "define symbolic account" and
-
Solio charger for 5200 phone?
Have bought my first Nokia and want a travel charger - solar/wind-up-able. Am being lured by the solio as it could be used with my camera and ipod too. But my phone (5200) is not listed as compatible with the solio. Can anyone advise me if there's a