07-28-2016 2:39 AM
Hi ABAP Experts,
I wrote a report and when I tried to run it in background, the graphical display of spool looks messy. Data is not in aligned in columns.
Would you please guide and advise the solution or where in source code I should review ?
Here is my Display ALV function.
Thanks and regards,
Danny
07-28-2016 4:27 AM
Hi,
Instead of using the REUSE_ALV_GRID_DISPLAY , use the FM : REUSE_ALV_LIST_DISPLAY for the background.
if SY-BATCH Is initial.
REUSE_ALV_GRID_DISPLAY
else.
REUSE_ALV_LIST_DISPLAY
Endif.
Note : Don't pas the Parameter WA_LAYOUT-COLTAB_FIELDNAME when using LIST display.
Thanks
Deepak Sharma
07-28-2016 7:11 AM
Hi Deepak,
Thanks for the tip. The output looks a bit better now. However, it seems some data are still not correctly aligned in columns.
In addition, looks like all columns are displayed although my default layout does not have them. Do you have any idea ?
Regards,
Danny