cancel
Showing results for 
Search instead for 
Did you mean: 

Email Notifications Using Macro's

Former Member
0 Kudos

Hi Experts

What is the prerequesite for Sending email notifications using Macros in the APO DP & SNP, as we have the Document Function(Macro Element) in the Macro Builder.

How to use Document Macro Element?

Sai

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sujay

Thanks for your Valuable information.

As I need some more Clarity in your answer.

1) Where does we maintain email address of the User (if the User is External user)?

2) Is there a facility to send SMS to user ?

jagannadhb
Active Participant
0 Kudos

Hi

In the "Document" attributes, you can find a few options, press F4 on Recipient to get the following options

You can also maintain the distribution lists using TCODE: SO15

Regards

JB

Former Member
0 Kudos

Hi

Thanks for your replies.

I want where does we maintain email addresses of the Users.

Former Member
0 Kudos

Hi Sai,

Double click on Document Symbol, you will find the "Advance Macro:Attribute mail", Click on Planning Data attachment, so that PB data will get attached to Mail.

Enter the User name fixed sender, note that which is not email address.It`s just only a user name.

In Recipient you enter the user name of the Recipeint.

I think this will be helpful for you.

Regards

Sujay

Former Member
0 Kudos

Hello Sujay,

When I attach the PB data to the Mail, the file comes corrupted and it won't open. Would you know the reasoning for this??

Best,

Tyler

Former Member
0 Kudos

Hi Sai,

We have created same macro for client requirement. Just check the following logic Take appropriate logic & apply.

Logic:

IF key figure 1 > ( 5% of Key figure 2 + Key figure 2) then system show warring Massage,Alert & send to Users.

IF key figure 1 > ( 10% of Key figure 2 + Key figure 2) then system show Error Massage,Alert & send to Users.

Macro:

New macro

step1: calculation : ( 1 Iterations : W 25.2008; W 25.2008 )

Row: New macro aux. row1 ( Frm W 25.2008 ) =

( ( ( 5 / 100 ) *

Row: Additional Field 2 ( Frm W 25.2008 )

) +

Row: Additional Field 2 ( Frm W 25.2008 )

)

Row: New macro aux. row2 ( Frm W 25.2008 ) =

( ( ( 10 / 100 ) *

Row: Additional Field 2 ( Frm W 25.2008 )

) +

Row: Additional Field 2 ( Frm W 25.2008 )

)

step : send message : ( 1 Iterations : W 25.2008; W 25.2008 )

IF

New condition

Row: Additional Field 1 ( Frm W 25.2008 ) greater than Row: New macro aux. row1 ( Frm W 25.2008 )

IF

New condition

Row: Additional Field 1 ( Frm W 25.2008 ) less than Row: New macro aux. row2 ( Frm W 25.2008 )

Information ( warning )

MAIL WITH WARNING

ELSEIF

New condition

Row: Additional Field 1 ( Frm W 25.2008 )

greater than

Row: New macro aux. row2 ( Frm W 25.2008 )

Information ( error )

MAIL WITH ERROR

ENDIF

ENDIF

Hope this will help you...

Regards

Sujay

Former Member
0 Kudos

Hi Sai.

Do you want to send the planning table or an alert?

The document function allows you to send the "as is" planning table to a recipient at the time the macro is run.

If the requirement is just to send an alert, then create a macro that generates the alert. Maintain an alert profile suitable for the recipient (/SAPAPO/AMON_SETTING), set the send of alerts (/SAPAPO/AMONMSG) and then run the sending of alerts (/SAPAPO/AMONMSG_SEND).

Hope this helps.

M

Edited by: percx on Oct 20, 2008 10:07 AM