Skip to Content

GFW ( Grahical Framework)

hi folks,

i'm using the gfw to make graphics, this works quite fine, even the customizing part of it (storing the settings of a graph), but my problem is that storing the data works for everything but not for the "Legend", my bar's have different colors but the legend always comes in grey, does anybody know what bundle and attributes i have to use to get colors for legends.

kind regards,

oliver

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2004 at 09:45 AM

    Hi Oliver,

    I think the following link will be of some use to your issue:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/abap faqs.faq#q-26

    I hope this helps.

    Hafeez

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Kai Gutenkunst

      Hi Kai,

      Thank you for your fast answer. Unfortunately my problem remains. Now, I am loading something I don't know where it is coming from.

      However the settings I am saving when I call the method save_customizing are never reloaded.

      In your answer, you fill the parameter "set" but I don't find it in the method documentation.

      Here is a summary of my code. What am I doing wrong? At each of the 3 orders, I check the retval value and it seems to be OK.

      Thanks for your help.

      ********PBO**************

      *initializing data containe

      IF DC IS INITIAL.

      CREATE OBJECT DC.

      IF SY-SUBRC <> 0. CLEAR DC. ENDIF.

      CALL METHOD DC->IF_DC_MANAGEMENT~INIT

      IMPORTING ID = MY_ID_AT_DC

      RETVAL = RETVAL.

      IF RETVAL <> CL_GFW=>OK.

      CALL METHOD CL_GFW=>SHOW_MSG EXPORTING MSGNO = RETVAL.

      CLEAR DC.

      ENDIF.

      ENDIF. "//dc is initial

      *fill data containe

      PERFORM FILL_DC.

      *initializing graphic proxy

      IF GP_inst IS INITIAL.

      CREATE OBJECT GP_INST.

      • create container in which to place graphic

      CREATE OBJECT CUSTOM_CONTAINER

      EXPORTING

      CONTAINER_NAME = 'GRAPHIC'.

      CALL METHOD GP_INST->IF_GRAPHIC_PROXY~INIT

      EXPORTING PARENT = CUSTOM_CONTAINER

      DC = DC

      PROD_ID = GUI_GP_PRES=>CO_PROD_CHART

      EVTCODE_LIST = it_EVTCODE_LIST

      IMPORTING RETVAL = RETVAL.

      IF RETVAL = CL_GFW=>OK.

      • set DC attributes

      CALL METHOD GP_INST->SET_DC_NAMES

      EXPORTING

      OBJ_ID = 'OBJID'

      DIM1 = 'X_VAL'

      DIM2 = 'Y_VAL'

      GRP_ID = 'GRPID'

      TEXT = 'TEXT'

      IMPORTING RETVAL = RETVAL.

      ENDIF. "// set dc attributes

      *it_groups contains the id's of the different data series

      if retval = cl_gfw=>ok.

      call method gp_inst->create_customizing

      exporting instance_id = graph_title

      grpids = it_groups

      IMPORTING RETVAL = RETVAL.

      .

      *load customization

      call method gp_inst->IF_GRAPHIC_PROXY~LOAD_CUSTOMIZING

      IMPORTING RETVAL = RETVAL.

      .

      endif.

      IF RETVAL = CL_GFW=>OK.

      *activate proxy

      CALL METHOD GP_INST->IF_GRAPHIC_PROXY~ACTIVATE

      IMPORTING RETVAL = RETVAL.

      ENDIF.

      *******PAI********

      call method gp_inst->IF_GRAPHIC_PROXY~SAVE_CUSTOMIZING

      IMPORTING RETVAL = RETVAL.

      .

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.