cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive ALV in webdynpro

Former Member
0 Kudos

Hi,

Can anybody help me how to implement Interactive ALV in web dynpro, for primary and secondary views default Excel download and Print options should be there. On the first view total count no. will be there after clicking of that count the second view should display with deatil. can anybody help me how to do this implementation or pls provide if any document is there.

Regards,

Raj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

rwegf

Former Member
0 Kudos

Hi,

In the 1st view deisng the Input fields for selection.

In the 2nd view, based on the selected values get the list of values into a table as header details.

In the 3rd view, based on the selected row of the header table display the item details.

Consider 2nodes, header and item.

Create two component usages for header and item.

Deisgn the layout using the view container Ui element in 2nd and 3rd views.

Bind the respective nodes to the respective ALV DATA nodes.

When firing the 3rd view from 2nd view pass the selected row of the header ALV table or

You can store the selected row globally and use the same in the 3rd view. But you need to clear that record for consistent data.

Based on this filter the main table and get the item details and bind it to the item node.

Like this you have to do....

Regards,

Lekha.

Former Member
0 Kudos

Hi Rajasekhar,

You can try this way -

1) Create 'Link to Action' Cell editor for the count column in the ALV.

2) Create an OnAction event for this. In this event you can write the code to navigate to your second view.

To create a Link To Action in the ALV column you can use the following code.

LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
      WHEN 'attribute name'.

* 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.

To create the Eventhandler for this Column:

i) Goto methods tab

ii) Select Method type as 'Event Handler'

iii) Select the Event as 'OnClick'

iv) Here you can write the code to navigate to your second view.

In ALV you also have a standard export button using which you can download you ALV table contents into Excel.

Hope this helps.

Regards,

Radhika.

Edited by: Radhika Vadher on Apr 22, 2009 11:45 AM

Edited by: Radhika Vadher on Apr 22, 2009 11:48 AM