Skip to Content
0
Former Member
Jul 10, 2006 at 02:18 PM

ALV Grid Display - Cannot exit

404 Views

Experts,

I have an ALV grid displayed correctly. The code is below. However, when the alv display is executed and displayed, I cannot exit without keying in another transaction. All of my tool bar icons are underintensified. I think I need to do something in my PF-STATUS. Can anyone point me in the right direction?

Thank-You.

report zmm_zrecipes_errs_query.

data: ok_code like sy-ucomm,

lt_zrecipes_errs like table of zrecipes_errs,

grid1 type ref to cl_gui_alv_grid,

g_custom_container type ref to cl_gui_custom_container.

start-of-selection.

******************************************************************

  • Fill report table and call screen to display alv *

******************************************************************

select * from zrecipes_errs into table lt_zrecipes_errs.

call screen 100.

******************************************************************

  • Process Before Output Modules *

******************************************************************

module setup output.

set pf-status 'MAIN100'.

if g_custom_container is initial.

create object g_custom_container

exporting container_name = 'MY_CONTROL_AREA'.

create object grid1

exporting i_parent = g_custom_container.

call method grid1->set_table_for_first_display

exporting

i_structure_name = 'ZRECIPES_ERRS'

changing

it_outtab = lt_zrecipes_errs.

endif.

endmodule. "setup OUTPUT

*******************************************************************

  • Process After Input Modules *

*******************************************************************

module check_exit input.

case ok_code.

when 'EXIT'.

leave program.

endcase.

clear ok_code.

endmodule. "check_exit INPUT