Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Run in background and graphical display of spool is messy

Former Member
0 Kudos

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

2 REPLIES 2

deepak_sharma_sap
Active Participant
0 Kudos

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

0 Kudos

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