on 05-25-2005 4:25 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.