Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

2 ALV grids display in background

Hello,

I am using 2 ALV grids in my report output. But while running this is background it shows only one in the spool.

Can somebody please suggest the possible solutions ?

Following is the code I am using:-

  • Create grid to display deleted entries

CREATE OBJECT go_alv_grid

EXPORTING

i_parent = go_container

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

OTHERS = 5.

  • Create grid to display completed entries

CREATE OBJECT go_alv_grid2

EXPORTING

i_parent = go_container2

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

OTHERS = 5.

  • Prepare fieldcatalog

PERFORM perpare_fieldcat.

  • Set layout

lv_layout-cwidth_opt = 'X'.

  • Call display for deleted entries

CALL METHOD go_alv_grid->set_table_for_first_display

EXPORTING

is_layout = lv_layout

CHANGING

it_outtab = gt_wflog

it_fieldcatalog = gt_fldcat

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

  • Call display for completed entries

CALL METHOD go_alv_grid2->set_table_for_first_display

EXPORTING

is_layout = lv_layout

CHANGING

it_outtab = gt_wflog_rec

it_fieldcatalog = gt_fldcat

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

Please suggest.

Former Member
Not what you were looking for? View more on this topic or Ask a question