cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude alerts in SNP Production Horizon.

Former Member
0 Kudos

Hi,

We have a requirement where the client wants that all supply shortage alerts within the SNP Production Horizon be excluded from reporting.

How can we do this? Is it possible to set offset to a particular date in an alert macro, where the date itself is dynamically calculated?

Has anybody used the function MATLOC_INC() in macros? If so, please give some sample code.

Regards,

Shivaditya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Shivaditya

You should indeed be able to retrieve this field with MATLOC()

(you don't need the "INC", at least not in new version)

I never try with this field but don't see why it should not work.

You need to use the technical name (in you case PRODH)

So you formula should look like: MATLOC( 'PRODH' ; ACT_PRODUCT ; ACT_LOCATION )

You can store the result in a variable LAYOUTVARIABLE_SET()

You will then need to use some date function to get the (start or end) date of your bucket. for example BUCKET_EDATE()

Then I suggest you to compare DATE(TODAY) + your variable "PRODH" -LAYOUTVAR_VALUE()

with the bucket date BUCKET_EDATE()

This way you compare number only...

I hope it helps!

If you face some problem let me know.

Thanks and Regards

Julien

Former Member
0 Kudos

Hi Shivaditya,

1) In customisation at APO, under scm basis, you need to activate/deactivate

the applications where alert monitor is not required.

2) Moreover, in alert profile, in transaction /SAPAPO/AMON1 - Alert Monitor,

under the application specific alert profile, the SNP related settings can be

removed.

Please confirm this helps you.

Regards

R. Senthil Mareeswaran.

Former Member
0 Kudos

Hi Senthil,

Thanks a lot for your prompt help, as always.

These macro settings are maintained in our case. Additionally, there is the need to capture the SNP Production Horizon and exclude it from the the Alerts.

For example, if the horizon for one product is 90 days, we want the alert macro to be able to read this and start generating alerts from the 91st day. The horizon is different for different products.

Regards,

Shivaditya