Skip to Content
author's profile photo Former Member
Former Member

ALV standard button - need to move to right corner

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,

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 25, 2008 at 06:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 10:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.