2008 Feb 07 10:46 AM
Hi. I'd like to write a form that will shade all rows in tableview object. So in that form I need to pass reference to that particular tableview i want to shade.
CONTROLS: t_view TYPE TABLEVIEW USING SCREEN 1031.
...
PERFORM shade_rows USING t_view.
FORM shade_rows USING tableview TYPE *???* .
LOOP AT tableview-cols INTO cols.
cols-screen-input = '0'.
MODIFY tableview-cols FROM cols INDEX sy-tabix.
ENDLOOP.
ENDFORM. " shade_rows
How should I declare a form parametr? Which type should it be?
2008 Feb 07 2:50 PM
That should be table type.
if t_view is of type type_t_view. like :
data: t_view type table of type_t_view.
Then declare another table type :
Types: t_type_t_view type table of type_t_view.
and use this type there. like :
FORM shade_rows USING tableview TYPE t_type_t_view.
....
....
ENDFORM.
That should be table type.
if t_view is of type type_t_view. like :
data: t_view type table of type_t_view.
Then declare another table type :
Types: t_type_t_view type table of type_t_view.
and use this type there. like :
FORM shade_rows USING tableview TYPE t_type_t_view.
....
....
ENDFORM.
2008 Feb 07 2:50 PM
That should be table type.
if t_view is of type type_t_view. like :
data: t_view type table of type_t_view.
Then declare another table type :
Types: t_type_t_view type table of type_t_view.
and use this type there. like :
FORM shade_rows USING tableview TYPE t_type_t_view.
....
....
ENDFORM.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |