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.