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

Similar Messages

  • Without MRP, with BOM explosion

    Hi,
    I'm new to SAP and learning SAP SCM. I would like someone to brief me on what the following lines imply, especially 'without MRP, with BOM explosion'.
    "dependent requirements must be determined for materials that are planned in SAP ECC. So, you assign the MRP type “X0” with MRP procedure “X” (“without MRP, with BOM explosion”) to the materials planned in SAP SCM."
    Thanks,
    Krish

    Hi,
    Without MRP , with BOM explosion - means the dependent requiremens are created for this materials from APO.
    The MRP will not run in APO. Only the dependent requirements will be created from APO. The MRP for this materials will be executed the ECC or R/3 system to create planned order anb purchase requisitions.
    Thanks and regards
    Murugesan

  • Adding new items in ME21N using USEREXIT/BADI with BOM explosion

    I have following business scenario. There is purchase requisition consisting just one material. In ME21N we are creating new purchase order. This purchase order needs to consist that item (we drag&drop this item from purchase requisition).
    The problem is, that this item is in fact BOM, so we would like to explode it and select just some entries from them basing on some Z* configuration and we can't use standard BOM explosion from ME21N.
    The idea to solve that issue is following:
    1. Explode there BOM for material;
    2. Filter out not needed items from that explosion using Z-config table;
    3. Copy filtered items using USER-EXIT / BADI , ENHANCEMENT-SPOT into purchase order items.
    The best, if this USER-EXIT / BADI, ENHANCEMENT-SPOT will be used only when drag&drop purchase requisition item into new purchase order.
    The point is that I'm not able to find out such USER-EXIT, BADI or ENHANCEMENT-SPOT.
    P.S. There is for instance exit "MM06E007 Change document for requisitions upon conversion into PO", but interface of that exit completely doesn't fit my needs.
    Any ideas?

    Hello Tomasz Suchanek ,
                                                  There is no BADI/ Enhancement Spots / User Exits that you can use for this requirement.
    You are trying to change the SAP standard Functionality.
    You need to contact SAP for consulting .
    Thanks,
    Greetson

  • Inbound delivery for subcontracting PO with BOM explosion

    Hi all
    The requirement is like this
    Normal subcontracting cycle - Subcon PO and then 541
    After that i did inbound delivery in VL31N for the subcon PO , Here iam getting the finished goods line item so that i can enter the delivery qty and  serial number for the finished componenet
    My query is , Is there any possibility of exploding the BOM and entering the serial number for the assembly level materials in the inbound delivery itself.
    After that based on inbound delivery i can do GR , Your inputs pls
    Regards
    Amuthan M

    Hi M.
    You can do that using MIGO but not through VL31N.
    For that you have to set the serial profile for component before.
    IMG -> Logistic Execution -> Shipping -> Basic Shipping Functions -> Serial Numbers -> Central Control Parameters for Serial Numbers
    IMG -> Logistic Execution -> Shipping -> Basic Shipping Functions -> Serial Numbers -> Determine Serial Number Profiles
    After that you have to set the serial profile for the component.
    Hope this help
    Regards.

  • BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion

    Hi gurus,
    I'm using standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 to enter a sales order. I need to enter item lines with a specific order. I've fill all the BAPI required parameters in order_items_in (material for matnr) and quantity in order_schedules_in. If i'm not wrong, fields itm_number in both structures are mandatory and I fill it respecting original order.
    My problem comes when I find a material list. I explain, if material B is a material list composed for B2, B3 i entered the following to the bapi:
    itm_number    material
    000010    A
    000020    B
    000030    C
    My requirement is to generate a sales order like that:
    000010  A
    000020  B
    000030  B2
    000040  B3
    000050  C
    but the order I create is like:
    000010 A
    000020 B
    000030 C
    000040 B2
    000050 B3
    I think that a solution is to check material list before itm_number assignment assigning like
    000010    A
    000020    B
    000050    C
    but I don't like this solution at all.
    Does anyone face similiar problem?
    Is there some parameter at the BAPI to achieve this.
    Thanks in advance.
    David Gimeno

    Hi Ankur,
    thanks for you reply. After watching several notes from OSS I've finally found the solution.
    Just take a look at OSS note 522356. You can achieve your requirement by setting the IntNumberAssignment flag of the bapi to 'X'.
    Best regards,
    David.

  • BOM Explosion problem

    Hi,
    I have multilevel BOM (almost 10 levels with around 1500 materials), in which many materials repeat at different levels.
    I am facing problem in one of the material during MRP, This material is used at 10 different levels. Altogether to produce a FG it requires in 36 numbers. In different levels quantity of it required is different. Say 8,1,4,2 etc but total qty is 36.
    When MRP is run the requirement generated for this material is same at all levels i.e 36(total qty) / 10  (BOM levels) = 3.6
    But actually system must generate requirements as per BOM quantity. Not sure what is wrong.
    Requesting you all to reply quickly for this issue.
    Regards,
    Pavan

    Hi,
    Below is the little knowledge i have which want to share with all the august people around.Hope it would be helpful enough for you to get the results.
    A BOM is not exploded in the following situations:
    - No BOM is effective:
    -- On the explosion date and in the given area of validity
    For the given effectivity parameters
    - The BOM has a deletion indicator.
    - The BOM is a multiple BOM, and has no alternative that matches the lot size for your required quantity.
    - No BOM matches the selection criteria of the BOM application you selected.
    - This is possible in the following situations, for example:
    -- The application does not take all BOM usages into account.
    For example, the application only takes BOMs that are relevant to production into account, so a BOM that is relevant to sales and distribution is not exploded.
    -- The application selects a specific alternative on the explosion date you require. The material master record supports alternative determination by Explosion date.
    If the specified alternative is not valid on the explosion date, the BOM is not exploded.
    -- The application takes production versions in the material master record into account, but no production version has a BOM that is valid on the explosion date you require. The material master record supports alternative determination by Production version.
    The system only explodes the BOM defined for the production version that matches the alternative and/or usage entered on the explosion date required.
    -- The application only takes BOMs with certain status indicators into account.
    For example, the application for MRP only explodes BOMs that have at least the status Explosion for MRP.
    Further checks:
    - Do the proper Scheduling in Routing (Backward/forward). In md61 give the requirement in next month.check your in-house production, planned delivery time in md02 give MRP Control parameter Rexplode BOM and Routing.
    - Check BOM explosion data in MRP4 view of material master view ( Individual/Coll data).
    Please revert with your response
    Thanking You in Anticipation
    Regards
    Chandra

  • 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 date after order finish date

    Hi
    We have issue with BOM explosion date. In process order, BOM explosion date is geting calculated after order finish date.
    Any idea why this is happening.

    Hi,
    Just to understand the issue better, can you list the scheduled and basic dates on the order.
    Anup.

  • BOM Explosion report

    Hi All,
    I have problem with BOM explosion report CS12.
    We have material with 3 level BOM. While we are running CS12, upto 2nd level appears in the report. 3 rd level components dose'nt show. what may be the reason. I have checked validity period & BOM status is active for all levels.
    REgards,
    Srijit.

    HI
    Check the explosion types in OS17 also check whether phantom asseblies indicator in OS17.
    Check In BOM for whether you have defined some material as Phantom or not?
    Check and revert
    Regards
    Anupam Sharma

  • BOM explosion for component in ECC which are relevant for planning in APO

    Hi ,
    as we assign materials the MRP type X0 with the MRP procedure X (without MRP, with BOM explosion) which are relevant to APO, so if i have BOM under this item then how this below level Items will be plan in ECC....?
    as we are excluding the component from planning so how the below level will be plan .....?
    Regards

    Dear SCM APO 22 ,
    Answer lies in your question only.
    as the assembly is relevant to be planned in APO but it will be exploded in MRP and the lower level component will be planned in R/3 only if required.
    Only teh assembly which have MRP type X0 will be planned in APO.
    Revert back if you need further clarification.
    Hope it helps you.
    Regards
    Ritesh

  • BOM explosion not done because there is no free item number anymore

    Hello,
    I have a problem with BOM explosion when creating a sales order.
    All the following actions are done with VA01 :
    -  I enter a material (main item 10) with a rejection reason, so the BOM explosion is not done :OK.
    - Then  I add the same material (main item 20) without rejection code, so the BOM explosion is done, it means sub items 21, 22., ...,31,32 are determined:OK
    - Finally, I remove the rejection code on item 10, the problem is that there is no place anymore to do the BOM explosion because I have 12 sub items (10 +12 = 22 and it is not possible as I have already an item 20).
    I have a popup with message V1-142 (There are not enough item numbers free for a structure explosion).
    I know that it is possible to change the increment with VOV8, but my customer want to keep this one: 10 by 10 for main item and 1 by 1 for sub item.
    He told me that he think that there is a user exit in order to put the remaining sub items at the end of the sales order like this
    10 main item A
    11 sub item 1 (A)
    12 sub item 2 (A)
    19 sub item 9 (A)
    20 second main item (B)
    21 sub item 1 (B)
    22 sub item 2 (B)
    32 sub item 12 (B)
    33 sub item 10 (A)
    34 sub item 11 (A)
    35 sub item 12 (A)
    Maybe it's a strange idea, but could you please tell me what are the different possibilities to manage sub items when there is no place to put them :
    - put a higher increment in VOV8? Ok but my customer don't agree
    - other solutions?
    Thanks.

    Hello,
    Did you ever find a solution for this? The notes mentioned in the earlier post dont appear to be relevent for 6.0.
    I have a similar issue when dealing with Cross Sell items. When it tries to insert the additional items I get the V1142 message, then the items are copied at the end of the list but the higher level item reference is incorrect for the cross sell items.
    I do not want to change the increments but it appears to be the only option.
    Any ideas are appreciated.

  • Date of BOM Explosion/Routing in the production order

    Dear gurus,
    i would like have the Date of BOM Explosion/Routing in the production order same the "Basic start date" .
    I setting the value 1 = Basic start DATE  in the customizing transaction OPPQ and OPPR but the system calculate this date wrong.
    Are the the other setting for this necessity ?
    Thanks a lot
    Daniele
    PP TEAM

    Dear Toto,
    The standard procedure is that the system first checks whether a BOM explosion number exists for the BOM. If one does exist,
    the BOM is exploded using the fixed key date contained in the BOM explosion number. If a BOM explosion number does not exist,
    the BOM is exploded with the order start date.
    Check the setting in OPPQ for BOM explosion.
    Regards
    S Mangalraj

  • BOM explosion in Sales order with material variants

    Dear all,
    we would like to work with Variant Matching in the Sales Order. Additionaly we would like to explode the BOM....according to the SAP help this is not possible....
    http://help.sap.com/erp2005_ehp_06/helpdata/en/bd/05a7d69d3211d190380000e8a49aad/frameset.htm
    Does anybody of you has any ideas how and where to make this happen?
    Thanks for your help and kind regards
    Jan

    Hi,
    I have gonethrough the SAP link referred by you but never come across with any problem in type matching during Sales order even if the BOM explosion is set for Multilevel in Configuration Profile provided the other pre requisite set up was perfect.
    Regards
    Brahmaji D

  • Report for Cost of Multiple products with Multilevel BOM explosion

    Hi,
    Our client has a requirement of a report showing standard cost estimate of multiple FG products, with multi-level BOM explosion.
    In short, the requirement is to get a CK13N report for multiple products.
    Has anyone come across such requirement? The requirements seems to be very normal.
    But, I have not seen any standard report for the same. If there is any, please suggest.
    or suggest a better solution for the same.
    Thanks in advance. Pts guaranteed.

    Hi,
    I totally agree with you that this is a totally vague requirement.
    However, let me share the reason for such client requirement.
    We have a customer, for which we produce certain parts for select models. Now, the arrangement with customer for pricing is based on the raw material and other production cost for all such parts. Based on the fluctuations in cost, the pricing would be finalised.. on a monthly or quarterly basis.
    For this purpose, the customer requires to know the raw materials used in each of the part.
    Individually it could have been managed. But the price change in terms of % is decided at global level and not for each part.
    Please suggest

  • BOM explosion  with Two Material Number

    Hi
    How can  i Explosion in  BOM with  two material number, if any Fm is there in sap or any othre options
    Please tell me
    Regards
    Mani

    Your question is not complete.
    There are two types of bom explosion. from child to parent and parent to child.
    You have to pass one material at a time. Please search in sdn for the fm's. This question ihas been widely discussed here.

