cancel
Showing results for 
Search instead for 
Did you mean: 

Selection options - dump

former_member229026
Participant
0 Kudos

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

.

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

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

former_member229026
Participant
0 Kudos

Thanks Saravanan for your help.

I used deactivate and activate the component usage. It is working fine.

Regards,

BBC

Answers (0)