‎2009 Jun 22 12:47 PM
Dear all
I hav used GFW_PRES_SHOW this RFC for getting the graph its working fine.
I have used presentation type as - gfw_prestype_vertical_bars
Default bar color is Yellow , blue , green .
If any function module avail for change color? or plz give the solution for change the color.
thanks
‎2009 Jun 23 11:48 AM
Hi ,
U can copy the function module "GFW_PRES_SHOW_MULT " . Do the following change to get the color what u want.
changes:
Tables: add the <colors_table> as a table.
so_ure code_:
Before the code " color = index + 2.
if color = 65. color = 1.
elseif color > 65. color = 2."
write a own code to take the color value from table<colors_table> and assign the value to the color.
Regards,
Rani.
‎2009 Jun 22 12:51 PM
‎2009 Jun 22 1:11 PM
I tried but color is not getting changed.. Plz give any other solution
‎2009 Jun 22 2:28 PM
hi, did you try to pass the Tables parameter with the following values:
2 column table with color keys and color values
Column 1: Color key
Column 2: Color values
DATA: BEGIN OF PALETTE OCCURS 0,
KEY(20),
VAL(20),
END OF PALETTE.
PALETTE-KEY = 'GENBACK'.
PALETTE-VAL = 'BLACK'.
APPEND PALETTE.
CALL FUNCTION 'GRAPH_BUSG_COLOR_SET'
EXPORTING
PALETTE_ID = '1'
TABLES
PALETTE = PALETTE.
please check the Tables long text for the possible values
Then call your FM for the graph.
‎2009 Jun 23 5:05 AM
Dear sir
I tried this function module also..but color is not getting changed
‎2009 Jun 23 11:48 AM
Hi ,
U can copy the function module "GFW_PRES_SHOW_MULT " . Do the following change to get the color what u want.
changes:
Tables: add the <colors_table> as a table.
so_ure code_:
Before the code " color = index + 2.
if color = 65. color = 1.
elseif color > 65. color = 2."
write a own code to take the color value from table<colors_table> and assign the value to the color.
Regards,
Rani.
‎2009 Jun 24 4:00 AM