2022 Jan 19 5:33 PM
Hello team,
In ALV report, while running Background job some empty columns are displaying between each column (misaligned) but displaying correct for foreground ?
What would be the issue ?
Any help would be appreciated !
2022 Jan 19 7:10 PM
I guess you output the ALV to a spool request. It might be the issue that you didn't define sufficient width for the spool file, and so lines continue on the next line? Please post a screenshot so that we can make sure what is your exact issue.
2022 Jan 20 4:44 AM
Hi sandra.rossi
Thanks for replying. Here I have attached the screenshot.
2022 Jan 20 3:53 PM
Generating a file from the spool file is a difficult mission. There's no standard converter for that. Usually, a custom program is created to run the program to intercept the data before it goes to the spool file.
2022 Jan 21 2:47 PM
2022 Jan 24 8:03 AM
Hi raymond.giuseppi
Used here 'Reuse_alv_grid_display'
2022 Jan 24 12:17 PM
2022 Jan 24 1:36 PM
Hi raymond.giuseppi
Yes, passing a custom structure.
fields like, werks TYPE mt61d-werks,
matnr TYPE mt61d-matnr
2022 Jan 24 2:21 PM
I was not asking on the structure of internal table and field catalog (even if a consistency check is always a good idea) but explicitally on the IS_PRINT parameter.
2022 Jan 24 2:47 PM
raymond.giuseppi
no not passing any values to IS_PRINT parameter.
2022 Jan 24 3:37 PM
Can you set parameter ID SALV_SWITCH_TO_LIST to 'X' and execute your report in foreground (will switch to from REUSE_ALV_GRID_DISPLAY to REUSE_ALV_LIST_DISPLAY as in background job)
if no problem during spool display, then insure consistency between print parameter of the background job step and default values in your ALV.
2022 Jan 25 8:09 AM
raymond.giuseppi
I followed the same but no changes but when tried to extract with ALV foreground with REUSE_ALV_LIST_DISPLAY it is proper output means no gap/empty columns.
2022 Jan 26 10:27 AM