‎2006 Aug 15 8:48 AM
Hi Folks,
I have a grid in which I want to prevent the user to move the set column widths, because this grid has a separate graphik on top of it which would then cease to correspond with the grid columns.
My question: is there any means of difining a grid with <u><b>non-resizeble columns</b>?</u>
Thanks & Regards
Fouad
Message was edited by: Fouad Sebbane
‎2006 Aug 15 8:54 AM
I think you can only restrict the user from changing the position of the column using the KEY / FIX_COLUMN attributes, but length I don't think we can restrict the user.
However, you need not allow the user to save the layout so that the report when executed later will have the default width for the columns.
Regards,
Ravi
Note : Please mark all the helpful answers
‎2006 Aug 15 8:56 AM
Hi
In the below structure ,set bold field as 'X' for columns u wish to keep fixed.
Fieldcat
types: begin of slis_fieldcat_main0,
row_pos like sy-curow, " output in row
col_pos like sy-cucol, " position of col
fieldname type slis_fieldname,
tabname type slis_tabname,
currency(5) type c,
cfieldname type slis_fieldname, " currency
ctabname type slis_tabname, " and table
ifieldname type slis_fieldname, " initialcol
quantity(3) type c,
qfieldname type slis_fieldname, " qty
qtabname type slis_tabname, " and table
round type i," round in write statement
exponent(3) type c, " exponent for floats
key(1) type c, " column with key-color
icon(1) type c, " as icon
symbol(1) type c, " as symbol
checkbox(1) type c, " as checkbox
just(1) type c, " (R)ight (L)eft (C)ent.
lzero(1) type c, " leading zero
no_sign(1) type c, " write no-sign
no_zero(1) type c, " write no-zero
no_convext(1) type c,
edit_mask type slis_edit_mask,
emphasize(4) type c, " emphasize
<b>fix_column</b>(1) type c, " Spalte fixieren
do_sum(1) type c, " sum up
no_out(1) type c, " (O)blig.(X)no out
tech(1) type c, " technical field
outputlen like dd03p-outputlen,
offset type dd03p-outputlen, "offset
seltext_l like dd03p-scrtext_l, " long key
seltext_m like dd03p-scrtext_m, " middle
seltext_s like dd03p-scrtext_s, " short
ddictxt(1) type c, " (S)hort (M)
rollname like dd03p-rollname,
datatype like dd03p-datatype,
inttype like dd03p-inttype,
intlen like dd03p-intlen,
lowercase like dd03p-lowercase,
end of slis_fieldcat_main0.
Regards,
Raj
‎2006 Aug 15 8:57 AM
HI,
in the field catalog, you can set <b>FIELDCAT-FIX_COLUMN = 'X'.</b> so that the column will fixed
Thanks
Sudheer
‎2006 Aug 15 10:28 AM
Hi,
Regarding my request about the wanted effect of columns to be non-rezizable by the user I must add further clarification:
I didn't mean the "fixed columns" to prevent them from scrolling out of the current window when the list is wider than the screen.
What I really meant is, that I do not want the user to pull the left or right margin of certain columns to narrow or widen that columns
Thanks & Regards
Fouad