cancel
Showing results for 
Search instead for 
Did you mean: 

SAP APO - limit horrizzont plan

Former Member
0 Kudos

Hi all,

how is possible to limit horizzont plan in SAP APO.

In other word, I have 2 order planidfied, the first for 1 december 2008 and the second for 1 april 2009. I want to modify my heuristic so only the first order is planned and the second order is ignored!!!

P.S. I must use a custom heuristic, so I must limit this horizzont plan inside a custom heuristic.

Is possible ? How ? there's some function ?

tks a lot,

bye.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

missing real important answer

Former Member
0 Kudos

Please check BADI /SAPAPO/RRP_PLANNING

Call transaction SE18.

Enter the BAdi name /SAPAPO/RRP_PLANNING.

Also BADI :

/SAPAPO/RRP_HEUR_DO

"This BAdI enables you to execute one or more additional functions for a

selected PP heuristic. The BAdI is called both before and after a PP

heuristic is executed, every time the heuristic is executed. You can use

it to include the deletion and creation of fixed pegging relationships

in the MRP run, for example.

The following methods are available:

o BEFORE

This method enables data to be changed before the PP heuristic is

called.

o AFTER

This method enables data to be changed after the PP heuristic is

called.

"

Manish

Edited by: Manish Kumar Rathi on Oct 14, 2008 2:45 AM

Former Member
0 Kudos

Tks for help Manish,

could you show some exemple please ??

Former Member
0 Kudos

Example Coding

Example coding is available for the method BEFORE. To display the

example coding choose Goto -> Example Coding -> Display in tcode Se18.

The example

coding contains the call of the heuristic SAP_PP_011 (Deletion of Fixed

Pegging Relationships) and the setting of the parameter CREATE_FIXPEG,

with which the creation of fixed pegging relationships is triggered in

the net requirements calculation/lot-size calculation. In this way you

can ensure that the pegging relationships are created directly in the

MRP run. Fixed pegging relationships are created directly in the MRP run

for all assignments between receipt and requirements elements generated

in the MRP run. This ensures that all material flow relationships of the

MRP run are correctly and completely fixed.

Example for almost all the BADI are availabe.I checked for both below, its there .

/SAPAPO/RRP_PLANNING

/SAPAPO/RRP_HEUR_DO

Manish

Edited by: Manish Kumar Rathi on Oct 14, 2008 9:23 AM

Former Member
0 Kudos

Hi Manish,

tks a lot for your reply.

So, in the method BEFORE, I putted SAP_PP_004 ( for SAP_PP_011 ) and ZSAP_DOL ( for SAP_PP_002).

This mean that the system execute before SAP_PP_004 , and after, with pegid calculated run ZSAP_DOL .

It's correct ?? If not, how I can do it ( I have to have a flow like described ).

Tks,

bye.

Former Member
0 Kudos

Yes , you are correct .

as you are calling setting in below function module .

CALL FUNCTION '/SAPAPO/HEUR_DO_HEURISTICS'

EXPORTING

i_heur_settings = ls_heur_settings.

Hope this all this info helps you.

Manish

Former Member
0 Kudos

Tks,

I go to test it !!

But an other things: if I change in my heuristic Z_.., in debug modality, i_heur_settings, and I put in the correct data for horizzont planning ( 6 months for end_horizz_plan ) , the results is not correct, I mean that the system planned all order!!!

Why ?

nitin_thatte
Contributor
0 Kudos

Hi Roberto

Why don't you use a data view which has smaller horizon. Heuristic will plan only for the period which is there in the data view.

Just try this you may not have to do anything technical.

Nitin Thatte

nitin_thatte
Contributor
0 Kudos

Hi roberto,

Oops my solution is valid only for SNP.

In case of PPDS you may keep smaller PPDS horizon.

Nitin Thatte

nitin_thatte
Contributor
0 Kudos

Hi Roberto,

You can maintain PPDS horizon in product master or in planning version.

Nitin Thatte

Former Member
0 Kudos

Tks Nitin,

how I can maintain it ? there's a transaction ?

In my client's system there's a custom heuristic to calcul somethings, and the client would to use this

heuristic, your solutions is compatible with heuristic ?

Tks,

nitin_thatte
Contributor
0 Kudos

Hi roberto

PPDS Horizon is maintained in Product master /SAPAPO/MAT1

This can be maintained individually for each product

Alternately you can maintain it in /SAPAPO/MVM this setting is global for all products.

Both settings are considered by heuristc. Setting in product master overrides the setting in planning version

Nitin Thatte

Former Member
0 Kudos

Tks Nitin,

unfortunately I can't use this transaction because if I use it I have other problem's version ...

So I have to find a way to limit horizzont inside a custom heuristic .. and I dont know how to make it ..