0% found this document useful (0 votes)
156 views8 pages

ABAP List PDF Conversion Issue Fix

This SAP Note addresses an issue where the PDF conversion of ABAP lists may not correspond to the desired format, with the right margin being too wide or narrow or the PDF generated in landscape instead of portrait. It provides solutions to determine the proper page width and height from the format type, report parameters, or width of the widest row to ensure correct PDF conversion. The note also describes manual activities and software components affected.

Uploaded by

Arif Somuncu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views8 pages

ABAP List PDF Conversion Issue Fix

This SAP Note addresses an issue where the PDF conversion of ABAP lists may not correspond to the desired format, with the right margin being too wide or narrow or the PDF generated in landscape instead of portrait. It provides solutions to determine the proper page width and height from the format type, report parameters, or width of the widest row to ensure correct PDF conversion. The note also describes manual activities and software components affected.

Uploaded by

Arif Somuncu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

2020-02-25 1885860

1885860 - PDF conversion of ABAP lists: Number of


rows and columns
Version 3 Type SAP Note
Language English Master Language German
Priority Correction with medium priority Category Program error
Release Status Released for Customer Released On 19.11.2019
Component BC-CCM-PRN ( Print and Output Management )

Please find the original document at https://launchpad.support.sap.com/#/notes/ 1885860

Symptom

When you convert an ABAP list to PDF, the PDF does not correspond to the desired
format. The right-hand margin is too wide or too narrow or the PDF file is
generated in landscape format instead of portrait format.

Reason and Prerequisites

There are various ways of determining the width and height of the page for a
prescribed list:

• You take the number of rows and columns from the used format type (if the
list was saved in a spool request). If, for example, the spool request was
created with the format type X_65_132, the page size is 65 rows x 132
columns.
• You take the number of rows and columns from the report parameters. If the
parameters LINE-SIZE and LINE-COUNT were used in the ABAP source code of the
report that generated the list, these define the size of the page.
• You check which row in the list is the widest and use this width as the
width of the page. As the height, you take the number of rows that were
actually output on a page.

The method to be used normally depends on the requirements of the application.

Solution

1. Apply the kernel patch from SAP Note 2141747.


2. Implement the correction instructions or import the Support Package specified
with this SAP Note.

Following the implementation of these corrections, you can choose which of the
methods described above to use for the PDF conversion. There are the following
options here:

• Report RSTXPDF3 provides the parameter USE_FORMAT_WIDTH, which you can use
to set the default behavior. It can have the following values:
• Width from Format Type
• Width from Report Parameters
• Width of Widest Row
• The function module CONVERT_ABAPSPOOLJOB_2_PDF has the parameter
GET_SIZE_FROM_FORMAT. This can have the following values:
• "X" Width from Format Type
• " ": Width from Report Parameters
• "N": Width of Widest Row (this only makes sense if you set
USE_FORMAT_WIDTH to the value for the widest row during the creation of

© 2020 SAP SE or an SAP affiliate company. All rights reserved 1 of 8


2020-02-25 1885860

the spool request).


• "U" (default): Use the parameter USE_FORMAT_WIDTH
• Report RSTXPDFT4 allows you to use a radio button to choose which method to
use.

Caution: If you want to convert an existing spool request to PDF using the
option "Width of Widest Row", you must set the parameter USE_FORMAT_WIDTH to the
value for the widest row during the creation of the spool request. The system
determines the widest row during the generation of the spool request only if the
parameter USE_FORMAT_WIDTH is set accordingly.

Manual Activities

------------------------------------------------------------------------
|Manual Activity |
------------------------------------------------------------------------
|VALID FOR |
|Software Component SAP_BASIS SAP Basis compo...|
| Release 702 SAPKB70214 - SAPKB70216 |
| Release 730 SAPKB73010 - SAPKB73012 |
| Release 731 SAPKB73109 - SAPKB73114 |
| Release 740 SAPKB74003 - SAPKB74009 |
------------------------------------------------------------------------

Use transaction SE38 to create the following text elements:

Report RSTXPDF3:
086 Width of List in PDF File
300 No Default Language
301 Japanese
302 Korean
303 Simplified Chinese
304 Traditional Chinese
305 Report
306 Width from Report Parameters
307 Format
308 Width from Format Type
309 Max. Width
310 Width of Widest Row

Report RSTXPDFT3:
REPORT Width from Report Parameters

Report RSTXPDFT4:
REPORT Width from Report Parameters

Software Components

Software Component Release

KRNL32NUC 7.21 - 7.21

