PO greater than Shopping Cart Qty

Friends,
We are working on extended classic scenario where PO is created as follow-on document from shopping cart. User can create PO in sourcing cockpit using Process PO option. However here user has the option to change PO qty where system accepts PO qty greater than SC qty. We would like to restrict it.
In R/3 MM we can control this via system message and restrict PO qty to exceed PR qty.
How can we control this functionality in SRM?
Regards,
Sandeep Parab

Hi. Try the BBP_DOC_CHECK_BADI.
You should be able to check the quantities and issue an error if the quantity has been changed.
Regards,
Dave.

Similar Messages

  • WS Error - Planned Qty should be greater than Completed + Rejected Qty

    Hi All,
    We've tried to close a Production Order using the ProductionOrdersService Web Service.  We're doing this by setting the Production Order Status flag to closed (boposClosed).  The call also requires us to re-set the due date so we do that to the same value.
    When we perform the call we receive the following exception:
    "Planned Qty should be greater than Completed + Rejected Qty  [OWOR.PlannedQty]"
    It's interesting to note that we've tried to close the production order with different items and everything seems to point towards an issue with the items, however, we're not really sure what is triggering the error.  We're also not sure what the error really implies as the Planned Qty is greater than the Completed + the Rejected Qty on the database.
    We're working with SAP 8.8.1.
    The code is as follows:
            // Get the current session ID first
            // Create message header object with value..
            SAPProductionOrdersService::MsgHeader^ localMsgHeader = gcnew SAPProductionOrdersService::MsgHeader();
            localMsgHeader->SessionID = sessionId;
            localMsgHeader->ServiceName = SAPProductionOrdersService::MsgHeaderServiceName::ProductionOrdersService;
            localMsgHeader->ServiceNameSpecified = true;
            SAPProductionOrdersService::ProductionOrdersService ^iprodWs = gcnew SAPProductionOrdersService::ProductionOrdersService();
            iprodWs->MsgHeaderValue = localMsgHeader;
            // Set the item params object
            SAPProductionOrdersService::ProductionOrderParams^ localProductionOrderParams = gcnew SAPProductionOrdersService::ProductionOrderParams();
            localProductionOrderParams->AbsoluteEntry = ProductionOrderNum;
            localProductionOrderParams->AbsoluteEntrySpecified = true;
            // Perform the Item fetch with that information
            SAPProductionOrdersService::ProductionOrder^ localProductionOrder = iprodWs->GetByParams(localProductionOrderParams);
            // Construct a new Production Order Data structure
            SAPProductionOrdersService::ProductionOrder^ newProd = gcnew SAPProductionOrdersService::ProductionOrder();
            // Absolute Entry
            newProd->AbsoluteEntry = ProductionOrderNum;
            newProd->AbsoluteEntrySpecified = true;
            // Production Order Status
            newProd->ProductionOrderStatus = SAPProductionOrdersService::ProductionOrderProductionOrderStatus::boposClosed;
            newProd->ProductionOrderStatusSpecified = true;
            newProd->DueDate = localProductionOrder->DueDate;//     {6/9/2011 0:0:0 System.DateTime}     System::DateTime
            newProd->DueDateSpecified     = localProductionOrder->DueDateSpecified;//     bool
            // Setting lines array back
            newProd->ProductionOrderLines = localProductionOrder->ProductionOrderLines;
            // Item Code
            newProd->ItemNo = ItemNum;
            // Perform the Update of the Production Order with that information
            iprodWs->Update(newProd);
            // Since there is no return type telling us of the recent update, unless we get an exception, assume it worked
            String^ recMsg = "Close Production Order Attempt Successful.  Parameters are: \r\n" +
                             "Production Order Num: " + ProductionOrderNum;
            Log::LogInformation(recMsg);
            retVal = true;
    Hector

    Dear Gordon,
    Yes, I have checked the data in the database.  I've checked tables OWOR fields PlannedQty, CompletedQty and RjctQty and everything seems  to be in order.  I also checked table WOR1 for the production order lines.  There are two lines, one Labor and one Raw Material (regular item).  I've checked BaseQty, PlannedQty and IssuedQty but everything seems in order there as well.
    Do you know if there is a way to find out what internal piece of code throws that exception message?
    Hector

  • How to split shopping cart qty to create two PO

    Hello SRM guys
    Could you give me a tip to develop for this requirement?
    We use the classic scenario.
    My customer want to split shopping cart qty to create PO with different vendor.
    I know that buyer can change the shopping cart data in workarea. But buyer can not split shopping cart qty to create PO with different vendor.
    Help me --;;
    How to develop this requirement?
    example:
    Shopping cart No: 60001
    line item 10: AA 100 qty
    Buyer want to split SC qty
    SC No: 60001 -->line item 10: AA 50 Qty --> PO 001
    SC No: 60001 -->line itme 20: AA 50 Qty --> PO 002
    Thank you
    Best Regards

    Hi Sohee,
         I think your requestor wants to have 'Quota arrangement' concept (available in MM) in SRM also.
         SRM 5.0 provides such feature, but the source of supply should be represented by a contract and the Quota allocation
         I don't think SRM 4.0 has such feature. In which case this might need detailed analysis and modification to SAP modules. It again depends how flexible you want the feature to be. I mean, it depends, whether you alwasy want equal distribution or self-adjustable distribution etc...
         I would be interested to know how this requirement will be implented in SRM 4.0 (in case if you have SRM 4.0)..
       Thanks,
       Jude

  • Delv qty greater than sales order qty

    Hi ,
        We are on ECC 6 . In one of the del, delivery qty is greater than sales order qty.
        which resulted in overpicking. ( Sales order qty 560 , delivery qty 587 & Pick qty 587).
        This is over delivery & overpicking issue.
        Is there any way to stop this for ECC 6 version.
        Let me know.
    Thanks  & Regards

    Hi Tushar
    You need not maintain the over-delivery limit.
    If you set set "B" in the "Over Delivery" field in the Delivery Item category (0VLP), then system will not allow you create a Delivery with delivery quantity greater than Order quantity.
    I mean, if the order quantity is 10 pc, then with reference to that Order ,you can not create a Delivery for more than 10 pc.

  • Order Qty must not be greater than reference Contract Qty

    Is there any way we can stop user to create Order if he enter quantity more than quantity entered in the
    reference contract.
    e.g. if i created contract for xyz customer of item abc with quantity 100 each
    while creating order for the xyz customer of item abc i will not
    be allowed to enter more than 100 each quantity while referenceing the contractred created
    for the customer in step one
    Pl. help

    HI,
    For your Target Sales Doc Type from Source Doc Type, In Copy Control Settings, T. Code: VTAA (Item); you may "Automatically determine the referenced qty" in Field: Copy Quantity.
    But, later-on, one may change the qty in target Sales Doc. (in standard SAP). You may write "User-exit" to avoid such instances.
    Best Regard,
    Amit.

  • Delivery Qty Greater than Sales order Qty

    Dear All,
    I want to do delivery against a Sales order,but system is allowing me to do PGI more than the Sales order qty,please advice where i can restict my PGI agisnt the Sales order qty.
    Regards,
    Muzamil

    Dear Prashanth,
    Thanks for your quick reply and resolution
    We have a problem when there is a delivery from projects(CNS0).When we are running the transaction CNS0 and entering  Qty 7, and creates delivery, system generates a Delivery Number and takes us to VL02N where we enter batch,picked qty and storage location.Here we find delivery quantity 7 by default and if we change the quantity from 7 to 10 even then system accepts more quantity as it checks the project stock.
    We want system should not allow the delivery quantity more than the quantity specified in the CNS0.
    We are not creating sales order as we directly delivering from projects.
    In the previous case,as you suggested we made the changes in delivery item category,but the same logic is not working here as it is without sales order.
    We are using item category DLP and Delivery type is LP.
    Request you to provide your valuable inputs
    Thanks in advance
    Regards
    Muzamil

  • Invoice qty greater than the PO qty

    Hi All,
    I have created material  PO with 100 qty Value 5000 and freight cost 1000 rs for the same Qty.
    Issue: at the time Freight Invoicing with PO/bill of landing
    Material: GR & IR Done for 100 qty -- No issue
    Freight: when am doing invoice (MIRO) i have given Purchase Order no and paid the freight rs 1000 for whole 100 qty
    Issue: If i do invoice (MIRO) by for the same PO and given bill of landing, system still proposing some qty 40 Qty and proposing some cost.. and able to save .
    but it should not propose the Qty... Plz let me know how to restrict it... In case freight Invoice
    Thanks

    Hi,
    not some qty... if i select the Bill of loading in MIRO, then system is proposing the whole qty for the particular item of PO.
    PO:123  100 qty  Fright cost 10  value 10000  Bill of Loafing:XYZ
    MIRO-Delivery plan: Done With PO whole Qty 100  freight cost 10rs value=1000 rs
    If i select :Bill of loading XYZ (Same PO and same item).. system is proposing same Qty 100 and value 10000..
    Thanks

  • A/R Invoice Qty Greater than Delivery Qty

    Hi All,
    Can I post A/R Invoice with the qty greater than the Delivery Qty????
    I came across a case where I have a delivery Document of 10Kgs But Qty changes to 10.5Kgs at the time of A/R Invoice posting.
    Is there any std feature available of we need to do any work around. Pls suggest.
    Cheers,
    Sree.

    Great.......
    Then the way is clear.
    You can manully edit the Qty at AR invoice row level.
    try this in Test DB first whether your effect goes right or not.
    But as per my knowledge it goes perfectly  even if you edit.
    It will increase your stock by 0.5 kg from GRPO stock.......
    Regards,
    Rahul

  • GR qty can be greater than Inbound delivery if there is other Inb. delivery

    Hi all,
    I am encountering a strange issue, and I am not sure if it is SAP standard. Hope someone can help me.
    Business Background:
    There is a Schedule Agreement in Plant R800 and use STO to refill from Plant R800 to Plant 8000.
    We found an issue happen in GR from inbound delivery for Schedule Agreement:
    1. When there is 2 inbound delivery exist for same Material, during MIGO with one inbound no#, the GR qty could be greater than that inbound qty, but NOT exceed the total open inbound qty.
    Below is an example, 2 inbound, 500 pcs each, after the 1st GR 400 pcs, then the second GR could be 600 pcs.
    2. The issue is that if the qty is mixed up, after 2 GR(400 +600pcs), there is still 100 pcs leftover in MD04 for the 1st inbound delivery. And this is misleading for planner.
    Thanks,
    Julia

    I found the rooting caused and solved it already

  • SP to Block GRPO Qty if greater than PO Qty

    Hi all,
    I need to block the GRPO Document when adding it if the Qty in the GRPO is greater than the PO Qty.
    But this Stored Procedure blocks me even when i raise the GRPO with Qty less than the PO Qty.
    IF @transaction_type IN ('A') AND
    (@Object_type = '20')
    BEGIN
    IF EXISTS (SELECT T1.BaseEntry
    FROM dbo.OPDN T0
    INNER JOIN dbo.PDN1 T1 ON T1.DOCENTRY = T0.DocEntry
    INNER JOIN dbo.POR1 T2 ON T2.DOCENTRY = T1.BaseEntry
    WHERE T1.BaseType = '22' AND
    T1.ItemCode = T2.ItemCode AND
    T1.BaseLine = T2.LineNum AND
    T0.DOCENTRY = @list_of_cols_val_tab_del
    GROUP BY T1.BaseEntry
    HAVING SUM(T1.Quantity) > SUM(T2.OpenQty))
    Begin
    SELECT @Error = 10, @error_message = 'GRPO quantity is greater than PO  quantity'
    End
    END
    Is something wrong with this SP...

    Hi
    Check bellow Sp
    --------------- Validation for Goods Receipt PO Restricting Excess Qunatity ----------------------------
    IF @Object_type = '20' and @transaction_type = 'A'
    BEGIN
    declare  @line int
    SELECT @line = (LineNum + 1)
    From PDN1
    Where PDN1.DocEntry = @list_of_cols_val_tab_del
       and (Quantity > BaseOpnQty)
    Order by LineNum
    If (not ISNULL(@line, 0) = 0)
    begin
      Set @error = 10
      Set @error_message = 'Line quantity' + CONVERT(nvarchar(4), @line) +' is more then open quantity !'
    end
    END
    Thanks& Regards
    AndakondaRamudu

  • SImple... REALLY simple shopping cart.... order form with out payment gateway.... home delivery only

    Hi there me again......
    Yet another really interesting post.......
    I know that everyone is always asking for a shopping cart sollution for their web sites.... and I have looked into a few myself.... So then I discovered oscommerce WOW what an amazing thing all my problems answered....... well...... I wish is a great opensource shopping cart program.... really great but still cant fine tune it to how I want..... namely because I cannot edit it easily .... I have to get into the php code and change stuff...... CSS as well...... TOOOO much for me to take in.... I still struggling with DW and ADDT...... So.....
    In the end I still want to use DW to create my site and ADDT to control it......
    I decided that I wanted people who are looking at my site to be able to contact me directly ... on yahoo messenger and order whatever they liked..... not very professional I know but is a start..... but I stil want to have a functioning cart.... just an easy cart.....
    I could go the other way and just use an existing oscommerce template with the whole shopping cart and payment gateways set up..... but that's defies the point of learning how to do things myself..... and getting there is half the fun so...... I want to design my own sites with my own feel....
    So..... I found a site that has a simple shopping cart that works the same as all the other carts but has no paymant gateway..... only the products that you have added to your cart and a total at the bottom and a space to enter your address and phone number etc..
    So does anyone know how I can go about making such a simple cart....
    Or is there a program that can do it ..... or a DW extention......?
    Anyway any help or ideas would be great
    Have a nice day

    Hi sorry to answer my own post but I cam across the answer to my post
    I found a great tutorial an the interakt web site
    http://www.interaktonline.com/Documentation/MXKollection/#0916000_manage_m2m_rel.htm
    Seems to do everything I wanted and more....
    Have not completed it yet
    will see how it goes and maybe post results... maybe someone's interested
    Have a nice day

  • Shopping Cart Template Qty

    Hi SRM Experts,
    We are configuring SRM7.0 with ECC6 ( Ehp4) having Classic Scenario.
    We want Qty field in the Shopping Cart as ZERO, but bydefault system takes 1 Qty even we keep the field blank.
    Can anyone please suggest/guide wheter it Qty field in the Shopping Cart can be kept as ZERO ? If yes, how ?
    Thank you
    Regards
    NAP

    Ok.
    "Template"  is nothing but previously created Shopping cart which can be re-ordered.
    So as per the current legacy system at your place,the kind of template you are looking for the Shopping cart i.e. with zero qty ,is not possible.
    But finally when the user ORDERS the Shopping cart,he will be entering some quantity.So before the user created the cart,as I said earleir,even if the system deafults the qty to "1",you can always put a check using badi " "BBP_DOC_CHECK_BADI" and prompt the user to change the quantity from "1" to something else.
    So finally as per my understanding,you cannot set the Qty as a ZERO (i.e. BLANK) in the Qty field in the Template for the Shopping cart .But please keep the thread open so that other FORUM users can suggest some other pointers as well for your requirement.
    Jay,
    As per my understanding earlier,I thought that Narendra wanted to chnage the deafult qty to something else other than zero.Hence it was suggested to implement the BADI "BBP_DOC_CHANGE_BADI".I dont think it is possible to chnage the qty to "ZERO" even using the badi "BBP_DOC_CHANGE_BADI".

  • Short dump transferring more than 99 items from catalog to shopping cart

    Hi
    I'm encountering a short dump when trying to transfer any more than 99 items from the internet sales catalog to an EBP shopping cart.
    The error states "Unable to interpret "*0" as a number" - the code in the error suggests that the system is attempting to populate field LCNT with *0.
    Any ideas greatly appreciated.
    Regards
    David

    Hi both
    Thanks for the replies. I've already checked the usual channels (OSS, Google etc) without success, hence my thread here.
    The business reasons for having 99 catalogue items are not particularly strong, but it would be a 'nice to have' as one or two users have fallen foul of it. They can obviously raise separate carts if necessary.
    If the consensus is there's no solution then we'll just have to put up with it as a catalog limitation!
    Regards
    David

  • Items in the shopping cart appear with different price than in the catalog

    Hi All,
    We are running SRM 5.0 (Classic Scenario) with external catalogues.
    After selecting items from the external catalogue and transferring them to the shopping cart, the items appear with different price(the problem exists in the productive system)
    The strange thing is that there is no dependence or sequence between the differences. For example, in one shopping cart, one item is with correct price, the price of the other item is not correct (when I click on the icon which is  showing item details in the catalogue, the price is different than the one in the shopping cart). Sometimes the difference is significant, sometimes not - if the item price in the catalogue is 22.34 EUR, in the shopping cart is 21.22EUR or if the item is 45.62EUR in the shopping cart is 45.60 EUR. There is no logic.
    I tried to create a shopping cart in the support system, with the same items from this catalogue, and they are sent back in SRM with the correct prices.
    I traced all OCI parameters, sent from the supplier catalogue, and everything is correct.
    At the example given below the price in the shopping cart ordered in the productive system is 69.00CZK, and after that during the test the correct price of 73.870CZK has appeared.
    NEW_ITEM-DESCRIPTION==Durable-KeyClip-keytag%2C+black
    NEW_ITEM-MATNR==
    NEW_ITEM-MATGROUP==
    NEW_ITEM-QUANTITY==10
    NEW_ITEM-UNIT==EA
    NEW_ITEM-PRICE==73.870
    NEW_ITEM-PRICEUNIT==1
    NEW_ITEM-CURRENCY==CZK
    NEW_ITEM-NEW_ITEM-LEADTIME==1
    NEW_ITEM-VENDOR==
    NEW_ITEM-VENDORMAT==0176%2F1957001
    NEW_ITEM-MANUFACTCODE==
    NEW_ITEM-MANUFACTMAT==
    NEW_ITEM-CONTRACT==
    NEW_ITEM-CONTRACT_ITEM==
    NEW_ITEM-SERVICE==
    NEW_ITEM-EXT_QUOTE_ID==
    NEW_ITEM-EXT_QUOTE_ITEM==
    NEW_ITEM-EXT_PRODUCT_ID==23109
    NEW_ITEM-EXT_SCHEMA_TYPE==UNSPSC
    NEW_ITEM-EXT_CATEGORY_ID==55121504
    NEW_ITEM-LONGTEXT_1%3A132==Durable-KeyClip%0D%0Akeytag%2Cblack%0D%0A%0D%0A6pc
    I checked the error log in SLG1 for BBP_OCI, and no error message exists. In my opinion the problem can be in supplier system, because otherwise all items will be with wrong price. And at the moment, there are shopping carts in which all items are with the correct price!
    It is not something in the user profile, because in one shopping cart created by one user some items are correct, some of them not.
    I also checked with the supplier,  they said that they haven't change the price, recently.
    Has somebody of you met this problem?
    In the IMG-> Define External Web Services (Catalogs, Vendor Lists etc.) I have set all parameters for the standard call structure: the URL of the supplier, our company ID and password for their catalogue.
    In the Detail view for the catalogue, the following parameters are set
    u201CAdditional functions in the product catalogueu201D field:
    -     Display product data again in the catalogue
    -     Validate product data from SAP Enterprise Buyer
    -     Find supply sources
    u201CTechnical Settingsu201D field
    - Use Error Log
    Thanks,
    Desi

    That means that we are not maintaining material numbers in SRM, so there are no predefined price or info records for that materials in R/3 system, or in SRM.
    In the set up of external catalogues, validation of the price is set. Which means that, if a new shopping cart is created from already existing one, and meanwhile, a change of the price is done by the supplier in the catalogue, the new item price will be adopted in the shopping cart.
    No prices are maintained in the SRM system, everything is from the supplier catalogue.
    Desi

  • How to block Invoice when qty of Invoice is greater than PO Qty

    Hi
    We want to block the Invoice when Invoice qty is greater than PO qty.Is there any way to block the invoice ?

    prashant shinde wrote:
    Hi
    >
    > We want to block the Invoice when Invoice qty is greater than PO qty.Is there any way to block the invoice ?
    Hi,
    You can deal with this situation in 2 ways. Manually block the invoice while posting, TAB: Payment.
    Else,
    Use Quantity Variance Key: DQ,DW. You can enter tolerances for Lower and Upper Limit. You can enter absolute and percentage base variance. If one of the limit is exceeded the invoice is blocked for payment.
    If you want certain variance is always blocked, set value or percentage for the upper limit to ZERO and select Check Limit.
    IMG->Material Management->logistics Invoice Verification->Invoice Block->Set Tolerance Limits (Transaction Code: OMR6).
    These setting are for Co. Code level.
    Any deviation from ordered Quantity will be blocked.
    Hope this is what you are looking for!!
    Reetesh
    Edited by: Reetesh on Nov 22, 2011 7:43 AM

Maybe you are looking for