2005 Jun 14 8:38 PM
Hello,
I need to able to group rows in an editable grid(OO based).I can group rows by setting sort properties for the field.But when I make a field editable, I lose the grouping on the rows. Any ideas on how can edit aswell as group rows?
Here's a sample grid.
Period Prod Qty2
Jan_05 ABC 10
XYZ 20
A12 05
B12 03
Feb_05 ABC 09
XYZ 20
Code for sorting
**********************
ls_sort-spos = '2' .
ls_sort-fieldname = 'PERIOD' .
ls_sort-up = 'X' .
ls_sort-down = space .
ls_sort-group = 'X' .
APPEND ls_sort TO sort_cat .
Hello,
I need to able to group rows in an editable grid(OO based).I can group rows by setting sort properties for the field.But when I make a field editable, I lose the grouping on the rows. Any ideas on how can edit aswell as group rows?
Here's a sample grid.
Period Prod Qty2
Jan_05 ABC 10
XYZ 20
A12 05
B12 03
Feb_05 ABC 09
XYZ 20
Code for sorting
**********************
ls_sort-spos = '2' .
ls_sort-fieldname = 'PERIOD' .
ls_sort-up = 'X' .
ls_sort-down = space .
ls_sort-group = 'X' .
APPEND ls_sort TO sort_cat .
2005 Jun 15 5:02 AM
Hi,
You have to make the edit = 'X' in fieldcatalog.
DATA lw_fieldcat TYPE lvc_s_fcat.
LOOP AT p_fieldcat INTO lw_fieldcat.
CASE lw_fieldcat-fieldname.
WHEN 'ZMATNR'.
lw_fieldcat-edit = c_x.
....
ENDCASE.
MODIFY p_fieldcat FROM lw_fieldcat.
ENDLOOP.
2005 Jun 15 7:55 AM
2005 Jun 15 1:32 PM
Hi,
Sorry - Probably I didnt state my issue clearly. The issue is not "How to make a grid editable?". The grid is editable. The problem is when, the grid is editable, the rows that are merged from sorting is lost. I want the users to see the rows merged and be able to edit the grid.
HD
2008 Apr 09 3:57 PM
Hi...
Did you get this issue resolved. If so please let me know the way you solved this as i am struck with the same situation.
Thanks in Advance.
~Kamal
2008 Apr 09 4:15 PM
You might give this a try.
gs_layout-cell_merge = 'N'. " This stops the Cell Merging
Edited by: Paul Chapman on Apr 9, 2008 5:17 PM
2008 Apr 09 4:24 PM
Hi,
Thx for ur immediate response. But i am still facing the same problem.
Regards,
Kamal
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |