cancel
Showing results for 
Search instead for 
Did you mean: 

Clear/Free GFW_PRES_SHOW

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.