Wrong update of Planned order

Hi,
I have a requirement.I have created a ztable which has start date
and end date.
Sap standard flow.
1) Create a sales order using transaction VA01.
2) I execute  MD01 for MRP run.
3) I go to MD04 with the material and plant agaist which
    i have created a sales order
4) Planned order is created.
5) I modify Start date or End date of Planned order using
    transaction MD12.
6) Again i execute the MD01 transaction for MRP Run
    an Planned order gets modified.
My Business requirement.
1) Create a sales order using transaction VA01.
2) I execute  MD01 for MRP run.
3) I go to MD04 with the material and plant agaist which
    i have created a sales order
4) Planned order is created.
5) I execute a zprogram in which i call 
    BAPI_PLANNEDORDER_CHANGE to modify the
    Planned    order .Order start date and Finish date come
    from    the Ztable.
6) Again i execute the MD01 transaction for MRP Run
    but instead of modifying the  Planned order new Planned
    order gets created.
In Zprogarm i have done coding in Following way.
1) Called transaction MD01.
2) Called  BAPI_PLANNEDORDER_CHANGE to modify the
    Planned    order
3) Again called transaction MD01.
Kindly help me in why new planned order gets created instead of modiying existing planned order.
Thanks & regards,
Chetan

Thanks

Similar Messages

  • Reg. Mass update of Planned order components

    HI all,
    I have a requirement wherein I will come to know the raw material consumption from storage location only at the time of production.
    Now what I am doing is before doing confirmation I am updating the storage location for particular component in the planned order change mode - md12.I am doing this because the  production confirmation is happening at External system and transferred via IDOC to SAP.So I cant add the sloc at that time.
    I am doing the changes to planned order one by one. On an average I am doing this for say 50 Planned orders which is time consuming
    Is there any option available in SAP to do mass change to the planned order components.
    Regards,
    MBN.

    Hi MBN,
    You can use the LSMW, BDC program or FM MD_PLDORD_CHANGE_COMP_ITEMS to update the storage location in planned order components.
    Regards,
    R.Brahmankar

  • Improper set up group updation in planned order

    Hi,
    In Master recipe we assign set up group to the set up phase i.e. phase 20 (Superior operation 10). Same is transfered to APO PDS.
    In APO Planned orde normal strcture of order is operation 10- Setup group displayed. Operation 20 Set up group displayed.
    For one particular product we are unable to see any set up group for operation 10.
    Any help for this
    Regards,
    Santosh

    Besides Stick's suggestion, make sure that the plan is a "Production" plan.
    Also see the "Release Time Fence" section on http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/inv/mrpattr.htm
    Also see http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/mrp/planco03.htm
    Hope this helps,
    Sandeep Gandhi

  • User exit/ badi needed for planned order create/change,collective ATP check

    Dear All,
    I'm looking for a user exit/ badi which can be used for planned orders at the stage of
    mass collective availability check (COMAC tcode) update; or at some other relevant stages of mass update of planned orders.
    I need after collective availability check to perform the following:
    1) to copy date from "total comitment" field on header tab of planned order and paste it (replace old date) to order finish date on header screen
    then
    2) to start a scheduling.
    Very appreciate your help.
    Best Regards,
    Andrey
    Edited by: Andrey Kruglov on Apr 15, 2010 3:06 PM
    Edited by: Andrey Kruglov on Apr 15, 2010 3:07 PM

    Dear,
    Use the BAPI : BAPI_PLANNEDORDER_CHANGE
    Or use the function module MD_SET_ACTION_PLAF for Schedule planned order.
    and the transaction MDAC Execute action for planned order
    This function module includes the following actions:
    Explode BOM
    Explode BOM, check availability
    Check availability, only explode BOM in the case of a requirement
    Check availability, do not explode BOM
    Reset availability
    Change planned order data
    Schedule planned order
    Delete planned order
    Assign the key for the respective action control to the materials in the material master (MRP 4 view).
    Please refer this thread,
    Re: MDVP for collective orders
    Regards,
    R.Brahmankar

  • Restrict Product Allocation if Planned order is not getting created

    Hello All,
    We have a scenario that when ever a Sales Order is getting created, Product allocation assignment will be done automatically and planned orders will be created for that requirement in APO.
    There are some cases where in because of wrong Variant Configuration, Planned orders wont be created. Our requirement is to delete the Product Allocation automatically or to stop the product allocation assignment if the planned orders are not created.
    Do we have any standard setting for doing so or Kindly suggest me some BADI's which can be used for it.
    Thanks in advance.
    Best Regards,
    Srinivas.D

    Srinivas,
    A rather odd requirement.
    Have you tried in SCM APO 'Maintain check instructions' to perform the product check first, then allocation?  I would think that if the product check failed, then allocation would not be consulted, and no allocation therefore assigned.
    IMG > APO > GATP > General Settings > Maintain check instructions
    Best Regards,
    DB49

  • Planned order creation with PDS valid on only order start date and not finish date

    Hi All,
    We have requirement to allow creation of planned order manually if production version is valid on order start date and not finish date.  This is because lead time of order is longer. I refered OSS notes 385602. I could find out solution for this is implementation of OSS note 694140 to change validity mode at activity level to consider start date of first produce activity  in validity interval. Problem is even If I create order in APO by implementiong this note planned order is not transfered to ECC and it gets stuck with error production version not valid.
    Is there any way in ECC to control this? Any config or customization?
    Regards,
    Santosh

    Nilesh,
    I think there is a simple procedural skip happening in your business process. You are right when a planned order is created after MRP it would default assign it to the first available production version. 2options available for us,
    1. First use transaction MF50 and do the line loading and assign the quantites to the production versions/Production lines, so that the actual capacity planning is getting completed. This way you can have planned orders with both the production versions and matching to your actual line capacity.
    2. Use Quota arrangement concept, to automatically split the Planned orders during MRP for a percentage based on individual production versions.
    Now when backflush is performed S225 table is updated and Planned order qty also gets reduced.
    Hope this helps....
    Regards,
    Prasobh

  • I bought the wrong update, I need a Mac-Version but ordered a Windows-Version. What can I do?

    I bought the wrong update, I need a Mac-Version but ordered a Windows-Version. What can I do?

    Since this is a user to user help forum, not Adobe support or sales, nobody here will be able to help... you must talk directly to Adobe
    Information for anyone else with a similar problem
    Adobe contact information - http://helpx.adobe.com/contact.html
    Help for Download & Install & Setup & Activation http://forums.adobe.com/community/download_install_setup
    Next link has a "Chat Now" button near the bottom http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Update gets terminated when we convert planned order to purchase requisitio

    Hi All,
    I am facing a problem when I am converting a planned order generated after MRP run into a purchase requisition.
    My MRP settings are .
    Strategy is 10
    Procurement type F.
    When I convert my planned order into Purchase requisition with MD14 the system gives me a Purchase requisition number , but as soon as I press enter after that I get a message:
    "Express Document: Update was terminated , received from author my name".
    Now when I check the PR number the PR number generated above does not exist in the system. Please tell me where can i check the same.

    Hi
    Check the PR number range, whether the PR number range is created or not
    Go to OMDT t.code and check the PR accounted assignment for your plant.
    If the planned order created through PIR the account assignment must be U
    If the Planned order created from through the sales order the account assignment must be E or C.
    try this
    Thanks
    S.Murali

  • Planned Order Qty updation in S225 Table

    Hi Friends,
    In S225 Table there is a filed of Planned Order PGMNG. Can anyone tell when this field gets updated?

    Dear Nilesh,
    Update the statistics using MF27,after taking MRP run.
    Check and revert back.
    Regards
    Mangalraj.S

  • Mass update for production and planned order MRP controller

    Hi Gurus,
    It's anyway possible to mass update MRP controller for Production orders and  Planned orders. If any please provide me step by step process.
    Thanks,
    B.Deethya.

    I feel You have changed the MRP controller in Material master and want to incorporate same in production order & plan order.
    For Planned order Run MRP with delete and recreate mode, system will create a new plan order with MRP controller in Material master
    For production order, Mass change is not possible, create a simple BDC or LSMW, And change the MRP controller

  • Changes to Planned Order in R/3 not being updated in APO

    HEllo -
    I am creating SNP planned orders EE in APO and sending them through CIF to R/3.
    When I make changes( Qty change) to the planned order in R/3, those changes are not being updated in APO. When I run CCR, I get the error 159 - Differences in content.
    When I create a planned order in R/3, that order does not flow into APO, running CCR gives the error 151 - Missing in APO.
    Ofcourse, I can trigger the reconcialition job and make then go through but I have not been able to find the root cause. Can someone help me with this?
    Appreciate your help
    Varun

    Hi Varun.
    In the R3 system have you activated the BTE's?
    SPRO
    Integration with other SAP components->APO->Basic Settings for Data Transfer->Change Transfer->Change Transfer for Transaction Data->Activate Online Transfer Using BTE
    Applications: ND-APO and NDI need to be activated.
    Hope this helps.
    M

  • Project Revenue Plan Not Update from Sales Order Item

    I am generating a network and project from the sales order item using Assembly processing. I am using milestone billing on the sales order item and the milestones attached to the project network activities are appearing as billing blocks on the sales order item billing plan. However, the project revenue is not getting updated from the sales order billing plan. Can someone please help?
    I have deleted the billing plan on the billing WBS element and activated revenue planning update from sales order in cusomization for PS. I am looking at CNS41 under the project revenue sched in version 0. Is there a different report I should be looking at?
    Regards,
    Venkat.

    HI Venkat,
    You are looking at the correct report & I believe you have also done the necessary customization. If you create a sales order and reference it to a quotation, the related plan values in the WBS element are refreshed automatically.
    When the payment data is recorded, the terms of payment and the customer payment history are taken into consideration. One of the probable causes could be the credit limit of the customer might have been exceeded. Take help of your SD consultant & increase the credit limit for that customer (from the sales document), t-code FD32 if it is permitted in the business.
    After the new credit limit is set execute the following steps:
    u2022     Go to the t-code Change billing request (VA02)
    u2022     Open the required billing request
    u2022     Remove the account assignment of WBS element from each line item
    u2022     Save the billing request
    u2022     Reopen the billing request in change mode
    u2022     Reassign the WBS elements to all line items
    u2022     Now the changed credit limit will take affect
    u2022     Check the Planned Revenue for the said project in CNS41, it should get updated.
    Rgds
    Deepak

  • BAPI or Function to update Billing Plan in Sales Order Items

    Hello all !
         I have to update some fields in the billing plan data in sales order's item (VA02) with a program (receiving it's data form csv files).
         I've searched a BAPI but infortunately there are no "Billing Plan" data structure to update thoses fields.
         The transaction in VA02, the billing plan data is found in FPLT table, linked to VBKD table with key field VBKD-FPLNR.
         I've tried theses Functions with no result :
    BILLING_SCHEDULE_MAINTAIN
    BAPI_SALESORDER_CHANGE
    BAPI_SALESORDER_CHANGEBOS
    BAPI_SALESDOCUMENT_CHANGE
    For now I'm searching how VA02 is saving the billing plan data, but it's very tricky and maybe not reusable.
         If someone have an idea for updating billing plan data in a abap program ( and not a batch input of VA02 because the line to update can have a variable position ).
    Thanks a lot.
    Message was edited by: Thomas B.

    Thanks Kiran I for your answer.
        This function might be helpful but there is a strange control at the begining of the code.
    (I guess VBAK must be filled somewhere..)
      IF I_VBELN NE VBAK-VBELN.
        MESSAGE A044 WITH I_VBELN VBAK-VBELN.
      ENDIF.
    But I've found another way to update the billing plan dates: using the function BILLING_SCHEDULE_SAVE (with BILLING_SCHEDULE_READ before). My point is solved.

  • Updating resource in planned order using reference characteristics

    hi,
    Please let me know the table and field to be used to map corresponding field (PLPOD - ARBPL) in ECC. I am trying to update work center in planned order using reference char.
    Regards,
    Yogesh

    Yogesh,
    table and field PLPOD-ARBPL are correct , and same shoild be reflected into characterstic data.
    check syntex of dependencies once again , and test configuration using CU50 , and see the result.
    while running transaction you can have trace on which can help you to see your dependencies are gettinmg trigered or not.
    hope it helps you.
    Regards

  • Wrong Planned Order dates - MRP Run

    Dear Experts,
    Please guide to resolve the following problem:
    I have uploaded the PIRs for 3 months. When I take the MRP run, the system is scheduling the planned orders for first 2 months only. For the 3rd month's PIR the planned order are created for the PIR dates only. 
    For example, if the PIR (for 3rd month) is maintained on 25th of the month. The planned orders for FG & SFGs are being created for 25th only. While for 2 months the Planned orders are properly scheduled.
    What could be the reason for such behavior.
    The planning horizon is 90 days.
    Regards,
    Rohit.

    Dear Rohit,
    If you are running MRP with NETPL, then the Lead time scheduling will be carried out only for the planning harizon.
    Try executing MRP you can select NETCH key.
    or
    If you want to run MRP with NETPL key, then please give In-house production time in workscheduling view as per the routing values. For example 1 day is the processing time and give the quantity for for 24 hr production. Then the sceduling will be carried out as per this values.
    And change the planning harizon for detailed scheduling in OPU5 transaction.
    Thanks and regards
    Murugesan

Maybe you are looking for