Skip to Content

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

table in WD ABAP

hi,

i m new in WD ABAP.

i have created a table UI element and also binded it with node, with columns of type input field. but it is not taking values at run time. table rows are in display mode only.

i need the complete table in edit mode, so that it can take the values from the user.

Thanks,

Pankaj Aggarwal

Former Member
replied

Hi Pankaj,

Try binding an initial internal table to your TABLE ui element. Give it a try as shown below:

METHOD wddoinit .
  DATA: lt_sflight TYPE if_main=>elements_sflight,
            wa_sflight TYPE if_main=>element_sflight,
            lv TYPE REF TO if_wd_context_node.

  DO 10 TIMES.
    APPEND wa_sflight TO lt_sflight.
  ENDDO.
  lv = wd_context->get_child_node( name = 'SFLIGHT' ).
  lv->bind_table( new_items = lt_sflight ).
ENDMETHOD.

Regards,

Uday

0 View this answer in context

Helpful Answer

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