Skip to Content

How to refresh Graph

Hi Experts, Good Day & Happy New Year. 😊

I have developed a graphical report with the help of GRAPHICS_GUI_CE_DEMO. I have developed this in module pool programming.

My coding is like as below.

MODULE USER_COMMAND_0101 INPUT. " (PAI - 101)

CASE SY-UCOMM.

WHEN 'EXEC'.

" Business logic

" I got required output data into one internal table.

CALL SCREEN 301.

WHEN 'XYZ'.

ENDCASE.

ENDMODULE.

* -----------------------------------------------------------------------------------

MODULE STATUS_0301 OUTPUT. " (PBO - 301)

SET PF-STATUS 'GRAPH1'.

SET TITLEBAR 'TITLE3'.

" Here I have written the code that need to display graph

ENDMODULE.

* -----------------------------------------------------------------------------------

MODULE USER_COMMAND_0301 INPUT.

CASE SY-UCOMM.

WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.

CLEAR: SY-UCOMM.

CLEAR : G_CE_CONTAINER,

L_IXML_DATA_DOC,

L_IXML_CUSTOM_DOC,

L_OSTREAM,

L_XSTR,

G_CE_VIEWER.

LEAVE TO SCREEN 101.

ENDCASE.

ENDMODULE. " USER_COMMAND_0301 INPUT


When I am executing graph for first time from screen 101, it's displaying fine. But once I go back to 101 and if I am executing again with new inputs the graph is not getting refreshed and it is displaying the previous graph only. All the data in internal tables refreshed and got new data related to new inputs but graph is not getting refreshed.

So, experts please guide me what might be the problem and solution for that. It seems I have to refresh some object. But I refreshed Container, Viewer object, Series, Element all these objects, but no change.

If still my query is not clear, please reply with required data.

Thanks & Regards,

- Vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 02, 2014 at 08:54 AM

    Hi Experts,

    Please help me on this.

    Thank you,

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

    • Clemens Li VIJAYKRISHNA GUDALA

      Hi Vijaprakasha,


      yes, most container objects inherit their own destructor method called FREE which is defined in Class CL_GUI_CONTAINER, in your case,



      G_CE_CONTAINER2->FREE( ).

      will destroy the GUI container. FREE G_CE_CONTAINER2 will just clear some memory space, a task that is performed automatically by the built-in garbage collector.

      Regards,

      Clemens



  • Posted on Jan 01, 2014 at 05:06 PM

    Hi Vijaya Krishna,

    Wish You Happy New year

    You Can Use Free Container. and Flush.

    Regards,

    Hiriyappa

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Hiriyappa,

      Thanks for your wishes and reply.

      I tried to free container object and flush, but no change. I have written as below,

      MODULE USER_COMMAND_0301 INPUT.

      CASE SY-UCOMM.

      WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.

      CLEAR: SY-UCOMM.

      CLEAR : G_CE_CONTAINER,

      L_IXML_DATA_DOC,

      L_IXML_CUSTOM_DOC,

      L_OSTREAM,

      L_XSTR,

      G_CE_VIEWER.

      FREE : G_CE_CONTAINER,

      G_CE_CONTAINER2,

      G_CE_VIEWER,

      L_IXML_DATA_DOC,

      L_IXML_CUSTOM_DOC,

      L_OSTREAM,

      G_IXML_SF,

      G_IXML.

      CL_GUI_CFW=>FLUSH( ).

      LEAVE TO SCREEN 101.

      ENDCASE.

      ENDMODULE.


      Please help me, it's high priority issue for me.


      Thanks & Regards,

      -Vijay

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.