Qty and Price changes in GR(PO) Document

Hi All,
           One of my client want to restrict the Qty and Unit Price of GR(PO) Document in such a way where a user should not be able to change the Qty and Unit price while posting a  GR(PO) Document.
           The System what is followed now is :
           Say User raised a Purchase Order Of Qty - 5 Tons & Unit Price - 100/-
           This Purchase Order will get approved by Manager and then it gets added. Once the Purchase order gets added we post GR(PO) Document copying the same Purchase Order to the GR(PO) Document.
           Say We received the material.........Qty - 5.2 Tons...........In this case system should allow to post this quantity and add the GR(PO) Document.
           Where as when We received Qty - 6 Tons, System should not allow to post with this Quantity, (Say there should be some variance in Quantity which has to be allowed)
           Is there any settings which can be made to achive this????????????
Thanks and Regards,
Sree.

hi,
u can achieve it thru SP_TransactionNotification
try this code
--      Block GRPO if in Excess in PO Qty
IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'20')
begin
     if exists (SELECT T0.BaseEntry, SUM(T0.Quantity)
     FROM [dbo].[PDN1] T0 INNER JOIN [dbo].[POR1] T1 ON T1.DOCENTRY = T0.BASEENTRY
     WHERE T0.BaseType = 22 AND T0.ItemCode = T1.ItemCode AND T0.BaseLine = T1.LineNum and T0.DOCENTRY = @list_of_cols_val_tab_del
     GROUP BY T0.BaseEntry
     HAVING (SUM(T0.Quantity) > SUM(T1.Quantity)) or sum(t0.quantity) > sum(t0.BaseOpnQty))
     begin
          select @Error = 10, @error_message = 'GRPO quantity is greater PO quantity'
     end
end
fidel

