2010 Jan 28 9:06 AM
HI all,
Is it possible to provide SORT options, LAYOUT options (CHANGE layout, SAVE layout) in classical report as similar to those options in ALV? If so, how to display those icons at the top of the report as similar to ALV?
Regards,
Shanthi
2010 Jan 28 9:12 AM
Hi,
In classical report ? You mean using WRITE, ULINE, FORMAT COLOR etc... ? It's possible but you have to code it by managing field sequence, sort option in an database table....
It's possible, but it will be quite long to implement
Jean-Michel
2010 Jan 28 9:17 AM
Hi Shanthi
It can be done but will take more time.
For example.
just check this.
data: tcode(10) type c.
START-OF-SELECTION.
FORMAT COLOR COL_HEADING.
ULINE.
WRITE:/ '***********************The following are the transaction'.
WRITE:'codes in BPS ************************'.
FORMAT COLOR COL_HEADING OFF.
ULINE.
SKIP .
FORMAT COLOR COL_HEADING.
ULINE.
WRITE:/ 'Please select the report/program by double clicking on the'.
WRITE:'line'.
ULINE.
FORMAT COLOR COL_HEADING OFF.
SKIP.
FORMAT COLOR COL_POSITIVE.
ULINE.
tcode = 'ZCUS1'.
WRITE:/ '1.Version Utility program - ZCUS1 .', 75 tcode.
HIDE tcode.
ULINE.
2010 Jan 28 9:25 AM
Hi,
Sorting can be made, but manually !!! Evrything has to be done at the internal table with write statements.
Changing the layout or saving it too is possible, but no one would dare to try that. Its like rediscovering ALV concept.
One solution i can suggest is to use ALV list display(in case u have more no of recs in ur output) else go for grid.
Thanks,
Saravanan Rajan