Skip to Content
avatar image
Former Member

Font size in PDF format for ABAP list report

Hi All,

Iam trying to create a PDF format for a report(list). This is the procedure I followed:

1. Get print parameters

2. submit my Zreprogram using the statement

SUBMIT sy_repid TO SAP-SPOOL WITHOUT SPOOL DYNPRO

SPOOL PARAMETERS out_parameters

AND RETURN.

3. Get the spool number

4. and use the Function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.

Everything is fine, except that when I open PDF from the system, the letter size is very very small. Is there any way I can control the size?

Thanks & Regards,

Swarna Munukoti.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 20, 2010 at 08:27 AM

    Hi,

    I think you can achieve this by changing the layout in print parameter of the FM 'GET_PRINT_PARAMETERS'.

    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          .....
          line_size      = 132
          line_count     = 65
          layout         = 'X_65_132'
          .....

    You can get the list of formats in the table TSP1D where TYPE = 'L' (List).

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 20, 2010 at 07:07 AM

    Hi,

    You need to change device type in SAP . Try using different device types while generating spool (not sure but maybe also in CONVERT_ABAPSPOOLJOB_2_PDF ) or create a custom one and change its settings.

    Regards,

    Edited by: Gungor Ozcelebi on Jul 20, 2010 9:07 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Yes each output device has a device type (tcode SPAD). You can copy LOCL device (do not change it is for sure used in some other programs) and copy the device type for and you can change character sets to get better format. You may also directly try to use some device type which is created for PDF if present in your system (if not search OSS with search term "PDF device type" ) you will get many OSS notes which suggests device types settings for different configurations.

      Regards,