How to stop goods receipt before issueing the goods for production order

Hi All,
I try to follow the thread SAP ERP Manufacturing - Production Planning (SAP PP) to do it, however it is not working. I already created the status profile, assigned it to 'StatusProfile Header' in OPJH for the correct order type. However when I change the status to permitted GR, it is still not able to give me to do it in MIGO. Any idea?
Thanks.

Hi Justin,
User status will not sutiable for your requirement, the best way is to use User exit or BADI
Implement the BADI - WORKORDER_GOODSMVT in this there is method
MANUAL_GOODS_RECEIPT under that
write this code
if_ex_workorder_goodsmvt~manual_goods_receipt.
data: lt_resb type standard table of resb,
        wa_resb type resb.
select * from resb into table lt_resb where rsnum eq i_order_header-rsnum and xloek eq space and bdmng gt 0.
check sy-subrc eq 0.
loop at lt_resb into wa_resb.
     if wa_resb-enmng < wa_resb-bdmng.
          message E499(sy) with 'Order is not fully consumed. Processing is STOPed'.
     endif.
endloop.
endmethod.
Enhancement: MBCF0002
Function module: EXIT_SAPMM07M_001
Code for your copy pasting in the source code of ZXMBCU02.
Remember to activate the program. In SMOD enter the enhancement, press F8 and then click on activate button.
*& Include ZXMBCU02
Regards,
Sankaran

