Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding graph

Former Member
0 Likes
1,161

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
948

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.

6 REPLIES 6
Read only

Former Member
0 Likes
948

Try FM 'GRAPH_BUSG_COLOR_SET'

Read only

Former Member
0 Likes
948

I tried but color is not getting changed.. Plz give any other solution

Read only

0 Likes
948

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.

Read only

Former Member
0 Likes
948

Dear sir

I tried this function module also..but color is not getting changed

Read only

Former Member
0 Likes
949

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.

Read only

0 Likes
948

Dear Rani

Its working fine...

Thank you