‎2010 Nov 22 1:15 PM
Hello Experts,
If I try to bind a table of strings, there comes the error:
"Dynamic type conflict during the assignment of references."
Here is my coding:
METHOD fill_cssref_data .
"Stores the references to the css
DATA: lt_cssref TYPE TABLE OF string,
wb_cssref LIKE LINE OF lt_cssref.
DATA: lo_nd_cssref TYPE REF TO if_wd_context_node.
DATA: wb_messages LIKE LINE OF lt_messages.
lo_nd_cssref = wd_context->get_child_node( wd_this->wdctx_cssref_data ).
LOOP AT lt_messages INTO wb_messages.
CONCATENATE 'https://gtp.wdf.sap.corp/sap/bc/webdynpro/qce/msg_gui_edit?sap-language=E&csinsta='
wb_messages-installno '&mnumm=' wb_messages-problemno '&myear=' wb_messages-pyear
INTO wb_cssref.
APPEND wb_cssref TO lt_cssref.
ENDLOOP.
lo_nd_cssref->bind_table( lt_cssref ).
endmethod.The node "CSSREF_DATA" contains just one attribute "CSSREF" type string, so I don't know why there's a problem binding a table of strings to this node.
I also tried the method "lo_nd_cssref->bind_elements( lt_cssref )", but the result was the same.
Does anybody know where my mistake is?
Best regards,
Lennart
‎2010 Nov 29 3:38 PM
I think the problem is the string type
try with some fiexed length type (for example text132 or more if you need it like text1024 or text2048)
‎2010 Nov 29 3:53 PM
Hello,
the problem was, that the string table had not the same name as the context node.
Best regards,
Lennart