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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    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 a 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 a comment
    10|10000 characters needed characters exceeded

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

    Solved

    Add a comment
    10|10000 characters needed characters exceeded

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.