Hi Bhushan,
there is no other way.
1, Define ZTABLE_ALV is SE11 with fields
field type
.INCLUDE ZTABLE
STYLES LVC_T_STYL
2. Define ALV data table and update table in your program with workareas
data: xt_data type table of ztable_alv.
data: xt_updat type table of ztable.
data: xs_data type ztable_alv.
data: xs_updat type ztable.
3. Data selection directly into data table
SELECT * FROM ZTABLE
INTO CORRESPONDING FIELDS OF TABLE xt_data
WHERE...
4. Loop at ALV data table and update STYLES table
5. Show ALV DATA table in editable Grid
6. Update (after button or something else).
* Build update table
loop at xt_data
into xs_data.
move-corresponding xs_data to xs_updat.
append xs_updat to xt_updat.
endloop.
update ztable from table xt_updat.
That's alle