KRNL32NUC 7.21EXT - 7.21EXT

© 2020 SAP SE or an SAP affiliate company. All rights reserved 2 of 8


2020-02-25 1885860
KRNL32UC 7.21 - 7.21

KRNL32UC 7.21EXT - 7.21EXT

KRNL64NUC 7.21 - 7.21

KRNL64NUC 7.21EXT - 7.21EXT

KRNL64NUC 7.38 - 7.38

KRNL64NUC 7.40 - 7.40

KRNL64NUC 7.41 - 7.41

KRNL64NUC 7.42 - 7.42

KRNL64UC 7.21 - 7.21

KRNL64UC 7.21EXT - 7.21EXT

KRNL64UC 7.38 - 7.38

KRNL64UC 7.40 - 7.40

KRNL64UC 7.41 - 7.41

KRNL64UC 7.42 - 7.42

SAP_BASIS 702 - 702

SAP_BASIS 730 - 730

SAP_BASIS 731 - 731

SAP_BASIS 740 - 740

KERNEL 7.21 - 7.21

KERNEL 7.38 - 7.38

KERNEL 7.40 - 7.40

KERNEL 7.41 - 7.41

KERNEL 7.42 - 7.42

Correction Instructions

Software Component From To Version Changed on ID

SAP_BASIS 731 731 1 07.10.2014 15:39:55 0001461830

SAP_BASIS 730 730 2 07.10.2014 16:03:15 0001461831

© 2020 SAP SE or an SAP affiliate company. All rights reserved 3 of 8


2020-02-25 1885860
SAP_BASIS 702 702 2 07.10.2014 15:54:24 0001461832

SAP_BASIS 702 740 4 17.09.2014 14:52:58 0001447226

SAP_BASIS 740 740 2 19.11.2019 13:40:07 0001461829

SAP_BASIS 740 740 1 19.11.2019 13:41:43 0000628456

Other Components

Component Description

BC-ABA-LI ABAP List Processing

Prerequisites

Software SAP
From To Title Component
Component Note/KBA

BC-CCM-
SAP_BASIS 700 740 2003818 PDF converter ignores "Suppress colors" indicator
PRN

BC-CCM-
SAP_BASIS 702 702 1618845 Displaying wide spool requests in SP01 (2)
PRN

BC-CCM-
SAP_BASIS 702 702 1716366 Unable to change format in SP01
PRN

BC-CCM-
SAP_BASIS 702 702 1795222 RDI requests are truncated in SP01 display
PRN

No direct processing of spool lists in spreadsheet BC-CCM-


SAP_BASIS 702 702 1991518
programs following download PRN

BC-CCM-
SAP_BASIS 702 740 2011637 Copy & Paste from PDF file
PRN

BC-CCM-
SAP_BASIS 730 730 1618845 Displaying wide spool requests in SP01 (2)
PRN

BC-CCM-
SAP_BASIS 730 730 1716366 Unable to change format in SP01
PRN

BC-CCM-
SAP_BASIS 730 730 1795222 RDI requests are truncated in SP01 display
PRN

BC-CCM-
SAP_BASIS 731 731 1618845 Displaying wide spool requests in SP01 (2)
PRN

© 2020 SAP SE or an SAP affiliate company. All rights reserved 4 of 8


2020-02-25 1885860
BC-CCM-
SAP_BASIS 731 731 1716366 Unable to change format in SP01
PRN

BC-CCM-
SAP_BASIS 731 731 1795222 RDI requests are truncated in SP01 display
PRN

No direct processing of spool lists in spreadsheet BC-CCM-


SAP_BASIS 731 731 1991518
programs following download PRN

BC-CCM-
SAP_BASIS 731 731 2014453 Displaying spool requests from other systems
PRN

PDF document font too small when printing with BC-CCM-


SAP_BASIS 740 740 1786203
PDF1 (2) PRN

BC-CCM-
SAP_BASIS 740 740 1855616 Minor problems in the PDF converter
PRN

No direct processing of spool lists in spreadsheet BC-CCM-


SAP_BASIS 740 740 1991518
programs following download PRN

BC-CCM-
SAP_BASIS 740 740 2014453 Displaying spool requests from other systems
PRN

Dump TSV_TNEW_PAGE_AL BC-CCM-


SAP_BASIS 740 740 2425093
LOC_FAILED for download of spool request PRN

Support Package

Software Component Release Support Package

SAP_BASIS 702 SAPKB70217

SAP_BASIS 730 SAPKB73013

SAP_BASIS 731 SAPKB73115

SAP_BASIS 740 SAPKB74010

