Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: ADD_COLLECTION throws CX_BOL_EXCEPTION

$
0
0

Hi,

 

try below code once.

 

data lr_col type ref to cl_crm_bol_bo_col.

data: ls_data type ZZTABLE.

data: lr_ent type ref to  cl_bsp_wd_value_node.

 

select * from ZZTABLE

              into table it_ZZTABLE

              where parent_id eq gv_guid.


create object lr_col.

create data ls_data.

create object lr_ent

    exporting

       iv_data_ref = ls_data.

 

   loop at it_ZZTABLEinto lv_ZZTABLE.

     lr_ent-> if_bol_bo_property_access~set_properties( is_attributes = lv_ZZTABLE).

     lr_col-> if_bol_bo_col~add( lr_ent ).

     clearL lr_ent.

   endloop.

 

 

   me->typed_context->ZZCONTEXTNODE->collection_wrapper->clear( ).

 

   try .

me->typed_context->ZZCONTEXTNODE->collection_wrapper->set_collection( lr_col ).

     catch cx_root.

   endtry.


Br,

Navn


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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