2005 Feb 17 3:03 PM
Hi,
I am looking help on ALV grid (output).
By default in the output of report i get 5 fields using ALV grid.
After getting this list , i have a option to increase and choose more fields.
Let us say i have added 2 more to already existing 5 fields.
So from the next time, when ever user executes the report he should get the 7 fields as default.
is the possible with out touching the source code of the report.
regards
Satheesh
2005 Feb 17 3:06 PM
Create a variant , save the layout and make it default.
Regards,
Subramanian V.
Create a variant , save the layout and make it default.
Regards,
Subramanian V.
2005 Feb 17 3:06 PM
Create a variant , save the layout and make it default.
Regards,
Subramanian V.
2005 Feb 17 3:07 PM
yes,
-> fill parm. is_variant and i_save
CALL METHOD grid1->set_table_for_first_display
EXPORTING i_structure_name = 'ZTAB'
is_layout = lay
it_toolbar_excluding = tb0
is_variant = gs_variant
i_save = x_save
...
regards Andreas
2005 Feb 17 3:07 PM
2005 Feb 17 3:44 PM
Thanks rich , i have already checked the option.
It didnt help me.
Any way let me try other options.
satheesh
2005 Feb 17 3:47 PM
2005 Feb 17 3:51 PM
If the program is not allowing you to save, you need to fill the parameters when calling the method.
data: variant type disvariant.
variant-report = sy-repid.
variant-username = sy-uname.
call method alv_grid->set_table_for_first_display
exporting
is_layout = layout
<b> is_variant = variant
i_save = 'U'</b>
i_structure_name = 'I_ALV'
changing
it_outtab = i_alv[]
it_fieldcatalog = fieldcat[].
Regards,
Rich Heilman
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |