Quantcast
Channel: SCN : Discussion List - Customer Relationship Management (SAP CRM)
Viewing all articles
Browse latest Browse all 4296

How to refresh a collection wrapper?

$
0
0

Hello,

 

I have problem to refresh a collection wrapper. The situation is following:

 

  1. User enters a value in the field 1 (Client-ID = 100)
  2. Depending on this value a corresponding field 2 is populated with a value from collection wrapper (e.g. Corporate Group = „A“)
  3. User changes a value in the field 1 (e.g. Client-ID is now 200)
  4. The assigned Corporate Group for the Client 200 is “B”. However the collection wrapper has the old value corresponding to the Client-ID 100. The field keeps the wrong value “A”.

client ID.jpg

What did I try already:

 

In  DO_PREPARE_OUTPUT of the IMPL-class

 

me->typed_context->btadminh->collection_wrapper->publish_current( ).

 

DATA lr_ent type ref to cl_crm_bol_entity.

lr_ent ?= me->typed_context->btadminh->collection_wrapper->get_current( ).

lr_ent->reread( ).

 

DATA lv_bol_core TYPE REF TO cl_crm_bol_core,

lv_bol_core = cl_crm_bol_core=>get_instance( ).

lv_bol_core->modify( ).

 

In GET_P Methode of field 1. Attempt to trigger a Roundtrip.

 

method: get_p

  CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

rv_value = 'submitonenter'.

ENDCASE.

 

Unfortunately, nothing helped.

 

Thanks you guys in advance for your advices.

Best regards

Andrej


Viewing all articles
Browse latest Browse all 4296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>