cancel
Showing results for 
Search instead for 
Did you mean: 

table in WD ABAP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the property of the READONLY and its value of the Table element.

For ex:

In the WDDOMODIFY view ->

if....

ls_flight-readonly = abap_false. " set the EDITABLE porperty fo the table

else.

ls_flight-readonly = abap_true. " set the EDITABLE porperty fo the table

endif.

check the standard component WDR_TEST_TABLE

Regards

Lekha

Former Member
0 Kudos

hi,

i have checked the property.

actually there is some problem related to table initialization.

plz tell me the code for initializing the table.

Former Member
0 Kudos

Hi,

When ever you try ot fill the Internal table using any Select Query. Check the table is initial or not then bind the table to the node.

if t_itab is not initial.

node_t_value_inv->bind_table( t_tab ).

endif.

Regards

Lekha

uday_gubbala2
Active Contributor
0 Kudos

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

former_member188831
Contributor
0 Kudos

Hi Uday,

Pankaj is asking when he wanto to fill the table manually while executing the applicaiton.

even i am aslo facing the issue, when i fill the table with itab record it is workig...

but it is not coming in input mode why ???

it is appearing in only display mode, please let me know what are the properties are code we need to maintain...

read only is not checked and enable is checked.

i am using inputfields only in the table rows, not text view.

Thanks,

Mahesh.Gattu

former_member188831
Contributor
0 Kudos

Hi Leka,

can you please explain in detail...

even i am also facing the same issue, my table is not coming in input mode....

Answers (1)

Answers (1)

Yashpal
Active Contributor
0 Kudos

HI,

u might have used textview for the fields while cerating table , use input field ui element.

Regards

Yash

Former Member
0 Kudos

hi yash,

i m using input field only.