CS_BOM_EXPLOSION

Hi,
I want to know from which table  can I get  STPOX-STUFE  used in function module CS_BOM_EXPLOSION.
Actually i need to know material level in BOM.
Thanks/Regards.

Hi,
I think  you need too get from STPO table to BOM component Level
In this table STLNR and STLKN gives level and what is component is in the field IDNRK
Thanks,
Pramod

Similar Messages

  • Error in using functional module CS_BOM_EXPLOSION

    Hi Experts,
    I am using the functional module CS_BOM_EXPLOSION to explode a BOM to its components. When it is beign called in a custom program, it throws an exception message as "No alternative found (Exception 01)". But when  it is executed in test mode (tcode SE37), it does not issue such warning message and gives the result accurately.
    Below are the parameters used for exploding the BOM.
            FUNCTION 'CS_BOM_EXPLOSION'
            EXPORTING
                CAPID = BOM Application; PP01
                DATUV = BOM Explosion date; System date
                EMENG = Base Quantity
                MTNRV = Parent Material
                WERKS = Plant
                STLAL = Alternative BOM
                STLAN = BOM Usage
                MEHRS = Whether multilevel BOM explosion is required (Then put X)
                MDMPS = BOM explosion level (Level 1, 2, 3u2026..)
    Please provide me with a solution as to use the same in the program.
    Thanks in advance,
    Ramindu

    Dear Ramindu,
    Ensure you are entering a value say 01 or 02 or 03 for alternative BOM.
    A Product may be having one or more than one alternative BOM.
    Say a product X has only one BOM,then in this case the value will be 01.
    Suppose if its having 2 different BOM's then the values will be 01 and 02.
    So in test mode you may be checking with a different material code and also giving 01 as the value for
    the alternative BOM.
    Check whether the same is happening in the custom program also.
    Check and revert back.
    Regards
    Mangalraj.S

  • CS_BOM_EXPLOSION :Looking for a general concept of function modules

    Dear friends,
    As i am new to abap world,i have a few apprehensions regarding using a function module.I am being asked to use CS_BOM_EXPLOSION to explode BOM list.I searched at google,found some pretty links and this suited to my requirements as given under.However what is not clear to me is that up till now i believe EXPORTING is what result i get from function module and importing is what i pass to function module.In this and many other examples i found that values are itself assigned to EXPORTING  while importing are internal tables (probably) assigned to some structures standard used.
    In short i am not clear how to use this function module.Could someone help ?
    CALL FUNCTION 'CS_BOM_EXPLOSION'
    EXPORTING
    AUMNG = 0
    CAPID = ' '
    DATUV = DATVAL "valid-from date
    EHNDL = '1'
    MKTLS = 'X'
    MEHRS = 'X'
    MMORY = '1'
    MTNRV = MATNR
    STLAL = LAL "like mast-stlal default '1'
    STLAN = LAN "like mast-stlan default '2'
    SVWVO = 'X'
    VRSVO = 'X'
    WERKS = WERKS
    mmaps = 'X'
    IMPORTING
    TOPMAT = STARTMAT "includes structure CSTMAT
    TABLES
    STBD = TBD "includes structure CSXDOC
    STBE = TBE "includes structure CSXEQUI
    STBK = TBK "includes structure CSXKLA
    STBM = TBM "includes structure CSXMAT
    STBP = TBP "includes structure CSXGEN
    STBT = 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.

    Hi,
    when you call the function module, EXPORTING is what you pass to the function module and IMPORTING is what the function module returns, TABLES again maybe returned by the function module.
    You will need to define table types to get the tables data from the Function module.
    ex : it_sTBD type table of tbd.
    you will need to define variable to get the IMPORTING data from the FM.
    CALL FUNCTION 'CS_BOM_EXPLOSION'
    EXPORTING
    AUMNG = 0
    CAPID = ' '
    DATUV = DATVAL "valid-from date
    EHNDL = '1'
    MKTLS = 'X'
    MEHRS = 'X'
    MMORY = '1'
    MTNRV = MATNR
    STLAL = LAL "like mast-stlal default '1'
    STLAN = LAN "like mast-stlan default '2'
    SVWVO = 'X'
    VRSVO = 'X'
    WERKS = WERKS
    mmaps = 'X'
    IMPORTING
    TOPMAT = STARTMAT "includes structure CSTMAT
    TABLES
    STBD = TBD "includes structure CSXDOC
    STBE = TBE "includes structure CSXEQUI
    STBK = TBK "includes structure CSXKLA
    STBM = TBM "includes structure CSXMAT
    STBP = TBP "includes structure CSXGEN
    STBT = 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.
    Hope you are clear abt FM's.
    Shruthi

  • How to pass Valid from and Valid to Dates in CS_BOM_EXPLOSION

    Hii Experts,
    My requirement is to explode BOM using CMC LDB and generating files for all the remaining months by varying Valid from and Valid to dates. For this I am using CS_BOM_EXPLOSION but it has provision for a single date field.
    Can you please guide me how to pass both Valid from and Valid to dates in CS_BOM_EXPLOSION ? And if you can suggest any other alternative, its most welcome...
    Regards,
    Vikas

    Hi Vikas,
    There is a tables parameter STBP which is of type CSXGEN.
    This structure CSXGEN contains two fields valid from date(DATUV) and valid to date(DATUB).
    Is this what something you are looking for?
    Regards,
    Swarna Munukoti

  • CS_BOM_EXPLOSION Function Module

    Hi,
    I want to know the significance of the field
    STBP-XTLTY in the function module CS_BOM_EXPLOSION.
    From which table can I get this field for the BOM component?
    Thanks/Regards.
    Abhijit

    Hi,
    STBP-XTLTY is the field to identify the type of BOM
    Equipment BOM / Material Bom / Sales order BOM / Standard BOM / Functional location BOM
    You can get the BOM components from STPO.
    Regards,
    Rusidar

  • FM CS_BOM_EXPLOSION generates an exception NO_SUITABLE_BOM_FOUND

    Hello
    I execute FM CS_BOM_EXPLOSION (get components of material BOM) within my FM. For one of the materials this FM generates an exception NO_SUITABLE_BOM_FOUND (BOM has marked for deletion).
    Execution of FM (code2) stops.
    How to enable to execution of the FM?
    code1
    CALL CS_BOM_EXPLOSION
    code2
    Thanks

    Try this..
    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
       error_message               = 99 "<<< this helps to capture such exceptions
       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.

  • How do I find only materials with BOM in CS_BOM_EXPLOSION?

    Dear experts,
    In a BOM I try to find only BOM materials .
    I use CS_BOM_EXPLOSION.Is there a parameter that only explodes materials with bom underneath?
    is it brems?
    Thank you in advance.
    Roxani

    Hi Roxani,
    Please try this.
    CALL FUNCTION 'CS_BOM_EXPLOSION’
      EXPORTING
        MTNRV = wa_marc-stdpd
        CUOBJ = wa_marc-cuobj
        WERKS = I_PLANT
    <b>    MEHRS = ' '</b>
      IMPORTING
        TOPMAT = TOPMAT
      TABLES
        STBD = IT_STBD
        STBP = IT_STBP.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Trying to CS_BOM_EXPLOSION In nse37

    Dear friends,
    I have to specify parameters in CS_BOM_EXPLOSION based
    on which i could get an exploded bom.But i could not find the key by which i could know DATUV to pass.
    Secondly what procedural approach to follow that could ensure me at the end that i have complete information which will run this function module successfully for those parameters.In short how to conclude those parameters.
    Reward points will be given as per answer.

    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
               EXPORTING
                    capid                 = 'PP01'
                    datuv                 = sy-datum
    *                mehrs                 = 'X'          
                    mtnrv                 = it_mast-matnr  "Material
                    werks                 = it_mast-werks  "Plant
               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.
    try the above.

  • CS_BOM_EXPLOSION - Exception Handling

    Dear Friends
    I have use CS_BOM_EXPLOSION FM for explore material BOMs for some items its works properly
    for some materials it exception pass 1 (ALT_NOT_FOUND)
    i cant get what is the error
    please let me know to solve this problem
    hope my question is clear for you
    Thanks in Advanced
    Edited by: Nelson Rodrigo on May 11, 2009 1:27 AM

    Dear Frends
    I use as follows
    in my systems alternative BOMs are available
    CALL FUNCTION 'CS_BOM_EXPLOSION'
              EXPORTING
                CAPID                 = C_CAPID     ('PP01')
                DATUV                 = SY-DATUM
                EMENG                 = C_EMENG     ('1')
                MTNRV                 = V_MTNRV     ('50.10.12')
                WERKS                 = V_WERKS     ('1030')
                STLAL                 = V_STLAL     ('1030') Shipping Point
                STLAN                 = C_STLAN     ('1')
                MEHRS                 = C_MEHRS     ('X')
                MDMPS                 = C_MDMPS     ('1')
              TABLES
                STBD                  = IT_STBD
                STBE                  = IT_STBE
                STBK                  = IT_STBK
                STBM                  = IT_STBM
                STBP                  = IT_STBP
                STBT                  = IT_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.

  • BOM Explosion for Multiple Process Orders

    Hi,
    I hope someone can assist me with the following: Is there a report I can run or transaction I can do to have BOM explosion for multiple Process Orders? I would like to input process orders for a week and see the BOM details per PO.
    Thanks

    Dear Sukendar,
    1.For this requirement you have to go for a Z report and you can give the Functional Spec's to prepare
    this report to your ABAP consultant.Prepare the input format,logic of the program and the output format.
    In the logic part you can make use of this Functional Modules's CSAP_MAT_BOM_READ or 
    CSEP_MAT_BOM_READ  or CS_BOM_EXPLOSION   or CS_BOM_EXPL_MAT_V2 .
    2.Using CEWB helps you to identify all the material that's having the BOM,but here the report does not
    shows you the level by level by BOM for a FERT.
    Check and revert back.
    Regards
    Mangalraj.S

  • Report for Material Numbers configured in KMAT Sales Order

    Hi,
    Scenario:
    We are operating with KMAT material type. (e.g. ABC)
    Material "ABC" has Characterstic Char 1 , Char2, Char3, Char 4
    Each Char has Char values.
    Sales Persons create the Sales orders by selecting approprite Char & Char Values. Via MRP, this lead to requirement generation for materials associated to the respective Char & Char Values.
    Requirement:
        For a given list of sales order numbers for the KMAT material (ABC),
            I want to get the list of Material numbers associated to the Char & Char   Values configured in these S.Os.
    Thanks
    Nitin

    For the Function Modules, you would need to go to Transaction SE37.  For  CS_BOM_EXPLOSION I use the following Paramater Values, aukmng = 1, auskz = X, capid = PP01, CUOBJ = from the VBAP Table and line Item of the Sales Document VBAP-cuobj, datuv = current date, emeng = 1, mktls = X, mtnrv = VBAP-matnr, stpst = 0, svwvo = X, werks = VBAP-werks, vbeln = VBAP-vbeln, vbpos = VBAK-posnr, vrsvo = X.
    For the Function Module VC_I_GET_CONFIGURATION use the following Parameter Value, instance = VBAP-cuobj.

  • BOM Explosions for Materials and Plant

    I am looking for the same functionality as in CS15 where I can check if a component within a BOM is part of another BOM.
    How can I achieve this?
    I have tried the FM: CS_BOM_EXPLOSION or CS_BOM_EXPL_MAT_V2, but I can not get these to work as I wish.
    I have material number and plant as a selection criteria as well as BOM usage.
    Does anyone have a good solution to this?
    Please help out as soon as possible, since I am stuck.
    Rgds,
    /Fredrik.

    Hi Fredrik,
    in the past i used FM CSEP_MAT_BOM_SELECT_WHERE_USED  (and afterwards CSAP_MAT_BOM_READ to get details).
    Also you could have a look at FM CS_WHERE_USED_MAT - it should be like CS15.
    Hope it helps,
    BR,
    Sebastian

  • Table to find BOM valid-till-date

    Hi Friends,
      I have to check the vality of BOM components,  through transaction CS03 i could able to see the Valid-till-date and i need to check the same in my code.
    Looked into following tables, thre is a field valid-from-date(DATUV) but i'm not getting field Valied-to-date(DATUB).
    MAST Material to BOM Link
    EQST Equipment to BOM Link
    STAS BOMs header
    STKO BOM header
    STPN BOM follow-Up control
    STPO BOM item
    STPU BOM sub-item
    STST Standard BOM link
    STVB Bills of material - Serialisation of posting
    STZU Permanent BOM data
    Can any one please help me.
    Thanks in advance.
    /Kiran

    Hi kiran,
    I think the Valid-to-date is in table AEEF-DATE_HI which can be linked with the BOM Header table STKO by field AENNR. Try this.
    Otherwise you can also get the Date using the FM CS_BOM_EXPLOSION....
    Use it as follows;
    CALL FUNCTION 'CS_BOM_EXPLOSION'
    EXPORTING
    AUMNG = 0
    CAPID = ' '
    DATUV = DATVAL "valid-from date
    EHNDL = '1'
    MKTLS = 'X'
    MEHRS = 'X'
    MMORY = '1'
    MTNRV = MATNR
    STLAL = LAL "like mast-stlal default '1'
    STLAN = LAN "like mast-stlan default '2'
    SVWVO = 'X'
    VRSVO = 'X'
    WERKS = WERKS
    mmaps = 'X'
    IMPORTING
    TOPMAT = STARTMAT "includes structure CSTMAT
    TABLES
    STBD = TBD "includes structure CSXDOC
    STBE = TBE "includes structure CSXEQUI
    STBK = TBK "includes structure CSXKLA
    STBM = TBM "includes structure CSXMAT
    STBP = TBP "includes structure CSXGEN
    STBT = 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.
    After the function call you will get the Valid to Date(DATEUB) from table STBP.
    Hope this Helps you...
    Regards
    Karthik D

  • How to insert a new line item in VA01/VA02 by using ABAP code?

    Hi Gurus
    i have a very tough requirement. the customer wants to insert a free goods after an item has been populated in VA01/VA02 automatically according to some certain rules. the input material may be a main material of a sales BOM.
    for example. let's suppose there is a material A who has two sub-material B and C which is maintained in a sales BOM via CS01/CS02. when the material A has been input in the line item in VA01/VA02, its quantity input and after the ENTER key has been clicked, another material D may be displayed in a new line as a gift if the condition met.  the condition relates to customer/material/quanity and these information are stored in a Z-table.
    on the other hand, if the material A is only a single material(not a BOM), the gift(material D) will also be filled automatically if the condition met.
    i have already enhance the FM cs_bom_explosion to filfill the requirment for BOM materials. whereas it is very hard to find the enhanment point for the single material.
    so my question is where is the correct place for me to insert the ABAP code, which decides whether the gift should be given or not and furthermore inserts the new line item into XVBAP. i tried to use MV45AFZZ, whereas the data is always inconsistant if a new line has been inserted. it is very strange that there is no temperary internal table storing line item data input in the table controal of VA01/VA02. system reads the line item data , line by line, via a system kernal function call.
    any hints are welcome. thanks

    HI Stephen,
    I have the same prolem. I modified the 5 global tables, but I don't see the new line in the screen.
    Can you help me with some details?
    Thx!
    Mihaela

  • FM for calculation of Weights of a BOM?

    Hi ABAP,
    i have/had to code a report which will display BOM´s.
    According to that BOM, i need to print out the weight of the components, the weight of BOM´s in the BOM, and the weight of the BOM itself.
    are there any FM´s that can calculate those values for me?
    or is there any best-practice?
    right now i explode the bom with CS_BOM_EXPLOSION.
    parameters mehrs = 'X' if i need to calculate weights.
    next step is that i calculate all the weights of the components, by either getting the weight from the BOM-position (STB-yy_ntgew), or getting it from MARA by material, or by calculation faktors.
    Then when calculated all those weights, i loop over all my BOM´s in the BOM (xtlnr NE space), and calculate the weights of those by exploding them again using CS_BOM_EXPLOSION with mehrs = space.
    after that looping over the exploded Bom´s and summing the previous calced values of the components.
    last step is to calculate the total weight of the BOM, by adding all the values of the Bom´s in the Bom + components on Stufe = 1 which are no BOM.

    BAPI_COSTESTIMATE_GETEXPLOSION Determine BOM Explosion for a Cost Estimate
    regards,
    srinivas
    <b>*reward for useful answers*</b>

