Skip to Content
author's profile photo Former Member
Former Member

Clear/Free GFW_PRES_SHOW

Hi forum!

i have a dynpro with 3 containers, in PBO i use a module that calls FM GFW_PRES_SHOW using dynpro container 'C', how can i free/close/clear/refresh this container?, inside the FM, the object container(TYPE REF TO CL_GUI_CUSTOM_CONTAINER) is created using my container name (dynpro) and if i create the container object by myself the FM shows nothing,

Thanks in advance.

John.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 26, 2005 at 03:41 AM

    Hi,

    In PAI of the screen

    DATA: i_return_code TYPE i .

    CALL METHOD cl_gui_cfw=>dispatch

    IMPORTING return_code = i_return_code.

    save_ok = ok_code.

    CASE save_ok.

    WHEN 'BACK' OR 'END' OR 'CANC'.

    PERFORM exit_program.

    ENDCASE.

    CLEAR save_ok.

    ENDMODULE. " USER_COMMAND_0100 INPUT

    FORM exit_program.

    CALL METHOD o_grid_container->free.

    CALL METHOD o_grid1_container->free.

    CALL METHOD o_grid2_container->free.

    CALL METHOD cl_gui_cfw=>flush.

    IF sy-subrc NE 0.

    • Error in FLush

    ENDIF.

    LEAVE TO SCREEN 0.

    ENDFORM. " EXIT_PROGRAM

    This will work fine.

    Thanks & Regards,

    Judith.

    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.