Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error by binding a table to context node

Former Member
0 Likes
406

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

2 REPLIES 2
Read only

franois_henrotte
Active Contributor
0 Likes
362

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)

Read only

0 Likes
362

Hello,

the problem was, that the string table had not the same name as the context node.

Best regards,

Lennart