Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REUSE_ALV_GRID_DISPLAY - Visualization problem

Former Member
0 Likes
463

Hi all,

  In my system, i used f.m. REUSE_ALV_GRID_DISPLAY, giving it the parameters as below:

*&--- Create fieldcat

              CLEAR: lwa_fieldcat.

              lwa_fieldcat-row_pos   = '1'.

              lwa_fieldcat-col_pos   = '1'.

              lwa_fieldcat-fieldname = 'DESCRIPTION'.

              lwa_fieldcat-tabname   = 'LT_DISPLAY'.

              lwa_fieldcat-seltext_m = 'Header Texts'.

              lwa_fieldcat-outputlen = 255.

              APPEND lwa_fieldcat TO lt_fieldcat.

*&--- Create layout

              CLEAR: lwa_layout.

              lwa_layout-zebra = 'X'.

              lwa_layout-colwidth_optimize = 'X'.

*&--- Display data in a POPUP

              CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

                   EXPORTING

                        i_callback_program    = sy-cprog

                        i_grid_title          = 'Shipping Instructions'

                        is_layout             = lwa_layout

                        it_fieldcat           = lt_fieldcat

                        i_screen_start_column = 10

                        i_screen_start_line   = 5

                        i_screen_end_column   = 100

                        i_screen_end_line     = 20

                   TABLES

                        t_outtab              = lt_display

                   EXCEPTIONS

                        program_error         = 1

                        OTHERS                = 2.

in order to display it as a popup.

All works fine in development system, but in quality system I am getting the popup, but no data/ALV header is displayed in it.

Could you please advice on what could go wrong?

I have got a similar thread:

But it was not answered.

Best Regards,

Debo.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
433

I got the issue resolved.

I just removed sy-cprog to space in debugging for the parameter i_callback_program and it worked. But I have no idea as to how it is working in development system and not Quality.

Best Regards,

Debo.

1 REPLY 1
Read only

Former Member
0 Likes
434

I got the issue resolved.

I just removed sy-cprog to space in debugging for the parameter i_callback_program and it worked. But I have no idea as to how it is working in development system and not Quality.

Best Regards,

Debo.