2007 Sep 11 9:54 PM
l_col_pos = 1.
gt_fieldcat-fieldname = 'CHECKBOX'.
* declaring field as checkbox and
* mark it as editable field:
gt_fieldcat-checkbox = 'X'.
gt_fieldcat-edit = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = 10.
gt_fieldcat-coltext = text-f01.
gt_fieldcat-tooltip = text-f01.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
* Work Area Description.
l_col_pos = l_col_pos + 1.
gt_fieldcat-fieldname = 'WANAM'.
gt_fieldcat-key = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = '60'.
gt_fieldcat-emphasize = 'X'.
gt_fieldcat-tooltip = text-f02.
gt_fieldcat-coltext = text-f02.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
l_col_pos = l_col_pos + 1.
gt_fieldcat-fieldname = 'WAPLANT'.
gt_fieldcat-key = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-emphasize = 'X'.
gt_fieldcat-tooltip = text-f02.
gt_fieldcat-coltext = text-f02.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
This is the field catalog code i developed.however in the display checkbox is appearing as the last column.
i want it to be in first column.how to fix this...
2007 Sep 11 10:09 PM
Not sure, but try adding:
gt_fieldcat-key = 'X'.To the checkbox.
Rob
l_col_pos = 1.
gt_fieldcat-fieldname = 'CHECKBOX'.
* declaring field as checkbox and
* mark it as editable field:
gt_fieldcat-checkbox = 'X'.
gt_fieldcat-edit = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = 10.
gt_fieldcat-coltext = text-f01.
gt_fieldcat-tooltip = text-f01.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
* Work Area Description.
l_col_pos = l_col_pos + 1.
gt_fieldcat-fieldname = 'WANAM'.
gt_fieldcat-key = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = '60'.
gt_fieldcat-emphasize = 'X'.
gt_fieldcat-tooltip = text-f02.
gt_fieldcat-coltext = text-f02.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
l_col_pos = l_col_pos + 1.
gt_fieldcat-fieldname = 'WAPLANT'.
gt_fieldcat-key = 'X'.
gt_fieldcat-tabname = 'GT_ESH'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-emphasize = 'X'.
gt_fieldcat-tooltip = text-f02.
gt_fieldcat-coltext = text-f02.
gt_fieldcat-seltext = text-f02.
gt_fieldcat-col_pos = l_col_pos.
append gt_fieldcat.
clear gt_fieldcat.
This is the field catalog code i developed.however in the display checkbox is appearing as the last column.
i want it to be in first column.how to fix this...
2007 Sep 11 10:09 PM
Not sure, but try adding:
gt_fieldcat-key = 'X'.To the checkbox.
Rob
2007 Sep 11 10:25 PM
2007 Sep 11 10:27 PM
Nice -:) Could you please assign points and close the thread...
Greetings,
Blag.
2007 Sep 11 10:19 PM
Rob is right...You should add
gt_fieldcat-key = 'X'.
To your checkbox...Why? Because KEY fields always starts first...If the checkbox is not a KEY, then it should appear after the KEY fields -;)
Greetings,
Blag.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |