‎2007 Jul 09 6:27 AM
Hi,
I have a problem with ALV report push buttons.
Report works OK but all ALV buttons- Sort, Filter, Sum etc. give
Program errors 0K 534 pop-up and then program termination.
Please help me.
Thanks,
Mila.
‎2007 Jul 09 8:00 AM
‎2007 Sep 12 10:38 PM
This error 0K 534 ( using the alv toolbar ) occurs when the grid, container and the internal table that is used in "grid->set_table_for_first_display" aren't declared in the top include.
...
Example:
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'TREE_CONTAINER'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
IF grid IS INITIAL.
CREATE OBJECT grid
EXPORTING
i_parent = container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
itab_log[] = ti_log[].
CALL METHOD grid->set_table_for_first_display
EXPORTING
i_structure_name = 'YSLTBAPIRETURN'
is_layout = wa_layout
CHANGING
it_outtab = itab_log
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
...
In this case itab_log, grid and container must be on the top include of this program.
Best Regards,
Rodrigo Jabour.