Skip to Content
0
Jun 29, 2007 at 08:21 PM

Drop down ! check table validating ?

259 Views

Hi,

For ALV edit mode i am creating a fieldcatalog-checktable field fill with value ! , then also while in the drop values are get validated with check table?

It is validating the entry with checktable? why ? after giving ls_fcat-checktable = '!'.

* Here YDROP_DOWN field have check tabke values " ", 1, 2 
  ls_fcat-fieldname = 'YDROP_DOWN'.     
  ls_fcat-datatype  = 'INT4'.
  ls_fcat-checktable = '!'.
  ls_fcat-no_out    = c_x.
  append ls_fcat to pt_fieldcat.

  describe table pt_fieldcat lines v_rows.
  call method cl_alv_table_create=>create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
    importing
      ep_table        = g_hts.
  assign g_hts->* to <i_status>.


Then during the first display

  call method g_grid->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
    changing
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_status>[].
  call method g_grid->set_ready_for_input
    exporting
      i_ready_for_input = v_input.  " it will be 1 or 0