cancel
Showing results for 
Search instead for 
Did you mean: 

Data duplicating in ALV

Former Member
0 Kudos

Hi,

I have an application wherein I am displaying an ALV. The logic to fetch the data is written in the WDDOMODIFY of the view( Because the data is changed based on the user criteria). The ALV has the hyperlink also on click of which a PDF is opened. I have a problem, when I click on this hyperlink or any other button on the ALV(like export to excel etc.). the current data that is displayed in the ALV, is duplicated and the no of rows get doubled. Please suggest what should I do.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In your BIND_ELEMENTS or BIND_TABLE method......use set_initial_elements = abap_true


  call method node_sales_item->bind_elements
    exporting
      new_items            = it_final
      set_initial_elements = abap_true.

Former Member
0 Kudos

When you are clicking on Hyperlink - DOMODIFYVIEW will be triggered again, so same data will be fetched and appende to context node bound to ALV, hence duplicate data

Code your data fetching part in domodify view such that it is only called when required..

Also...Try Debugging the problems before posting..

Regards

Manas Dua