Skip to Content

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

Table View Iterator and InputField(s)

Hi Group!

I was able to show 3 InputFields inside the Cell of a Table. To enable MODEL-BINDING I had to use the same p_cell_id for all the 3 InputFields, and this is causing problem. Is there a way to differentiate these 3 InputField IDs and the MODEL-BINDING works fine.

My code inside : IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

*----


Start Date/Time/TimeZone -


WHEN 'PHASE_START_DATE'.

CREATE OBJECT lr_bee_table.

lr_bee_table->add_html( html = '<table width="100%">' ).

lr_bee_table->add_html( html = '<tr>' ).

  • InputField for Start Date

lr_bee_table->add_html( html = '<td width="45%">' ).

CREATE OBJECT lr_input.

lr_input->id = p_cell_id.

lr_input->value = <fs_phase>-phase_start_date.

lr_input->type = 'DATE'.

lr_input->showhelp = abap_true.

lr_input->disabled = zcl_zrm_static=>get_logical_invert( iv_input = lv_is_user_allowed_to_edit ).

lr_input->maxlength = '10'.

lr_input->submitonenter = abap_true.

lr_bee_table->add( lr_input ).

lr_bee_table->add_html( html = '</td>' ).

  • InputField for Start Time

lr_bee_table->add_html( html = '<td>' ).

CREATE OBJECT lr_input.

lr_input->id = p_cell_id.

lr_input->value = <fs_phase>-phase_start_time.

lr_input->type = 'TIME'.

lr_input->showhelp = abap_true.

lr_input->disabled = zcl_zrm_static=>get_logical_invert( iv_input = lv_is_user_allowed_to_edit ).

lr_input->maxlength = '10'.

lr_input->submitonenter = abap_true.

lr_bee_table->add( lr_input ).

lr_bee_table->add_html( html = '</td>' ).

  • InputField for Start Time Zone

lr_bee_table->add_html( html = '<td>' ).

CREATE OBJECT lr_input.

lr_input->id = p_cell_id.

lr_input->value = <fs_phase>-phase_start_timz.

lr_input->disabled = zcl_zrm_static=>get_logical_invert( iv_input = lv_is_user_allowed_to_edit ).

lr_input->maxlength = '10'.

lr_input->submitonenter = abap_true.

lr_bee_table->add( lr_input ).

lr_bee_table->add_html( html = '</td>' ).

lr_bee_table->add_html( html = '</tr>' ).

lr_bee_table->add_html( html = '</table>' ).

p_replacement_bee = lr_bee_table.

Thanks and Best Regards,

Bindiya

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