I have 2 screens 7000 and 7001, 7000 screen contains one button when we click on it it has to navigate to the 7001 screen, but it was not working as expected. SCREEN 7000 also have some details to display as an alv.
screen was navigating to screen 7001 but the data was not getting refresh. can any one help on it. I am using alv grid container. for both the screens i am using same alv grid
screen 7000 PAI: WHEN 'DISPLAY'. call SCREEN 7001. screen 7001 PBO: GET REFERENCE OF m_instance->gt_field INTO lr_output. CREATE OBJECT gr_grid EXPORTING i_parent = cl_gui_container=>default_screen. CALL FUNCTION 'ZLSO_GENERATE_GENERIC_FIELDCAT' EXPORTING ir_input_value = lr_output IMPORTING et_fieldcat_fcat = lt_fldcat EXCEPTIONS xc_invalid_type = 1 xc_empty_table = 2 xc_unknown_error = 3 OTHERS = 4. IF sy-subrc <> 0. MESSAGE ' Error in generating ALV' TYPE 'E'. ENDIF. CALL METHOD gr_grid->set_table_for_first_display EXPORTING is_layout = gs_layout CHANGING it_fieldcatalog = lt_fldcat it_outtab = m_instance->gt_field. gr_grid->refresh_table_display( ).