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

No Horizontal & Vertical Lines using CL_SALV_TABLE

Former Member
0 Likes
1,483

Hi

I am using CL_SALV_TABLE for ALV output.

In my case I need to display ALV without Horizontal Lines and Vertical Lines.

Can anyone tell me how to do this using CL_SALV_TABLE

Hi

I am using CL_SALV_TABLE for ALV output.

In my case I need to display ALV without Horizontal Lines and Vertical Lines.

Can anyone tell me how to do this using CL_SALV_TABLE

7 REPLIES 7
Read only

MarcinPciak
Active Contributor
0 Likes
1,243

data gr_settings TYPE REF TO cl_salv_display_settings.

gr_settings = gr_salv_tab->get_display_settings( ).
gr_settings->set_striped_pattern( abap_true ).

Regards

Marcin

Read only

0 Likes
1,243

Thanks for your timely help.

Can you tell me what is gr_salv_tab.

When I am execute this statement my ALV get error Like

Access via 'NULL' object reference not possible.

Read only

0 Likes
1,243

The error resolved.

But still i am getting the ALV with gridlines(horizontal and vertical).

I want No horizontal vertical lines in my ALV.

Edited by: bharani1104 on Sep 7, 2010 12:16 PM

Read only

0 Likes
1,243

This is a reference to your SALV table which you get with the factory method


data gr_salv_tab type ref to cl_savl_table.

 CALL METHOD cl_salv_table=>factory
      EXPORTING
        r_container  =...
      IMPORTING
        r_salv_table = gr_salv_tab
      CHANGING
        t_table      = ...

"here you change your settings to have stripped pattern
...

"then display ALV
  gr_salv_tab->display( ).

Regards

Marcin

Read only

0 Likes
1,243

>

> The error resolved.

>

> But still i am getting the ALV with gridlines(horizontal and vertical).

> I want No horizontal vertical lines in my ALV.

>

> Edited by: bharani1104 on Sep 7, 2010 12:16 PM

Come on, you don't need to be a developer to figure it out


gr_settings->set_striped_pattern( abap_false ). 

Regards

Marcin

Read only

0 Likes
1,243

Thanks Pciak,

I resolved my problem.

Read only

0 Likes
1,243

But I resolved using the following code


* set horizontal lines off
  gr_settings->set_horizontal_lines( value = ' ' ).
* set Vertical lines off
 gr_settings->set_vertical_lines( value = ' ' ).