You are on page 1of 13

Macros

Following Macros are used in different planning books. Here logic of


all the macros is discussed & in the beginning the matrix is shown,
which macro is used in which planning book.
Macros/Data Views

r
o
c
e
s
s

!
h
a
i
n


"
#
#
$
%
D
M
&
'


(
#
#
$
%
D
M
&
'


)
#
#


)
"
#


)
(
#


"
#
#
$
*
M


"
#
#
$
%
+
,


"
#
#
$
F
%
M
&
-
.
*et unlimited !/ outside
hori0on
i.
1
Determine 2orkda3s
ii.
1
!lose 'on working da3s
1
4Default5
1
4Default5
ublish !/
1
4Manu
al 6un
7utton
5
1
4Manual 6un
7utton5
ublish !/
1
4Manu
al 6un
1
4Manual 6un
7utton
5
7utton5
Drill up location 1 1
Drill down location 1 1
Drill up material 1 1
Drill down material 1 1
+et -/ ad8ustment 1
%9erage details 1
*et -/ ad8ustment
1
4*tart5
,rder :t3 ; !/
!/$%-<6/$
F%M$%+,
1 1
!alculate !/ alerts
1
4Ma
nual
6un
7utt
on5
1
4Ma
nual
6un
7utt
on5
!/ = ,rder :uantit3
!/$%-<6/$
F%M$%+,
1 1
!/ = ,rder :uantit3
collecti9e
!/$%-<6/$
F%M$%+,
1 1
!apacit3 = roduction
!/$%-<6/$
F%M$%+,
1
4 ne
ed
re9i
ew5
!apacit3 = roduction
collecti9e
!/$%-<6/$
F%M$%+,
1
!alculate shadow >Fs
1
4*tart5
1
4*tart5
+et planned orders
1
4*tart5
1 1
4*tart5
+et production orders
1
4*tart5
1 1
4*tart5
/otal production
1 'eed to
add here
as *tart
+et unconfirmed sales
1
4*tart5
+et confirmed sales
1
4*tart5
+et total sales adding
1
4*tart5
+et %/ -! *M
1
+et %/ -! %+,
1
+et ,rder ?t3
1
4*tart5
4Manu
al 6un
7utton
5
1
4*tart5
4Manual 6un
7utton5
!op3 ,rder :t3 in da3 n@nAB
7%/!H
!/$F%M&-.$''B
1
!op3 ,rder :t3 in da3 n@nAB
!/$F%M&-.$''B
1
B. !hange planned /
production orders
1
4Manual
6un
7utton5
1
4Manual 6un
7utton5
". Displa3 unconfirmed sales
orders
1
4Manual
6un
7utton5
(. Displa3 confirmed sales
orders
1
4Manual
6un
7utton5
!ounter with attribute
6<F6<*H
1
!ounter with attribute
!C66<'/ V%-C<
1
!ounter with attribute D&V&D<
1
!ounter with attribute *</
1
!ounter with attribute
MC-/&-.
1
!ounter with attribute *C7
1
!ounter with attribute %DD
1
!ounter no attribute %DD
1
Set unlimited CTP outside horizon
/his macro sets !/ -imit to 9er3 high 9alue from currentA"( weeks
onwards. /his macro is run through process chain !/$!%-$?/.
using Data View !/$%DM&'/"##$%DM&'.
Determine workdays
/his Macro determines working da3 from current date to current
dateA)D 4"( weeks5 as per shipping calendar 4*D5 assigned to the
-ocation Master. Function !%-<'D%6 returns the calendar of the
t3pe E*DF that is used b3 the specified location in the specified
9ersion. /his macro is run through process chain !/$!%-$?/.
using Data View !/$%DM&'/(##$%DM&'.

Close Non working days
/his Macro sets the !/@Famil3 ke3 figure to non editable on 'on
2orking da3s. /his macro is assigned to default e9ent for Data 9iews
"##$%+, & "##$F%M&-..
Publish CTP

/his Macro triggers the e9ent !/$!,.%/( for *MFs &
!/$!,.%/" for %+,Fs & Families. /he e9ent !/$!,.%/(
is assigned to the rocess !hain !/$D(%!$*M &
!/$!,.%/" is assigned to the rocess !hain
!/$D(%!$F%M$%+,. /he macro is assigned to the data9iews
"##$*M & "##$F%M&-..

Drill up location

/his Macro does a drill@up using the specified -ocation. /his is run
manuall3/7atch Gob through data 9iews )## & "##$F%M&-..
Drill up material
/his Macro does a drill@up using the specified product. /his is run
manuall3/7atch Gob through data 9iews )## & "##$F%M&-..
LT adjustment

/his Macro shifts the !/ -imit@Famil3 9alue b3 the -ead /ime. /his
is run manuall3/7atch Gob through data 9iew )##.
et LT adjustment
/his Macro populates the Hlanned Deli9er3 /ime in Da3sI from the
roduct Master. /his is run manuall3/7atch Gob through data 9iew
)##.
!"erage details
/his Macro mo9ed the !/ -imit backward b3 -ead /ime. /his is run
manuall3/7atch Gob through data 9iew )##.
Set LT adjustment
/his is a collecti9e Macro which runs Drill Cp/Down, +et -/ & %9g.
detail to calculate the -ead /ime. /his is run through default e9ent of
the data 9iew )##.
#rder $ty % CTP

