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

Similar Messages

  • Error: GR "Goods receipt for purch. order" is not allowed (ORD 4000048)

    Hi gurus, can anyone please help me
    while doing service entry for the PO with account assignment F and Item Category D
    our client is facing the error
    "Goods receipt for purch. order" is not allowed (ORD 4000048) MSG no: BS007
    Diagnosis
    The current status of object 'ORD 4000048' prohibits business transaction 'Goods receipt for purch. order'.
    Procedure
    To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'ORD 4000048' to allow the transaction 'Goods receipt for purch. order'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    Anyone can give the solution please
    Guruk

    hi dear all
    Really thanks for your prompt reply.
    i solved this issue, as what u said, it is not released in IW31, at the time of PR creation. So i asked the User to go to IW32 anc choose the apprpriate order and change mode and click on Flag Icon to release.
    Any way i awarded points for your support
    Thanks
    regards
    Guru

  • "Goods receipt for purch. order" is not allowed (WBS P-0400-1-1-8010-1)

    Dear All,
         Can you tell me how to do?
    "Goods receipt for purch. order" is not allowed (WBS P-0400-1-1-8010-1)
    Message no. BS007
    Diagnosis
    The current status of object 'WBS P-0400-1-1-8010-1' prohibits business transaction 'Goods receipt for purch. order'.
    Procedure
    To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'WBS P-0400-1-1-8010-1' to allow the transaction 'Goods receipt for purch. order'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    Transaction analysis

    Hi Zhang,
    Goto Transaction CJ02.
    Now goto Edit button in Menu.Click on Status , then System/User Status.
    Here u can find the current status of Project.
    Later once again goto CJ02.
    Now goto Edit button in Menu.Click on Status -- Release.
    Once released u will be able to post GR.
    Regards
    Ramesh Ch

  • Goods receipt for purch. order" is not allowed (NWA EXCANETHDR 0030)

    Hi Gurus,
    Message no. BS007
    While doing MIGO with PO, Iam receving the following error msg as
    "Goods receipt for purch. order" is not allowed (NWA EXCANETHDR 0030)".
    Diagnosis
    The current status of object 'NWA EXCANETHDR 0030' prohibits business transaction 'Goods receipt for purch. order'.
    Procedure
    To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'NWA EXCANETHDR 0030' to allow the transaction 'Goods receipt for purch. order'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    Pls help me in this
    Thanks in advance,
    Vasanth

    Hi,
    I guess it the goods receipt is against a PO having an asset or used an Internal order .In the Internal order control data Goods receipt allowed indicator has not been set. Please see the order in KO03 and check the allowed transactions. If GR (RMWE) is not there than ask your CO team for the needfull change after which take up GR.
    Dhruba

  • Goods receipt for purchase order is not allowed

    Hi,
    When I am doing the PO receipt i am facing the error message "Goods receipt for purchase order is not allowed WBS element xxxxxx"
    What could be the problem
    Thanks
    Lucky

    Hi,
    Please check the WBS element in CJ03, in Basic Data, System status,
    Is the WBS is not released or blocked.
    Hope it helps you.
    Thanks

  • Goods receipt for purch. order" is not allowed

    Hi Experts,
    I am using BAPI_GOODSMVT_CANCEL..and getting the below Error messege
    "Goods receipt for purch. order" is not allowed (NWA 9000275335 0020) 
    What is this (NWA 9000275335 0020)*
    i would like to ask how do i go about resolving the error message. Please help me.
    Thanks ,
    Silviya

    Hi,
    Thanks for your reply. I have checked Network & Activity in CJ20N. I dont know how to identify whterher it's defined correctly or not.
    Is any other way to solve this?  please help me.
    Advance thanks,
    Silviya

  • "Goods receipt for purch. order" is not allowed (WBS D-GNP-051001-02-1-1)

    PO is already released. I used posting period that was in the config 10/2006 9/2006. Then when I tried to Post in MB01 I get this error. How to change the status of object 'WBS D-GNP-051001-02-1-1' to allow the transaction 'Goods receipt for purch. order'?
    Points for helpful ideas. Thanks!

    You have to do budgeting against that WBS.
    For this first do the cost planning and copy the cost planning as budget.
    then after budget you have to release this budget to use for transaction.
    Check whether that particular WBS is indicated as planning element or account assignement element.
    It should be account assignment element otherwise it will not allow to raise any PO.
    And set the status of WBS as Unblock (UBLK) otherwise it will show tax code missing and status BLK error message.
    Comeback for further clarifications.
    Praveen

  • Message no. BS007-Goods receipt for purchase order not allowed

    Hello SAP Experts,
    I have created an internal order to collect expense within the order.
    When I tried to reverse an GR against the PO created with the internal order assigned, the following Error occured.
    "Goods receipt for purch. order" is not allowed (ORD 145116170204)
    Message no. BS007
    Diagnosis
    The current status of object 'ORD 145116180204' prohibits business transaction 'Goods receipt for purch. order'.
    Procedure
    To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'ORD 145116170204' to allow the transaction 'Goods receipt for purch. order'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    The order was previous TECOed, and change it's status to Release, but still have the error.
    Please give possible solutions. Thank you in advance.
    Regards,
    Steven Lin

    Hi Br. Ajay M,
    Released the order and Status line as follow
    REL  AVAC BUDG GMPS
    but the error changed while reverse the document
    item 0001 Order is invalid.
    Many thanks for your kindly reply.
    regards,
    Steven

  • 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

  • Error while doing Goods receipt for process order. Error code: "BS027"

    I am getting error while doing GR for a day whereas previous day(s) GR is already done and also 2 days post that day are also done successfully.
    Error :  ""Goods receipt for prodn. order" is not allowed (ORD XX-CEMTSAL) " (XX = First two characters of plant code)
    Error code: BS027.
    Thanks to all in advance.

    Hello,
    This issue would occur when you want to post a confirmation for a production order. The error message is generated if you wanted to post a backflush for a component and if this component was assigned to a sales order stock. The sales order itself was assigned to a work breakdown structure element which should be debited with the actual costs. However, the business transaction 'Confirm' is not permitted for a work breakdown structure.
    Please look into SAP Note 62367 and 64370
    Hope the information is helpful
    regards

  • Not to update Goods receipt on process order in LIMS system

    Dear all,
    I am working on SAP-LIMS interface project.
    Please help me out with the below requriement:
    Release of process order (COR1) in SAP creates lot creation in LIMS (creates an inspection lot in QIWL table which is read by LIMS system to download data from SAP to LIMS).
    When we do goods receipt (MB31) against the process order, currently it updates same inspection lot in QIWL table to send the same record for LIMS system again.
    We have a requirement not to update on Goods Receipt to LIMS system.
    Please let me know if there are any user-exits/BADIs for the same.
    I know that goods receipt MB31 runs the FM MB_POST_DOCUMENT in background.
    Please let me know if somebody has worked on this requirement.
    P.S. - We need the functionality of updating goods receipt on purchase order in LIMS.
    Thanks,
    Sachin

    Hi,
    If you post GR in Plant - A, then the stocks in the warehouse will reflect for Plant - A & not in Plant - B.
    Although the warehouse is the same, it is linked to the combination of Plant & Storage location. You can check the warehouse stocks using LS26, just specify the warehouse number & material number.
    But there is also a concept of planning plant & production plant, so Plant A can be where the planning takes place, while Plant B is where the actual production takes place. In this case, although you produce in Plant B, the GR will be done in Plant A.
    Hope the above clarifies.
    Regards,
    Vivek

  • Goods receipt  for purchase order not allowed for a particular wbs

    hello everybody..
    Am creating a good receipt for a purchase order using the T-CODE-: MIGO...
    While doing so am getting an error as " goods receipt  for purchase order not allowed(wbs element)".
    What can be done to rectify this error?
    Plz do help me....
    Regards,
    Deepika
    Moderator message: not directly related to ABAP development, please have a look in the appropriate functional forum, study the long text of this error message.
    Edited by: Thomas Zloch on Dec 1, 2010 5:52 PM

    Hi Br. Ajay M,
    Released the order and Status line as follow
    REL  AVAC BUDG GMPS
    but the error changed while reverse the document
    item 0001 Order is invalid.
    Many thanks for your kindly reply.
    regards,
    Steven

  • Automatic creation of transfer orders from goods receipt of purchase order.

    Hi experts
    The project i am currently working on requires the following;
    When goods receipting a purchase order i have a requirement for the system to create automatic transfer orders to put the stock away into storage bins.  I am aware that the stock goes straight into the 902 area once goods receipted.  Is it possible to have the transfer orders created automatically out of 902 once the goods receipt has been posted.
    In support of this, i have made an entry in transaction OMKX for the following;
    Reference Movement Type - 101
    Movement Indicator - B (goods movement for purchase order)
    Movement Type - 101
    TR Create Transfer requirement - X
    Immed. TO Creation - A
    Addl Data - X
    Once i receipt the PO it just sits in 902 and does not create any automatic transfer orders.
    Could someone please help me
    Thanks
    Simon

    Please try to process the material document of the GR manually by LT06 in foreground to find out the root cause of the error.
    You may also want to setup the mail control (V_T321-MAILK) for immediate TO creation in OMKX. The system will send you a express message (depending on your setup) if TO creation is failed.

  • MIGO - Goods Receipt against Purchase order. PO rate dispaly.

    Is it possible to display purchase order line item rate in MIGO - Goods Receipt against purchase order - Quantity tab.
    In Quantity tab - System is showing Qty in Unit of Entry, Qty in SKU, Qty in Delivery Note, Quantity Ordered, alongwith these fields we also want display of Purchase order rate/each of that line item.
    Please guide.

    BTW you are getting PO number at MIGO and clicking over that you will get entire PO then why you want PO rate display here??

  • During Goods Receipt of Production Order

    Dear Friends
    Myself Prasanna R, This is regarding <b>Error while doing goods receipt of Production order</b>, I have done MRP run, and converted planned order to production order, and based on the Production order, i have done Goods Receipt, durning GR(Goods Receipt) this error occurs: Check table TFBEFU_CR: entry 10   does not exist
    Message no. M7001; In table TFBEFU_CR the entry 10   is missing.
    i am working on 5.0 version, kindly help me out, so that i can proceed.
    Thanks in Advance.
    Regards
    Prasanna R

    Hi Ranganth
    I can get into the MIGO, but unable to post the GR.
    Kindly help me out. and error message as follows:
    Check table TFBEFU_CR: entry 10   does not exist
    Message no. M7001
    Diagnosis
    In table TFBEFU_CR the entry 10   is missing.
    Procedure
    Make sure your entries are correct.
    If table  has not been maintained correctly, please inform your systems administrator.
    Thanks & Regards
    Prasanna R

