cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing a collection in a generated AET view

Former Member
0 Kudos

Hi,

We have a view that has been created by the system for an AET extension table.

The extension is a relationship to BTAdminH.

When we try to clear some of the entried in this generated view, for some reason, they are populated back by the framework.

I have tried something very simple, in the do prepare output, i try to clear the entire collection.

After the second size below, the value of entries is 0 and remains 0 after the call to the super method.

But after a server round trip, when we enter again this method, the initial size is again at 5 (number of entries in the table)

   DATA lv_entries TYPE i.

*    lv_entries = me->typed_context->zmisc_data_kv->collection_wrapper->size( ).
*    me->typed_context->zmisc_data_kv->collection_wrapper->clear_collection( ).
*    me->typed_context->zmisc_data_kv->collection_wrapper->clear( ).
*    me->typed_context->zmisc_data_kv->collection_wrapper->publish_current( ).
*    lv_entries = me->typed_context->zmisc_data_kv->collection_wrapper->size( ).

    
DATA lr_entity TYPE REF TO cl_crm_bol_entity.
    
DATA lr_collection TYPE REF TO cl_bsp_wd_collection_wrapper.
    
CALL METHOD super->do_prepare_output
      
EXPORTING
         iv_first_time
= iv_first_time.


Running SAP CRM 7 with EHP3 SP11


Any ideas what going on here ?

Thanks for your feedback


Regards,

Helder

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Helder,

It is not very clear what you are trying to say here but can you try passing 'X' to iv_first_time?

You also should try deleting the context node binding.