Similar Messages

  • How to stop the goods receipt before issueing the goods for production orde

    Frndz,
    I have created a production order, now before even making the issue of rawmaterials from the inventory the system is allowing the goods receipt for that production order , kindly tell me the step by step procedure to check it.
    Regards,
    Srini

    Hi Srini,
    there are couple of ways to handle this situation..
    1. If you set all the components as Backflush relevant in Material Master or setting all Compoents tick in OPK4 will ensure that at the time of confirmation you will have all the components will be done auto GI.
    Now in your control key or Prod. scheduling profile specify that Auto GR.
    Now your GR & GI are linked.
    In OPK4, in the 2nd Tab page, termination of Goods Movements and Goods movements Ticked, so that when ever there is a problem with the components system will terminate the Confirmation.
    So there will not be any GR without GI.
    But, one can make GR with MB31 or MIGO
    (So this is an option but no fool proof method).
    2. Activating the User Satus (Status Profile) so that once the GI is done only you allow the Confirmation.
    (The settings we can discuss if required).
    3. Having the Use Exit..
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below links for further details..
    do not confirm without goods issue
    default quantity of confirmation(co11) should allowed in goods movements mb
    Revert for further discussion..
    Regards,
    Siva

  • How to restrict the GR for Production Order when Goods Issue is not done

    Hi Gurus
    How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
    Pls suggest best solution.
    Abhijit.

    Hi,
    You can club together the GI nad GR at the time of confirmation..
    I.e Backflush for the components and auto GR for the Product.
    So that you can stream line the Process.
    The best Option would be to use the User Exit:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below link for further details..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • How to allocate external process cost on the units of Production order

    Hi Gurus,
    I am facing a cost allocation issue.
    The scenario is a make-to-stock scenario in discrete manufacturing industry. I am using production order (PP01) and confirming the material issued to production and operations manually. There is an electrical cost incurred by the client. The total cost of electricity is allocated on the number of units that comes out from the production. Say, total electrical cost is 1000, number of units produced using the production order is 100, then per unit is charged 10 (1000/100).
    Can anyone help me how can I perform the cost allocation? Should I go for an activity type in work center OR should I use the cost sheet. Kindly help me.
    Thanks and Regards,

    Hi
    activity type would be better choice...
    Ajay M

  • The GP for Production order Rescheduling

    Hi Folks
    I have finished executing the Production order Rescheduling scenario in the DS.
    Now I want to find out how the blocks, the actions and the callable objects of it has been arranged.
    I am logged in as username j2ee_admin.
    I cannot see folder for the Production order Rescheduling in
    Guided Procedure -> Design time.
    There are folders for the scenario of procurement, travel expense exception, store specific consumer prices and so on.
    Can somebody help me know where can I locate it?
    many thanks
    sudeep

    Hallo ,
    Create the G/l account using transaction FS00 for the company code COM2.
    Regards
    Ramesh

  • Is it possible to post a good issue movement before post the good receipt m

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1-----STO1---- 562-----  Mat. Doc.101.05.2011--
    500-   ST
    PLANT1-----STO1---561Mat. Doc.205.05.2011--
    1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1--DocumentNo101.05.2011--99--
    500-  EUR
    G/LAccount1--DocumentNo205.05.2011--89--
    1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    Hi,
    Though sap allows like this ,, the document created will be with the date of the actual posting system date. If you look into the MSEG table you will get to know this.
    In theory .. this kind of practice should not be allowed .
    since this is a 562 which is a individual  entry may be system would have allowed.you try a 102 .
    Regards,

  • Is it possible to post a good issue movement before post the good receipt

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1           STO1         562           Mat. Doc.1           01.05.2011            500-  ST
    PLANT1           STO1         561           Mat. Doc.2           05.05.2011           1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1            DocumentNo1            01.05.2011        99            500-  EUR
    G/LAccount1            DocumentNo2            05.05.2011        89            1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    SAP only checks if there is enough quantity in the period (month), it does not check if there is enough stock at date level.
    there is no stock stored in any table for a given date. SAP would need to run the logic of MB5B to calculate the stock at a certain date, this would cause tremendous performance issues.
    you either have to do this calculation yourself in a user exit, or you better train your users.

  • Goods receipt before an order is not fully consumed

    Hi all,
    can anybody tell me how to stop goods receipt before an order is not fully consumed?
    In my case the goods receipt is executing automatically by the confirmation.
    Thanks for your answers!

    Hi,
    You can control this requirement by activate User Exit or BADI, see below source code
    Take help with your ABAPer on this and modify as per your required
    User Exit
    Enhancement: MBCF0002
    Function module: EXIT_SAPMM07M_001
    Code for your copy pasting in the source code of ZXMBCU02.
    Remember to activate the program. In SMOD enter the enhancement, press F8 and then click on activate button.
    *& Include ZXMBCU02
    data: lt_resb type standard table of resb,
    wa_resb type resb.
    select * from resb into table lt_resb where aufnr eq i_mseg-aufnr and xloek eq space and bdmng gt 0.
    check sy-subrc eq 0.
    loop at lt_resb into wa_resb.
    if wa_resb-enmng < wa_resb-bdmng.
    message E499(sy) with 'Order is not fully consumed. Processing is STOPed'.
    endif.
    endloop.
    BADI
    Implement the BADI - WORKORDER_GOODSMVT in this there is method
    MANUAL_GOODS_RECEIPT under that
    write this code
    if_ex_workorder_goodsmvt~manual_goods_receipt.
    data: lt_resb type standard table of resb,
    wa_resb type resb.
    select * from resb into table lt_resb where rsnum eq i_order_header-rsnum and xloek eq space and bdmng gt 0.
    check sy-subrc eq 0.
    loop at lt_resb into wa_resb.
    if wa_resb-enmng < wa_resb-bdmng.
    message E499(sy) with 'Order is not fully consumed. Processing is STOPed'.
    endif.
    endloop.
    endmethod.
    Pls refer below thread
    https://forums.sdn.sap.com/post!reply.jspa?threadID=1284289
    Regards,
    Sankaran

  • Post Goods Receipt before putaway

    Hi Experts,
    We're planning to implement SAP WM of SAP ECC 6.0. We're using inbound delivery for our goods receiving into the warehouse.  The process steps  that I found out from the SAP document is as follows:
    1.  Create inbound delivery
    2.  Pack if necessary
    3.  Putaway
    4.  Confirm Putaway
    5.  Post Goods Receipt
    We've business requirement to do the Post Goods Receipt before putaway.
    I do not find the configuration for this requirement.  
    Could some-one help me on this?  Any help on this would be greatly appreciated.
    Please send me the documents how to configure this.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi Philip,
    Thank you for your response.  I have found-out the same option as you mentioned from the 4.6c release notes.  I tried and it's still not working.  Don't know the cause for not working.  Any thought on this?  Please let me know.
    Thank you again,
    with regards,
    Muthu Ganapathy.

  • Wanted to block the Goods Receipt but not the Invoice Receipt

    Hi
    After the partial delivery of the Goods Receipt, i am manually setting the "Delivery completed" indicator in the PO. I dont want any future delivery against this PO. But it is allowing me to do a GR even though the Delivery Completed Indicator is set.
    How can i stop all the future deliveries agains the PO. But at the same time, is should not block the IR. I tried this by locking the PO item. It is not allowing me to do any GR after locking the same. But at the same it is not allowing me to do the IR also.
    Is there any way i can stop the GR, but do the IR for the purchase order ? Please clarify. Points assured.
    Thanks
    Venkat.

    Hello,
    If u maintain the latest GR date as a current date in the PO item level - delivery tab, then system will not allow to do further GR in future.
    Latest Possible Goods Receipt
    This is the latest acceptable date for goods receipt (GR).
    If goods are received after this date, you will receive either a warning message or an error message, depending on the system setting.
    If you receive an error message, you will not be able to post the GR.

  • Enough RG1 balance is not available to issue the Goods

    Hi All
    I am getting this error when I run "India - Excise Invoice Generation" Request by entering the Delivery Id. The Log file of the request showing this error ORA-20199: Enough RG1 Balance is not available to issue the Goods. But when I check the on hand quantity exists. Quantity is available even after reservation and shipping is done.
    Can anyone please tell me the reason and resolution if you had faced this error before.
    Thanks in Advance
    Prem.

    Process steps are as below .
    Material master with base unit "SHT-Sheet" and maintained alternative unit "M2- Square Meter" along with conversion factor 4930 M2 = 100 SHT. Incoming quantity inspection type (01) is also active on the material.
    Purchase Order quantity in alternative UnM like 1500 M2.
    Purchasing Info Record maintained with alternative pricing Unit “M2”.
    Good Receipt Quantity posted in the alternative Unit of Measure with 1500 M2.
    Usage decision recorded with Base unit Quantity 30.426 SHTs
    Error - PU GR blocked stock exceeded by 0.002 SHTs : 2847 1000 M7 22
    Cause of error which i observed is below.
    On usage decision, system calculating stock posting quantity "30.426" / Conversion factor "( 100 / 4930 )" = 1500.002 and this quantity "1500.002" exceeded from block stock quantity 1500 as posted at the time of GR in the block stock via 103 mvt.

  • Serial number optional at goods receipt but mandatory at goods issue?

    How can we make serial number optional at goods receipt but mandatory at goods issue?
    Thanks in advance for the answers....

    Hi,
    Not in front of the system, but if i remember correctly one of these enhancements has a check on serial numbers,
    1. User exit -> MBCF0002
    2. BADi -> WORKORDER_GOODSMVT or MB_DOCUMENT_BADI
    Check & revert if it meets your need.
    Regards,
    Vivek

  • How to add a receipt number in the following Query for PO Report

    Hi Guys,
    I need a help regarding following query.
    Its a PO report for 11.5.10.2
    select distinct pv.segment1 supplier_number,
    pv.vendor_name supplier_name,
    pha.segment1 po_number,
    pha.revision_num revision_num,
    pha.authorization_status po_status,
    to_char(pha.creation_date, 'DD/MM/YYYY') creation_date,
    pha.currency_code currency_code,
    pla.sum_amount_ordered sum_amount_ordered,
    pda.sum_quantity_ordered sum_quantity_ordered,
    pda.sum_amount_received sum_amount_received,
    pda.sum_quantity_received sum_quantity_received,
    (pla.sum_amount_ordered - pda.sum_amount_received) sum_accrued, --AVI
    ( pda.sum_quantity_ordered - pda.sum_quantity_received) quantity_accrued, --AVi
    to_char(rsl.date_receipt, 'DD/MM/YYYY') date_receipt,
    -- rsl.receipt_num receipt_number,
    ppa.segment1 project_code, ppa.project_status_code, --10.0.0.4
    aia.invoice_num invoice_num,
    aia.invoice_date invoice_date, --AVI 
    aia.creation_date invoice_creation_date, --AVI 
    aia.amount invoice_amount_allocated_to_po, --AVI
    pla.purchase_basis,
    pla.category_id,
    -- pda.item_description,
    haou.name organisation, --10.0.0.3
    pda.sum_quantity_billed sum_quantity_billed , --10.0.0.3
    gcc1.CONCATENATED_SEGMENTS,
    gcc2.CONCATENATED_SEGMENTS
    from po_headers_all pha,
    po_vendors pv,
    pa_projects_all ppa,
    hr_all_organization_units haou,
    (select po_header_id,
    sum(quantity * unit_price) sum_amount_ordered,
    org_id,
    purchase_basis,
    category_id
    -- pla.item_description,
    from po_lines_all
    group by po_header_id, org_id
    , purchase_basis,
    category_id
    -- pla.item_description
    ) pla,
    (select pla.po_header_id,
    pda.project_id,
    sum(pda.quantity_ordered) sum_quantity_ordered,
    sum(pda.quantity_delivered * pla.unit_price) sum_amount_received,
    sum(pda.quantity_delivered) sum_quantity_received,
    sum(pda.quantity_billed) sum_quantity_billed, --10.0.0.3
    accrual_account_id
    from po_distributions_all pda, po_lines_all pla
    where pla.po_line_id = pda.po_line_id
    group by pla.po_header_id, pda.project_id,accrual_account_id
    ) pda,
    (select po_header_id, charge_account_id,
    -- rsh.receipt_num,
    min(rsl.creation_date) date_receipt
    from rcv_shipment_lines rsl
    where rsh.SHIPMENT_HEADER_ID=rsl.SHIPMENT_HEADER_ID
    group by po_header_id,charge_account_id
    ) rsl,
    (select distinct aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date , sum(aida.amount) amount
    from po_distributions_all pda,
    ap_invoice_distributions_all aida,
    ap_invoices_all aia
    where pda.po_distribution_id = aida.po_distribution_id(+)
    and aia.invoice_id(+) = aida.invoice_id
    Group by
    aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date) aia,
    (select haou2.organization_id, haou2.name
    from fnd_flex_value_sets ffvs,
    fnd_flex_value_norm_hierarchy ffvnh,
    fnd_flex_values_vl ffvv,
    hr_all_organization_units haou1,
    FND_FLEX_VALUE_CHILDREN_V ffvcv,
    hr_all_organization_units haou2
    where ffvs.FLEX_VALUE_SET_NAME = 'CAP_CODE_BU'
    and ffvs.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvnh.parent_flex_value like 'PO%'
    and ffvv.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvv.FLEX_VALUE between ffvnh.child_flex_value_low and ffvnh.child_flex_value_high
    and substr(haou1.name, 1, Instr(haou1.name, '-')) =
    substr(ffvv.DESCRIPTION, 1, Instr(ffvv.DESCRIPTION, '-'))
    and haou1.organization_id = fnd_global.org_id
    and ffvcv.parent_flex_value = ffvnh.parent_flex_value
    and ffvcv.flex_value_set_id = ffvs.flex_value_set_id
    and substr(haou2.name, 1, Instr(haou2.name, '-')) =
    substr(ffvcv.DESCRIPTION, 1, Instr(ffvcv.DESCRIPTION, '-'))
    union --10.0.0.1
    select f.organization_id, f.name --10.0.0.1
    from hr_all_organization_units f --10.0.0.1
    where f.organization_id = fnd_global.ORG_ID --10.0.0.1
    ) bu
    , po_line_locations_all plla --10.0.0.4
    , gl_code_combinations_kfv gcc1
    ,gl_code_combinations_kfv gcc2
    where pv.vendor_id = pha.vendor_id
    and pla.po_header_id = pha.po_header_id
    and pda.po_header_id = pha.po_header_id
    and pha.po_header_id = rsl.po_header_id(+)
    and pda.project_id = ppa.project_id(+)
    and pha.po_header_id = aia.po_header_id(+)
    and aia.po_header_id = pha.po_header_id
    and pla.org_id = haou.organization_id
    and pha.authorization_status in ('APPROVED', 'OPEN')
    and plla.po_header_id = pha.po_header_id --10.0.0.4
    and plla.closed_code in ('APPROVED', 'OPEN', 'CLOSED FOR INVOICE', 'CLOSED FOR RECEIVING', 'CANCELLED') --10.0.0.4
    and bu.organization_id = haou.organization_id
    AND gcc1.code_combination_id = pda.accrual_account_id
    AND gcc2.code_combination_id =rsl.CHARGE_ACCOUNT_ID
    In the following query I have commented receipt_num using the table rcv_transaction_headers.
    If I uncomment it the query results huge number of unexpected report.
    How can I add receipt number to the following query?
    Should I use rcv_transactions. If yes, what would be the join conditions.
    Kindly help as its urgent.
    Thanks in advance.
    Regards
    Avijit

    Sandeep is correct. I don't have time to tell you the correct query, but mine is something like this based on Sandeep's information:
    SELECT rsh.receipt_num
    FROM   rcv_transactions      rcvt,
           po_lines_all          pla,
           rcv_shipment_headers  rsh
    WHERE  rcvt.shipment_header_id   = rsh.shipment_header_id
    AND    rcvt.PO_LINE_ID          = pla.PO_LINE_ID
    AND    pla.item_id              = (select distinct inventory_item_id
    from mtl_system_items
    where segment1 = '1216107-2')

  • What is the  FM/BAPI  to get the Goods Receipt  Based on the Purchase Order

    Hi ,
    I want FM/BPI  to get the Goods Receipt  Based on the Purchase Order in MM.
    Thnx in advance

    Hi
    BAPI_GOODSMVT_CREATE
    Thanks & Regards
    Kishore

  • Goods Receipt is allowed through MIGO  for PO's though they hav the confirm

    Goods Receipt is allowed through MIGO  for PO's though they hav the confirmation control key. where as its should allow based on ASN(inbound Delivery).
    Not sure if any system changes has to be made or anything else. please suggest.
    Thanks

    Hi Dear <
      You can also recived the goods  with reference to inbound Delevery,
    1  Select  In Confirmation  Tab Con con key while in  Creating PO
    2  Create a Inbound delevry from T.code: VL31n
    3 Once you create the Inbound delevery wth reference to PO, The inbound delevery no will be propulated in  Confirmation Tab of PO
    4 you can Do the mIGO  with reference to that Inbound delevery

Maybe you are looking for

  • Apple Mobile Device service could not be started. (-2146959337)

    I keep getting the error "Apple Mobile Device service could not be started because an unknown error occurred (-2146959337). After I hit OK, it says "This iPod cannot be used because the Apple Mobile Device is not started." I have tried starting the s

  • What is the maximum amount of memory my laptop can have?

    I have a HP Pavillion DV6-7028tx with WIndows Home Premium installed, and I was wondering how much memory i can upgrade to? The hp website says that 8gb is the maximum that it can handle, but the Corsair system scanner says that it should be able to

  • Final Cut Pro to Motion 4

    Is it possible to send pre keyed footage from final cut to motion and have the filters stay?

  • Report to show unmapped entries in MapID context

    I'm using TCS2 in WinXP. Robohelp v. 8.0.2.208 Is there a report that will show me any entries that are not mapped in terms of the context sensitive map ids? I found the reports that show the used MapIDs and broken topic mapIDs... I need this report

  • XI 3.0: Preserve trailer spaces with JMS Adapter

    Hi everybody Does anybody knows how it is possible to preserve the trailing spaces in a message coming from JMS adapter? I have a fixed-length field that is filled with a left space trailer, but the space is removed by (i think) the adapter. Does exi