Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV Usage question

i am learning webdynpro so i am new to this.

and i have a question

i have defined a usage to display my data with a alv table.

in the alv usage interfacecontroller i mapped my context node with the data node of the ALV

so i can display my data in the table "lt_liste" with:

DATA lo_nd_alv_list_data TYPE REF TO if_wd_context_node.

DATA lo_el_alv_list_data TYPE REF TO if_wd_context_element.

DATA ls_alv_list_data TYPE wd_this->element_alv_list_data.

lo_nd_alv_list_data = wd_context->get_child_node( name = wd_this->wdctx_alv_list_data ).

lo_el_alv_list_data = lo_nd_alv_list_data->get_element( ).

lo_nd_alv_list_data->bind_table( lt_liste ).

all this works fine.

my problem:

if the user chose another option, i want to display another table "lt_liste1"

this doesnt work because "lt_liste" has another type thand "lt_liste1" and only "lt_liste" is mapped with the alv usage

lo_nd_alv_list_data->bind_table( lt_liste1 ).

doesnt work cause liste1 has the wrong type...

second question:

how can i add a scroll bar to my alv list???

third question:

are there any tutorials or examples at sdn for this ??

thanks

replied

Hi,

Regarding scrollbar in ALV, please go to the web dynpro application, then to the properties Tab.

Please select WDTABLENAVIGATION from the F4 help and give the value as 'SCROLLBAR'.

This will set the scrollbar to the ALV.

Thank you.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question