MRP for subcontracting

hi thr ,
here we r using planing strategy 10 .we have BOM like HALB A conatains ROH B
and that ROH B is send outsidefor subcontracting for cutting operation .
when i am taking planning run it is not generating DepReq for ROH B .
i have maintained spl procurement key 30 in HALB A in MRP 2 view .
why it not linking the ROH material .
and what r the setting to be mainatained for such scenario .
routing for the HALB contains only one operation Cutting and we have maintained PUR info record in the Routing for the same .
plz guide for the same above .

Ajay,
Routing is not required as you are subcontracting HALB A (as mentioned by you only one operation representing external processing).
1. Maintain HALB A - Special Procurement - F & 30
2. Maintain BOM for HALB A with usage 1 - Production and status relevant for all. See that your BOM is within the valid date range of the required date. Here component ROH B should be assigned.
3. Maintain Inforecord of Subcontracting type for HALB A.
With this run MRP you should get Subcontract Req generated for ROH B.
In your present case you have maintained external operation, which will get triggered only during creating/release of Production order. I think you will be having a planned order only for HALB A, please convert it into production/process order and check, then system will create subcontract requirement.
Regards,
Prasobh

Similar Messages

  • MRP Issue for subcontracting

    Hi Gurus
    When a requisition is used to build a Sub-Contracting Repair Purchase Order, then subsequently a delivery u2013 a new requisition is raised, usually once the delivery has been post goods issued this new requisitions is automatically canceled on SAP, but recently this is not the case the requisition is still active.
    Please suggest me what was the reason for this one.
    Thanks & Regards
    Sada

    Hi,
    I am not quite sure if I have understood the problem, but sometimes inconsistencies occur for dependent requirements for subcontracting purchase orders. Refer to SAP note 115899. Note explains types of such errors and  there exists a program to correct these inconsistencies.
    Edited by: Özgen Canan on Jul 21, 2011 11:47 AM

  • MRP with Subcontracting (Urgent)

    Hi,
    I have a scenario of Subcontracting in an Automobile Industry. The planning plant is I005 and the BOm is as follows -
    Final Assy 'FA' (FERT) {Assembly done on subcontract basis by subcontract Vendor A005)
    -- Sub Assy 01 'SA1' (HALB) - {Assembly done by Subcontract Vendor D025}
    -- Sub Assy 02 'SA2' (HALB) - {Assembly done by Subcontract Vendor A005}
    --- Component 01 'C1' (HALB) - {Component required in both SA1 and SA2 and procured by plng plant I005}
    --- Componenet 02 'C2' (HALB) - {Component required in SA2 only and procured by plng plant I005}
    --- Component 03 'C3' (HALB) - {Component required in SA1 only and procured by plng plant I005}
    The clients requirements are as follows -
    1. Want to put plan for FA as PIR in MD61 for 3 months as monthly plan.
    2. Take Run on monthly basis in plant I005
    3. After MRP run the system should do the following things -
       -- In net requirement calculation the system should take material provided stock and I005's unrestricted stock.
       -- System will create subcontract PO for SA1 to vendor D025 and FA to A005
       -- system will not create subcontract PO/PR or Sch Line for SA2 but it should plan for C2 for subcontract vendor A005.
      -- System should take care of Material Provided stock for D025, A005 and un restricted stock of I005 for Component C1 and club the total required quantity and make monthly schedule line in SA as per Source List maintained.
      -- the system should create Sch Line for C3 as monthly schedule line for SA per maintained in Source list
    I made few settings as follows but the results are not as per my expectations.
    1. For FA - Procurement type - F and Spl Proc Key - 30 and planning strategy 10 and MRP type - PD
    2. For SA1 - Procurement type - F and Spl Proc Key - 30 (Subcontracting) and MRP type - PD
    3. For SA2 - Procurement type - F and Spl Proc Key - 60 (Phantam in planning) and MRP type - PD
    4. For C1 - Procurement type - F MRP type - PD
    5. For C2 - Procurement type - F MRP type - PD
    6. For C3 - Procurement type - F MRP type - PD
    7. Maintained Source list for C1, C2 and C3 with valid sch agreements and MRP relevency indicator "2"
    8. Running MRP monthly for plant I005 and with NETCH, Sch Line - 3
    Can anyone please guide me with the correct settings I need to make to map the requirements.
    Thanks and Regards,
    Amol Rathore

    What I have under stood from your BOM is -
    Level    Item       ProcType   SpKey          Vendor                
    1          FA         F               30                A005
    1.1       SA1       F               30                D025
    1.2       SA2       F               30                A005
    1.1.1    C1          F                                  Some Vendor
    1.1.2    C3          F                                  Some Vendor
    1.2.1    C1          F                                  Some Vendor
    1.2.2    C2          F                                  Some Vendor
    Please clear whether this BOM is correct or not?
    cheers
    kapil

  • Automatic PR for non-stock BOM component for Subcontract PO

    Dear Guru,
    Can you any master please advice me on below question?
    We have a subcontract PO with the BOM component of non-stock, can i know if there is possible for those non-stock BOM component to generate a Purchase Requisition automatically, any existing configuration that we can do?
    Thank you very much,
    Regards
    Chee Wee

    Hi,
    You can use Material Type "NLAG" for Non-stock materials.
    Non stock materials cannot be stored, right, hence the name non-stock.
    Non-stock material includes materials that are not managed on an inventory basis (for example, small parts such as nails) though physically in stock.
    You can create a BOM which contains an NLAG item or directly use in Production order also.
    item Category "N" So system will create the purchase requisition when there is requirement.
    We receive the non stock material using movement type 101. upon receiving the material will be consumed.
    Please refer link below for better understanding.
    BOM explosion in MRP for non-stock material
    What  is use of  Item Category N(non-stock item) in BOM creation
    Believe this could help your queries. TQ
    rgds,
    nanthakumar

  • External Material for Subcontracting

    How do you manage material from customer that you just add a process to it?
    Right now we do not enter the material in our stock and just make a service sales order type?
    Is there a best practice process for this scenario?
    Thank you,
    Carlos

    Hi sumit,
    In subcontracting the material has to return within 180 days otherwise it will be
    treated as exciseable goods.
    when we do GR for external po's we receive only the operation to be performed
    so conversion cost to the vendor shall be paid
    when ceate Production order  system will create planned order only which is unfirmed as the procurement type ' X ' and procurement key for subcontracting you need to define MRP 2 under procurement.
    after ensuring GR is done order confirmation of operation ( external ) has to be done here only system capture the quantity ( subcontracting material ) and also valuation of the material in production order. As order settlement is order based .
    pl reward points ,
    regards,
    vimal balaji

  • Purchase requisition after MRP for Semifinished & raw material

    Hello Gurus,
    Please guide me in following scenario :
    FERT - X ---> HALB (subcontracting) - Y ---> ROH - Z
    Requirement : X - 1000 , Y - 1000 & Z - 1000
    In this case, when I will take the MRP for X ,then MRP will generate PR for Y & Z.
    But in my case, client purchase the Z & sell it to vendor & then vendor will sell the Y to my client.  He wants the requirement of Y & Z both after MRP run of X .
    FERT - X ---> HALB (Purchase) - Y ---> ROH - Z
    What can I do to map this in SAP?
    Thanks & Regards,
    Sagar

    Hi Sagar,
    It can also be maped in following way. Please take your MM and FI Consultant with you.
    It could be map in following way:
    Create BoM for Z (FG) and add Y (SFG) & X (RM). Keep the procurement type for both as F. Use special procurement key as 30 for Y (SFG). Mark NOT RELEVANT TO COSTING indicator for X in BoM. Maintain MRP type = ND for X (RM).
    Now when you run MRP system will only create Dependant requirement for X (RM) and it will check stock of Y (SFG) as well. If stock of Y (SFG) is not available, Subcontracting PR will be generated for Y (SFG).
    MRP will not be accurate for X (RM) since it has got dependancy on Y (SFG) which is going to be subcontracted from some Vendor. You can look for Re-order point planning or you can adopt the way suggested by Satish or you can make a new Infostructure in MM which will be updated for consumption movements for X (RM) which later can be used to make its PR directly to Vendor.
    Regards,
    Shoyeb

  • Raw Stock For Subcontracting

    Hi All,
    We are using MTO scenario for our mould plant. For finish mould we run MRP with respect to sales order(MD50). After mrp run requirement create for raw and sfg. We are doing Subcontracting for SFG material for external processing.
    Now my question is that , when am procured raw materail it gets autometically consume from stock . And when we go for subcontracting we explode the BOM in P.O at this time system ask stock of RAW Materail.
    Pls give me correct solution,
    Thanks,
    Vishal

    i m using accountassignment F  here i mean Purch. Requisition is create autometic by mrp with account assignment catagory F & L for subcontracting.
    Edited by: vishal Patil on Jun 12, 2008 2:25 PM
    Edited by: vishal Patil on Jun 12, 2008 2:28 PM

  • Delivery for subcontracting

    Hi,
         Could anyone tell me when the delivery has to be done for subcontracting and when the goods movement 541 should be used. The transaction ME20 doesnt exist when i tried to create delivery for the subcontracting PO.
    Thanks in advance
    Aparna

    hi
    the code is ME2O and not ME20
    Process Flow
    This scenario consists of the following steps on goods delivery:
    Purchase order creation based on a scheduled purchase requisition created by last MRP run
    Optional: manual purchase order creation
    Purchase order approval (if required)
    Components of the Material sent to the subcontractor through a Transfer Posting
    Creation of Subcontracting Challan
    This scenario consists of the following steps on goods receipt:
    Goods receipt for purchase order delivered by subcontractor
    Component reservations and consumption of component quantities as provision of material
    Reconciliation of Challan
    Completion of Challan
    Invoice receipt by line item
    Invoice verification and validation of tax expenses
    Outgoing payment
    Key Points
    BoM explosion triggers follow-on functions such as delivery to subcontractor
    Automatic posting of value flow
    Automatic posting of stocks into corresponding stock types
    Subcontracting info record shows added value
    regards
    kunal
    Edited by: kunal ingale on Aug 14, 2008 7:53 AM

  • MRP vs. subcontracting requisitions

    Dear All,
    I raised this question on MM board, but unfortunately we couldn't find any solution. I was suggested that this might be the right place to get answer.
    This is the subcon component's MRP list (simplified).
    material (F-Z3)___component
    ..................................<b>Stock</b>
    PurReqs>>.............SubReq1
    PurReqs>>.............SubReq2
    ...............................<b>SubcSt</b>
    PO>>....................SubReq3
    PO>>....................SubReq4
    Our paractice is to deliver all the components to our suppliers ('Stock' is 0) and 'SubcSt' is high.
    But for SubReq1-2 MRP only considers 'Stock' and indicates failure ('red light') - though 'SubcSt' is enough to cover SubReq1-4.
    material (F-Z3)___component
    ..................................<b>Stock</b>...0
    PurReqs>>.............SubReq1.10
    PurReqs>>.............SubReq2.20
    ...............................<b>SubcSt</b>..80
    PO>>....................SubReq3...5
    PO>>....................SubReq4.20
    How can we solve this problem (to set SAP to consider 'SubcSt' properly)?
    thx
    Csaba

    Dear Csaba
    Please note that the logic for subcontracting was changed as of release   
    4.0A.                                                                     
    As of release 4.0 the net requirements calculation for components to be   
    provided in subcontracting takes into account that the provision stock    
    can only be used to cover the corresponding requirement of material       
    provided. The provision stock that is already available from a            
    subcontractor (vendor) can only therefore be used to cover the            
    requirements of material provided at this subcontractor.                                                                               
    The system uses only the stock that has not been assigned to a            
    subcontractor as unrestricted-use stock to cover all requirements.                                                                               
    For further information about this issue please consider the      
    note 550219. With the modification of note 170597 the old logic can be    
    achieved. Please notice that it is a modification note.
    Regards
    Soundararajan M.

  • Standard Cost Estimate for Subcontracting

    Dear Sir / Madam,
    We are in the process of migrating from our normal R/3 operations for Production Planning to Execution inclusive of Costing of materials by using iPPE functionality for repetitive scenario. We have our BOMs for painted body currently in R/3. The painted body falls under subcontracting scenario.
    In this scenario the body in white produced from our bodyshop is sent out to the subcontractor along with certain paint items and is received as painted body and consumption of the body in white and the paint items sent needs to be shown during the goods receipt of painted body.
    For this we have maintained the BOM for the painted body in iPPE. Also in the costing variant "ZD01" in order to arrive at Standard cost (CK11N) for the painted body we have maintained the following settings for Valuation variant for subcontracting :
    Priority     Strategy Sequence     
    1          Net Quotation Price
    2          Effective Price from Purchase Order
    While running CK11N for the material (painted body) we are receiving the following message
    Message no. 28501 : Error in dependency processing: condition 0000062388 is empty
    We wanted to verify whether the message raised is normal or would it have any adverse impact.
    Your assistance would be highly appreciated.
    Regards,
    Bhavika
    Edited by: Bhavika Goyal on Feb 7, 2009 12:20 PM

    Dear All,
    Control Key is important for inhouse producrtion and Sub Contract.  Check it once and when ever u have given the Product (semi fisished) to Sub Contractor, along with Paint. 
    Here one thing is important what is your process? how much portionis involced in Sub contracting.  why because
    Paint issue to the sub con is captured by the way for migo or miro
    Payment to sub contract is capture all the cost of the Sub Con., then is there any cost is missed for this process.  Let me know the remain things?
    thanqu
    raj

  • Purchase Order is generated after MRP for Material with MRP Type ND

    Hi Everyone,
    Material type := HAWA
    My material procurement type = F i.e. External Procurement.
    MRP Type = ND in Production server , and VB in Quality
    Lot Size = EX
    Material Status :- 15 Pre-release both for Quality and production server
    The Material is bulk material and bulk material indicator is set.
    Purchasing View is also maintained for the same.
    Planning Strat = Z5 Company specific
    Special procurement key:- Z7 Company specific
    I am running MD02 with following parameters.
    Create Pur Req =1, PR
    Create MRP List = 1, MRP List
    Delivery Schedule = 3, Schedule Lines
    Planning Mode = 2 Re- Explode BOM & Routing
    Scheduling = 1
    Issue:
    After MRP run, system is  generating PR, Though with MRP type ND purchase requisition should not be generated.
    Observation:- Looks like there is inconsistency of material date in Quality and production server.
    When I tried to run the planning , The Error message was generated"Material status is set to pre- release.
    After changing the material status to 20 (Active ) , when we run the MRP , The error message is generated "Material is not planned automatically "
    We havent been able to locate the root cause so far
    Please guide us
    Thanks in Advance,
    Ayaz
    Edited by: Ayaz Alam Khan on Feb 16, 2011 2:41 PM

    IF the material is ND, system won't Run MRP for the material
    Observation:- Looks like there is inconsistency of material date in Quality and production server.
    There is no link
    When I tried to run the planning , The Error message was generated"Material status is set to pre- release.After changing the material status to 20 (Active ) , when we run the MRP , The error message is generated "Material is not planned automatically "
    system will read the X plant  material status or plant specific material status first and then only system will read MRP type

  • REPORT FOR SUBCONTRACTING

    DEAR FRIENDS,
    I am making a program for tracking the materials given (mb1b 541 movt.) for subcontracting and taken by me (101 for actual good receipt, 543 for the given material- stock type inward, 545 for the scrap returns). but while i made the program i am unable to pick up the materials BOM from the PO which is essential to take the difference between these and the supplied quantities taken-in by GR.
    following is the program.
    Please suggest the changes.   Thanks,
    Deepak
    *& Report  ZMM_SUBCONTRACTING_PO_REPORT
    *& Author:
    *& Date  :
    *& Reason: Sub Contracting PO Report.
    *&         Find Discreprancy in PO and BOM. according to 543 and 545
    REPORT  ZMM_SUBCONTRACTING_PO_REPORT NO STANDARD PAGE HEADING
                                         LINE-SIZE 157.
    *& TABLES DECLARATION
    TABLES: EKKO,
            EKPO,
            EKBE,
            ENT5303.
    *& SELECTION-SCREEN.
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_MATNR FOR EKPO-MATNR,
                    S_WERKS FOR EKBE-WERKS OBLIGATORY.
    PARAMETERS:     P_BUKRS LIKE EKKO-BUKRS OBLIGATORY.
    SELECT-OPTIONS: S_BUDAT FOR EKBE-BUDAT OBLIGATORY,
                    S_EBELN FOR EKKO-EBELN,
                    S_BELNR FOR EKBE-BELNR,
                    S_GJAHR FOR EKBE-GJAHR.
    SELECTION-SCREEN: END OF BLOCK B1.
    *& INTERNAL TABLES DECLARATION.
    DATA: BEGIN OF IT_EKKO OCCURS 0,
          EBELN LIKE EKKO-EBELN,
          END OF IT_EKKO.
    DATA: BEGIN OF IT_EKBE OCCURS 0,
          EBELN LIKE EKBE-EBELN,
          EBELP LIKE EKBE-EBELP,
          GJAHR LIKE EKBE-GJAHR,
          BELNR LIKE EKBE-BELNR,
          BUZEI LIKE EKBE-BUZEI,
          BEWTP LIKE EKBE-BEWTP,
          BWART LIKE EKBE-BWART,
          BUDAT LIKE EKBE-BUDAT,
          MENGE LIKE EKBE-MENGE,
          DMBTR LIKE EKBE-DMBTR,
          LFBNR LIKE EKBE-LFBNR,
          MATNR LIKE EKBE-MATNR,
          WERKS LIKE EKBE-WERKS,
          BUKRS LIKE WB2_V_EKKO_EKPO2-BUKRS,
          MENGE_I LIKE WB2_V_EKKO_EKPO2-MENGE_I,
          LIFNR LIKE WB2_V_EKKO_EKPO2-LIFNR,
          COUNT TYPE P DECIMALS 4,
          BMENGE LIKE EKBE-MENGE,
          MENGE101 LIKE EKBE-MENGE,
          MENGE543 LIKE EKBE-MENGE,
          MENGE545 LIKE EKBE-MENGE,
          DIFFER   LIKE EKBE-MENGE,
          TMENGE   LIKE EKBE-MENGE,
          RATE     LIKE EKBE-DMBTR,
          NAME1 LIKE LFA1-NAME1,
          LINE_COLOR(4),
          END OF IT_EKBE.
    DATA: WA LIKE IT_EKBE.
    DATA: BEGIN OF IT_FINAL OCCURS 0.
          INCLUDE STRUCTURE IT_EKBE.
    DATA: END OF IT_FINAL.
    DATA: BEGIN OF IT_FINAL_TEMP OCCURS 0.
          INCLUDE STRUCTURE IT_EKBE.
    DATA: END OF IT_FINAL_TEMP.
    DATA: BEGIN OF IT_BOM OCCURS 0.
          INCLUDE STRUCTURE CAPP_ITM.
    DATA: END OF IT_BOM.
    DATA: BEGIN OF IT_BOM_HEAD OCCURS 0.
          INCLUDE STRUCTURE CAPP_BOM.
    DATA: END OF IT_BOM_HEAD.
    *& DATA DECLARATION.
    DATA: COUNT TYPE P DECIMALS 4,
          V_CNT TYPE P DECIMALS 4 VALUE '0.0001' ,
          V_MENGE LIKE EKBE-MENGE,
          V_DELETE.
    TYPE-POOLS: slis.
    DATA:  l_date(12) TYPE c,
           l_date1(12) TYPE c,
           l_time(10) TYPE c,
           l_list(60) TYPE c.
    DATA:  CATALOG TYPE SLIS_FIELDCAT_ALV, "FIELDCAT
           TCATALOG TYPE SLIS_T_FIELDCAT_ALV, "IT FIELDCAT
           EVENT TYPE SLIS_ALV_EVENT, "EVENT
           TEVENT TYPE SLIS_T_EVENT,  "IT EVENT
           LAYOUT TYPE SLIS_LAYOUT_ALV, "LAYOUT
           PG_TOP TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
           PG_HEAD TYPE SLIS_T_LISTHEADER,
           EXIT1  TYPE SLIS_EXIT_BY_USER,
           VAR1 LIKE DISVARIANT,
           VAR2 LIKE DISVARIANT.
    *& START-OF-SELECTION.
    START-OF-SELECTION.
    PERFORM PROCESS_SELECTION.
    PERFORM DELETE_CANCELLED_DOCUMENTS.
    PERFORM EXPLODE_BOM_FOR_101.
    SORT IT_FINAL BY COUNT.
    PERFORM DISPLAY_OUTPUT.
    FREE IT_FINAL_TEMP.
    *& ALV FORMATTING
    *&                  ALV DISPLAY
      PERFORM GENERATE_ALV_FIELDCAT.
    PERFORM EVENTS USING TEVENT.
    PERFORM TEXT USING PG_HEAD.
      PERFORM ALV_SHOW.
    *& FORM PROCESS_SELECTION.
    FORM PROCESS_SELECTION.
    SELECT
      A~EBELN
      A~EBELP
      A~GJAHR
      A~BELNR
      A~BUZEI
      A~BEWTP
      A~BWART
      A~BUDAT
      A~MENGE
      A~DMBTR
      A~LFBNR
      A~MATNR
      A~WERKS
      B~BUKRS
      B~MENGE_I
      B~LIFNR
    FROM
      EKBE AS A
    JOIN
      WB2_V_EKKO_EKPO2 AS B
    ON
      AEBELN = BEBELN AND
      AEBELP = BEBELP_I
    INTO
      CORRESPONDING FIELDS OF TABLE IT_EKBE
    WHERE
    A~MATNR IN S_MATNR AND
      A~WERKS IN S_WERKS AND
      A~BUDAT IN S_BUDAT AND
      A~EBELN IN S_EBELN AND
      A~BELNR IN S_BELNR AND
      A~GJAHR IN S_GJAHR AND
      A~VGABE IN ('1', '7') AND
      A~BEWTP IN ('E', 'O') AND
      ( A~BWART IN ('101', '545', '543') OR
      ( ABWART = '102' AND ABEWTP = 'E' ) ) AND
      B~BUKRS = P_BUKRS AND
      B~BSTYP = 'F' AND
      B~BSART = 'SUBC'."AND
    B~LOEKZ <> 'X'.
    SORT IT_EKBE BY EBELN EBELP GJAHR BELNR BUZEI.
    ENDFORM.
    *& FORM DELETE_CANCELLED_DOCUMENTS.
    FORM DELETE_CANCELLED_DOCUMENTS.
    DELETE IT_EKBE WHERE BWART = '102' AND BEWTP <> 'E'.
    LOOP AT IT_EKBE WHERE BWART = '102'.
      READ TABLE IT_EKBE INTO WA WITH KEY BELNR = IT_EKBE-LFBNR.
      IF SY-SUBRC = 0.
        DELETE IT_EKBE WHERE BELNR = WA-BELNR.
      ENDIF.
    ENDLOOP.
    CLEAR WA.
    DELETE IT_EKBE WHERE BWART = '102'.
    ENDFORM.
    *& FORM EXPLODE_BOM_FOR_101.
    FORM EXPLODE_BOM_FOR_101.
    CLEAR COUNT.
    LOOP AT IT_EKBE WHERE BWART = '101' OR
                          BWART = '543'.
    IF NOT IT_EKBE-MATNR IN S_MATNR.
      V_DELETE = 'X'.
    ELSE.
      CLEAR V_DELETE.
    ENDIF.
    IF V_DELETE <> 'X'.
    COUNT = COUNT + 1.
    IT_EKBE-COUNT = COUNT.
    V_MENGE = IT_EKBE-MENGE.
    MODIFY IT_EKBE.
    IT_FINAL = IT_EKBE.
    APPEND IT_FINAL.
    ENDIF.
      call function 'CABM_READ_BOM'
        exporting
          I_MATNR               = IT_EKBE-MATNR
          I_WERKS               = IT_EKBE-WERKS
          I_STLAL               = '01'
          I_STLAN               = '3'
          I_DATUV               = IT_EKBE-BUDAT
        TABLES
          EXP_BOM_DATA          = IT_BOM_HEAD
          EXP_ITM_DATA          = IT_BOM
       EXCEPTIONS
         NO_RECORD_FOUND       = 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.
      ELSE.
    *START RK 18.06.2007
      DELETE IT_BOM WHERE DATUV > IT_EKBE-BUDAT.
    END : 18.06.2007
        IF V_DELETE = 'X'.
          LOOP AT IT_BOM.
            DELETE IT_EKBE WHERE MATNR = IT_BOM-IDNRK.
          ENDLOOP.
          REFRESH IT_BOM.
        ELSE.
          PERFORM CHECK_BOM_GR.
        ENDIF.
      endif.
    ENDLOOP.
    FREE IT_EKBE.
    ENDFORM.
    *& FORM CHECK_BOM_GR.
    FORM CHECK_BOM_GR.
    DATA: WACNT TYPE P DECIMALS 4.
    WACNT = COUNT.
    LOOP AT IT_BOM.
      READ TABLE IT_EKBE INTO WA WITH KEY EBELN = IT_EKBE-EBELN
                                          MATNR = IT_BOM-IDNRK.
      IF SY-SUBRC = 0.
        WACNT = WACNT + V_CNT.
        WA-COUNT = WACNT.
        WA-BMENGE = IT_BOM-MENGE.
        WA-TMENGE = V_MENGE.
        APPEND WA TO IT_FINAL.
        DELETE IT_EKBE WHERE EBELN = WA-EBELN AND
                             EBELP = WA-EBELP AND
                             MATNR = WA-MATNR AND
                             BELNR = WA-BELNR AND
                             BUZEI = WA-BUZEI.
    **START : ADDED BY .... KUMAR ON 14.06.2007
      ELSE.
        WACNT = WACNT + V_CNT.
        WA-COUNT = WACNT.
        WA-BMENGE = IT_BOM-MENGE.
        WA-MATNR  = IT_BOM-IDNRK.
        WA-TMENGE = V_MENGE.
        APPEND WA TO IT_FINAL.
    **END ADDED BY .... KUMAR ON 14.06.2007
      ENDIF.
    CLEAR WA.
    ENDLOOP.
    REFRESH IT_BOM.
    ENDFORM.
    *& FORM DISPLAY_OUTPUT.
    FORM DISPLAY_OUTPUT.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
              i.e. wa_ekko-line_color = 'C410'
    IT_FINAL_TEMP[] = IT_FINAL[].
    LOOP AT IT_FINAL.
    CLEAR IT_FINAL-DMBTR.
    ********added by .... .... on 17.02.2007
       if it_final-bmenge  < 0.
    IT_FINAL-DIFFER = IT_FINAL-TMENGE * IT_FINAL-BMENGE * -1.
       else.
    *********end by .... .... on 17.02.2007
    IT_FINAL-DIFFER = IT_FINAL-TMENGE * IT_FINAL-BMENGE.
    ********added by .... .... on 17.02.2007
    endif.
    *********end by .... .... on 17.02.2007
      IF IT_FINAL-BWART = '101'.
        IT_FINAL-LINE_COLOR = 'C210'.
        IT_FINAL-MENGE101 = IT_FINAL-MENGE.
        IT_FINAL-DIFFER = 0.
        LOOP AT IT_FINAL_TEMP WHERE BELNR = IT_FINAL-BELNR AND
                                    EBELN = IT_FINAL-EBELN AND
                                    EBELP = IT_FINAL-EBELP.
          IF IT_FINAL_TEMP-BWART <> '545'.
            IT_FINAL-DMBTR = IT_FINAL-DMBTR + IT_FINAL_TEMP-DMBTR.
          ELSE.
            IT_FINAL-DMBTR = IT_FINAL-DMBTR - IT_FINAL_TEMP-DMBTR.
          ENDIF.
        ENDLOOP.
        IT_FINAL-RATE = IT_FINAL-DMBTR / IT_FINAL-MENGE101.
        SELECT SINGLE
          NAME1
        INTO
          IT_FINAL-NAME1
        FROM
          LFA1
        WHERE
          LIFNR = IT_FINAL-LIFNR.
        IF SY-SUBRC <> 0.
          CLEAR IT_FINAL-NAME1.
        ENDIF.
      ELSEIF IT_FINAL-BWART = '543'.
        IT_FINAL-MENGE543 = IT_FINAL-MENGE.
        IT_FINAL-LINE_COLOR = 'C200'.
        IT_FINAL-DIFFER = IT_FINAL-DIFFER - IT_FINAL-MENGE543.
        CLEAR: IT_FINAL-LIFNR,
              IT_FINAL-EBELN,
              IT_FINAL-BELNR,
              IT_FINAL-MENGE_I,
              IT_FINAL-BUDAT.
      ELSEIF IT_FINAL-BWART = '545'.
    ******added by .... on 17.02.2007
       IT_FINAL-MENGE = IT_FINAL-MENGE * -1.
        IT_FINAL-MENGE = IT_FINAL-MENGE.
    *******end by .... on 17.02.2007
        IT_FINAL-MENGE545 = IT_FINAL-MENGE.
        IT_FINAL-LINE_COLOR = 'C200'.
        IT_FINAL-DIFFER = IT_FINAL-DIFFER - IT_FINAL-MENGE545.
        CLEAR: IT_FINAL-LIFNR,
              IT_FINAL-EBELN,
              IT_FINAL-BELNR,
              IT_FINAL-MENGE_I,
              IT_FINAL-BUDAT.
      ELSE.
        IT_FINAL-LINE_COLOR = 'C200'.
        CLEAR: IT_FINAL-LIFNR,
              IT_FINAL-EBELN,
              IT_FINAL-BELNR,
              IT_FINAL-MENGE_I,
              IT_FINAL-BUDAT.
      ENDIF.
    MODIFY IT_FINAL.
    ENDLOOP.
    ENDFORM.
    *&      Form  GENERATE_ALV_FIELDCAT
          text
    FORM GENERATE_ALV_FIELDCAT.
    DATA: POS TYPE I.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'COUNT'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'S. No.'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'MATNR'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Mat. No.'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'BMENGE'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'BOM Qty'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'EBELN'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'PO No.'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'MENGE_I'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'PO Qty'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'BELNR'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Gr. No.'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      CATALOG-HOTSPOT = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'BUDAT'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'GR Date'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'MENGE101'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = '101 Gr Qty'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'MENGE543'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = '543 Gr Qty'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'MENGE545'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = '545 Gr Qty'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'DIFFER'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Difference'.
      CATALOG-NO_ZERO = ' '.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'LIFNR'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Vendor'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'NAME1'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Vendor Name'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'RATE'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Rate'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
      POS = POS + 1.
      CLEAR: CATALOG.
      CATALOG-COL_POS = POS.
      CATALOG-FIELDNAME = 'DMBTR'.
      CATALOG-TABNAME = 'IT_FINAL'.
      CATALOG-SELTEXT_L = 'Value'.
      CATALOG-NO_ZERO = 'X'.
      CATALOG-FIX_COLUMN = 'X'.
      APPEND CATALOG TO TCATALOG.
    ENDFORM.
    *&      Form  ALV_SHOW
          text
    FORM ALV_SHOW.
      LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
      LAYOUT-BOX_TABNAME = 'IT_FINAL'.
      LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
      LAYOUT-ZEBRA = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = SY-REPID
          I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
          IS_LAYOUT               = LAYOUT
          IT_FIELDCAT             = TCATALOG
          IS_VARIANT              = VAR1
          I_SAVE                  = 'A'
          IT_EVENTS               = TEVENT[]
        TABLES
          T_OUTTAB                = IT_FINAL.
    ENDFORM .                    "ALV_SHOW
    *& FORM USER_COMMAND.
    FORM USER_COMMAND USING
              R_UCOMM LIKE SY-UCOMM
              SELFIELD TYPE SLIS_SELFIELD.
    DATA: TABIX LIKE SY-TABIX,
          WA LIKE IT_FINAL.
    TABIX = SELFIELD-TABINDEX.
    READ TABLE IT_FINAL INTO WA INDEX TABIX.
    IF NOT WA-BELNR IS INITIAL.
    set parameter id : 'MBN' FIELD WA-BELNR.
    CALL TRANSACTION 'MB03' AND SKIP FIRST SCREEN .
    ENDIF.
    ENDFORM.

    Hi,
    U can try this standard report for subcontracting:
    J1IFR (Transaction name),
    Not sure how much this will be useful to u.
    regards,
    Viji

  • PO number and material issued against this PO for subcontracting

    How to know the link in between the PO number and material issued against this PO for subcontracting.
    I have checked that PO history is not getting updated.
    Thanks,

    Hi,
    We have 2 different scenarios where you can post a goods issue to Subcontract Venodrs.
    Scenarios 1: You can post the goods issue against a subcontrac vendor with out referencing the Subcon PO from ME2O, at this stage we will be knowing what is the stock at subcontract vendor but we will not be knowing the issues against which and how much Quantities are posted.
    So when we are post goods receipt, then we will come to know the consuption quantities.
    Scenario: 2, If we use the delivery concept then we can track the goods issues against the subcon POs.
    If you really keen to track the material issued to Subcon vendor against a PO so better use with delivery.
    Thansk,
    Satya.

  • Account postings in GR & IR for Subcontracting

    Hi Experts,
    I need to know the account postings for both GR & IR during Sub contracting.
    Let us take the scenario . .
    PO price - 1000(Gross) +  200(Tax) = 1200 (Net) for 1 Qty
    GR - PO Net Price due to Moving Average price.
    IR - 1200(Gross) + 240 (Tax) = 1440
    Please explain the accounting entries during Goods Receipt and Invoice Receipt.
    By
    Prabhu

    If Material has Price Control as "V" (MAP)
    (BSX) Stock A/c of Assembly - Dr
    (BSV) Change in Subcon Stock - Cr
    (FRL) Subcontracting Charges - Dr
    (WRX) GR/IR Clearing A/c - Cr
    (BSX) Stock A/c of Components - Cr
    (GBB-VBO) Consumption A/c of Components - Dr
    If Material has Price Control as "S" (Std. Price)
    If Material is having Price Control as "S" then Price Difference A/c will also in picture.
    This depends on configuration; SPRO > MM > Inventory Management and Physical Inventory > Goods Receipt > Price Differences for Subcontract Orders at Goods Receipt
    Price Differences for Subcontract Orders at Goods Receipt
    In this step, you configure for each valuation area whether price differences are generated for a Subcontract order at the time of a goods receipt if the manufactured material is managed at standard price and the standard price varies from the receipt value (externally performed service + value of components + delivery costs).
    Example
    Finished product: $400 (value at standard price)
    Subcontract order:
    o Ext. service : $250
    o Components : $100
    Posting schema without price differences:
    Stock account FERT : 400 +
    Stock change : 400 -
    GR/IR clearing acct : 250 -
    External service acct : 250 +
    Compon. stock account : 100 -
    Consumption account : 100 +
    Posting schema with price differences:
    Stock account FERT : 400 +
    Stock change : 350 -
    Price difference : 50 -
    GR/IR clearing acct : 250 -
    External service acct : 250 +
    Compon. stock account : 100 -
    Consumption account : 100 +
    hope it help

  • Calculation for subcontracting item of type N (non stock) as it for type L(Stock)

    Hi Gurus,
    I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
    This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
    please suggest the user exit or Badi where i can change.
    Please refer the below logic-
    BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
    Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
    In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
    Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
    From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
    If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
    For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
    From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
    If ‘V’ the price will be picked from the field “VERPR”
    If ‘S’ the price will be picked from the field “STPRS”
    Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
    The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
    Br,
    Surya

    Hi Surya,
    Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
    requirement:
    VALUATION_CK                            BAdI for Valuation in Product Costing
    CK_KALAMATCON2_CI                       BAdI for CI Fields for Table KALAMATCON2
    COSTINGRUN_CK                           Edit Costing Run
    COST_APPORTION_CK                       Maint Apportionment Structure Joint Production: Dist Rules
    CO_PROD_COSTING_CK                      Cost Management for Joint Products (Costing, Target Costs)
    DATA_EXTENSION_CK                       For Data Enrichment in Product Costing
    DYNPRO_EXTENSION_CK                     BAdI for Interface Enhancement in Costing
    ORDER_COSTING_CK                        Enables Header Data Changes in Preliminary Order Costing
    QUANTITY_STRUCT_CK                      Enables Quantity/Structure Changes in Costing
    SUR_STOCK_TRANSF_CK                     Overhead on Materials with Stock Transfer Between Plants
    Thanks
    Sri

Maybe you are looking for

  • Problem with notifier bar

    Hey, today im trying to append messages to a notification bar. Everything goes fine, until i add a sixth message. With more than six messages the popup collapse and only one message at a time is visible (+scrollbar). But i want to see all messages wi

  • PL/SQL COMWRAP.SQL COM Automation in Windows

    Hello All, Mike here. I'm not sure which forum this should go in so I put it here. I'm writing a pl/sql procedure that calls ordcom (create by comwrap.sql) which uses orawpcom11.dll to work with com automation objects on windows. It appears that ther

  • How to set defaul email client to Entourage

    I have Entourage 08 and I have set a million times in Preferences\General to have Entourage as my defaul e-Mail client and yet whenever I see a link to send or attach as email, say a file in Preview app, I am always taken to the Apple Mail app which

  • MM System date Error

    Sirs While Applying final issue indicator to PO , system gives the error  SYST: Date 00.00.0000 not expected. How to rectify the same ?

  • Solaris 9 Oracle 9i

    Morning Guys, How do I start Enterprise Manager on the Solaris Console. Thank you.