I have a question; with SAP ALV a user is able to easily choose fields, select columns in the display of fields. In the BSP application, I would like to have the possibility to switch from a long version (extra fields included as description et c) and a short version (only the most important field shown at screen).
One way to do it (but not the nicest one maybe) I suppose would be let the user click on a checkbox in order to have or not have the long version of the fields shown and then in the view itself test if the checkbox is filled, and in these cases output field1 and field 2 and field 3, if not filled, output field1 and field2, field3, field4, field5 etc, like this:
if lv_checkbox is INITIAL.
<crmic:gridLayoutCell columnIndex = 1 rowIndex = '<%=lv_r + 1%> colSpan etc
output field 1, field2 and field3 et c
Is there a better way to do it?