on 06-17-2008 7:42 AM
Hi All,
I would like to set following logic through Macro.
Logic:
IF key figure 1 > ( 5% of Key figure 2 + Key figure 2) then system show warring Massage,Alert & send main to Users.
IF key figure 1 > ( 10% of Key figure 2 + Key figure 2) then system show Error Massage,Alert & send main to Users.
Can anyone tell how i set this logic in Macro & wat is steps for sending mail through Macro?
Thanks in Advance !
Sujay
i will post it again
Edited by: Uma Maheswar kumar on Jun 17, 2008 10:11 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check this..
but do not use message type error..use information with description error or warning.
Note: when you are displaying process messages, take care about number of iterations..
Message will be displayed equal to the number of iterations..
Macros in the Macro Book
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
Edited by: Uma Maheswar kumar on Jun 17, 2008 11:43 AM
Edited by: Uma Maheswar kumar on Jun 17, 2008 11:44 AM
Edited by: Uma Maheswar kumar on Jun 17, 2008 11:47 AM
Hi UMA,
Thanks for reply.
After creating macro according to you,Document is sending by mail is perfectly working according to Information.But Condition is not satisfying properly.Evertime it is showing Key figure 2 is greater than 10 % of Key figure 1(Aux. key 2).
Second is After executing Macro,system genrate one POP UP for Information but i have check this min. 11 times,after that it will get removed & genrate 11 Mails.even in Selection id only 2 Product are there.
I am not getting what mistake i have done while creating macro?
I am trying to macro execution at Aggregated level( 0 level),how i can achive this?
Can u give me solution? it`s urgent
Thanks in Advance !
Sujay
I have mentioned that..message appears for number of times equal to the iterations..
Your step might be having 11 iterations(11 periods)...make it one iteration..from and to periods should be same in the macro step attributes to have only one message which runs for only one period..
what is your criteria...?
you want run it for all future months or only for current month or only one month in future..?
Edited by: Uma Maheswar kumar on Jun 17, 2008 2:55 PM
User | Count |
---|---|
10 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.