Application Development and Automation 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: 
Read only

spool list column width

Former Member
0 Likes
5,407

Hi,

when i am running ALV in background i see in the spool list there is one column 'sales document' in which the last digit is not appearing. If the required number is 12345678, it is appearing it as 1234567..

13 REPLIES 13
Read only

Former Member
0 Likes
2,823

increase the output length for that field.

Read only

former_member609120
Contributor
0 Likes
2,823

Hi,

Could you check ALV Output length defined in the field catalog.

It could be less than your data element field length hence it is truncating in the OUtput.

Best Regards,

Vanessa Noronha.

Read only

0 Likes
2,823

But, in ALV grid the output is fine

Read only

0 Likes
2,823

Helo..anybody pls help me

Read only

0 Likes
2,823

To get the right format of output in the spool we generally increase the u201Cno. of columns fieldu201D in the Format typesu201D.

T-code

Read only

Former Member
0 Likes
2,823

Hello Raj,

When you execute the report in backgroud, the output is classical report and which need the line size. If not defined in report then the default is taken as 80 chars.

Please check the line size defined in your program, if not pls define.


REPORT <report> LINE-SIZE <width> LINE-COUNT <height> NO STANDARD PAGE HEADING.

If the line size is more than 255 chars, then there is OSS note for it. (you can try note 530147)

Hope this helps you.

Regards,

Sachinkumar Mehta

Read only

Former Member
0 Likes
2,823

Is this field the last column which is getting displayed in the ALV when run in background?

If yes, then please check the total length of the output displayed in background. It cannot be more than 255 or 256.

If the total output is greater than 255 then, though the output is diaplayed properly in foreground, in background complete display will not happen.

Read only

Former Member
0 Likes
2,823

The default maximum line width of the spool is 255 characters which means anything more the 255 will be truncated, To display more the 255 characters you have to do two things:

1] select a printer format which outputs more than 255 characters for eg x_65_512 or x_65_1023. If you cannot find any printer which has these formats then you have to ask the basis guys to create Z format for you like Z_65_1023.

2] After you use the above format of the printer when you display the spool there is an option of "DISPLAY IN MAXIMUM WIDTH" in the tool bar. Choose that it will show you the entire output.

Read only

Former Member
0 Likes
2,823

Are you using the REUSE_ALV_GRID_DISPLAY function?

How did you set the sales document field to the fieldcat?

I had the same problem informing just the fields tabname, fieldname and reptext_ddic

I had fixed informing the fields ref_fieldname and ref_tabname.

I am not sure, but the line size don't suppress any information at the spool list.

It just breaks the line to a new one.

Regards,

Darley

Read only

Former Member
0 Likes
2,823

Hi Raj,


go to t-code sp01--> select the Spool and Press(SHIFT + F4) it will show full column width..

"and also select the  default printer in SPAD which has more than 256 rows and 64 columns

Regards,

Prabhudas

Read only

Former Member
0 Likes
2,823

Execute the porg in Background, you can see a popup asking the "Background Print Parameters".

if u are using LOCL Output device,select the format f4 which shows the list having more rows and columns formats Eg:X_65_1024/4.

select this and go ahead.

I Hope it solves ur problem

Best regards,

PP

Read only

former_member491621
Contributor
0 Likes
2,823

Hi Raj,

You have to increase the output length to get the output correctly in spool.

Please change the code as shown below

REPORT ztest LINE-SIZE 255 (or whatever width you want)

                            LINE-COUNT 65.

Now, get the print parameters using FM GET_PRINT_PARAMETERS.

Here, your spool output width will be set to the width you have declared in the REPORT statement.

Now submit the report/execute the report in background.

This could solve your problem

Read only

former_member521153
Discoverer
0 Likes
2,823

Solution is found in topic https://scn.sap.com/thread/38432

First you will have to specify that the background / print standard list is not allowed to optimize itself the columns width. Then, you will have to specify the columns width in the field catalog.