07-23-2014 7:52 AM
Hi all,
I have created 2 tabstrip screns which contain ALV GRID DISPLAY in a container with dynamic internal table and editable columns .I want to capture the edited value from this ALV GRID display.I have used SET_TABLE_FOR_DISPLAY and for this dynamc internal table is passed which is Field symbol and editable columns have to be captured for further updation into another ztable.
When i used check_changed_data i am getting dump as field symbol not assigned.
Below is the code : How can i get edited column value from below code
call method alv_list->set_table_for_first_display
exporting
is_layout = gs_layout
changing
it_outtab = <fs_dynamic_table>
it_fieldcatalog = it_fieldcat[]
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
if sy-subrc <> 0.
* Implement suitable error handling here
endif.
Kindly help me to solve this.
With Thanks,
Dina.
07-23-2014 2:54 PM
Hi sasidharan,
I think you have not assigned the field symbol.Before using field symbol assign it to desire internal table
Assign <fieldsymbol> to internal table.
then use the field symbol.
Regards,
Shashikanth
07-23-2014 2:54 PM
Hi sasidharan,
I think you have not assigned the field symbol.Before using field symbol assign it to desire internal table
Assign <fieldsymbol> to internal table.
then use the field symbol.
Regards,
Shashikanth
07-23-2014 3:06 PM
Hi,
The field symbol is dynamic internal table.I created dynamic internal table and i want to show this dynamic internal table in ALV GRID.Now i can able to display the ALV GRID with the dynamic internal table the problem is 2 columns in ALV GRID is editable so when i input values and press ENTER ,it goes to dump....
Can u help out...
With Thanks,
Dina.
07-23-2014 3:10 PM
Hi
Probably that field symbol is not global value, so it can't see in event method check_changed_data
Max
07-23-2014 10:01 PM
please provide more info about the dump to try to help you
as max said, it could be because the field symbol is not global and if its global maybe you are not refering well to the column
i assume that you are using "ASSIGN COMPONENT comp OF STRUCTURE struc TO <fs>" to capture the value changed
validate always the sy-subrc after the assignment.
but the check changed data have parameters that have the old and new values
please provide more info...
Regards
07-25-2014 11:16 AM
Hi the dump has been solved .
Thanks for the reply...the issue is with the datatype of the editable columns and field name of dynamic internal table.Ihave used event handler methods workinf fine now....i can able to capture edited value and can able to update the ztable.
With Thanks,
Dina.