/his Macro deletes ,ld alert and generates new alert for *MFs. /his is
used in the rocess chain !/$%-<6/$F%M$%+,.
Calculate CTP alerts
/his Macro triggers the e9ent !/$%-<6/ for Families. /he e9ent
!/$%-<6/ is assigned to the rocess !hain
!/$%-<6/$F%M$%+,. /he macro is assigned to the data 9iews
)"# 4 for famil3 5 & )(# 4 for *M 5.
CTP & #rder 'uantity
/his Macro generates %lert if the !/ -imit@Famil3 ?t3 is less than
/otal *ales ,rder for Families & !/ -imit ?t3 is less than /otal
*ales ,rder for *Ms. /his is used in the collecti9e macro !/ =
,rder ?t3 !ollecti9e. /his is executed through data 9iew )"# 4for
famil35 & )(# 4for *M5.
CTP& #rder 'uantity collecti"e
/his is a collecti9e Macro which runs +et %/ -! %+, & !/ =
,rder ?uantit3 to generate !/ ,rder %lerts. /his is triggered
through process chain !/$%-<6/$F%M$%+,. /his is run through
data 9iew )"# 4for famil35 & )(# 4for *M5.
Capacity & Production

/his Macro generates %lert if the !/ -imit@Famil3 ?t3 is less than
/otal roduction. /his is used in the collecti9e macro !apacit3 =
roduction !ollecti9e.
Capacity & Production collecti"e

/his is a collecti9e Macro which runs +et lanned ,rder , +et
roduction ,rder , !alculate /otal roduction & !apacit3 =
roduction to generate !/ roduction %lerts for families. /his is
triggered through process chain !/$%-<6/$F%M$%+,. /his is run
through data 9iew )"#.
Calculate shadow ()s
/his Macro calculates H/otal roductionJ as roduction ,rder A
lanned ,rder. /his is run as start macro for the data 9iews )## &
"##$F%M&-..
et planned orders
/his Macro populates the lanned ,rder ?t3. /his is run as start
macro for the data 9iews )## & "##$F%M&-..
et production orders

/his Macro populates the roduction ,rder ?t3. /his is run as start
macro for the data 9iews )## & "##$F%M&-..
et uncon*irmed sales
/his Macro populates the Cnconfirmed *ales ,rder ?t3. /his is run
as start macro for the data 9iews )## & "##$F%M&-..
et total sales adding
/his Macro calculates the /otal *ales ,rder. /his is run as start
macro for the data 9iews )## & "##$F%M&-..
et !TP LC SM
/his Macro populates the incoming ,rder ?t3 for *MFs from the rod.
%llocation ,b8ect !/$*M. /his is run as start macro for the data
9iew )(#.

et !TP LC !#
/his Macro populates the incoming ,rder ?t3 for Families from the
rod. %llocation ,b8ect !/$%+,. /his is run manuall3/batch 8ob for the
data 9iew )"#.
et #rder 'uantity
/his Macro populates the incoming ,rder ?t3 for *MFs & Families
from the rod. %llocation ,b8ect !/$F%M. /his is run
manuall3/batch 8ob for the data 9iews "##$*M & "##$F%M&-. ./his
is also assigned to the *tart e9ent for the data 9iews "##$*M &
"##$F%M&-..

.

Copy order 'ty in day n+n,-
/his Macro copies the ,rder ?t3 to the !/@-imit Famil3 for the first
D working da3s starting from current da3 for Families. /his is run
manuall3/batch 8ob for the data 9iew "##$F%M&-..

Copy order 'ty in day n+n,- .atch
/his is a collecti9e macro used to run !op3 ,rder :t3 in da3 n@nAB
and related macros. /his is run manuall3/batch 8ob for the data 9iew
"##$F%M&-..
Change planned / production orders
/his Macro initiateFs manual capacit3 le9elling for roduction &
lanned orders 4all status5. &t is initiated for multiple orders. /his is
run manuall3/batch 8ob for the data 9iew )## & "##$F%M&-..

Display uncon*irmed sales orders
/his Macro generates report showing *ales ,rder & Deli9eries for the
manuall3 selected !olumns. /his will displa3 the unconfirmed *ales
,rder for the rele9ant product and target locations for selected
product/locations with lead time ad8ustment according to
transportation lane lead time. /his is run manuall3/batch 8ob for the
data 9iew )## & "##$F%M&-..
Display con*irmed sales orders
/his Macro generates report showing *ales ,rder & Deli9eries for the
manuall3 selected !olumns. /his will displa3 the confirmed *ales
,rder for the rele9ant product and target locations for selected
product/locations with lead time ad8ustment according to
transportation lane lead time. /his is run manuall3/batch 8ob for the
data 9iew )##.
Counter with attribute 0e*resh
Counter with attribute Current "alue
Counter with attribute Di"ide
Counter with attribute set

Counter with attribute Multiply
Counter with attribute S1.
Counter with attribute !dd
Counter with no attribute !dd

You might also like