05-24-2022 9:09 AM
Hello all,
after the release upgrade to version 2021, all of a sudden the table of an ALV grid is not displayed anymore.
Release 1909:
Release 2021:
There were no changes made to the code. The Container Name equals the name of the Custom Control in the Dynpro, the output table and the field catalogue are populated correctly.
Do you have any idea what could be the problem? Did something change with the Upgrade?
Code:
IF gs_custom_container IS INITIAL.
CREATE OBJECT gs_custom_container
EXPORTING
container_name = gs_container.
CREATE OBJECT gs_grid
EXPORTING
i_parent = gs_custom_container.
CALL METHOD gs_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'GS_POPGRP'
is_layout = gs_layout
CHANGING
it_outtab = gt_popgrp
it_fieldcatalog = gt2_fieldcat.
CALL METHOD gs_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ENDIF.
06-08-2022 1:33 PM
We found the solution: We removed the value 'X' from the layout parameter frontend (structure lvc_s_layo-frontend) which is passed to the set_table_for_first_display method. If we leave it empty everything works as expected in the new release version 2021.
05-24-2022 9:27 AM
05-24-2022 9:44 AM
Hi, this problem occurs in SAP Business Client 7.70 / SAP Logon. So we're talking about a regular dynpro and not a web dynpro / Fiori Application here
05-24-2022 12:58 PM
ALV still exists, so the culprit is probably your code. GS_POPGRP is an existing DDIC structure in SE11?
05-24-2022 1:05 PM
Not in SE11, but it exists as a locally defined structure in the report, so there should be no problem with it...
06-08-2022 1:33 PM
We found the solution: We removed the value 'X' from the layout parameter frontend (structure lvc_s_layo-frontend) which is passed to the set_table_for_first_display method. If we leave it empty everything works as expected in the new release version 2021.