Support Package Patches

Software Component Version Support Package Patch Level

SAP KERNEL 7.41 64-BIT SP004 000004

SAP KERNEL 7.41 64-BIT UNICODE SP004 000004

SAP KERNEL 7.42 64-BIT UNICODE SP009 000009

© 2020 SAP SE or an SAP affiliate company. All rights reserved 5 of 8


2020-02-25 1885860
SAP KERNEL 7.42 64-BIT SP009 000009

SAP KERNEL 7.42 64-BIT UNICODE SP007 000007

SAP KERNEL 7.42 64-BIT SP007 000007

SAP KERNEL 7.21 32-BIT SP129 000129

SAP KERNEL 7.21 32-BIT UNICODE SP129 000129

SAP KERNEL 7.21 64-BIT SP129 000129

SAP KERNEL 7.21 64-BIT UNICODE SP129 000129

SAP KERNEL 7.21 EXT 32-BIT SP129 000129

SAP KERNEL 7.21 EXT 32-BIT UC SP129 000129

SAP KERNEL 7.21 EXT 64-BIT SP129 000129

SAP KERNEL 7.21 EXT 64-BIT UC SP129 000129

SAP KERNEL 7.40 64-BIT SP027 000027

SAP KERNEL 7.40 64-BIT UNICODE SP027 000027

SAP KERNEL 7.21 32-BIT SP130 000130

SAP KERNEL 7.21 32-BIT UNICODE SP130 000130

SAP KERNEL 7.21 64-BIT SP130 000130

SAP KERNEL 7.21 64-BIT UNICODE SP130 000130

SAP KERNEL 7.21 EXT 32-BIT SP130 000130

SAP KERNEL 7.21 EXT 32-BIT UC SP130 000130

SAP KERNEL 7.21 EXT 64-BIT SP130 000130

SAP KERNEL 7.21 EXT 64-BIT UC SP130 000130

SAP KERNEL 7.40 64-BIT SP029 000029

SAP KERNEL 7.40 64-BIT UNICODE SP029 000029

SAP KERNEL 7.38 64-BIT SP035 000035

SAP KERNEL 7.38 64-BIT UNICODE SP035 000035

SAP KERNEL 7.41 64-BIT SP041 000041

SAP KERNEL 7.41 64-BIT UNICODE SP041 000041

SAP KERNEL 7.38 64-BIT SP036 000036

SAP KERNEL 7.38 64-BIT UNICODE SP036 000036

© 2020 SAP SE or an SAP affiliate company. All rights reserved 6 of 8


2020-02-25 1885860
SAP KERNEL 7.21 32-BIT SP314 000314

SAP KERNEL 7.21 32-BIT UNICODE SP314 000314

SAP KERNEL 7.21 64-BIT SP314 000314

SAP KERNEL 7.21 64-BIT UNICODE SP314 000314

SAP KERNEL 7.21 EXT 32-BIT SP314 000314

SAP KERNEL 7.21 EXT 32-BIT UC SP314 000314

SAP KERNEL 7.21 EXT 64-BIT SP314 000314

SAP KERNEL 7.21 EXT 64-BIT UC SP314 000314

SAP KERNEL 7.21 32-BIT SP316 000316

SAP KERNEL 7.21 32-BIT UNICODE SP316 000316

SAP KERNEL 7.21 64-BIT SP316 000316

SAP KERNEL 7.41 64-BIT SP043 000043

SAP KERNEL 7.41 64-BIT UNICODE SP043 000043

SAP KERNEL 7.40 64-BIT SP077 000077

SAP KERNEL 7.40 64-BIT UNICODE SP077 000077

SAP KERNEL 7.40 64-BIT SP075 000075

SAP KERNEL 7.40 64-BIT UNICODE SP075 000075

This document is causing side effects

SAP Note/KBA Title

2169148 Too many blank lines in SP01 display

This document refers to

SAP Note/KBA Title

2141747 Real width of spool request too large

© 2020 SAP SE or an SAP affiliate company. All rights reserved 7 of 8


2020-02-25 1885860

This document is referenced by

SAP Note/KBA Title

2369032 Incorrect row/column number for further processing of a list spool request

2360088 PDF conversion of ABAP lists: Number of rows and columns

2169148 Too many blank lines in SP01 display

2141747 Real width of spool request too large

1786203 PDF document font too small when printing with PDF1 (2)

Terms of use | Copyright | Trademark | Legal Disclosure | Privacy

© 2020 SAP SE or an SAP affiliate company. All rights reserved 8 of 8

You might also like