Skip to Content

Save more layouts in a chart

Hello,

I created a program that displays graphics.

This program is similar to GFW_DEMO_PRES1.

The program works well.

I have been asked to save different layouts of the graph.

I ask if you can save multiple layouts and not an only layout.

Call method *IF_CUSTOMIZING~SAVE saves only a layout?

How do I save multiple layouts and how can I retrieve it?

Thanks.

CV

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Apr 22, 2011 at 12:14 PM

    When you save the customizing, you save an instance.

    You have to use get_bundle to retreive your data.

       call method zgp_inst->if_graphic_proxy~get_cu_bundle
          exporting
            port        = if_graphic_proxy=>co_port_chart
            bundle_type = cl_cu=>co_clsid_values
            key         = l_key
          importing
            bundle      = l_bundle.
        if l_first is initial.
           l_first = 'X'.
           l_bun_sav ?= l_bundle.
        endif.
    

    But I think you have to get bundle for each class of the graphic.

    Christophe

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 05, 2011 at 07:43 AM

    Solved it.

    When I create the various objects (BUNDLE_DISPLAY, BUNDLE_DRAWING, BUNDLE_VALUES...) I get the pgmname (SY-REPID) as instance prefix (in INSTANCE_ID).

    In this way you can save the layout for a specific user with method IF_GRAPHIC_PROXY~SAVE_CUSTOMIZING of class CL_GUI_GP_PRES.

    The layout chart was saved in tables CFWCU*.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 05, 2011 at 07:44 AM

    Solved

    Add comment
    10|10000 characters needed characters exceeded