cancel
Showing results for 
Search instead for 
Did you mean: 

separate Buttons

Former Member
0 Kudos

Dear experts,

how can i separate Buttons from each other like this...

Button1 Space Button2 or Button1 | Button2

Thanks and best regards

René

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Rene,

To separate 2 buttons: Create 2 buttons, set the layout of the container ( in which the buttons are inserted ) according to your need. If you select matrix layout, the buttons will be separated from each other.

Regards

Arjun

Former Member
0 Kudos

hi all,

but my buttons are in an alv, how can i do this there ?

Thanks and regards

René

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>but my buttons are in an alv, how can i do this there ?

Well that's an important fact that you probably should have mentioned up front. So are you using the the table model (CL_SALV_WD_CONFIG_TABLE) to generate buttons via the IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION? If so just add another function but pass in an object of type cl_salv_wd_fe_separator.

Former Member
0 Kudos

hi Thomas,

i did as you told me to do but now i got a problem.

All the separators are at the left side and the buttons on the right side.

But i want it like this.

Separator Button1 separator Button2 etc.

Can you please give me a hint ?

Thanks and best regards

René

Edited by: René Hölterling on Jan 15, 2009 10:51 AM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If you created right-side buttons then to add your separator, you would use IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION_RIGHT instead.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Use a ButtonRow:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ab884118aa1709e10000000a155106/frameset.htm

You can then insert separators between the buttons or groups of buttons.