Gantt Chart

courtesy of Mr. Arya Nugraha

We can display Gantt chart by using function module GRAPH_GANTT, but first of all we need to know the parameters we will use in this function module. (forĀ  more example, please go to transaction code GRAL)

ITEM (include structure GGAIT)

itext filled with description text for each
ucolor filled with the color of the description text
it_id filled with sequence number of each row

ELEM (include structure GGAEL)

itemno filled with sequence number of each row
el_id filled with sequence number of each row
txt filled with text as the remark for each bar in chart
beg filled with starting point (start date)
dur filled with duration that will be interpreted as the length of each bar
heigh filled with font size
bakgr filled with color of bar
bordr filled with color of bar’s border
brdon filled with ‘1′ if border wants to be shown
filld filled with ‘1′ if bar wants to be colored

MIST (include structure GGAMI)

this internal table will only be filled if you want to display some milestones in chart

LGEL (include structure GGAEL)

this internal table will only be filled if you want to display legend in chart

LGMS (include structure GGAMI)

this internal table will only be filled if you want to display milestones’ legend in chart

MSGT (include structure GGABA)

all of the changes made within the chart will be stored in here

these codes below is the example on how to use the function.

call function ‘GRAPH_GANTT’
exporting
wheader = ‘Maintenance Day / Window Maintenace Report’
ttitle = ld_new_title
ttext = ‘Description’
tunit = ‘W’
tlength = ‘70′
glength = ‘200′
modif = fu_elem “fill with ‘X’ if you wish to change the chart after it’s displayed
tmbeg = d_tmbeg
tmend = d_tmend
vgrid = ‘X’
set_focus = ‘X’
legend = ‘PIC’
tables
item = item
elem = elem
mist = mist
lgel = lgel
lgms = lgms
msgt = msgt.

~ by poyay on July 8, 2008.

One Response to “Gantt Chart”

  1. Great post…
    Ilmu baru nih. thanx

Leave a Reply