Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Not compatible with the formal parameter "NEW_ITEMS"


I'm creating a very simple WD4A to just display the contents of the table.

So in the COMPONENTCONTROLLERS I created the node ZPI_USERS, according to the type of the internal table ZPI_USERS we have on the PI system.

Still in the COMPONENTCONTROLLER under methods I'm trying to implement this code in the 'wddoinit' event:

METHOD wddoinit.

  DATA: lt_users    TYPE zpi_users,
        node_users  TYPE wd_this->element_users,
        lo_nd_users TYPE REF TO if_wd_context_node,
        lo_el_users TYPE REF TO if_wd_context_element.

* navigate from <CONTEXT> to <USERS> via lead selection
  lo_nd_users = wd_context->get_child_node( name = wd_this->wdctx_users ).

  SELECT * FROM zpi_users
           INTO lt_users.

    lo_nd_users->bind_table( new_items = lt_users ).


On trying to activate I get the following error :

Web Dynpro Comp. / Intf. ZPI_DISPLAY_MONIUSERS,Web Dynpro Component Controller COMPONENTCONTROLLER
"LT_USERS" is not type-compatible with formal parameter "NEW_ITEMS".

I know I'm overseeing something very simple, though I get the feeling I'm running in circles. Again: the only thing I want to do is show an internal SAP table through a Web Dynpro.

Kind regards,

Not what you were looking for? View more on this topic or Ask a question