BOM Explosion Query Thru SQVI

Hi Experts,
We want to make a Query of BOM explosion, suppose we require 100 Nos X, 200 Nos Y, 200 Nos Z, where X,Y,Z are my FG Material. We want to put all the three FG in one go, and the child components required quantity get populated. Which Tables we have to use and in what order. Kindly suggest. Or any other method.
Full Points for helping answers.
GR

Hi,
You can use the Function Module: CS_BOM_EXPLOSION for BOM Explosion.
It is better to use this FM in SAP query than SQVI.
Take the help of your ABAPer.
Regards,
Siva

Similar Messages

  • BOM Explosion query

    Hi,
    Actually we required to have exploded BOM structure.
    Can any one have query to find all level of BOM explosion.
    Regards,
    Rakesh Mishra

    Hi Rakesh,
    Please try below query, it may serve your purpose..
    You need to put Organization_id and Assembly item name in the query.
    Please mark this answer as correct or helpful, if it satisfies your requirement.
    Query:
    select CONNECT_BY_ROOT msi.PLANNER_CODE FG_PLANNER,
    CONNECT_BY_ROOT bill_item_name FG_ITEM,
    CONNECT_BY_ROOT msi.DESCRIPTION FG_DESCRIPTION,
    BILL_SEQUENCE_ID,
    CONNECT_BY_ROOT COMPONENT_SEQUENCE_ID,
    component_item_name,
    msi2.DESCRIPTION,
    msi2.ITEM_TYPE CMP_TYPE,
    msi2.PLANNER_CODE COMPONENT_PLANNER,
    QUANTITY_PER_ASSEMBLY,
    bfg.WIP_SUPPLY_TYPE,
    supply_locator_name,
    end_effective_date
    from apps.bomfg_bom_components bfg,
    apps.mtl_system_items msi,
    apps.mtl_system_items msi2
    where
    msi.ORGANIZATION_ID = 254
    and msi.ORGANIZATION_ID = msi2.ORGANIZATION_ID
    and msi.ORGANIZATION_ID = bfg.ORGANIZATION_ID
    and msi.inventory_item_id = bfg.ASSEMBLY_ITEM_ID
    and msi2.inventory_item_id = bfg.COMPONENT_ITEM_ID
    AND(end_effective_date IS NULL OR end_effective_date >= SYSDATE - 1)
    start with bill_item_name = '4036084' --- use a sub select to get it for all the Fg's
    connect by prior component_item_name = bill_item_name
    ORDER BY BILL_SEQUENCE_ID ;
    Thanks in advance,
    Avinash

  • Duplicate records in the Results of SAP Query thru SQVI

    Dear All,
    I formed a query and joined EKKO, EKBE, EKET & EKES tbls to fetch information on the PO Item-Qty, Delivery Dt., Vendor's Confirmed qty, etc.
    However, in the results I get repeated records.
    Pls advise the possible reasons for above.
    Rgds,

    Shekhar,
    Using a join on these tables is illogical.
    EKBE, EKET & EKES each have many-to-one relationships to EKKO.  Joining all four tables will typically give you multiple output records with redundant data.  Also, using straight inner joins will exclude certain data that you will certainly want to see.
    Try instead using Logical Database MEPOLDB.  It will sort most of these things out for you.
    If you elect to use the logical database, beware of trying to use multiple selection criteria from the lower level tables (EKBE, EKET & EKES).  You will not always get the results you expect.   Better to only place EKKO fields as selection parameters.  Save the other table fields for display.
    Rgds,
    DB49

  • BOM EXPLOSION IN SUBCONTRACTING SCENERIO

    Hi,
    To all Experts,
    This is regarding the bom explosion in subcontracting P.O(scenerio).Scenerio prob. is explained as follows -
    1) I have an assembly which includes the semifinish & raw materials.
    2) By cs11 it explpodes whole BOm
    3) When i made P.O. for job work order(subcon.), in mateial data view it displys only the semifinish components(i.e. component or explode bom) ,but not the raw,which we want to send to vendor.
    so due to above,how we can determine, what the material we are sending to vendor?
    In short i want to explode the bom in po,in which it displys the semifinish as well as its raw.
    So please suggest a propper solution for above query.
    Hoping suggestion quickly
    Thanks in advance
    Manish

    Hello Manish,
    Could you please tell me how you have resolved this problem. I have the similar requirement.
    "want to explode the bom in subcontracting po,in which it displys the semifinish as well as its raw."
    we are exploring the PHANTOM ASSEMBLY but still no luck.
    When i set at BOM item level - Phantom Assembly off indictor and  Spec. Procurement 50
    system is still requesting for transfer of Phantom Assembly instead of components to the vendor.
    Thanks in advance

  • How to calculate  extended quantity in BOM IMPLOSION QUERY

    Hi guys,
    I have given an assignment to create BOM  item where used report, For this purpose I am using an BOM implosion API  (PACKAGE.PROCEDURE = BOMPIINQ.IMPLODER_USEREXIT)
    I am calling this API like this-
    declare
      V_SEQUENCE_ID    number;
      v_err_msg        VARCHAR2(80);
      v_err_code       NUMBER;
      V_DATE           VARCHAR2 (30);
    begin
    delete BOM_SMALL_IMPL_TEMP;
    -- V_SEQUENCE_ID:=142354;
    SELECT BOM_IMPLOSION_TEMP_S.NEXTVAL INTO V_SEQUENCE_ID FROM SYS.DUAL;
    SELECT TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI') INTO V_DATE FROM DUAL;
    BOMPIINQ.IMPLODER_USEREXIT (
            SEQUENCE_ID => V_SEQUENCE_ID,        
            ENG_MFG_FLAG => 1,                   
            ORG_ID => :org_id,             
            IMPL_FLAG => 1,                    
            DISPLAY_OPTION => 1,                    
            LEVELS_TO_IMPLODE => 10,             
            ITEM_ID =>:item_id,           --34077520002
            IMPL_DATE => V_DATE,
            unit_number_from =>null,
              unit_number_to=>null,               
            ERR_MSG => v_err_msg,
            ERR_CODE =>v_err_code,
            organization_option =>1,
            organization_hierarchy =>null,
            serial_number_from =>null,
              serial_number_to =>null
    end;
    Now I query the table BOM_SMALL_IMPL_TEMP and it shows the data as per the structure of the item where used.
    NOW ALL I WANT IS I WANT TO CALCULATE EXTENDED QUANTITY  (PARENT-QTY * ITS_CHILD_QTY)
    CURRENTLY IT SHOWS ONLY COMPONENT QUANTITY. HOW CAN I CALCULATE EXTENDED QUANTITY LIKE WE DO IN BOM EXPLOSION?
    Can any one help me on this?
    Thanks,
    Himanshu Gupta

    Thanks , Yes it works but need to work out.
    I have used rather calling API and then query using this-
    select t1.*,
    DECODE(T1.PART,T1.PART,(SELECT DISTINCT SEGMENT1 FROM MSI WHERE INVENTORY_ITEM_ID = T1.PART)) LOWEST_ITEM,
    DECODE(T1.PART,T1.PART,(SELECT DISTINCT DESCRIPTION FROM MSI WHERE INVENTORY_ITEM_ID = T1.PART)) LOWEST_ITEM_DESC,
    t2.segment1 PARENT_ITEM,
    T2.DESCRIPTION PARENT_DESCRIPTION,
    T2.ITEM_TYPE PARENT_ITEM_TYPE,
    DECODE(T2.ORGANIZATION_ID, 125, 'MU1', 126, 'MU2') ORG_CODE,
    T3.ITEM_COST,
    T1.QTY*T3.ITEM_COST EXTENDED_COST
    from
    (select t.*
             from (WITH t AS (SELECT distinct SYS_CONNECT_BY_PATH(a.parent_item_id, '\') || '\' || a.current_item_id || '\' as path,
                                              a.component_quantity qty_per_assembly
                                FROM BOM_SMALL_IMPL_TEMP1 a,
                                     mtl_system_items_b      b
                               where a.parent_item_id = b.inventory_item_id
                                 and b.organization_id = a.organization_id
                               START WITH b.item_type IN ('SA','FG MFG')
                              --CONNECT BY  a.current_item_id = PRIOR a.parent_item_id
                              CONNECT BY nocycle a.parent_item_id = PRIOR
                                         a.current_item_id)
                    SELECT root_part, part, SUM(qty) AS qty
                      FROM (SELECT SUBSTR(t1.path,
                                          2,
                                          INSTR(t1.path,'\', 1, 2) -
                                          INSTR(t1.path, '\', 1, 1) - 1) as ROOT_PART,
                                   SUBSTR(t1.path,
                                          INSTR(t1.path, '\', -1, 2) + 1,
                                          INSTR(t1.path,'\', -1, 1) -
                                          INSTR(t1.path, '\', -1, 2) - 1) as PART,
                                   (SELECT EXP(SUM(LN(t2.qty_per_assembly)))
                                      FROM t t2
                                     WHERE t1.path LIKE t2.path || '%') AS qty
                              FROM t t1
                             GROUP BY t1.path)
                     GROUP BY root_part, part) t
                   where t.part = :lt_part
           ) t1,
          mtl_system_items_b t2, CST_ITEM_COSTS T3
    where t1.root_part = t2.inventory_item_id
    AND T1.PART = T3.INVENTORY_ITEM_ID
    AND T2.ORGANIZATION_ID = T3
    .ORGANIZATION_ID
       --and t2.item_type = 'FG MFG'
       and t2.organization_id = :lt_org;
    and now it is running perfectly

  • BOM explosion while MRP run

    hi all
    I have a FERT for which raw materials are assigned in the BOM. but while running MRP, the BOM is not being exploded and the list doesnt show the raw materials.
    I have checked in the Overall maintenance of the plant parameters in MRP in SPRO and the required paramenters are maintained.The scenario is MTS - strategy 10.but still the BOM is not exploded.
    Could anyone solve my query
    Thank you in advance
    chandra

    Hi Chandra,
    Could you please check if there was an exception message "50 or 52"? If so then it can be beacuse for the BOM explosion date system is not able to get a BOM.
    If there were no exception messages then check in MRP4 view of the FERT material for dependent requirement defination. This should be blank.
    Hope this helps..
    Regards,
    Prasobh
    Reward your points if this was helpful.

  • Comp. Backflush using Comp. Scrap(No BOM explosion(manual comp. entry))

    Hi Friends,
    *Component Backflush + MFBF Functionality:*
    Go to MFBF --> Select the radio button COMPONENT BACKFLUSH --> and click on
    COMPONENT SCRAP (application toolbar).
    Now select the radio button NO BOM EXPLOSION(manual comp. entry).
    Enter the Material Number and Production Version.
    Now click on PROCESS COMPONENT LIST (application toolbar).
    Enter Material, Quantity, UOM, Storage Location, Reason Code and press ENTER.
    By default the movement type will be '551'.
    Now when you click on SAVE button on the top. It will give you a material
    document number.
    I have created a new FM according to the standard component backflush functionality and called the BAPI BAPI_REPMANCONF1_CREATE_MTS in my Z FM. But the functionality of the standard BAPI is not giving expected results.
    I would appreciate if someone who had gone thru the same situaton could help me. I have done my research in different ways. But ended up finding none. Is there any other BAPI or procedure to achieve the above scenario.
    Thanks.

    Hi Keshav,
    Thanks for getting back to me.
    Below is how I populated the data.
    "I am not populating Backflush quantity and UOM because according to my
    "standard MFBF functionality I have choose NO BOM EXPLOSION(manual comp. entry)
    FLAGS-BCKFLTYPE       = '12'.
    FLAGS-COMPONENTS_TYPE = '1'.
    GENDATA-POSTDATE    = SY-DATUM.
    GENDATA-DOCDATE      = SY-DATUM.
    GENDATA-MATERIALNR = MATERIAL.
    GENDATA-PRODPLANT   = PLANT.
    GENDATA-PRODVERSION   = VERSION.
    "Z_IMPORT_TABLES is the custom structure which I have declared at TABLES in FM
    "I_GOODS is of type BAPI2017_GM_ITEM_CREATE
    LOOP AT Z_IMPORT_TABLES.
      WA_GOODS-MATERIAL    = Z_IMPORT_TABLES-MATERIAL.
      WA_GOODS-PLANT          = Z_IMPORT_TABLES-PLANT.
      WA_GOODS-STGE_LOC   = Z_IMPORT_TABLES-STGE_LOC.
      WA_GOODS-MOVE_TYPE = Z_IMPORT_TABLES-MOVE_TYPE.
      WA_GOODS-ENTRY_QNT = Z_IMPORT_TABLES-ENTRY_QNT.
      WA_GOODS-ENTRY_UOM = Z_IMPORT_TABLES-ENTRY_UOM.
      WA_GOODS-MOVE_REAS = Z_IMPORT_TABLES-MOVE_REAS.
    APPEND WA_GOODS TO I_GOODS.
    ENDLOOP.
    CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS' 
        EXPORTING
          BFLUSHFLAGS       = FLAGS
          BFLUSHDATAGEN  = GENDATA
        IMPORTING
          CONFIRMATION   = CONFIRMATION
          RETURN               = RETURN             ---------> error in this parameter
        TABLES
          GOODSMOVEMENTS = I_GOODS.
    When I execute this in debug mode, it is giving me an error in my RETURN parameter asking me to enter the backflush quantity and UOM which doesn't suits my scenario.
    Appreciate if you could let me know where I am doing wrong in my code and guide me in a better way to achieve this.
    Thanks.

  • Logical Database QNQ not working when creating a query in SQVI

    Hi All,
    When i try creating a Quick Viewer Query using SQVI on Logical Database QNQ, I do not get any output.
    What am i doing wrong? 
    Regards,
    Jr.

    Hi,
    The blank row that you get from your second select statement would appear at the end of the report. Put that statement first and it should be at the top of the first page
    Andy

  • 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

  • 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.

  • BOM explosion in subcontracting PR

    Hi...
    I have one issue of BOM explosion in subcontracting PR.
    I have created BOM, routing & PV. Production version maintained in info record.
    While creating manaul subcontracting PR , BOM is not exploded giving error message as "Not possible to determine any components".
    I have checked validity of BOM, PV found ok.
    Also Proc. type X & Spl. proc type 30 maintained.
    Any suggestion to the problem appreciated
    Regards
    Tushar

    Dear Tushar,
    Check this link
    [Sub contracting PO - BOM components are not seen;
    Regards
    Madhu

  • 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

  • BOM Explosion Number in Sales Order

    Hi Experts,
         For a make-to-order case, I would like to assign a predefined BOM explosion number with fixed key date to a sales order item. Instead of manually assigning the BOM explosion number to the sales order item, is there any way to let the system automatically assign the BOM explosion number?
         As I read from SAP Library under the BOM Explosion Number (Fixed Key Date), it states "The system can automatically specify the BOM explosion number when entering planned independent requirements or customer independent requirements or when entering the sales order." So is there any configuration to be done in advance to enable the BOM explosion number to be automatically assigned to sales order item?
    Thanks,
    SW

    I tried also setting up the material and its BOM determination by specifying only 1 BOM out of multiple BOMs. Still,
    1. When I add the said material into sales order line and save the sales order, the BOM explosion number value never appear automatically in the sales order line.
    2. When I run the planning on the sales order through MD50, the planned results do not have the BOM explosion number attached.
    I think your advice is more applicable to selection of a BOM from multiple BOMs instead of determining the fixed key date based on appropriate BOM explosion number, correct me if I am wrong.
    Regards

  • BOM explosion in sales order

    Hi Experts,
    I have met a problem in BOM explosion in sales order.
    I have maintained the BOM with usage 5 and the conversion between header material and component of the BOM. But in the sales order entry, no matter how many qty I entered for the header material, after the BOM explosion, the qty of component is 1.
    Can anyone help?
    Regards,
    Emily

    Hi,
    Go to CS02 and select ur bom and go to components give 1 that means 1;1
    hope u get it
    regards,
    sadanandam kasarla

Maybe you are looking for