06-29-2007 9:21 PM
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
a®
06-29-2007 9:31 PM
06-29-2007 9:39 PM
Hi,
I know if we are giving ls_fcat-checktable = '!'. value like this, it will avoid the check table validation.
Any info?
aRs.
06-30-2007 2:22 AM
Hi,
Check if it validating against the table or against the fixed values of domain.
Regards,
Atish
06-30-2007 2:24 AM
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
06-30-2007 2:27 AM
06-30-2007 2:34 AM
Hi,
Its my mistake, late night working..uh
Instead of '!' i used '|'
Thanks Seshu.
aRs