Need FM to bring BOM explosion and quantity

Hi,
I'm using FM CS_BOM_EXPL_MAT_V2 to bring BOM explosion, but this function doesn't return the correct quantity like VA01 when I enter the main material and its order quantity.
Does someone know any other function to explode BOM material and return each quantity, depending the main material order quantity entered?
My codes are:
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
      EXPORTING
        capid                 = 'SD01'
        datuv                 = sy-datum
        emeng                 = w_qtd
        mtnrv                 = material-matnr
        werks                 = material-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.
Thank you.
Chang

Hi a®s,
The only difference in putting MEHRS ='X'. is the function returns multilevel of part list. The function still doesn't return the quantity based on main material order quantity like VA01 (salesorder create) does.
Thank you anyway.
Chang

Similar Messages

  • 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

  • No Sales BOM explosion via BAPIs

    Hi all,
    We use BAPI_INQUIRY_CREATEFROMDATA to create inquiries; however this does not explode sales BOM; rather it creates just one line for the main material.
    Are there any specific input parameters that need to be modified to trigger BOM explosion in the background.
    Alternatively, are there any BAPIs or FMs at least to simulate BOM explosion and return the results so that we can pass them explicitly to the inquiry create BAPI.
    Or is there any other way to create sales documents with sales BOM explosion. (we can't change the BAPI as its part of the source code of a 3rd party application; but we have user exits before and after this BAPI call).
    Thanks,
    KC
    SAP SD

    Solved. Sales BOM does get exploded even in BAPIs. Checked with a different user ID and it worked. The RFC user seemed to have an authorization problem.

  • BOM explosion in chracteristic Plng

    Hi
    I am trying to map a scenario by characteristic plng. scenario is like, i have steel industry product which is differentiated on basis of grade, dia, shape (major characteristics). and my major objective with plng of finished good is to aggregate molten metal requirement (SFG) on grade wise.
    so what I planned is i made configurable material grade wise using material type KMAT, plng stratagy 56.
    I have defined character (dia&shape, grade) and assigned to a class type 200(as per literature on sap help). and in class is defined for bom explosion.and in class object are assigned as per characteristic.
    i have defined BOM for configure material ,,,,bom item is class(as defined above one) with all required setting.
    I have created planning table & profile in DM.
    when  i m creating PIR ...characteristic wise it is taking but on taking MRP run it is not exploding bom....i.,e it is not picking right material as per class characteristic match.
    help me on this
    thanks in advance
    Rajesh

    Hi prakash
    yaa...it is variant based planning. but it is based on characteristics and for that I am using class type 200 & strategy 56. as per your reply if I go for strategy 54 than i have to use class type 300 and I have to make configure profile that is not my case.
    In my scenario first i have to create PIR for configure material for that pre-requisite is planning profile, planning table & chracteristics combination. I have maintained all these, these thing are all reflected when i am creating PIR (MD61) but when I am taking MRP run Planned order for configure material is generated but dependent requirement is not generated for down level material. I am using class item as BOM component, I don't know why it is not picking right component as per characteristics.
    thanks
    Rajesh

  • BOM Explosion needed on PO and/or Delivery for Stock Transfer PO Process

    Good afternoon,
      I have been researching the SDN and web for a solution to my problem to no avail so far. 
    The business problem I need to solve is the requirement for our STPO process to explode certain BOM's that are transfered from one company/plant to another company/plant in order to record batch/serial # component information by the delivering plant on the delivery and verification of the batch/serial # in the receiving plant during MIGO processing of the delivery.  This is needed by our Service Mgmt department in order to track servicable items within the Finished Good (medical devices industry).
    It appears on the SDN that a BOM can not be exploded on a non-Subcontracting PO (which would be ideal for us), but barring this problem, we are trying to have the BOM explode in the Delivery created from the STPO via the VL10B transaction.
    The STPO generates a Delivery doc with type NLCC and item category NLC.  I have maintained the material master for the BOM material to have an Item Category Group of ERLA, and I have modified Item Category Determination in configuration in Logistics Execution for deliveries to include ERLA, usage V, and NLC as default item category.  But, the deliveries generated from the STPO still do not explode, like what normally happens if the delilvery of the BOM was created from a standard Order.
    The components for the BOM need to be displayed on the Delivery (if not the STPO), so the cleark can record the Batch/Serial #'s for each component.  Then when the receiving plant posts the Goods Receipt for the delivery a user exit we have (based on movement type and material document code) builds a Service Mgmt table that is then processed to De-install the BOM and components from the former plant and install the BOM and components at the receiving plant (and then subsequently at the ultimate customer's location when a normal sale is made), generating a new Functional Location.
    Has anyone here had to do anything like this before?  Would any of you have any ideas on how this BOM explosion might work on the PO or Delivery?
    Thanks in advance.
    Scott.

    No responses to this question.
    Subject dropped.

  • BOM Explosion needed on Delivery for Intercompany Stock Transfer Order

    Good afternoon,
    I have been researching the SDN and web for a solution to my problem to no avail so far.
    The business problem I need to solve is the requirement for our STPO process to explode certain BOM's that are transfered from one company/plant to another company/plant in order to record batch/serial # component information by the delivering plant on the delivery and verification of the batch/serial # in the receiving plant during MIGO processing of the delivery. This is needed by our Service Mgmt department in order to track servicable items within the Finished Good (medical devices industry).
    It appears on the SDN that a BOM can not be exploded on a non-Subcontracting PO (which would be ideal for us), but barring this problem, we are trying to have the BOM explode in the Delivery created from the STPO via the VL10B transaction.
    The STPO generates a Delivery doc with type NLCC and item category NLC. I have maintained the material master for the BOM material to have an Item Category Group of ERLA, and I have modified Item Category Determination in configuration in Logistics Execution for deliveries to include ERLA, usage V, and NLC as default item category. But, the deliveries generated from the STPO still do not explode, like what normally happens if the delilvery of the BOM was created from a standard Order.
    The components for the BOM need to be displayed on the Delivery (if not the STPO), so the cleark can record the Batch/Serial #'s for each component. Then when the receiving plant posts the Goods Receipt for the delivery a user exit we have (based on movement type and material document code) builds a Service Mgmt table that is then processed to De-install the BOM and components from the former plant and install the BOM and components at the receiving plant (and then subsequently at the ultimate customer's location when a normal sale is made), generating a new Functional Location.
    Has anyone here had to do anything like this before? Would any of you have any ideas on how this BOM explosion might work on the PO or Delivery?
    Thanks in advance.
    Scott.

    No responses to this question.
    Subject dropped.

  • Information on bom implosion and bom explosion

    Hi All,
    Can any one please explain what does bom implosion and explosion mean.
    Any information on this will be very helpful
    Regards,
    Sandeep V

    BOM is an item made with several components. The components can also be anther BOM so to get into another level bom explosion is needed.
    From bill of material responsibility you can see indented BOM structure, where you can multiple level of BOMs.
    bompxinq.export_bom is the API that can be used in the code to explode the BOM
    http://sureshvaishya.blogspot.com

  • Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.

    Hi,
    I am creating order form in Acrobat Pro , and I have
    code
    Order Quantity
    Unit price $
    201
    500
    $ 0.52
    201
    1000
    $ 0.36
    202
    300
    $ 0.26
    202
    500
    $ 0.2
    How make Subtotal and Total price with Java script.
    I do not know how to write java script.
    Anyone can help me?
    Thanks,

    Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity.  Can you please let me know how to do it? One of the expert sent m this:
    //change field names as needed
    var qt1 = this.getField("qt1").value;
    var up1 = this.getField("up1").value;
    var qt2 = this.getField("qt2").value;
    var up2 = this.getField("up2").value;
    event.value = (qt1 * up1) + (qt2 * up2);
    I put this in total text field (calculation tab , Custom script) , but it  did not worked.
    I appreciate it if anyone can help or give me  suggestion.

  • Sample bom creation and explosion in sales order

    hi,
         can any one help to create a simple bom with atleast one sub item for the bom and create a sales order in which the bom explodes ( i mean when u enter the main bom item it should list its sub items as its line item below it)...
    (also mention what item categories are to be taken care ... )
    rewards for sure
    thanks
    mmn

    Hi MMn,
    Bill of materials (BOM)
    1. In the SAP System, you can use BOMs to represent different objects (such as materials, equipment, functional location BOMs, and documents) and to maintain object-specific data.
    2. Document BOM: A complex document may be made up of several documents, such as a program, technical drawings, papers, and photographs. These related information and documentation objects are grouped together as a unit using a document structure – a BOM for a document.
    3. Equipment BOMs are used to describe the structure of equipment and to assign spare parts to equipment for maintenance purposes. Bills of material for functional locations group together the elements of a technical structure, such as the functional unit of an entire plant.
    4. You work with order BOMs when you specially tailor the make-to-order production of your products to the requirements of your customers. In order to meet the customer requirements, sales order specific modifications to various assemblies are often required. Furthermore, assemblies are often specially constructed for a particular sales order.
    5. Before you can create a BOM for the component parts of an object, the object must have a valid master record in your system.
    6. A bill of material that you create for a material is known as a material BOM in the SAP System. A BOM explosion answers the question: What is the product made of? This question arises in various situations, such as when you want to:
    Determine material requirements for a product
    Look at the overall structure of a product in a design department
    See an overview of the parts and materials required
    Calculate the effects of changes to costs
    7. BOM is a collection of materials that make up a product. For example – computer, home theatre system. Material BOM is complex and is dependent on sales and distribution, material management or production planning.
    8. The most important rule is that the material type has to be a FINISHED PRODUCT (FERT) in order to categorise it as a BOM.
    9. BOM processing is divided into two different ways – either at the MAIN item level if the item is assembled or at the sub-item level (i.e. at the component level) if the material is not assembled.
    10. BOM is configured at the item category level (VOV7) and transaction code to create a BOM is CS01.
    11. In case of single level BOM, main item categories TAQ and TAP should represent single level BOM in VOV7 and in case of multi level BOM, the main item categories should represent multi level BOM.
    Main item level processing
    1. The material master records should have the item category group ERLA in the sales org.2 screen of the finished product. In this case, the associated sub items function only as text items, and thus are not relevant for delivery. This process ensures that pricing, inventory control and delivery processing is carried out the header level that is for the finished product only. This is mainly relevant to the assembled products.
    2. item category group – ERLA; main item category – TAQ (schedule line – CP) and sub item category – TAE (schedule line – CT)
    Sub-item level processing
    1. If the business prefers to have the sub-items be responsible for pricing, inventory control and delivery processing, the item category group should be LUMF on screen sales org.2 of the respective material master record. This ensures that subcomponents are relevant for processing. This is relevant to the products that are not assembled.
    2. item category group – LUMF; main item category – TAP (schedule line is CT), sub item category – TAN (schedule line is CP)
    Multi-level BOM
    In order to activate the multi-level BOM, structure scope in VOV7 has to be changed from single level explosion to multi level explosion.
    Try this and revert back fr clearifications
    Reward Points if helpful.
    Regards
    Srini

  • Im trying to play a game on my laptop and i need to use the keys alt and f4 but when i do that it takes me out of the game and brings me to my settings how can i stop this

    im trying to play a game on my laptop and i need to use the keys alt and f4 but when i do that it takes me out of the game and brings me to my settings how can i stop this?

    Go to the game's option settings and change the settings to something more to your liking. 

  • BOM explosion report and lot size

    Hi all
    We have created a Z report for BOM explosion . Here it gives the user the option to explode the BOM at the desired level.
    We have an enhancement ticket where  the user wants an additional field of Minimum lot size and Maximum lot size in the report.
    Before assigning a task to the ABAP team , I request if some one explains the feasibility and its impact on this report. Thanks in advance .
    Kind Regards
    Ayaz

    Thanks Bramhankar for the reply .How does the functional module affect this report ?Thanks
    Kind regards
    Ayaz

  • How to restrict BOM explosion in Quotation and Sales  Order

    Dear all,
    How can we restrict BOM main item explosion in Sales Order.
    this BOM main item is having special order items which have to generate purchase requisition (item category - BANC),
    with out exploding bom main item, can we generate a  purchase requisition for BOM subitems, can any body explain me that how can we do that.
    your suggestions will be highly appreciated.
    thank you
    Raghu Ram

    Hi Raghu Ram,
    The BOM explosion is controlled by item category.
    In the item category configuration screen, under "Bills of Material/ Configuration", you can see "Structure Scope" field.
    Select the one which is applicable to your case:-
    "blank" - Do not explode material structure
    A - Explode single-level BOM
    B - Explode multi-level BOM
    C - Configuration, no BOM explosion
    D - Configuration, poss. with BOM explosion
    E - Structure from Customer_Function (product selection)
    Hope this helps
    Regards,
    Nicole

  • MRP RUN- KIT BOM explosion not working

    We setup one layer BOM’s for our maintenance KITs as parent material and components as child material.  For  example KIT is TS10000-K1 and components are TS10001, TS10002 etc setup as next layer with in the BOM. Both KITS and components are defined as material types ERSA (Spare parts). These one layers BOMs are setup as production BOMs and expected to create purchase requisitions for KITS and components by exploding BOMs during MRP runs. We use purchase requisitions and convert them into POs to procure both KITS and components. We DO NOT USE Panned orders and Production orders. 
    The safety stocks / reorder point are considered as demand for KITS and components as we do not have any external demand for KITS and components.  
    MRP run is creating purchase requisitions automatically for both KITS and components as per safety stocks and reorder point defined in MRP Views of Material Master. This is working as expected.  
    The issue is: KIT BOM’s are not exploding to generate purchase requisitions for the dependent components of KIT BOM. Please suggest the way to resolve this issue. 
    Split valuation: Also we plan to use split valued KITS with both new and refurbished. So we need BOM explosion for split valued KITS
    also (after the 1st issue is resolved).   
    I verified the following items to make sure the required configuration and data setup is defined correctly.
    1) Planning file activated Plant - OMDU 
    2) Executed MRP run with Total Planning - MDBT and MD02 (single item, multiple levels)
    3) BOM explosion for MRP activated- OS23 
    4) MRP type in MRP1 view- PD and VB (I tried both separately but BOM is not exploding).
    5) Procurement type “F” (MRP 2 view) and lot size “EX”  
    6) Planning strategy in MRP 3 view (tested w/o planning strategy and with strategies 10 and 40. But BOM is not exploded)
    7) BOM status and usage (status is active and usage is for production-CS02 and OS20)  
    8) BOM Validity date (Valid) 
    9) BOM structure in CS12 (BOM is exploding in CS11) 
    10) Availability check  
    11) Selection of BON ID to have BOM usage indicator assign (OS31).
    12) No alternate BOMs or production versions or work scheduling view are used.
    Please review the above 2 issues and suggest any workable solution. Thanks in advance!
    NOTE: I extensively used MRP with multi-level BOM explosion in my earlier projects without any issue. However the above issue is a  bit strange  why one layer BOM is not exploded in this case. 
    Regards
    Srini  

    Hi
    Thanks for your response. I reviewed all SAP notes and none of them are applicable to my scenario.
    1808396 - BOM changes not considered by MRP: I have not changed BOMs.
    1781324 - MD11: Valid BOM alternative is not found. We do not have alternative BOMs.
    1791009 - No BOM explosion after changing production version: We am not using production versions.
    Our Material KITS are PM spare assemblies set up as BOMs and consists of individual spare parts as components. We are creating purchase requisitions and not planned orders. We are not using PP functionality/Production orders.
    MRP is generating purchase requisitions for KITS and components as per ROP and safety stocks. In other words it is working as expected.  The issue is BOMs which are parent assemblies are not exploding to the next lower level components.
    Please note that I am not getting any error messages when MRP is executed.
    Regards
    Srini.

  • Routing details with bom explosion

    hi friends
    i have developend the report for pp,in routing details
    how to get the details of bom explosion with workcenter and routing operations
    If procurement type is E or X, system has to check the routing through CA03.
    If procurement type if F, leave this field as blank and then fetch the relevant vendor
    CS_BOM_EXPL_MAT_V2 - using this fm to get the bom explosion
    after that how to relate between workcenter and routing details.
    input is material number
    plant
    1.operator
    2.material - i got through fm
    3.material description i got through fm
    4.workcenter
    5.vendor
    6.operation description
    7.uom -i got through fm
    8.qty - i got through fm
    9.uom
    10.setuptime
    11.processingtime
    12.deliverytime
    code for review.
    TABLES : MAST
    DATA: BEGIN OF ISTPO OCCURS 1000.
    INCLUDE STRUCTURE STPOX.
    DATA: END OF ISTPO.
    DATA: BEGIN OF MATCAT OCCURS 1000.
    INCLUDE STRUCTURE CSCMAT.
    DATA: END OF MATCAT.
    DATA: W_TOPMAT LIKE CSTMAT.
    SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
    PARAMETERS : P_WERKS TYPE MAST-WERKS.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MAST-MATNR,
    WERKS LIKE MAST-WERKS,
    END OF ITAB.
    DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
    data : istpotemp like stpox occurs 0 with header line.
    data : istpofinal like stpox occurs 0 with header line.
    START-OF-SELECTION.
    CLEAR ISTPO. REFRESH ISTPO.
    SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
    WHERE MATNR IN P_MATNR AND WERKS = P_WERKS.
    LOOP AT ITAB.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
    CAPID = 'PP01'
    MEHRS = 'X'
    MMAPS = ' '
    MDMPS = ' '
    BREMS = 'X'
    DISMM = ' '
    LIFNR = ' '
    WEBAZ = ' '
    DATUV = SY-DATUM
    MTNRV = ITAB-MATNR
    WERKS = P_WERKS
    EMENG = '1'
    STKKZ = ' '
    FBSTP = ' '
    FTREL = ' '
    IMPORTING
    TOPMAT = W_TOPMAT
    TABLES
    STB = ISTPO
    MATCAT = 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.
    WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
    W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
    sort istpo by index descending.
    loop at istpo.
    WRITE :/ ISTPO-POSNR,
    ISTPO-IDNRK,
    ISTPO-OJTXP,
    ISTPO-MENGE,
    ISTPO-MEINS,
    endloop.
    refresh istpo.
    endloop.

    HI,
            i got the workcenter also,but i need to classify
    if the material procurment type is E OR X CHECK FOR routing details
    or else if its F THEN pick the vendor and uom -PLPO-VGE01,PLPO-PLIFZ.
    how shall i implement this
    Regards
    ds

  • How to restrict cs12 bom explostion and how to download excel in back groun

    i have using bom explosion report like using cs13.
    but it get cs12 bom explosion also. how can i restrict it
    then i would like to run this report in background and also
    download it into excel format
    i tried using fm download
    but i gave the input 1 to 10,
    the report is coming
    but excel only last materials datas only came
    in excel 213 columns was taken, but i need only
    material ,description
    objectid,objectdesc,qty,uom
    one by one
    data: begin of istpo occurs 1000.
            include structure stpox.
    data: end of istpo.
    data: w_topmat like cstmat.
    parameters: p_matnr type mast-matnr,
                p_werks type mast-werks.
    start-of-selection.
      clear istpo. refresh istpo.
      call function 'CS_BOM_EXPL_MAT_V2'
           exporting
                capid                 = 'PP01'
                mehrs                 = 'X'
                datuv                 = sy-datum
                mtnrv                 = p_matnr
                werks                 = p_werks
                emeng                 = '1'
            importing
                                topmat = w_topmat
           tables
                stb                   = istpo
           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.
      write:/ 'Components'.
      skip 1.
      write: / w_topmat-matnr under text-h00 color col_heading,
               w_topmat-maktx under text-h01 color col_heading.
      loop at istpo.
        write:/ istpo-idnrk, istpo-menge.
      endloop.
    Regards
    ds

    Hi Raghu Ram,
    The BOM explosion is controlled by item category.
    In the item category configuration screen, under "Bills of Material/ Configuration", you can see "Structure Scope" field.
    Select the one which is applicable to your case:-
    "blank" - Do not explode material structure
    A - Explode single-level BOM
    B - Explode multi-level BOM
    C - Configuration, no BOM explosion
    D - Configuration, poss. with BOM explosion
    E - Structure from Customer_Function (product selection)
    Hope this helps
    Regards,
    Nicole

Maybe you are looking for

  • Error -3000 in Oracle Explorer View while trying to add connection. v. 10.2

    I have been using Oracle 9.2 and it's cooresponding ODP.NET for ASP.NET web development. I am now started on a new project that is running on a 10g database. I figured I would try out the Visual Tools suite and get the benefit of using ODP.NET and th

  • Trying to access USC website and they do not support 4.0.

    It worked fine with 3.6, so now what do i do? I need to access financial aid portion and a window came up saying that it does not work with 4.0 Can i download 3.6 again or is there some way to make it work?

  • HTMLLoader loadString

    I have a socket connection that I am sending a pdf file down to an Air Application. If I use HTMLLoader.load then  it opens the pdf perfectly. When  I user HTMLLoader.loadString it just gives me the makeup data of the file ie %pdf-1.3 etc. I can save

  • My ipod touch just froze and wont come back to life...

    Sometimes it freezes during the use of an app, but then i just hold the button on the top left and it goes to the black screen, then the apple icon appears and then its all good. But now it's just black and no matter what I do, it won't change from t

  • Hittest with multiple objects...

    Ok I need some help! I'm trying to make a room with a little guy and he moves around the issue is that HE CAN WALK THE WALL it's like Spiderman... I want to only have to use one object with the same root name, but I want it to be a hittest so it's li