Application Development 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: 

Separator Field in ALV

Former Member
0 Kudos

Hi everybody.

Is there any way to add a separator field whithin an ALV???

Is there any pre-built field or property for this requirement??

Thanks in advance.

4 REPLIES 4

Former Member
0 Kudos

Hi,

which ALV do you use?

regards, Dieter

0 Kudos

Any kind, i don't mind

0 Kudos

Hi Jose,

Well if you are working on the WebDynpro ABAP ALV, Then there is a class cl_salv_wd_fe_separator.

Here is a sample code.

DATA lr_seperator1 TYPE REF TO cl_salv_wd_fe_separator.

CREATE OBJECT lr_seperator1.

DATA sep TYPE REF TO cl_salv_wd_function.

sep = lo_config->if_salv_wd_function_settings~create_function( id = 'SEP' ).

sep->set_editor( lr_seperator1 ).

This will add a separator to the ALV toolbar.

Hope this helps.

Regards,

Gaurav.

0 Kudos

Hi Jose,

Well if you are working on the WebDynpro ABAP ALV, Then there is a class cl_salv_wd_fe_separator.

Here is a sample code.

DATA lr_seperator1 TYPE REF TO cl_salv_wd_fe_separator.

CREATE OBJECT lr_seperator1.

DATA sep TYPE REF TO cl_salv_wd_function.

sep = lo_config->if_salv_wd_function_settings~create_function( id = 'SEP' ).

sep->set_editor( lr_seperator1 ).

This will add a separator to the ALV toolbar.

Hope this helps.

Regards,

Gaurav.