on 08-17-2011 4:32 AM
Hi Experts,
I have created popup window selection screen, if I click on action button then it was working fine in first time, second time it goes to dump because not clearing the fields in mt_fields table.
for that what I did, I tried using methods REMOVE_ALL_SEL_SCREEN_ITEMS( ) / remove_selection_screen_item( ) before add_selection_field. Here clearing selection fields in mt _table while debugging but again it goes to dump because of block does not exist.
Please suggest the solution for this.
Regards,
BBC
.
Hello BBC,
I think you are using blocks and then adding the selection fields. In this case the remove method will not help. Because it will remove only elements under the main block.
you have two options here.
1. whenever the Popup screen is launched always create the new component usage for the SELECT_options.
Write the following code in the INIT method of hte popup view
data lo_cmp_usage type ref to if_wd_component_usage.
data lo_interfacecontroller type ref to iwci_wdr_select_options .
lo_cmp_usage = wd_this->wd_cpuse_select_options( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
else. "if there is active component, delete the existing one and create a new one
lo_cmp_usage->delete_component( ).
lo_cmp_usage->create_component( ).
endif.
2. you have remove the all the fields and blocks manually by passing ids. I haven't tried this. Please update us if you try this option.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.