cancel
Showing results for 
Search instead for 
Did you mean: 

Steps to generate Alert macros in APO

Former Member
0 Kudos

Hi APO expert,

I am very new to macros in APO, I want to defined one macro on urgent basis.

Logic is I want to trigger an alert for certain order categories for period.

This period is defined in extra tab of product master.

Can you guide me for step by step generation of this macro.

Thanks in advance!!

Accepted Solutions (1)

Accepted Solutions (1)

rajkj
Active Contributor
0 Kudos

Hi Rushikesh,

Pl check the following procedure to define an alert macro.

1. Create a macro (to save time, you can copy the alert macro from any standard macro book or check the following screenshot).

2. Use macro function to retrieve the period

If the extra field is maintained at location product master

MATLOC_EXTRA(n ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ) //for numeric value

MATLOC_EXTRA_C (n ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ) //for non-numerics

or at product master level

MAT_EXTRA(n ; ACT_PRODUCT ; ACT_VERSION )

3. Build your logic to trigger alert. (I did not understand what do you mean by order category.. so helpless here)

4. Complete the macro implementation and activate it

5. Execute it in interactive planning and test the result

6. If the requirement is met, you can setup a background job

I hope it will be useful to you.

Thanks,

Rajesh

Answers (0)