on 02-16-2010 11:15 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.