Skip to Content
avatar image
Former Member

SNP period Lot size - Grouping demand into specific bucket

Hi Experts,

We have requirement in SNP heuristic using weekly data group the demand using monthly lot size but it should fall on last week of the previous month, such that p-req created always falls on last week of the fiscal period.

as per the note 503109 seems this is possible however there is some changes required in macros as given below in the note, did any body updated the macros or could you please guide me how to bring in below logic into macro.




In the location product master data, you have made settings for the periodic lot size. The heuristic now groups the demands; the start is the start of planning according to the period indicator and number of buckets.
You cannot use this functionality for the following customer scenario: For grouping the demands of different products into specific buckets using a time stream - for example, to define that you are to use the same resource at different points in time.

Other Terms

Reason and Prerequisites


You want to produce products A and B at a production location in weekly rotation. After a release from Demand Planning to Supply Network Planning, demands are distributed evenly across the planning horizon. At a production plant, these demands can also be planned distribution demands.

This grouping and changing of the demand situation at one source location might cause backlogs or early stocks in the attached network.

To be able to now group together demands in a product-specific fashion, you must define corresponding time streams in transaction /sapapo/calendar. These time streams are stored in an 'extra field' in the location product master data, to enable product-specific access.

Caution: When you define the time stream, ensure that the buckets in the location's shipping calendar do not cause the buckets in the new time stream to be excluded, since this can result in rescheduling.

In order for the heuristic to be able to take account of the altered demand situation, corresponding changes must be made to the macros:

* In the stock balance macro, the required line must use an additional macro step to change the demand situation. To do this, the system needs to know whether it can use a particular bucket. This information is determined from the new, location product-specific time stream. Make sure that you take into account the direction in which you want to group demands, to determine whether it is likely that early stocks or backlogs will occur.

* Like with the workdays macro, you can provide information on whether a bucket can be used for grouping demands.
Create a new macro or add a new step. In the new definition, the calendar is determined differently (time stream). Here, you must replace the call calendar(...) by a function that determines the extra field in the master data. For more information, see the online help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers