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

Re: populating table displayed in view

$
0
0

Hi,

You can try below piece of logic.

 

 

  1. TYPES: BEGIN OF str, 
  2.               status TYPE char20, 
  3.             END OF str. 
  4. * Structure of status context node. 
  5. DATA  lr_struct_ref    TYPE REF TO str. 
  6. * Structure of your context node 
  7. data  ls_struct    type  str,
  8.         lt_struct type standard table of str.
  9. DATA lr_value_node    TYPE REF TO cl_bsp_wd_value_node. 
  10. CREATE DATA lr_struct_ref. 
  11. Loop at lt_struct into ls_struct.
  12. CREATE OBJECT lr_value_node 
  13.    EXPORTING 
  14.      iv_data_ref = lr_struct_ref. 
  15. ls_struct-status = 'Your Value'. 
  16. lr_value_node->if_bol_bo_property_access~set_properties( ls_struct ). 
  17. endloop.
  18. *Add Value Node to a collection 
  19. typed_context->testnode->collection_wrapper->add( lr_value_node ). 

 

Regards,

Amrit


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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