Goods Receipt PO Quantity Deviation with PO

Hi all
Is it possible to prevent user to post Goods Receipt PO with greater qty than PO Qty for the item with an option to choose YES or NO?
Kedalene

Hi Kedalene,
Yes Possible through Transaction Notification.
Please create one UDF on GRPO at Row level and Create Option with YES and NO and Keep By Default UDF Option to NO and Place below Transaction Notification in SQL.
IF @transaction_type IN ('A','U') AND @object_type = '20'and @error = 0
BEGIN
IF EXISTS (SELECT T0.DocEntry FFROM OPDN T0  INNER JOIN PDN1 T1 ON T0.[DocEntry] = T1.[DocEntry]
WHERE  T1.UDF = 'NO' AND (T1.Quantity > T1.BaseOpnQty)
AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 10, @error_message = 'You can not Create GRPO with More then Quantity in PO'
END
END
Hope this help
Regards::::
Atul Chakraborty

Similar Messages

  • Goods Receipt entry for items with serial number

    Hi All,
    When I try to create a Goods receipt entry, for items with serial number, i'm always getting the following error message.
    [OSRI] , 'The selected quantity of serial/batch numbers is greater than the quantity in row Id'
    The following is the code that I'm using
    Dim oInvetoryGenEntry As SAPbobsCOM.Documents
    Dim oSerialNumber As SAPbobsCOM.SerialNumbers
    Dim ErrCode As Long
    Dim ErrMsg As String
    Dim ret As Long
    Set oInvetoryGenEntry = oCmp.GetBusinessObject(oInventoryGenEntry)
    Set oSerialNumber = oInvetoryGenEntry.Lines.SerialNumbers
    oInvetoryGenEntry.DocDate = Now
    oInvetoryGenEntry.DocRate = 1
    oInvetoryGenEntry.TaxDate = Now
    oInvetoryGenEntry.PaymentGroupCode = "3"
    oInvetoryGenEntry.Comments = "GRN Entry11"
    oInvetoryGenEntry.Lines.ItemCode = "A00004"
    oInvetoryGenEntry.Lines.Price = 100
    oInvetoryGenEntry.Lines.Quantity = 1
    oSerialNumber.SystemSerialNumber = 55555
    oSerialNumber.InternalSerialNumber = "2354"
    oSerialNumber.BatchID = "bt1"
    oSerialNumber.Add
    ret = oInvetoryGenEntry.Add
    If ret <> 0 Then
            oCmp.GetLastError ErrCode, ErrMsg
            MsgBox ErrCode & " " & ErrMsg
        Else
            MsgBox "GRN Entry made."
        End If
    It would be wonderful if anyone help me out to trace the exact reason for this issue.
    Thanks
    John

    Hi John I'm almost sure that your working with SDK 6.5 with SP1 or lower, visit this address
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://DI: Add more than one serial numbers in Invoice
    Maybe you can find your answer if you can fix it let me Know my email address is [email protected] because i had the same problem.
    Regards

  • Goods receipt against process order with inbound idoc

    Hi Experts,
    We need to post good receipt against process order with movement type 101 and for By-product 531.
    Can we use inbound idoc-WMMBID02,with message type WMMBXY to achieve this functionality?
    Or please advise if we can achieve this  from any other Idoc type.
    We are getting below field values for external system
    1. process order number
    2.plant
    3.material
    4.quantity in unit of entry
    5.unit of measure
    6.storage location
    7. movement type
    8.Batch
    Kindly advise how can we achieve this.
    Best Regards
    CS

    261 and 262 are two different movement types INDEPENDENT of each other. I definitely know for the fact that SAP allows you to create a 262 without a 261. if you were to restrict it... you can disable access through a tcode for that mov. type 262 and ask users to use MBST to cancel any material documents created via 261 movt type.. that would ensure a smooth process

  • No goods receipt possible for PO with confirmation

    Hello gurus,
    My standard PO has to be confirmed according to feed back from vendor.
    Then in confirmation tab, I selected the standard confirmation control "confirmations".
    The GR is then not possible, which is the standard behaviour.
    Now I got back to my PO in change mode, selected the "AB" confirmation category for order acknowledgment, enter a quantity and a delivery date and save this PO.
    BUT this is still not possible to do the GR...why that? what could be the problem behind?
    I precise
    - the goods receipt indicator is set
    - there is no PO history
    - before filling any confirmation control, I had the possibility to make the GR w/o problem.
    Could you please help?
    Thx in advance.

    Hello C Olivia,
    In the standard confirmation control 0001 - Confirmations, which you use in the PO, the confirmation sequence is:
    - AB - Order Acknowledgement - The vendor confirms that he can meet the requirment of your PO.
    - LA - Inbound Delivery - this one is sent from the vendor when he ships your goods.
    In your test you are partly doing the confirmation process and that is the problem. Without the second part (LA) the system won't let you make the GR. So what you need to do is go to ME22N change the PO by adding LA in the confirmation tab, add the quantity which is to be shipped, save and do the GR.
    And yes, you can create new confirmation control with different sequence (one step) which can also solve the problem.
    Regards,
    MD

  • Cancellation of Goods receipt (Partial Quantity)

    Dear Experts,
    One of my user creates sales order for 1363 Cartons and create Goods Receipt for the same. But he created outbound for 738 carton (actually received quantity)  and completed full process like PGI, Shipment & billing Documents with 738 cartons. Now stock showing 625 cartons but this cargo not available in his stock. So, now he wants to cancel/edit/return delivery for balance 625 cartons. Is it possible now? If yes then how can I do that to show stock 0?
    Thanks in advance and yr kind support to resolve this issue will be highly appreciated.
    Best Regards.
    Ripon

    >
    riponkp wrote:
    > Dear Experts,
    >
    > One of my user creates sales order for 1363 Cartons and create Goods Receipt for the same. But he created outbound for 738 carton (actually received quantity)  and completed full process like PGI, Shipment & billing Documents with 738 cartons. Now stock showing 625 cartons but this cargo not available in his stock. So, now he wants to cancel/edit/return delivery for balance 625 cartons. Is it possible now? If yes then how can I do that to show stock 0?
    >
    > Thanks in advance and yr kind support to resolve this issue will be highly appreciated.
    >
    > Best Regards.
    > Ripon
    Hard to understand.
    do you mix sales order and purchase order? goods receipt and goods issue?
    is it a stock transfer between 2 plants?

  • Goods receipt for purchase order with account assignment 'K'

    Hello All,
    There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
    I understand that material has been directly consumed to the respective cost center.
    How do track the internal movement for these materials??
    I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
    All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
    Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
    Request your inputs.....
    Regards,
    Manoj Reddy

    Account assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
    Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
    201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
    Edited by: Afshad Irani on May 17, 2010 2:17 PM

  • O4G1 goods receipt creates FM document with OFUP set to MM Invoice recipt

    Hi,
    We have IS-OIl-TD (Transport and Distribution) implemented. The flow of the process is the standard TD process, first we create a PO, then we create an inbound delivery (VL31N), after that we create a bulk schedule (O4F1) for the product being imported, then we make a load confirmation (O4G1) and finally a delivery confirmation (O4H1).
    When we make the load confirmation (O4G1) the system, as indicated by our IS-OIL/MM specialist, makes a goods movement, placing the product in the intransit storage location. This movement makes a credit to the GR/IR account and a debit to the corresponding stock account (inventory account). However this posting is creating a FM document through the credit to the GR/IR account with the account assignment of the stock item assigned in the PO.
    We have in the OFUP customizing that the GR/IR update should be performed during the invoice reception, but somehow this goods movement is not being interpreted as a goods receipt, in fact the business transaction is RMWA instead of RMWE.
    Because of the situation described above, if I have a PO for 1000$, therefore have a commitment of that amount in account assignment XX, then when we make the load confirmation (O4G1) it creates a credit to the GR/IR with the same account assignment as the PO creating a reduction of the expense for the same account assignment XX by 1000$. So at that moment I still have the PO with a 1000$ commitment and a reduction of the expense in the annual budget created by the GR/IR of 1000$. When I post the invoice the system reduces the PO commitment (as excepted) and creates a value type 54 for the $1000 of the corresponding invoice. This makes the expense on FM at a net value "zero", because at the end I have an expense reduction of $1000 (caused by the O4G1) and an expense of $1000  (caused by the invoice), which is totally unacceptable.
    My question is if anyone has had this problem and if you see a possible solution to this.
    I would probably want the O4G1 posting to have no effect on FM, but the use of the derivation strategy seems useless because I can't control the GR/IR account assignment derivation.
    I appreciate any leads on how to find a suitable solution to this issue.
    Regards,

    Hi,
    how you have set up the invoice generating?
    If you have activated ERS, then you have to cancel the goods receipt not the invoice document. ERS will then create the relavent cancellation invoice for the cancelled goods movement.
    If you have not activatd ERS then you can reverse through FB08.
    Thanks
    Kalyan

  • Goods Receipt using Inbound Delivery with reference to Outbound Delivery

    Here is our scenario that we need help finding a solution:
    1.  Multiple Intracompany POs created
    2.  On the confirmations tab of the POs, we have u201CInbound Deliveryu201D Selected because the items need to be received in with Handling Unit management.
    3.  We have the Order Combination box checked on the shipping tab to allow 1 delivery to be created for multiple purchase orders.
    4.  We create only 1 Outbound Delivery for only available items on various purchase orders.
    5.  Due to being handling unit managed, we need to receive the items using an inbound delivery.
    Problem:  We need to find a solution to easily enter an outbound delivery number which will allow us to receive only the parts that were shipped (issued), via the inbound delivery process. 
    If we remove the confirmation control key, we can complete a Goods Receipt for Outbound Delivery in MIGO u2013 but is there a way to complete a goods receipt using an inbound delivery with reference to an Outbound Delivery?
    Thank you for the help.

    Hi,
    You can work with Inbound delivery created via IDOC Triggered from Outbound Delivery, this will carry the HU Data as well. Please refer this wonderful note, which will explain you a lot of things,  Note 1119073 - FAQ: Automatic inbound delivery creation for stock transfers
    There are other notes also available for Inbound delivery creation with HU in STO, please browse the notes, if you find any difficulty.
    Regards
    Chandra Shekhar

  • Post Goods Receipt for Inbound Delivery with BAPI_GOODSMVT_CREATE

    Hello,
    I try to post GR for an Inbound Delivey with BAPI_GOODSMVT_CREATE and it is not working.
    I know delivery number and PO number and give both to the bapi.
    I am not sure how to set the movement indicator in the item.
    When I set it to B.
    I do get a shortdump from MB_POST_GOODS_MOVEMENT numer 143, stating that this type of movement is not allowed with this transaction
    when setting to L I do get an error stating
    "Update control of movement type is incorrect (entry 101 X X _ L)"  from message class M7.
    Below is the coding for it.
    Thank you very much for your help
    Michael
    * Füllen der Kopfdaten
      ls_gm_header-pstng_date = sy-datum.
      ls_gm_header-doc_date = sy-datum.
      ls_gm_header-ref_doc_no = delivery_header-lifex.
      ls_gm_header-bill_of_lading = delivery_header-bolnr.
      ls_gm_header-gr_gi_slip_no = delivery_header-xabln.
      ls_gm_header-pr_uname = sy-uname.
      ls_gm_header-ref_doc_no_long = delivery_header-lifex.
      ls_gm_header-bill_of_lading_long = delivery_header-bolnr.
      lv_gm_code = '01'.
    * Füllen der Positionsdaten
      LOOP AT selected_delivery_items INTO ls_delivery_item.
        ls_gm_items-material          =  ls_delivery_item-matnr.
        ls_gm_items-plant             = ls_delivery_item-werks. "             0001
        ls_gm_items-stge_loc = ls_delivery_item-lgort.
        ls_gm_items-move_type ='101'. "101
        ls_gm_items-entry_qnt                      = ls_delivery_item-lfimg. "          10,000
        ls_gm_items-entry_uom                      = ls_delivery_item-vrkme.
        ls_gm_items-po_number                      = ls_delivery_item-vgbel. "55001582
        ls_gm_items-po_item                        = ls_delivery_item-vgpos. "00010
        ls_gm_items-mvt_ind = 'B'.
        ls_gm_items-expirydate = sy-datum + 30 .
        ls_gm_items-deliv_numb = ls_delivery_item-vbeln.
        ls_gm_items-deliv_item = ls_delivery_item-posnr.
        APPEND ls_gm_items TO lt_gm_items.
      ENDLOOP.
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = ls_gm_header
          goodsmvt_code                 =  lv_gm_code
    *     testrun                       = 'X'
    *   GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              =  ls_gm_header_ret
         materialdocument              = lv_mat_docno
         matdocumentyear               = lv_mat_year
        TABLES
          goodsmvt_item                 = lt_gm_items
         goodsmvt_serialnumber         = lt_gm_serial_numbers
          return                        = lt_return
      if lt_return is INITIAL.
      endif.

    Hello Pranav,
    the input for the business data is correct.
    When performing the goods receipt with Migo it works.
    I think the B in the movement indicator is correct, but there might be something wrong with the other data.
    Best regards
    Michael

  • Goods receipt message empty - MIGO with purchase order

    Hi,
    In MIGO, I do a goods receipt with reference to purchase order. On the purchase ordre the flag "Goods Receipt Message" is flagged.
    In my business workspace I receive the email, the message title is ok but message is empty, the text is not displayed. The issue is in my ECC6 system, it works fine in 4.6C system.
    Where can I customize the content of the mail.
    Can I see it in SO10, is this a standard text ?
    Thank you.

    closed

  • Where to find goods receipt data only working with GR in tcode me23n

    hi,
    I am getting this error 1. Enter Good receipt data only when working with GR-based IV. What can be done for this. how to rectify this error.
    Where can i find the goods receipt data in the transaction Me23n.

    in addtion to above process ,
    u can check @ table level EKBE w.r.f PO number.
    VGABE = 1     Goods receipt
            2     Invoice receipt
    and let us know what u are doing in ME23N.
    FOR GR Tcode is MIGO
    for IN tcode is MIRO.
    Regards
    Prabhu

  • Goods Receipt against Purch Order with WBS not posted qty in Project Stock

    Dear Gurus
    We have recently implemented SAP in our company. One problem which we have encountered is at the time of GR of material against Purchase Orders with WBS assignments. Our requirement is that the goods at the time of GR should undergo the QM process and after Usage decision in QM, it should be available in project stock till the time we consume the material.
    Contrary to above, the current behaviour of the system is that at the time of GR, the quantity on order is reduced by the GR quantity but nethier the project unrestricted stock nor the project quality stock is updated.  Apparently it seems that the stock is consumed immediately at the time of receipt.
    It will be appreciated, if any one of you can advise on above.
    Muhammad Asif Nakhuda

    Hi!
    As Nag has correctly pointed out, the account assignment should be 'Q'
    Consumprion also occurs if you have acct assignment category as 'N'
    Now, if you are raising the PO with reference to PR that is thru PS, hen select Item Category 'L' (stock item). This will
    trigger the acct assignment category 'Q'
    Regards

  • Goods Receipt through internal order with movement type 262

    Dear Friends,
    some of our users  making entries like the following
    1. created Internal Order 
    2. Creating Reservation with movement type 262 ( which not issued material through movemnt type 261)
    3. Stock  updated
    i just want to confirm, we not issued like X  material,  even stock not available,  we can make entries like the above, To receive X material from Internal order/ subcontractor using movement type 262.
    kindly advice please  if it is wrong then tell me the process.
    Regards,
    Rajesh G

    HI,
    if we receive material from subcontractor what process we can do...
    can you explain your issue exactly what problem you have at your end .
    I think you want to take subcontracting material inside which is not in sap system now,it may finished material or it may component.If you don't want to show this material as at vendor now
    then you can try movement type 501  or through physical inventory  t-code MI10
    Regards
    Kailas Ugale

  • Goods receipt MB01 with serial number problem

    Dear MM Experts,
    Iam a PM Consultant and this problem faced me while doing goods receipt from external maintenance order so i will appreciate any help regarding this issue,
    In serial number profiles i did the stock check indicator to give an error message if there were incosistinces in stock data,
    now this is the scenario:
    after doing an external maintenance order and creating a PO with reference to the maintenance order PR, and also entering the specified serial number in the PO:
    1) Goods Issuing: i used MB1B with movement type 541 and as the serial number already exist and not wrong so it didnt show any error messages and by checking the stock data in MMBE the material was in stock provided to vendor.
    2) Goods Receipt: when using MB01 with movement type 101 and when entering the serial number of the material it gives an error message ALTHOUGH it is the same serial number issued and the same serial number in the PO
    This is the error message :
    Stock data of serial number G081 not suitable for movement
    Message no. IO231
    Diagnosis
    The current stock information for the serial number G081 contradicts the stock information of the movement to be posted. The following stock information is valid for the document and the serial number:               Batch Number Stock data Serial data   C2
    Only the first different field for the stock data/serial data is assigned. However, further data may also be inconsistent. To determine whether this is the case, you can start an analysis.
    System Response
    Two system responses are possible (set using Customizing): If the case of an error occurring, the assignment of the serial number to this posting procedure is not possible. In the case of a warning, you can, if necessary, transfer the notification.
    Procedure
    Assign a serial number which corresponds in your stock information to the stock data of the posting. You can display the serial numbers which can be used using Select serial numbers.
    Any help is appreciated
    Thanks in advance

    Hello,
    A possibility to fix serial number status is by running the report RISTEQ07 in SE38 transaction. Please run this report as mentioned in the SAP Note 316868 (point 2).
    While running the report please consider following points:
    The report does not set any locks on the records to be corrected, in other words, the report should only then be executed in the correction mode if the master records (within the client) are not being used in another (changing) access.
    During the search for inconsistent serial numbers, the system assumes that the stock segment is correct and the existence indicator might be incorrect.
    In the correction mode, the existence indicator is adjusted (depending on the existence of the stock segment).
    The report provides a test option (LP_TEST); if this option is active,  the system only checks whether inconsistencies exist. Corrections are  only carried out if the test mode is deactivated. Option LP_EXTD for the enhanced check should remain deactivated for the first run. In particular, if no inconsistency is recognized, the run should be repeated with the activated option.
    Another possibility is to create/post a physical inventory document for the affected material and serial number.
    Determine which material serial number is really on stock (physically on stock). You can do this, by either analyzing the history of each Serial Number or by carrying out a physical inventory.
    Before posting the Physical Inventory the stock validation of the serial number profile of the material has to be switched off in OIS2 transaction (if it is switched on).
    When you do this, you will get a Pop-up, please read the long text and execute the report RISERNR9 which is mentioned there.
    After executing this report the inventory can be posted. When this is done please switch stock validation on again and execute report RISERNR9 again.
    Perform this inconsistency correction only when you are sure that no one else is working on the system otherwise it could lead to more inconsistencies while the stock validation is switched off. Check SAP Note 612132 for further details.
    In another words, you have to:
    Create a physical inventory in MI01 transaction;
    Enter a counted quantity in MI04 transaction;
    Define each serial number to each qty on stock.
    I hope this information helps you.
    Good  luck,
    Fábio Almeida
    MM Consultant

  • How to get Goods Receipt Quantity?

    Hi,
    I have Production Order data in AUFK and AFPO(AUFNR, AUART and
    MATNR etc.)  I want to get "Good Receipt(GR) quantity for the movement
    type '101'/'102' ",  "Material Cost with Movement type '261/262" and "Standard
    Price" for that material. In MSEG, I have the fields for AUFNR and Movement
    Type(BWART). But I am not confident  about the fields for GR Quatity and Material
    Cost.
    Could you please give me the logic to get these fields?
    Thanks,
    Sreenivas Reddy Maddi

    I think checking aufnr and bwart of MSEG is enough. If you want to be more sure then you can also check for the reservation number RSNUM and RSPOS. you can find the reservation no and item no from table RESB using production order number aufnr.
    Thanks.

Maybe you are looking for

  • Not able to see the values properly

    Hi,, I am using Jdev 11.1.1.5. I see the value of "val.toString()" is correct and the Sql of the view is fine. Then what can be the reasons that no values come out in the popup? Why do I get "No data to display" within the popup once I clicked the li

  • Getting null values from array

    I have set up an array which is supposed to take the values of a recordset. Only problem is when I display them on the page, I get a list of 'null' instead of the data. I'm trying to list first and last name (fname_ul & lname_ul in DB) Here's my code

  • How can I delete U2 from my Itunes throughout the eternity?

    Hi there, as you know Apple is celebrating whatever by giving  some U2's stuff totally free. I don't like their music and i do not want they to  appear the whole time in my library. I just wanna delete their music from my cloud. By listening to my mu

  • Billing block for customer for sales document type OR

    Hi I want to block a customer for a particular sales document type OR How to do it? Regards

  • How can purchase dept. know wather payment is done or not to vendor?

    Dear sirs how can (PO risier)purchase dept. know wather payment is done or not to vendor? Is possible to see in PO or PR ? Hopeeeeeeeee...