Maybe you are looking for

  • Execute unix command in abap code

    Hi, I have a request to execute a script command in a remote unix server, should i use 'call function ...destination'? Thanks. Legend.

  • ODS-D55u - DO NOT BUY ITS A COMPLETE SCAM!

    So my company bought one of these machines last year as we needed to back up in a region of 400 XDCAM discs and around 4TB of media. Knowing how good XDCAMS are we thought this would be a great idea and bought into it. It has been working like a drea

  • Issue with product tops not moving after Upgrade Filesystem installed

    All: I have just installed the R12 tech stack and db in preparation for the upgrade. After this is completed it (rapidwiz) creates an environment file in $APPL_TOP. My issue is that some of the products, based on this environment file, still point to

  • Problem with Hierarchical query

    Gurus, I have a problem with hierarchical query, which I am pasting below. select sys_connect_by_path (Fname,'/')"PATH",Fname,id,level ,(SELECT COUNT(ID)-1 FROM (SELECT CONNECT_BY_ROOT LNAME LNAME,ID FROM CMT_PERSON START WITH ID = 'emplo000000000126

  • Running scripts, bat files, etc from a jar file

    Hello, Does anyone know of a way, or even if it is possible to run a script or batch file from a jar file? For instance, lets say I have a batch file that I can run from the command prompt by typing : myBatchFile.bat and now I write a very simple jav