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: 

ALV to spool display half report

Former Member
0 Kudos

Hi ,

I have generated ALV report which is working fine on foreground but when I execute this report in the background it shows half (some columns are missing) in the generated spool. I need to execute this report in background due to large amount of data. Is this due to the size exceeding more than 255 chars ?

If yes, is there any solution ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You have to configure the printer settings, consult basis people for the same. Also refer to the note as below:

ALV print : Print formatting in the background

SAP Note Number: 674348

Symptom

Wen you execute a report in the background with a preset printer, a default format is always transferred. In general, this format is too small for the ALV and the table is therefore truncated during printing.

If you would like to change this behavior, you have two options:

1. The format can be changed subsequently either directly in the print dialog box or in the spool display.

2. If you wish the list width to be recalculated, this modification must be implemented in the ALV.

Other terms

ALV Grid Control (CL_GUI_ALV_GRID), REUSE_ALV_GRID_DISPLAY, ALV print: Background, print, print formatting, format, ALV background: Background processing, in the background

Reason and Prerequisites

A print format that was transferred in the background was set as default.

Implementing note 669744 is a prerequisite.

Solution

Implement the source code corrections in accordance with the correction instructions. Then remove the * character in the following lines:

  • else. "Modifikation

  • call function 'UNSET_PRINTPARAMETER' "Y9CK042107

  • exporting

  • name = 'LAYOUT'

  • in_parameters = rs_pri_params

  • importing

  • out_parameters = rs_pri_params.

This note cannot be implemented using the Note Assistant. Customers must take this modification into consideration when implementing updates at a later stage.

Hope it helps.

Lokesh

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos

Hi,

You are right. It is bcz the spool is executed in bckgrd & spool has a limitation of 255 characters in bckground.

Please goto www.service.sap.com & type "spool truncated" in the search text.

They are many notes available.

Best regards,

Prashant

Former Member
0 Kudos

Hi,

it depends on a printer you use.

If you have define a Printer which allows more than´255 char use this one

or otherwise you have define a printer which allows more than 255 char.

Regards, Dieter

Former Member
0 Kudos

Hi,

You have to configure the printer settings, consult basis people for the same. Also refer to the note as below:

ALV print : Print formatting in the background

SAP Note Number: 674348

Symptom

Wen you execute a report in the background with a preset printer, a default format is always transferred. In general, this format is too small for the ALV and the table is therefore truncated during printing.

If you would like to change this behavior, you have two options:

1. The format can be changed subsequently either directly in the print dialog box or in the spool display.

2. If you wish the list width to be recalculated, this modification must be implemented in the ALV.

Other terms

ALV Grid Control (CL_GUI_ALV_GRID), REUSE_ALV_GRID_DISPLAY, ALV print: Background, print, print formatting, format, ALV background: Background processing, in the background

Reason and Prerequisites

A print format that was transferred in the background was set as default.

Implementing note 669744 is a prerequisite.

Solution

Implement the source code corrections in accordance with the correction instructions. Then remove the * character in the following lines:

  • else. "Modifikation

  • call function 'UNSET_PRINTPARAMETER' "Y9CK042107

  • exporting

  • name = 'LAYOUT'

  • in_parameters = rs_pri_params

  • importing

  • out_parameters = rs_pri_params.

This note cannot be implemented using the Note Assistant. Customers must take this modification into consideration when implementing updates at a later stage.

Hope it helps.

Lokesh