Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

How to get data type of Value attributes dynamically

$
0
0

Hi experts,

My requirement is to get the data type of all the fields from View Configuration. I am able to read the data type of model attributes  Unfortunately, I am unable to get the data type of the value attributes in the context node.

Any suggestions are welcome.

 

 

 

      DATA: lv_model TYPE REF TO if_genil_obj_model.   lv_model = cl_crm_genil_model_service=>get_runtime_model( ).     FIELD-SYMBOLS:TYPE any.     ASSIGN lv_cnode->('BASE_ENTITY_NAME') TO.     IF sy-subrc NE 0 ORIS INITIAL.                                .       RETURN.     ENDIF.     DATA: lv_bo_name TYPE crmt_ext_obj_name,           lv_attr_stru_name TYPE crmt_ext_obj_name.     lv_bo_name =.     lv_attr_stru_name = lv_model->get_attr_struct_name( lv_bo_name ).     CHECK lv_attr_stru_name IS NOT INITIAL.     DATA: lt_dfies TYPE TABLE OF dfies.     CALL FUNCTION 'DDIF_FIELDINFO_GET'       EXPORTING         tabname  = lv_attr_stru_name         langu    = sy-langu         all_types = 'X'       TABLES         dfies_tab = lt_dfies.     IF sy-subrc <> 0.       RETURN.     ENDIF.


Viewing all articles
Browse latest Browse all 8122

Trending Articles



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