Maybe you are looking for

  • Create ASM disks on Solarix X64 fails with ORA-15031

    I am trying to create a ASM disk group on SOLARIS x64 using a NETAPP LUN. Below are the disks which are configured SQL> show parameter asm; NAME TYPE VALUE asm_diskgroups string DATA asm_diskstring string /dev/rdsk/c2t9* asm_power_limit integer 1 asm

  • AD OID sync not working after relocating servers

    Experts, OAS 10g (9.0.4.3.0) The AD/OID synch which runs once a day did not run after the servers were relocated. I had run the chgip on both infra and midtier and the applications are running without any problems. How can I troubleshoot this? Where

  • Error in booting the IOS

    I have a Cisco 3660 in my ISP and use it as a RAS router, this morning when I reloaded it for some reasons the following error message appeared: MUT-RAS-ROUTER:#reload Proceed with reload? [confirm] C3660 processor with 65536 Kbytes of main memory Ma

  • My ipad 2 won't fully restore, it stops at about 95%

    i went to update my ipad to 4.3.2 and it saif i had to restore it, and i have tried 4 times letting it go for about 2 hours each time, and it gets hung up when the bar is almost full, the same place each time, my itunes is current. i have talked to A

  • Switch icloud accounts on OSX mountain lion

    I would like to switch Icloud accounts on my IMac. I'm currently using my personal icloud account, which is linked to all my personal documents and e-mail- and which is really only intended for my home, but would like to disconnect it, and start usin