cancel
Showing results for 
Search instead for 
Did you mean: 

ALV standard button - need to move to right corner

Former Member
0 Kudos

Hi,

My requirement on ALV is, i have a set of custom button, which we want to display in the toolbar of ALV on the left hand side. and the standard button like 'View', 'Print Version' & 'Export' to the right corner. By default the standard buttons are on left. Pls suggest.

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

abhimanyu_lagishetti7
Active Contributor

code sample

DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .

l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Alv( ).

data:

l_VALUE type ref to Cl_Salv_Wd_Config_Table.

l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(

).

data: lr_fun type ref to CL_SALV_WD_FUNCTION_STD.

lr_fun

=

l_value->if_salv_wd_function_settings~GET_FUNCTION_STD( 'SALV_WD_VIEW_LOAD' ).

lr_fun->set_alignment( IF_SALV_WD_C_FUNCTION_SETTINGS=>ALIGN_RIGHT ).

Abhi

abhimanyu_lagishetti7
Active Contributor

http://help.sap.com/saphelp_nw04s/helpdata/en/42/fb69fc46a21bc8e10000000a11466f/content.htm

I think it is possible, use the documentation, there is a method called GET_FUNCTION_STD

and in the return type CL_SALV_WD_FUNCTION_STD, ther is a method called set_allignment

Abhi

Edited by: Abhimanyu Lagishetti on Jul 25, 2008 11:57 AM