on 03-02-2009 3:02 PM
Hi All,
I am quite new to using the Webdynpro ALV and would like to know how we can set a horizontal scrollbar in an ALV as my alv has a lot of columns.
Appreciate your responses,
Chaitanya.
You just need to set the scrollable column property:
data l_salv_wd_table type ref to iwci_salv_wd_table.
l_salv_wd_table = wd_this->wd_cpifc_alv( ).
data l_table type ref to cl_salv_wd_config_table.
l_table = l_salv_wd_table->get_model( ).
l_table->if_salv_wd_table_settings~set_scrollable_col_count( 8 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lekha,
I have one input field and one submit button and display alv. on action method of submit button , i wrote a code,
"Used Component Instantiate ( i.e. SALV )
DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_SALV( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_salv( ).
DATA: r_table TYPE REF TO cl_salv_wd_config_table.
CALL METHOD LO_INTERFACECONTROLLER->GET_MODEL
RECEIVING
VALUE = r_table.
"Set up ALV Scrollable Column......
CALL METHOD R_TABLE->IF_SALV_WD_TABLE_SETTINGS~SET_SCROLLABLE_COL_COUNT
EXPORTING
VALUE = 5.
DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= r_table.
"Set up ALV Header Text...........
DATA: HVAL TYPE REF TO CL_SALV_WD_HEADER.
CREATE OBJECT HVAL.
CALL METHOD HVAL->SET_TEXT
EXPORTING
VALUE = 'HeAdEr'.
CALL METHOD LR_TABLE_SETTINGS->CREATE_HEADER
RECEIVING
VALUE = HVAL.
and as u said i set applicaiton parameter WDTABLENAVIGATION to SCROLLBAR. But it doesnt effect me in out put ....
Thanks,
Saurin Shah
Hi Lekha,
First thing i have everything on same view. I have sales order no as input and gettting all details from VBAP table so around 30 to 35 column. ALV is in View Container and we dont have option to set width of this View Container. Actually i put View Container in group bt after u asked i take it out bt still it doesnt give me effect...
Thanks
Saurin..
Hi,
If this ALV is inside Group or Transparent contianer, then set the width for this also.
Aslo change the layout of the ROOTUI to matrixlayout and set widht as 100%.
Or
Try to give one column as Static(freezed) and check the ALV.
Set the ALV width using method SET_WIDTH of if_wd_salv_table_settings.
It should work fine.
Regards,
Lekha.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.