2010 Sep 07 10:27 AM
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
2010 Sep 07 10:40 AM
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
2010 Sep 07 11:12 AM
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.
2010 Sep 07 11:15 AM
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
2010 Sep 07 11:16 AM
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
2010 Sep 07 11:26 AM
>
> 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
2010 Sep 07 11:30 AM
2010 Sep 07 11:35 AM
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 = ' ' ).
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |