‎2006 Nov 05 6:57 AM
Hi,
I am using following to display the data in ALV.
CALL METHOD alv->set_table_for_first_display
EXPORTING
i_buffer_active =
i_bypassing_buffer =
i_consistency_check =
i_structure_name =
is_variant =
i_save =
i_default = 'X'
is_layout =
is_print =
it_special_groups =
it_toolbar_excluding =
it_hyperlink =
it_alv_graphics =
it_except_qinfo =
ir_salv_adapter =
CHANGING
it_outtab = lt_sel_param
it_fieldcatalog = it_fcat
it_sort =
it_filter =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
.
lt_sel_param contains the data I want to display in ALV. My problem is that I am not able to get the data changed by the user in the alv back. How can I do this?
Regards,
Pooja
‎2006 Nov 05 7:15 AM
Hello Pooja
In PAI you must call method alv-><b>CHECK_DATA_CHANGED</b>. This method is responsible for transporting the changed data back from the frontend to the ABAP program. Furthermore, the method raises event DATA_CHANGED if data have indeed been changed. In an event handler method for DATA_CHANGED you could do validations of the changed data if required.
Regards
Uwe
‎2006 Nov 05 7:00 AM
Hi Pooja,
<b>it_outtab = lt_sel_param
in this part, put [ ] after lt_sel_param
it_outtab = lt_sel_param[ ].</b>
Kindly go thru the stndard programs.
BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.
BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.
BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE.
The report checks the input value(s) semantically and provides protocol messages in case of error
BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to
implement the saving of the new data.
BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:
(1) how to define a column for editable checkboxes for an attribute of your list
(2) how to evaluate the checked checkboxes
(3) how to switch between editable and non-editable checkboxes
BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV
Grid Control.
BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.
BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects
are dealt with:
(1) how to replace the standard f4 help
(2) how to pass the selected value to the ALV Grid Control
(3) how to build an f4 help, whose value range depend on a value of another cell.
Regards
Anver
if helpd pls mark points
Message was edited by: Anversha s
‎2006 Nov 05 7:15 AM
Hello Pooja
In PAI you must call method alv-><b>CHECK_DATA_CHANGED</b>. This method is responsible for transporting the changed data back from the frontend to the ABAP program. Furthermore, the method raises event DATA_CHANGED if data have indeed been changed. In an event handler method for DATA_CHANGED you could do validations of the changed data if required.
Regards
Uwe