Change of PR Quantity

Dear Experts,
Is there any BAdi or BAPI or User Exit to change the PR quantity, if PO is not created for that PR.
Regards,
Jaspal

Hi
go to transaction BAPI and sort it.
there you will be able to find the appropriate BAPI.
And by the way you should not ask these question on SDN, first do your efforts and tell us your proplem during processing.
Thanks
lalit Gupta

Similar Messages

  • Changing the Confirmed Quantity in Sales Order

    Hi Gurus,
    I have a requirement to change the confirmed quantity of the line item of the sales order. Is there any FM or BAPI that I can use? And how?
    Thanks,
    Andre

    Hello,
    I am having to deal with a similar issue.
    The allocated quantity needs to be reset, so that the quantities can be allocated again according to the checking rule for product allocation.
    This is probably not clear anymore, I am also totally confused now, so I'll add an example.
    Example:
    SCENARIO 1: Rejected item quantity not available to earlier order:
    Assume product ABC is on a monthly allocation plan at a channel level
    Available units = 100 units
    Allocation plan = 50 units for Channel1, 50 units for Channel2
    Assume all orders in this scenario are for one channel
    1.     Order 1 is entered
    Qty of 40     confirmed from ATP check, confirmed from allocation check
    RESULT: allocation of 40 units is consumed, available allocation = 10 units
    2.     Order 2 is entered
    Qty of 20     confirmed from ATP check, confirmed for 10 units from allocation check
    Remaining 10 units unconfirmed
    RESULT: allocation of 10 is consumed, available Allocation = 0 units
    Unconfirmed order quantity = 10 units
    3.     Order 1is rejected
    line item for Qty 40 is rejected
    RESULT: available allocation = 40 units
    4.     Order 3 is entered
    Qty of 40     confirmed from ATP check, confirmed from allocation check
    Allocation of 40 is consumed
    RESULT: allocation of 40 is consumed, available allocation = 0
    5.     Rescheduling is run for this product (order creation date determines priority in the queue)
    EXPECTED RESULT:
    Order 2 has highest priority and would be committed for 20 units, leaving 30 units for Order 3
    Order 3 Commit quantity 30, unconfirmed quantity 10
    Order 1 Line item was rejected, (no committed quantity)
    RESULT:
    Order 2 - Commit quantity 10, unconfirmed = 10 (as available allocation 0)
    Order 3 - Commit quantity 40
    Order 1 - Line item was rejected
    So I need to reset the allocated quantities first...
    Were you able to find a solution for this?

  • WM-production order-need change the open quantity in Transfer order

    Hi,
       I created the production order (order quantity 1000).  i did material staging and generated TR. .
       But i need to change the open quantity in transfer order . i need to create the partial Transfer order
        against TR..
       KINDLY SUGGEST ME
       WITH REGARDS
       Dinesh

    Hi Dinesh,
    TO for partial qty is possible.
    When you are doing material staging with 319 mov.type, you create a transfer order for partial quantity as follows:
    You first create a manual transfer order using transaction LT04.
    You specify the TR number in the intial screen and navigate to the detail screen, system shows the Open TR quantity and the proposed TO quantity. By default, both these quantities are equal to the TR quantity.
    However, when you create by clicing the "Create TO button" (the icon with a plus sign in the tool bar of LT04 screen), system takes you to another screen where it asks for the "Requested Qty" on the top of the screen.  Here you can modify the qty as per your requirement; then you can check and confirm the storage type and storage bin for source and destination stocks & save.
    It is important that you give the correct source storage type & storage bin that is having stock or otherwise system might give error message.
    System will create a TO line item with the entered qty and propose the balance TR qty as the 2nd TO line item. You can skip this 2nd TO item or delete it from the TO.
    Once again, if you click the Save button, system will save the TO with the partial quantity.
    The balance quantity will be available in the TR as open quantity and this can be seen in the header data of transaction LB03.
    Regards
    Prabhu

  • How to change the open quantity of PO / STO using  BAPI_PO_CHANGE

    Hi Friends,
    How can I change the open quantity in ME22 using the BAPI BAPI_PO_CHANGE...
    I am getting some errors..The values I am passing to the BAPI are:-
    *-- Purchase Order document
        lv_purchaseorder = tbl_join-ebeln.
    *-- Calculate Open quantity
        lv_quantity = ( tbl_join-menge - tbl_join-wemng ).
    *-- Fills Schedule quantity to be processed.
        tbl_poschedule-po_item      = tbl_join-ebelp.
        tbl_poschedule-sched_line   = tbl_join-etenr.
        tbl_poschedule-quantity     = lv_quantity.
        APPEND tbl_poschedule.
    *-- Marks the Schedule quantity to be processed.
        tbl_poschedulex-po_item     = tbl_join-ebelp.
        tbl_poschedulex-sched_line  = tbl_join-etenr.
        tbl_poschedulex-po_itemx    = c_true.
        tbl_poschedulex-sched_linex = c_true.
        tbl_poschedulex-quantity    = c_true.
        APPEND tbl_poschedulex.
    CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            PURCHASEORDER                = lv_purchaseorder
          POHEADER                     =
          POHEADERX                    =
          POADDRVENDOR                 =
            TESTRUN                      = 'X'
       IMPORTING
          EXPHEADER                    =
          EXPPOEXPIMPHEADER            =
         TABLES
           RETURN                       = tbl_return
           POSCHEDULE                   = tbl_poschedule
           POSCHEDULEX                  = tbl_poschedulex.
    Is there any other required fields needs to be passed to change the open quantity..
    I am checking in ME22...
    The scheduled quantity is 20.
    Delivered quantity is 15.
    Open quantity is 5   and ( this field is in non-editable display )
    Delivery date  is 10.10.2002  ( which is in past )
    Now using this BAPI ..I want to post the remaining open quantity which is " 5 "
    How can i do this ?? Please help.

    Hi Hari
    Please check after making the following changes:
    *-- Marks the Schedule quantity to be processed.
    tbl_poschedulex-po_item = tbl_join-ebelp.
    tbl_poschedulex-sched_line = tbl_join-etenr.
    <b>tbl_poschedulex-po_itemx = 'U'. "c_true.
    *tbl_poschedulex-sched_linex = c_true.</b>
    tbl_poschedulex-quantity = c_true.
    APPEND tbl_poschedulex.
    If still you do not get the desired function working add the below code:
    tbl_poitem-po_item = tbl_join-ebelp.
    tbl_poitem-quantity = lv_quantity.
    append tbl_poitem.
    tbl_poitemx-po_item = tbl_join-ebelp.
    tbl_poitemx-po_itemx = 'U'.
    tbl_poitemx-quantity = c_true.
    append tbl_poitemx.
    Hope this helps.
    Kind Regards
    Eswar

  • How to change the pick quantity in outbound delivery using bapi

    Hi,
    I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
    plas advice any BAPI to change pick quantity
    Regards,
    Krishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • How to block change of delivery quantity in VLO1N

    The system should not allow the change of delivery quantity in VLO1N, say if in sales order the quantity is 10 & they change in VLO1n as 12

    Hello Prem,
    What I understand from your post is that you want that a delivery document created for a Sales order should not allow the quantity to go beyond the Sales Order Quantity.
    You can do this by going to the following customizing entry.
    First determine the item category relevant to you here:
    LE -> Shipping -> Deliveries -> Define Item Category determination in Deliveries
    Then go to "Define Item Categories for Deliveries". Open the relevant item category. In the field "check overdelivery" Provide value "B" and save.
    Hope this helps.

  • Error while Changing Purchase Order quantity

    Hi experts,
            I am doing a BDC so that it should change the invoice quantity by the Received quantity, and also if the received quantity is 0 it should delete that particular Line item. It is doing well for the above, but i am getting stucked in a po number withe following error,
    "Quantity delivered differs from qty. invoiced (Function not possible)". Can any one please help me in this issue...
    thanks ,
    Ajeeth

    you can only set a deletion indicator if invoiced quantity and received quantites are equal.
    check the PO history in PO item detail , there you can see how much you received and how much was invoiced.
    Maybe you missed to clear GR/IR account with MR11

  • Changing the Requirement Quantity in Reserations

    Dear PS Experts,
    In a Project, I created a reservation of 5 units of item A. Then I issued 2 items against the reservation.
    Later on I tried to change my reservation requirement quantity to 6 and SAP allowed it. Then I changed the same quantity to 1 which is below the issued quantity even that was allowed.
    My question is why are the above changes allowed after material issue takes place ? (is it a common business requirement)
    Else, is there an SPRO setting where we can restrict the above?
    Cheers
    Deepal

    Hi,
    That is the standard SAP functionality only. This is not a strange behaviour of the system. If you create any reservations manually, the system will allow to change at any point of time. While creating the production order or MRP created planned orders will create the reservations. That reservations you can't change.
    Regards,
    V. Suresh

  • Change in delivery quantity for batch managed items.

    30.09.2010
    Hi friends,
    We have activated batch management. During delivery after the batch is determined and if i want to change the delivery quantity say for example from 50 to 30 then first i have to go and adjust the quantity in the batches to toal 30  and then come back and change the delivery quantity from 50 to 30.
    After searching the forum i have found  user exits, but other than the user exits is there a standard configuration wheren if i change the delivery quantity the quantity is adjusted in the batches.   Please advise.
    Regards,
    Udaynath.

    Udaynath
    Did you try working with the batch strategy config?
    Try working with fields a) Over Del allowed, and b) Qty proposal.
    Path: SPRO/IMG/Logistics - General/Batch Management/Batch Determination and Batch Check/Strategy Types/Define Sales and Distribution Strategy Types
    Hope this helps. Let me know.

  • Change (convert) delivery quantity

    Dear all,
    Does anyone know how I can change the delivery quantity ?
    What we ant to achieve is the following:
    - an order has been created with a quantity in sales units for example 10 BAG
    - at creation of delivery, we would like to convert the sales order quantity to the unit of issue (MARC-AUSME) if this one is different from the sales order sales unit (for example PAL iso BAG) ...
    I tried a few things yet to change the quantity (and unit) to the converted one, but it all didn't work ...
    Any idea how this can be done ?
    Thanks in advance !
    Greetz,
    Kurt.

      select single kwmeng vrkme into (lv_kwmeng,lv_vrkme)
                                 from vbap
                                 where vbeln = lips-vgbel
                                   and posnr = lips-vgpos.
      select single ausme into lv_ausme from marc
                                        where matnr = lips-matnr
                                          and werks = lips-werks.
      if sy-subrc eq 0 and lv_ausme is not initial.
        call function 'ZCF_UT_UNIT_CONVERSION'
          exporting
            matnr_imp      = lips-matnr
            unit_new_imp   = lv_ausme
            unit_old_imp   = lv_vrkme
            value_old_imp  = lv_kwmeng
          importing
            value_new_exp  = lv_lfimg
          exceptions
            invalid_input  = 1
            invalid_output = 2
            overflow       = 3
            others         = 4.
        if sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
        lips-lfimg = lv_lfimg.
        lips-vrkme = lv_ausme.
      endif.

  • Unable to change the order quantity value during save of sales order

    Hi Experts,
    There is a need to change the order quantity value, based on some conditions, when pressed 'ENTER' or during 'SAVE' of the sales order (VA01, VA02).
    We are trying to change the order quantity value (KWMENG) in table XVBAP in the subroutines userexit_field_modification, userexit_save_document and userexit_save_document_prepare of the user exit 'MV45AFZZ'. But the change is not replicated to field on GUI.
    The order quantity value can be changed in subroutine 'userexit_move_field_to_vbap', but the subroutine is not getting triggered when user changes only the order quantity on screen.
    Please help us in resolving this issue.
    Regards,
    Santosh

    Thanks for your time guys. The issue is resolved.
    SAP is not triggering the vbap user exit as the order quantity on screen is in structure RV45A.
    There are two ways of resolving the issue.
    1. Implement the SAP note #513342 - Quantity change and USEREXIT_MOVE_FIELD_TO_VBAP. But, it is SAP modification note.
    2. Write the code in VBEP exit of MV45AFZZ. This user exit is called whenever the order quantity is changed. But, it is called multiple times in some cases. Hence, need to write code to limit our code execution only once e.g. maintain a global table with our quantity & uom. Check when the quantity and uom in our table is same as quantity on screen. If not, exit from user-exit.
    Edited by: Santosh Kacham on Nov 11, 2011 6:37 AM

  • Problem when changing the target quantity for a contract

    Hello,
    I have a problem when i try to change the target quantity for a contract through the BAPI 'BAPI_CONTRACT_CHANGE'.
    I filled the tables 'item' and 'itemx' with new values. the BAPI 'BAPI_CONTRACT_CHANGE' returns no error, but after using the BAPI 'BAPI_TRANSACTION_COMMIT' I get an info message from SAP and the modification does not pass.
    In debugger I could locate the error. In fact, the appeal of FM 'ME_UPDATE_DOCUMENT is done with a table XEKKN with the new values of the quantity and a KZ code equal to ' I ' to insert, then it must have the value ' U 'for update .
    Is someone can help me to solve this problem?
    Thank you in advance.

    Have you tried selecting the page, and then changing the theme directly on that page?

  • Whether system will allow  to change the  PO Quantity , etc after GRN ?

    Dear Expert,
    Please let me know whether system(standard SAP ) will allow  to change the  PO Quantity , Net price and Price per unit after partial/fully accepting the GRN against the PO?
    regards,
    Kumar.

    dear,
    This is possible in 1 way and not possible in another way.
    I will explain you in details:
    If Po cretaed of 100 Qty........GRN done for 20 Qty.....Then you can go and can change PO qty to 20 .....
    There you can change Qty to 20....System will allow you to change the Qty...
    NOw If you want to change the qty less than 20 ( GRN qty)...Then System will now allow you to change it.
    Regards
    Utsav

  • Change of the quantity field to 5 decimal places in SAP

    Hi Gurus,
    The quantity field is appearing with 3 decimal places in BOM, Process Order, etc. Is it possible to make the decimal places to 5.
    All the decimal digits from SAP are 3 digits. We have an interface through which the data flows from another legacy system (Fow system) to SAP. And the Fow system setting was 5 digits. The issue is some of the raw material requirement qty was really minor and it might be below the decimal 3 digits.
    In that case, when the data flows to SAP from Fow system it will cause the material stage failure. so please help me to investigate how to let the SAP also could have the 5 digits decimal. Thanks.
    Regards
    Brijesh

    Dear ,
    Its SAP standard ,to put and use decimal places in BOM qty .You can use upto 3 decimal places in BOM qty.
    At SE11 you need to see what measure field is linked to the quantity field.Then goto tranaction CUNI and chage the decimal places of the unit of measure for the qty field unit , it will not allow you more than 3 decimal places in case of BOM qty.
    You have following choice :
    1. With the access key make changes in the standard program and take help from ABAPer
    SAPLCSDI, Table Name-RC29P, Field Name- MENGE.
    2) Change the base quantity in BOM header to 1000 aand accordingly change the component quantity.
    Hope this is clear
    Regards
    JH

  • Change the stock quantity!!

    Hi
    Is ther any fm for changing the HU Quantity . I tried using HUINV_ITEM_CHANGE , doesn't seems to be working..
    pls help
    Regards
    Gunjan

    Hi Gunjan,
    Actually calling HUINV_ITEM_CHANGE will not update the database. All the function module does is update an internal table viz. "gt_inv_item" which is part of the function group HU_INV. In this function group, there exists another function module viz. HUINV_POST_DB which actually posts/commits the changes from the internal table into the database.
    Hence I would suggest you go through the function group mentioned above and a possible solution might come in the form of using a sequence of call functions to achieve the result.
    Hope it helps.
    Rgds,
    Aditya

  • MTO, Change in SO quantity affect PO, Can new PR adopted in existing PO?

    Dear all
    I have this problem:
    In the Make-to-order environment, Sales Order will trigger the requirement. And once the MRP is run, it will explode the BOM level and propose the procurement quantity.
    on 1st of April, I have already converted the Planned Order to PO and send the PO to vendor to order RW01 100KG. And the Delivery Date is 25th of April.
    On 3rd of April, Sales Order quantity is increased from 100PC to 200PC. And as such, PO quantity for RW01 will need an additional quantity of 90KG on top of the existing 100KG in the PO.
    Quesiton01:
    Is there anyway I can tell the additional quantity needed for purchasing Raw Material at MD04, without Rerun the MRP?
    The reason I ask is that HERE the same PO must be used and modify in terms of Quantity in situation like this. If we run the MRP after changing the SO quantity, for sure Planned order with additional quantity will be generated (90kg)
    Quesiton 02:
    Once this planned order is converted to PR, is it possible that I adopt this PR item RW01 with 98KG into the existing PO which already have RW01 100KG?
    (Logically I believe without Rerun MRP for the Sales order that have more quantity, no way we can tell how much additional quantity needed for PR.)
    Edited by: Daimos on Apr 26, 2009 2:05 PM
    Thanks
    Edited by: Daimos on Aug 27, 2009 6:45 AM

    Hi Daimos,
                  Q1.Yes your rt if you rerun the MRP the planned order for addtional qty will be generated after changing the so qty
    But if you want to adopt the previuos po you can but thsi will not link your so and MRP requriments.You can directly change the po for additional requriment and send it vendor ....
              Q2.No you cannot adopt the existing po .
    regards,
    Patil

Maybe you are looking for