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

cl_salv_table - maximize the output width

Former Member
0 Likes
3,285

Hello,

how can I maximize the output width of a table in cl_salv_table (see jpeg attached). I already used SET_MAX_LINESIZE (CL_SALV_DISPLAY_SETTINGS) but it doesn't work.

Thank you very much and Best Regards

Hello,

how can I maximize the output width of a table in cl_salv_table (see jpeg attached). I already used SET_MAX_LINESIZE (CL_SALV_DISPLAY_SETTINGS) but it doesn't work.

Thank you very much and Best Regards

8 REPLIES 8
Read only

rosenberg_eitan
Active Contributor
0 Likes
2,244

Hi,

Can you post the code for :

cl_salv_table=>factory(..........) .

Regards.

Read only

0 Likes
2,244

TRY.
       cl_salv_table=>factory(
         EXPORTING
           list_display = abap_false
         IMPORTING
           r_salv_table = l_salv_table
         CHANGING
           t_table      = it_result ).

     CATCH cx_salv_msg.                            
   ENDTRY.

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,244

Hi,

You have something like this ?

SALV_DEMO_TABLE_REAL_SIMPLE

Regards .

Read only

0 Likes
2,244

Sorry, I don't know what you mean.

My table output via SALV already works and my aim is to use the complete screen width for out (screenshot)

Best Regards

Read only

Former Member
0 Likes
2,244

Use GET_MAX_LINESIZE and then modify the linesize according to your requirement and then use SET_MAX_LINESIZE.

Read only

0 Likes
2,244

I already tried to solve it in that way, but it des not work. Using following code has no result on the output:    😞

data: l_linesize TYPE INT4.

l_ref_disp_set = l_salv_table->GET_DISPLAY_SETTINGS( ).
l_ref_disp_set->GET_MAX_LINESIZE( RECEIVING value = l_linesize ).

l_linesize = 132.
l_ref_disp_set->set_max_linesize( l_linesize ).

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,244

Hi,

Here is my attempt .

See program Y_R_EITAN_TEST_08_27 (attached)

Note the use of screen 100 and form display_salv_table_1 .

Regards.

The output use the full width of my screen:

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,244

Hi

Is this response work for you ?

Regards.