Skip to Content

The objective of this document is the highlight the option available for  prioritizing the demand for fixed pegging like CTM demand prioritization and to highlight the option available for sort the supply available like supply sorting in CTM.

Fixed Pegging relationship between demand and supply can be used to know when and how the demand is fulfilled by the available/expected supply.

In some business cases the pegging report is mostly used to commit the customers or to monitor the order fulfilment pattern.

However the standard PPDS Fixed pegging heuristics do not provide much flexibility to sort the demands.

In order  to overcome this limitation SAP has provided the enhancement point (Badi  /SAPAPO/RRP_FIXPEG).

Demand prioritization in Fixed Pegging

PPDS Fixed pegging heuristics provide the option to filter the requirements (Demands) and receipts (Supply) to be considered for the planning run and also provide the sort profile for the requirements, however many fields labels like Order priority and ATP category etc. are not considered by the standard algorithm.

The demand/requirement sorting by ATP category and order priority can be done enhancing the BADI  /SAPAPO/RRP_FIXPEG.

This enhancement point have the method SORT_IO_NODES  and the parameter CT_INPUT_NODES. The parameter read the table /SAPAPO/OM_IO_PP_TAB contains the details of the requirements (sales orders, forecast and other demand elements)  like ATP category, Order priority, requirement date and time ( filed IO_TIME)  and order status etc.

By using this parameter required demand sorting can be done for fixed pegging creation.

The below example code  highlight the order sorting based on date and time and order priority.Capture12.PNG

Supply Sorting in Fixed pegging Heuristics

The standard heuristics provide the option to select the supply category can be used for demand fulfilment by using the filter for receipts,

Which is shown in the below screen shot.

Capture13.PNG

The receipts are used based on the available date and time and there is no sorting criteria available in standard heuristics.

The BADI /SAPAPO/RRP_FIXPEG method SORT_IO_NODES and parameter CT_OUTPUT_NODES can be used to enhance the options of receipts elements to be used for fixed pegging creation. The following example code highlight the supply sorting based on date ( not based on date and time ) and supply element category

Capture14.PNG

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. M Manimaran

    Hi Tamizh,

    Thanks for sharing this useful information.

    In our client we are trying to use similar custom sorting, but based on some other custom fields. For example, we are trying to use Purchase Order Date from sales order as one of the sorting criteria. Is there a way to use it in the custom sorting?

    From our analysis, we can use this BAdI enhancement as an additional sort after did the standard sorting. So, we cannot decide the sort sequence like want to sort by 2 standard fields using standard sorting, then call the BAdI to do custom sort, again do sorting with 2 more standard fields. So, if we want to achieve the sort sequence as above, we must reproduce the whole sort logic in the BAdI, right?

    Could you please share your experience on this?

    Regards,

    Manimaran M.

    (0) 
    1. Thamizhchelvan SAP APO Post author

      Hi Manimaran,

      If you want to use combination of custom and standard fields for sorting then all the fields need to be included in the BADI.

      You can use the fields available CT_INPUT_NODES parameter for custom sorting.

      BR

      Thamizh

      (0) 
  2. Angelos Charalambous

    Hello,

    we want to sort pegging requirements based on characteristic values using method SORT_IO_NODES of BADI /SAPAPO/IF_EX_RRP_FIXPEG..

    is it possible to define characteristic values based on Peg ID’s?

    Do you know any function module that could be used?

    Regards,

    (0) 

Leave a Reply