Skip to Content
avatar image
Former Member

LIMIT PLAN ORDER QUANTITY AS PER SALES ORDER

Hi,

We are creating manual plan orders again sales order and in our situation there could be multiple plan orders against a single sales order. I recently got a task to put a control on quantity of plan order that it(quantity) should not exceed sales order's quantity, and in case of multiple plan order, cumulative quantity of all plan orders which are against one sales order should not exceed.

I have found Business Add-In (BAdI) MD_PLDORD_CHANGE but according to its documentation I can't place error message inside that. Moreover, I tried to place soft and hard break point after creating implementation of it but the breakpoints never hit during the whole process of creating and/ or changing plan order.


I have thoroughly checked SDN for my issue but couldn't able to find any solution.


Any solution (standard/ technical) will be appreciated


Thanks in advance,

Sumaira Goplanai


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 16 at 02:35 AM

    Hi Sumaira Goplanai

    ==================================================================================='
    Task to put a control on quantity of plan order that it(quantity) should not exceed sales order's quantity, and in case of multiple plan order, cumulative quantity of all plan orders which are against one sales order should not exceed.
    =================================================================================='

    Creation of the Planned Order Quantity, based on the incoming Sales order quantity, mainly depends on up the following parameters
    What is the Strategy group assigned, in the Material master ( Check, in MRP3, View) ?
    What is the Lot sizing Procedure assigned, in the Material Master (Check in MRP 1 View) ?
    What is the MRP Type assigned in the Material Master (Check in MRP 1 View) ?

    Could you please share these inputs, to understand the current situation/requirement more better & to propose the most suitable solution.

    Thanks for your quick feedback/inputs : Best Regards : Raja

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 16 at 10:27 AM

    Hi Sumaira,

    If you are creating a manual planned order

    system won't validate the planned order quantity with sales order quantity i.e. we can create a planned order more than sale order quantity

    if you want to restrict you have to try with the enhancement only

    Regards,

    Venkatesh Babu

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 16 at 02:02 PM

    Hello

    For sure you will need an enhancement here, since MRP will not limit the quantity.

    You are also right regarding the error message: you cannot use this BAdI to trigger an error message, as it may interrupt the MRP execution in background.

    Regarding your break-point, the BAdI will only be called when a new planned order is generated by MRP or when an existing planned order is changed. In addition, if you run MRP in parallel, it will trigger the execution in a different process and your break-point will not be reached.

    I suggest you to delete the existing planned orders and then run MRP again in transaction MD03, in order to reach your break-points.

    Regards,

    Caetano

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Caetano,

      Thanks for your reply, we are creating Manual plan orders as described in question and not running MRP. Can you suggest any alternate other then Badi?

  • avatar image
    Former Member
    Apr 16 at 07:28 AM

    What is the Strategy group assigned, in the Material master ( Check, in MRP3, View)

    Strategy group: 20 with requirement type KMSE

    What is the Lot sizing Procedure assigned, in the Material Master (Check in MRP 1 View)

    Lot Size:EX Lot for lot

    What is the MRP Type assigned in the Material Master (Check in MRP 1 View)

    MRP Type: PD

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks, but there is slight miscommunication from my functional team, we are using Strategy Group 89 - Assembly proc. w. characteristics plng


      I am again sorry for miscommunication, Can you please recommend any solution regarding this scenario.