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: 

Formatting problem with report in background

Former Member
0 Kudos

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..

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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..

Former Member
0 Kudos

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

0 Kudos

Hi Subramanian

I will try with this FM SET_PRINT_PARAMETERS ..

Do you have any sample code for this..

Former Member
0 Kudos

hi ,

use the fm

<b>set_print_parameters</b> there u have an option of setting the column width set it to 255 .

cheers