Application Development 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: 

Save more layouts in a chart

former_member243716
Active Participant
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

former_member243716
Active Participant
0 Kudos

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*.

former_member243716
Active Participant
0 Kudos

Solved