Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down ! check table validating ?

former_member194669
Active Contributor
0 Kudos

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



6 REPLIES 6

Former Member
0 Kudos

I think it will validate on check table ..

Thanks

Seshu

former_member194669
Active Contributor
0 Kudos

Hi,

I know if we are giving ls_fcat-checktable = '!'. value like this, it will avoid the check table validation.

Any info?

aRs.

0 Kudos

Hi,

Check if it validating against the table or against the fixed values of domain.

Regards,

Atish

0 Kudos

Hi ARS,

See the below link and i am sure it will help you lot

/people/srilatha.t/blog/2007/04/16/alv-grid-150-insert-row-function

/people/david.halitsky/blog/2007/04/24/so-youve-got-to-code-an-editable-alv-inside-an-sap-provided-exit-and-x-function-group

Thanks

Seshu

Message was edited by:

Seshu Maramreddy

former_member194669
Active Contributor
0 Kudos

Atish,

The field don't have domain level values

aRs

former_member194669
Active Contributor
0 Kudos

Hi,

Its my mistake, late night working..uh


Instead of '!' i used '|'

Thanks Seshu.

aRs