Hi all,
I want to create a dynamic context in this way. But in this example I always need a data element in the dictionary for the describe by name method --> here ZREMARK
I can use here describe_by_name( 'STRING' ) but then the column headerline is empty.
How can I set the column headerline when I use this coding?
comp-name = 'REMARK'.
comp-type ?= cl_abap_datadescr=>describe_by_name( 'ZREMARK' ).
APPEND comp TO comp_tab.
not this structure contains the fields "CONNID" and "CARRID"
struct_type = cl_abap_structdescr=>create( comp_tab ).
now the nodeinfo is created
node_info = wd_context->get_node_info( ).
node_info = node_info->add_new_child_node(
name = 'MY_NODE'
is_mandatory = abap_false
is_multiple = abap_true
static_element_rtti = struct_type
is_static = abap_false
).
regards