2017 Oct 27 6:17 PM
I want to draw comparative curve graphs using ABAP given in below format
2017 Oct 27 10:39 PM
2017 Oct 28 6:01 AM
Facing issue to draw second graph (red color ) after point 3 of X axis graph is going in continue format. I want to stop continue plotting of graph.
I am using STAT_GRAPH_REF function module.
2017 Oct 28 9:01 PM
With STAT_GRAPH_REF, each "curve" must have the same number of points. So, it's impossible to achieve your goal using this function module.
Instead, use STAT_GRAPH, which allows any number of points in each curve.
2017 Oct 30 5:43 AM
Hi Sandra,
Is it possible to draw comparison curve graph using STAT_GRAPH as I have to draw actual curve and planned curve graph.
2017 Oct 30 6:28 AM
I thought that my answer was clearly Yes.
So, to be more clear, if you want something like:
Then use a code like this one:
DATA: OPTS TYPE TABLE OF char80,
BEGIN OF DATA OCCURS 1,
X TYPE I,
Y TYPE I,
END OF DATA.
APPEND '$2 ' TO opts. " the 1st curve has 2 points
APPEND 'COLOR=5' TO opts. " MAGENTA
APPEND '$3 ' TO opts. " the 2nd curve has 3 points
APPEND 'COLOR=4' TO opts. " GREEN
" the 1st curve has 2 points
data-x = 2. data-y = 4. APPEND data.
data-x = 4. data-y = 5. APPEND data.
" the 2nd curve has 3 points
data-x = 1. data-y = 8. APPEND data.
data-x = 3. data-y = 7. APPEND data.
data-x = 5. data-y = 4. APPEND data.
CALL FUNCTION 'STAT_GRAPH'
TABLES
opts = opts
data = data.
2017 Oct 30 11:22 AM