Change Purchage Order Quantity

Hi ABAP Gurus,
Requirment:
I need to adjust only the delivery quantity of the PO or STO.
Options to update:
BAPI Func.Mod, BDC, or any Func. mod particularly for this req. 
Plz suggest which I need to use for update the Orders to improve the performance
(presently BAPI_PO_CHANGE is used for this requirement).
Thanks
Ravi

Hi,
Do you want to update the scheduled quantity in the delivery schedule tab of the PO line item..
Thanks,
Naren

Similar Messages

  • 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

  • How to change Service order quantity using BAPI/FM

    Hi All,
    Can any body tell me how to change the Service Order quantity (in IW32) using a FM or a BAPI.
    I tried using the BAPI: BAPI_ALM_ORDER_MAINTAIN but I am unable to change the quantity. May be I might be missing some parameter. If anybody has done this please let me know the parameters that needs to be passed or if there is any other way out.
    Points will be rewarded to useful answers!!
    Thanks,
    Susanth.

    Hi!
    I have used this BAPI.read the documentation properly and after calling this bapi call BAPI_TRANSACTION_COMMIT then only expected results com n get saved.
    for ex:
    call function 'BAPI_ALM_ORDER_MAINTAIN'
        tables
          it_methods              = itab_methods
          it_header               = itab_header
      IT_HEADER_UP            =
          it_header_srv           = itab_header_srv
      IT_HEADER_SRV_UP        =
          it_userstatus           = itab_userstatus
          it_partner              = itab_partner
      IT_PARTNER_UP           =
          it_operation            = itab_operation
      IT_OPERATION_UP         =
          it_relation             = itab_relation
      IT_RELATION_UP          =
          it_component            = itab_component
      IT_COMPONENT_UP         =
          it_objectlist           = itab_objectlist
      IT_OBJECTLIST_UP        =
          it_olist_relation       = itab_olist_relation
          it_text                 = itab_text
          it_text_lines           = it_text_lines
          it_srule                = itab_srule
      IT_SRULE_UP             =
          it_tasklists            = itab_tasklists
          extension_in            = itab_extension_in
          return                  = itab_return
          et_numbers              = itab_et_numbers
      call function 'BAPI_TRANSACTION_COMMIT'
       exporting
         wait          = 'X'
    IMPORTING
      RETURN        =
    reward points if helpful.

  • Which enhancement to use change purchase order quantity ?

    Hi all,
    can u tell me
    1) what is the enhancement to use to change the purchase order quantity with reference to the change in production order   quantity?
    Regards,
    Naveen
    Moderator Message: SEARCH!
    Edited by: kishan P on Nov 29, 2010 11:09 AM

    Hello,
    In this case you should use the message PORDCH and BAPI method BAPI_PO_CHANGE but only exist as of release 4.7.
    Function module    BAPI_IDOC_INPUT1
    Idoc Type              PORDCH01
    Message Type      PORDCH
    So check carefully the following OSS notes:
      [Notes 589066 - BAPI_PO_CHANGE: Incorrect account assignment to network |https://service.sap.com/sap/support/notes/589066] (not be fooled by the description)
    [ Notes 197958 - BAPIs for purchase orders - Missing Functions|https://service.sap.com/sap/support/notes/197958]
    Regards,
    Andrea
    Edited by: Andrea Olivieri on Sep 3, 2009 10:17 AM

  • Changing prod order quantity no update of component qty (during convertion)

    Hello everybody,
    I would like to ask you if someone has already founded following problem :
    I converted a planned order into a production order and, before to save it, I changed the production order header quantity. In this particular conditions  the system doesn't udate the component quantity also after the order is saved !  The result is to have not the same proportion as in BOM.  I have no founded any OSS note. Have anyone of you founded this kind of problem ?
    Is it a SAP std behavior ?
    Thanks in advance
    Salvatore Testa

    Salvatore-
    Standard would be, that if you change the header quantity in the production order, it will update the components quantity too. I don't see a reason why it is not updating the component quantity.
    Shail

  • 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 Production order quantity and invoicing again

    Production order was completed for less than full quanity and invoice was generated. . Now can we cancel the invoice and change the quanity in Production oredr to full quantity and then regenrate the invoice? Are there any other steps?
    Thanks

    Hi,
    SAP Confirmation for Orders is to caputre the actual activity used and goods issue (if backflushing is activated). MRP cannot sense the confirmed Qty.
    If you want the MRP to Plan the difference qty, you have to do GR for the 95, remaining 5 will be generated as planned order in next MRP run.
    You can also assign automatic GR for the last operation in your routing. So after confirming the last operation, GR will happen for the Qty. then you can run MRP, then it will generate planned order for qty 5.
    Thanks,
    JK

  • Change in order quantity after billing

    Hi,
    I am facing an issue where I have created a sales order for service material but by mistake my user has entered zero quantity.
    We have completed the cycle - Sales order --> billing.
    After which he realised that the quantity entered is zero.
    Is there a process where i can change the quantity of order.
    What should i do correct the quantity.
    Please suggest

    If you have communicated the same to your customer say, through Order Acknowledgement or Proforma Invoice, then in my opinion it's not legitimate.
    Thats why I suggested you to cancel the existing invoice and rasie a new/fresh invoice after updating the desire quantities in the existing sales order.
    Regards
    JP

  • User exit to change purchase order quantity

    Hi all,
    when we create production order based on that service purchase requisition is created. based on that in me21n service purchase order is created and now if we do any change  will be changing the production order qty after creating the order that is reflecting in service purchase requisiton but not reflectiing in me21n purchase order number so can u suggest me which enhancement  to use and which user exit should be used to acheive this functionality i have tried using ppco0012 enhancement by keeping break point but when running the scenario it is not going to debug mode.
    Regards,
    Naveen
    Moderator Message: Previous warnings from Moderator ignored. Account sent for deletion.
    Edited by: kishan P on Dec 1, 2010 9:47 AM

    Hi,
    You may use USEREXIT_MOVE_FIELD_TO_ME_REQ.
    You can find this in include MV45AFZB.
    <REMOVED BY MODERATOR>
    Regards,
    Sharad
    Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:37 PM

  • Change Sales order Quantity after Billing

    Hi experts
    I m having the doubt in the follw'g scenario :
    Like I have created sales order>Delivery>Billing and Excise invoice. Now after this sales process completion
    i can able to change the Qty in sales order after Billing . I want to know how to control this with Functional or tech
    or with basis people?
    I want ur valuable reply that would solve my problem.
    Regs.
    SR

    Hi
    SO qty field in CHANGE MODE. I want to display the same into
    ONLY DISPLAY MODE.
    This is not possible by standard configuration
    Check with your ABAPer for any userexit or enhancement
    After billing is over if the user adds another line item in the sales order in VA02 mode that too has to be controlled by user exit
    Regards
    Raja

  • Prod order quantity change

    Dear All,
    The users at my client side are playing tricks with SAP. In the customization the order release is not allowed if the material shortage exists. The users are releasing the order by changing the qty of production order (to the available qty) and after release again changing the order quantity.
    I can restrict the users by status profile for doing this. But I can not use this because of limitations in the number of user IDs.
    What I want is that after changing of production order quantity the status of the order should again become CRTD.
    Is it possible? Can anyone please tell me the path to do this.
    Sumeet

    Hi Nel,
    What I want is that the status of the order should revert back to CRTD which by any means is not possible.
    The availability can be checked each time while creating / releasing order but a released status of the order can not be reverted back.
    Anyway thanks for you input.
    Sumeet

  • To change the subscription order quantity.

    Hi all,
    I have a requirement to change the subscription order quantity,
    ex.- to change  the order quantity to 30 from 50.
    Please suggest if this is possible, if yes then how can it be done.
    thanks
    Abhay.

    Dear Sunil,
    I need to change the Order quantity (Delivery quantity) from a subscription order.
    When i see the order in jk02 (Change mode), the quantity field is non-editable.
    I hope the question is clear now.
    thanks,
    Abhay.
    Edited by: Abhay  Mehta on Mar 18, 2009 4:09 PM

  • Sales order quantity equal to delivery quantity.

    31.10.2010
    Hi friends,
    To close all open orders I need to change the order quantity in the sales order to the total quantity delivered. Can you please advise how to go about this? Which table and which fields to use.
    Regards,
    Uday
    Moderator message: please try solving things yourself before asking, explain what you tried and where you are stuck when posting again.
    Edited by: Thomas Zloch on Oct 31, 2010 11:57 AM

    Hi all
      I am facing the same issue now. The system is not issuing an error message when delivery quantity exceeds order quantity and its letting me creating the delivery document and complete PGI. I have checked all the settings discussed in this thread.
    1.  0VLP Check Overdelivery is set to "B"
    2.  In VTLA, 'pos/neg' indicator is set to "+" sign for item category TAN (OR --> LF)
    3. Maintained the overdelivery tolerance limits in customer master.
    However when I set the 0VLP Check Overdelivery indicator to "A" instead, I am atleast getting a warning message. While it was B, I wasn't getting any message.
    I don't know what else could be missing or wrong. Any inputs would be highly appreciated.
    Thanks
    Vamsi

  • Functional module to change production order

    Hi,
    I tried with FM CO2H_PROD_ORDER_CHANGE
    to change production order quantity field GAMNG value, but it did not work.
    Please suggest me any FM or BAPI to change Production order quantity.
    Thanks
    Hema

    Hi Ferry,
    Thanks for your fast reply.
    I tested with the function modules
    KK_F_AFKO_AFPO_UPDATE
    RK_AUFTRAG_SICHERN
    First FM does not have GAMNG(total order qty) field.
    With 2nd FM, it is directly updating table AUFK and AFPO with order qty and order qty. It will not update operation quantity, that is alsor required.
    If we do manually in CO02 transaction, operation quantity also will update once we change the order quantity.
    Thanks
    Hema

  • 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?

Maybe you are looking for