Maybe you are looking for

  • Problem with iTunes and Tv Shows

    Hello, i've just installed the last version of itunes and when i select tv shows as my video type, the video stays on my ipod but i can't acces it. The Tv Shows folder is not created and i can't find them in any other video folder. Is there any other

  • Trying to retrieve old project with no luck

    I made a short movie (2 minutes) in iMovie last month, shared it to the Media Browser and then did the final production in iDVD. I burned a few discs and all was well. In order to free up space, I moved the project from iMovie to an external disc. (I

  • Passing a socket to a timer invoked function

    I am controlling a computer remotely using PrintWriter to a socket. I want a heartbeat timer to send a small xml message every 10 seconds. I need to know how to pass the fromClient PrintWriter to the timer invoked function. I have a client that opens

  • Button does not save

    Hi, I create a new button on a form, the idea is to update the data. The form has a process (Automatic Row Processing (DML) ) to update and was created by a wizard. Now every time a press the button is the form is submited but the process never runs.

  • Vbscript delete files based on extension on a drive

    Right now i use this batch script to delete files based on extension on drive D: and all folder and subfolder on it every computer restart. @echo off del /F /S /Q D:\*.jpg             del /F /S /Q D:\*.mp3 del /F /S /Q D:\*.lnk del /F /S /Q D:\*.bmp