cancel
Showing results for 
Search instead for 
Did you mean: 

ALV- webdynpro.

Former Member
0 Kudos

Hi all.

I am working on webdynpro ALV.

Is there any way in which we can have ALV list display in web dynpros?.

If yes, let me know with a sample code if possible.

Please cooperate.

Thanks & regards,

Prati.

Accepted Solutions (0)

Answers (2)

Answers (2)

arjun_thakur
Active Contributor
0 Kudos
former_member40425
Contributor
0 Kudos

Hi prati,

Go to this link.

/docs/DOC-8715#section1 [original link is broken]

You will find tutorial on ALV.

Thanks and Regards,

Rohit

Former Member
0 Kudos

hi.

using salv_wd_table, we can display an ALV table....

How I can display a list in webdynpro?

For eg as we do it in ABAP reporting using function REUSE_ALV_LIST_DISPLAY.

thanks,

Prati.

arjun_thakur
Active Contributor
0 Kudos

Hi,

In wd-abap you need to use component salv_wd_table to display the result in ALV. You should get the required data in a node and then need to bind it with the DATA node of the salv_wd_table component.

Just follow the links given in my previous post. That will help.

Regards

Arjun

Former Member
0 Kudos

hi.

your point is clear to me.

I m already using the same in my programs.

Let me give you the details of what i m coding for.

I am taking bukrs and budat as input and depending on that m selecting corresponding entries from bsik,bsak,bkpf tables.

Then i make some calculations on amounts.

I then need to display a list say as follows:


amount paid within   due date       ..(calculated amount will appear here).
amount paid beyond due date             ..(calculated amount will appear here).
total amount                                   ..(calculated amount will appear here).

Later, when i click on a particular amt, i get a detailed alv table displaying the information in different fields.

Now, the summary that i have to display should obviously not appear as an ALV table.

I hope i was clear.

Thanks and regards,

Prati.

Former Member
0 Kudos

Hi Prati,

Try this.

Declare UI element table in view. in this table you can populate your three row as given.

amount paid within   due date       ..(calculated amount will appear here).
amount paid beyond due date             ..(calculated amount will appear here).
total amount                                   ..(calculated amount will appear here).

Now from Layout->Table->Events->OnleadSelect Declare one event. in that event you can write code for displaying further details in ALV or simple table. For displaying in ALV use this component salv_wd_table.

Regards

Vishnu Gupta

Former Member
0 Kudos

Thanks vishnu.

I am still confused.

I want to display different details depending upon which column the user clicks on.

With the solution that you told me, is it possible?

And if yes, then how do i know on which value, the user has clicked?

regards,

Prati.

Former Member
0 Kudos

Hi Prati,

You can use link to action cell editor for your column. You can then implement the 'onClick' event and write the following code to get the selected amount.

* Get the index of the selected row
  ind = r_param->index  .

* Get element
  l_elem = l_node->get_element( ind ) .

 l_elem->get_attribute( exporting name = 'ATTRIBUTE NAME'
                  IMPORTING value = l_value   ).

To create the link to action in your ALV column use the following code

* Column Settings
  lr_column_settings ?= l_value                  .
  lt_columns = lr_column_settings->get_columns( ).

  LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
      WHEN 'CA_SUBJECT'.
        lr_column_header = ls_column-r_column->get_header( )  .
        lr_column_header->set_ddic_binding_field(
           if_salv_wd_c_column_settings=>ddic_bind_none )     .
        lr_column_header->set_text( 'Title' )                  .

data:lr_link_to_action  TYPE REF TO cl_salv_wd_uie_link_to_action.

* Create Link to Action
        CREATE OBJECT lr_link_to_action.
        lr_link_to_action->set_text_fieldname( ls_column-id )   .
        ls_column-r_column->set_cell_editor( lr_link_to_action ).
* Set the column width
        ls_column-r_column->set_resizable( value = abap_true )  .
        ls_column-r_column->set_width( '200' ).

ENDCASE.
ENDLOOP.

Former Member
0 Kudos

Hi Radhika.

In my application for the summary output as i have shown above i m using a simple table.

I have a single row with 3 columns.

Is there a solution that provides me with a functionality in which different data is displayed on selecting data from different columns.

Link to action can be used with ALV table.

Now that a simple table is used, could you suggest me something applicable?

Or have I simply to use an ALV table?

Thanks,

Prati.

Former Member
0 Kudos

Hi Prati,

You can use link to action with the standard table uielement also.

Right click on the column and create a cell editor of type 'link to action'.

Radhika.

Former Member
0 Kudos

Hi..

Thanks Radhika.

I am done with it!

Regards,

Prati.