02-09-2007 6:57 AM
Hi,
I have a ALV report. When I execute this report in foreground and try to print from menu option List->Print, the report print using X_65_255 format.
On the other hand if I schedule this report as background job and see the spool generated then in print parameter it shows format X_65_132.
Why is this change in report format in foreground and background mode?
I want that format should automatically set to X_65_255 in backgound mode.
Because of format X_65_132 report is not being printed correctly and last two colums are chopped off in output..
02-09-2007 7:01 AM
hi,
when u execute in background
the pop up screen comes up
ie background print parameters
here u can set the format to X_65_255.
and set u r sy-linsz value to 255 in report .
ie for no of colums
02-09-2007 7:17 AM
Thanks for the reply however user do not want to interact with SAP ... instead he want option to taken autoamatically. I tried with line-sz 255 but it does,'t work..
02-09-2007 7:03 AM
Hi,
Use the func.module:
SET_PRINT_PARAMETERS to set all the print parameters as you desire and pass the workarea accordingly in the program.
Regards
Subramanian
02-09-2007 7:20 AM
Hi Subramanian
I will try with this FM SET_PRINT_PARAMETERS ..
Do you have any sample code for this..
02-09-2007 7:21 AM
hi ,
use the fm
<b>set_print_parameters</b> there u have an option of setting the column width set it to 255 .
cheers