09-29-2008 11:22 AM
Hi people! I need a help...
I'm having a problem. In a ALV OBJECT report, when user try to print, the first line of details in each page has the line dislocated to the right, only the first line, the others is OK....
Anyone already seem this?
Thanks!
09-29-2008 1:47 PM
I tried, but if i put values greater then 1000, the program return a dump...so I tried a 999, but the problem remains...
This problem occurs at each page, except the first page....
Edited by: Jack_al on Sep 29, 2008 2:48 PM
09-29-2008 11:24 AM
>the first line of details in each page has the line dislocated to >the right
Are you talking about the header...?
09-29-2008 1:15 PM
No, header is Ok...is the details section...When I display ALV in screen, it's all ok, but when I send to print or to spool have this issue...the first line of detail os dislocated to right and it cause a line break...
09-29-2008 1:22 PM
i am thinking of Width problem. use bigger Line-size say 1000. in the report statement.
REPORT ZTESTREPORT LINE-SIZE 1024.
09-29-2008 1:47 PM
I tried, but if i put values greater then 1000, the program return a dump...so I tried a 999, but the problem remains...
This problem occurs at each page, except the first page....
Edited by: Jack_al on Sep 29, 2008 2:48 PM
11-14-2008 12:33 PM
Hi Jack
This might be overkill for what you need, but I had an ALV report that required the ability to print a specific layout (business requirement). I achieved this through printing an ALV grid to a Smartform ( I actually had 2 Smartforms - one for A4 and one for A3). The data was passed into the Smartform using a series of parameters (for the header of each page) and table of data (the ALV data). I then had a custom print button (using form USER-COMMAND) that allowed me to pre-determine from the selection screen whether I wanted A3 or A4.
By having a Smartform, the output looks better and you have the ability to tweak the look and feel.
Hope that gives you a pointer in the right direction.
Nick
11-15-2008 6:01 PM
Hi Jackal,
I assume the header is longer than output width and prints one or more spaces in the next line, the 'dislocated' first line follows.
Try modifying the header, i.e. output one more space line.
Regards,
Clemens