Similar Messages

  • How to forbid any further changes for PO (QTY and price ) after it has been

    Hi,
    How to forbid any further changes for PO (QTY and price ) after it has been done GR and LIV? Thanks.

    Hi,
    Price anyway cannot be changed once GR is posted on the PO item, it can be changed only by cancelling the GR, the same applies to IR too.
    But quantity can be changed at any time.
    So if you are looking at blocking qty too, then a customized message through save exit is the option, I am not aware of any standard SAP messages that can be configured to achieve this..
    Ramesh

  • How to forbid any further changes for PO (QTY and price )?

    Hi,
       How to forbid any further changes for PO (QTY and price ) after it has been done GR and LIV? Thanks.

    Better to post this in logistic forum.
    THere will be some config option to do so but normal FI perosn would need to dig deep, a MM perosn should answer quickly.
    Reg
    Hein

  • How to de-activate Qty and Price fields for Service purchase requisition

    Dear all,
    We have a request to de-activate (leave it as "Display") the fields of quantity and gross price when changing a service purchase requisition of a specific document type.
    In example: We want that purchase requisition type NB, allows in change mode (ME52 or ME52N) to change the quantity and gross price of the services. On the other hand, these two fields must be only visible for order type ZNB. Besides this must be happening only for services.
    Changing PT9 or PT9B will affect also the creation, and if we only configure based on transacction and document type does not work.
    Any help will be highly appreciatted.
    Cheers

    Hi,
    You may have to write a output requirement routine and assign the same to the output type in NACE.
    But i don't think you will get the old and new data of Purchase order in requirement routine (program : SAPLV61B).  You may have to export the data into memory from either a BADI method or User exit and then import the same in requirement routine.
    Regards
    Vinod

  • Decimals in Qty and Price in Table control

    Hi All,
    I have having two issues with decimals in table control.
    1. I have a field defined as type KWMENG in the Internal table that is mapped to the table control. I also gave the REF FIELD in the
        field properties as it is a QTY field and FORMAT as QUAN.
        Issue: THe issue here is the data is displaying as 100.000. As this is a QTY field we want it to show just 100.
        I tried changing it to CHAR field and display but this will not work for me as i am using this data later in some calculations.
    2. The other issue is with the PRICE field. I have defined as type KWERT in the internal table mapping to the table control. I gave
        FORMAT as DEC in field properties.
        Issue: The issue here is when the calculated value is say 5.60 it is displaying as 5.00.
    Does anyone has any idea. I think i am missing something but not sure what it is.
    Thanks in advance,
    Karuna.

    hi,
    u can achieve it thru SP_TransactionNotification
    try this code
    --      Block GRPO if in Excess in PO Qty
    IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'20')
    begin
         if exists (SELECT T0.BaseEntry, SUM(T0.Quantity)
         FROM [dbo].[PDN1] T0 INNER JOIN [dbo].[POR1] T1 ON T1.DOCENTRY = T0.BASEENTRY
         WHERE T0.BaseType = 22 AND T0.ItemCode = T1.ItemCode AND T0.BaseLine = T1.LineNum and T0.DOCENTRY = @list_of_cols_val_tab_del
         GROUP BY T0.BaseEntry
         HAVING (SUM(T0.Quantity) > SUM(T1.Quantity)) or sum(t0.quantity) > sum(t0.BaseOpnQty))
         begin
              select @Error = 10, @error_message = 'GRPO quantity is greater PO quantity'
         end
    end
    fidel

  • Price changes when do billing document from SD

    Dear all,
    We have Sales order of 10 items, 70$ per unit.
    We already do the Goods issue of 10 items, which accounting entry is:
    Dr. COGS
    Cr. Stock
    For normal process, when we do billing document, the accounting entry will be:
    Dr. AR
    Cr. Revenue
    But the scenario here is when we do billing document, we want to change the price to 72 - and do the partial invoice only for 3 items, so please tell me what the standard system would proceed in this case? What will the accounting entries be?
    Please help.
    Thank you very much.
    Rgds,
    Linh

    Hi,
    Please go through the below links:-
    [http://help.sap.com/saphelp_46c/helpdata/en/dd/561016545a11d1a7020000e829fd11/content.htm]
    [Re: Partial Billing is not created;
    This should solve your issue.
    Regards,
    SDNer

  • Price change made in billing docu. should reflect in sales docu.

    All,
              My requirement is, when we change the price in a billing document(invoice) it should reflect back in the sales document. Is it possible to do this and if so how do we do this? Can any one please help me out.
    Thanks
    Visu

    Hi Vijay,
    No it is not possible. You can only update the pricing in sales document and it can be updated in invoice and not vice versa. But in order to do that you need to do the credit note and reverse PGI and do the returns delivery if it is delivery related billing, but if it is order related billing then you can just create a credit note and change the price in the sales document and then invoice again.
    Reward points if the answer is helpful
    thanks
    regards
    ravi

  • MIRO behaviour on qty and price

    Hi Consultant,
    Need advice and confirmation on below scenario during MIRO if my understanding is correct.
    1) scenario 1
    PO 100 unit at $1
    GR 100 unit at $1
    IR    40 unit at $1'
    during GR
    dr inventory 100
    cr gr/ir 100
    during IR, system will post despite different from GR. System will treat it like partial
    cr vendor 40
    dr gr/ir 40
    correct?
    2) scenario 2
    PO 100 unit at $1
    GR 100 unit at $1
    IR    40 unit at $2 (in vendor invoice stated $2)
    during GR
    dr inventory 100
    cr gr/ir 100
    during IR, due to price difference, the difference will go to prd
    cr vendor 80
    dr gr/ir 40
    dr prd 40
    3) scenario 3
    PO 100 unit at $1
    GR 100 unit at $1
    IR   120 unit at $1 (in vendor invoice stated 120 unit)
    during GR
    dr inventory 100
    cr gr/ir 100
    during IR, if quantity more than GR, i cannot change quantity as need to set off completely with GR. The balance i need to book where?
    cr vendor 120
    dr gr/ir 100
    cr to where ? 20
    Thanks

    Hi consultant,
    meaning if GR 50 unit but IR vendor invoice is 60 unit, we still need to post 60.
    in this case :
    migo
    dr inventory 50
    cr gr/ir 50
    miro
    dr gr/ir 60
    cr vendor 60
    1) system will post despite gr/ir different by 10? system will still create 57# document despite gr/ir mismatch?
    2) mr11 is to clear the dicrepancy on gr/ir account?
    thanks
    rgds

  • Gifting an App and Price Changes

    I would like to buy an app today at a sale price to give to somebody for Christmas.  I plan to print it out rather than send it by email, so I can give it to her on that day and keep it a surprise.  So, she wouldn't be redeeming it for another month, at the earliest.
    If the app changes price back to the normal price, will she be able to redeem the printout for the app, or will she be charged the difference in price?
    Thanks.

    No. That would be gaming the system. According to Apple, "App Store customers cannot rate or review an app that was downloaded using an iTunes Connect promotional code".

  • Accounting treatment when there is Qty and price diff in PO Vs GR & Invoice

    Hi Experts,
    just wanted to understand what is the accounting treatment when there is a difference in PO Vs GR & Invoice.
    with regards
    Ramesh Y

    Hi
    If there is Price difference between PO and Invoice following accounting takes place.Lets assume PO value is Rs 90 and Invoice send by the supplier is of Rs 100. and provided you have allowed sufficient tolerence  then
    1)If material stock exists
    then during MIRO
    Vendor account Cr 100
    GR/IR Clering Dr 90
    Stock account Dr 10
    2) If material stock doenot exist
    Vendor account Cr 100
    GR/IR Clering Dr 90
    RM Consumption Dr 10
    Regards
    Sandeep

  • Reversal of Cost Price Update and Price Change MR21

    Dear SAP experts
    Recently (on 1st of this month) i did cost price update for all my FIG items. Later i realized that some of FG items cost price was not accurate. So i want to delete cost price of those items and update price by using T code MR 21 
    When i try to cancel these items cost price by using T code CKR1, i am getting error message that particular material current or future standard price is avialable and i am unable to move further
    Please guide how to delete current cost price of these items and update cost price by using MR21. Please note these items does not have any BOM and basically are contract manufacturing items
    Thanks in advance

    Hi Vedsai
    When you use CKR1, it does not give error.. It just gives a warning message
    Enter your Plant / Mat in CKr1 and select "Current cost estimate" or "Future Cost Estimate" as the case may be
    If any warning comes, ignore it and press enter.... It should reverse the cost estimate
    Now update from MR21 or preferably use CK11N again
    Note: If at all it gives any error in CKR1, check in T code OPR4_CK if this msg can be converted into warning message
    Regards
    Ajay M

  • PO Qty and Net Price Issue

    Hi All,
    My requirement is :
    Once PO is created on the basis PR,The Qty and Price is copied from PR,the requirement is that user cant change the QTY and Price in PO.If the user wants to change,they need to edit the Project and the change should happen in PO.
    Please advice how to do this .
    Thanks
    Muzamil

    Hi,
    If you want to modify / edit PO , then you can do it thru ME22N and please see to it that it should be under release not released fully.
    Regards,
    Dhruv Kumar Malhotra

  • MR21 price change for S price material

    Hi all,
    We are facing an unique problem.
    Earlier on 05May, price was updated for a S price material from A to B thru MR21 having posting date 01May. Price change document and its accounting document has got generated successful. On checking the price on 25May, price is A i.e. Old price. I listed the price change documents for the material, I was not able to find the any document after the above said date. So far the movements has happened in old price.
    Further I checked in MBEW, price is A i.e.Old price. In table MBEWH for the april period, price is B.
    New price has got updated nowhere apart from MBEWH and price change document.
    Anyone can advice, how this has happened. What is the reason
    Regards
    Suddy

    you are working with a fiscal year variant, as your fiiscal year does not match with the calendar year.
    In general the month of the posting date is equal with the period, however, using a fiscal year variant the posting date is checked against a customizing table to determine to which period the posting has to be made.
    Those variants are defined in OB29
    and they are assigned to company code in OB37.
    so check OB37 first to find which variant is assigned to your company, then use OB29 to see the definition of the variant.
    Maybe the first day of the new month is defined to fall into the old period.

  • Order confirmation and Order changes

    Hello Guru's,
    I am having following issue, please let me know ur inputs on the same how to handle below situation.
    There is Customer Vendor relationship under one system and under one company code.
    Customer orders goods from Vendor and this Vendor supplies goods against this PO. These are nothing but plants in reality.
    1) There is no issue when creating SO against the PO raised..
    2) Once the SO is created how to send sales order confirmation and how to add the confirmation line in PO?
    3) When the sales is changed and changes made at the time of sales order creation wrt to PO from customer: how to send these changes to customer and update his PO also.
    Please let me know if anyone has gone thr' such situation. This should happen via ALE IDOC only.
    Best regards,
    Prasad

    Hi Kris,
    It's ok.. as I knew the process.
    The problem I had, when I change sales order and trigger ORDERS05 and ORDRSP idoc then it shows changes but also it shows all the sales order data.
    The requirement which I have is as below:
    1) If the sales order is changed then send only changed data and update the PO at customer side which is in same system.
    i.e. let us say sales order is created and confirmation also send via ORDERS05 and ORDRSP. Now when SO is changed for quantity and price, then I want to send only these quantity and price changes via idoc and update PO accordingly.
    This also applies for back order processing or supersession, where date or item itself can be changed or added.
    Please come back if knows further.. Awaiting for ur reply.
    I am interested to know what steps I have to follow and even if any routine I need to write to capture these changes.
    Best regards,
    Guru

  • Mrbr quantity and price block

    Dear Forum,
    I got the help from forum at which point it is get blocked and obviously during miro.
    Now I would like to know the below assuming over tolerance limit :
    1) quantity variance say PO-100unit GR-80unit IR-50unit
    the variance is IR against GR right? this will get blocked. correct?
    2) quantity variance say PO-100unit GR-80unit IR-80unit
    this will NOT get blocked as IR and GR the same. correct?
    3) price variance compare the unit price between PO and IR only. correct?
    Thanks

    1) quantity variance say PO-100unit GR-80unit IR-50unit
    the variance is IR against GR right? this will get blocked. correct?
    2) quantity variance say PO-100unit GR-80unit IR-80unit
    this will NOT get blocked as IR and GR the same. correct?
    3) price variance compare the unit price between PO and IR only. correct?
    1.Yes due to the difference in qty and price it will get blocked depending upon the configuration of Tolerance limit
    2.Yes, since GR and IR qty remains same and if the price is also same(PO and IR) this will not get blocked
    3.Yes

Maybe you are looking for

  • WVC54GCA and its soft with a lot of issues

    First of all, sorry if I have some writing error, my native language is spanish.  Well, I'm really frustrated because I'm having a lot of problems with the cams. I really need help because I don't know anything else to do. I have two cameras, both ar

  • Group currency settings for parallel valuation

    hi, we need to go for parallel currency valuation for our SA company code but i need to know what are the impacts for changing the existing configuration Company code is productive Controlling area assignement control is "controlling area same as com

  • Email a photo, ele.11 win 8.

    When in Editor and selecting a photo then going to Share and selecting Email Attachment and sending it to myself upon opening the attacment in my email it shows my Download MGR. and all its folders.  Is this correct or should just the selected photo

  • Receive data through php without button

    Hi, This is the situation: I have an application that is displaying pictures. First I would like to display a score with each picture, so everytime a picture is being loaded I would need to get the score by posting the name of the picture through HTT

  • Multi valued LOV - Display vs return

    APEX 4.2.1 On a form view, when there is a multi-valued LOV (checkbox, shuttle, multi-select list, etc), APEX item value in session state is a colon-delimited list and this is what gets saved to the varchar2 column in the database table. Assuming the