Skip to Content
author's profile photo Former Member
Former Member

Clearing a collection in a generated AET view


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
iv_first_time = iv_first_time.

Running SAP CRM 7 with EHP3 SP11

Any ideas what going on here ?

Thanks for your feedback



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 01:09 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.