Size in ABAP list.

Hi expert ,
How to edit font and size in ABAP list ?
Currently, I'm writing code  as below but not effect in my ABAP list.
PRINT-CONTROL  SIZE 50 COLOR BLUE   FONT 20 LPI 10.
WRITE: / ' test font and size'.
pls help me . Thank you so much all.
Edited by: kishan P on Oct 12, 2010 3:32 PM

Try with this copied from SAP IMG website
REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
Start of print-control
NEW-PAGE PRINT ON.
PRINT-CONTROL FUNCTION 'SF000'.
WRITE: / 'This is CPI 20'.
SKIP.
PRINT-CONTROL FUNCTION 'SF020'.
WRITE: / 'This is CPI 6'.
SKIP.
PRINT-CONTROL FUNCTION 'SF008'.
WRITE: / 'This is CPI 12'.
Depending on your SAP printer device, this may also work
PRINT-CONTROL FONT 1 LPI 6.
you can try to change font and LPI numbers
WRITE: / 'font 1 lpi 6'.
PRINT-CONTROL FONT 2 LPI 6.
WRITE: / 'font 2 lpi 6'.
PRINT-CONTROL FONT 3 LPI 6.
WRITE: / 'font 3 lpi 6'.
End of print-control
NEW-PAGE PRINT OFF.
*--- End of Program

Similar Messages

  • Font Size in ABAP List report

    Hi ,
    I want to know how to change font size in ABAP list report.
    I want to enlarge the font size.
    I have tried print control but it doesn't work.
    I have also tried line size and line count
    but it can only reduce the font size .
    Thanks.
    John

    Hi Kong,
    Try with following example:
    REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
    NEW-PAGE PRINT ON.
    PRINT-CONTROL FUNCTION 'SF000'.
    WRITE: / 'This is CPI 20'.
    PRINT-CONTROL FUNCTION 'SF020'.
    WRITE: / 'This is CPI 6'.
    PRINT-CONTROL FUNCTION 'SF008'.
    WRITE: / 'This is CPI 12'.
    PRINT-CONTROL FONT 1 LPI 6.
    WRITE: / 'font 1 lpi 6'.
    PRINT-CONTROL FONT 2 LPI 6.
    WRITE: / 'font 2 lpi 6'.
    PRINT-CONTROL FONT 3 LPI 6.
    WRITE: / 'font 3 lpi 6'.
    End of print-control
    NEW-PAGE PRINT OFF.
    End of Program
    thnks
    Anurodh

  • How to edit font of printer depend on size of abap list report.

    Hi all,
    How to edit Format type"X_65_255"  of HP Laser printer  when print out the same preview in abap list?
    Example:
    I want print as below:
         Title of abap list:                 AAAAAAAAAAAA --> size 15
        body of abap list:        
                                               colum1   column2   columm3 ---> size 10
                                                s1          cccc          bbbb    -
    > size 10
    I need it whenever you find time out of your busy schedule.. Please help me .. Thank you so much.
    Edited by: kishan P on Oct 13, 2010 12:02 PM

    Hi,
    I have to set font type on matrix printer.
    Can You please explain how did you find
    \e(s0p24h15v0s0b16602T
    for
    select arial 24 cpi 15 point normal
    As I can see, all the escapes defined in "Printer initialization" are in
    \e\0xqw\0xer0x\tz
    form, where qw, er, tz are hexa decimal interpretation of escapes from printer manual.
    I am confused where did You find annotation such as
    \e(s0p24h15v0s3b16602T
    Thank you, cheers.
    p.s. - if You want me to open another subject with this question so I can express my gratitude, please let me know.
    p.s. - in SPAD > Device Type, Print Control tab, we have
    SF005     |     1B6B001B4D121B57001B461B35
    and I know the
    "1B"
    stands for
    \e
    but then at "6b........" I am lost...

  • How to change line size in ABAP list

    Dear:
        As subject.
        My code as below:
       TOP-OF-PAGE.
        NEW-PAGE LINE-SIZE g_line LINE-COUNT 65.
       variable g_line dynamic.
       In my testing the 'NEW-PAGE LINE-SIZE' is not work.

    Hi,
    LINE-SIZE you have to define with report statement.
    report .......................     LINE-SIZE 255.
    Reagrds,
    Jyothi CH.

  • ABAP Lists - Font Size

    Is it possible to control the font size in ABAP classical list output, If so how can we handle it?
    Currently the print output of the ABAP list appears to be unreadable.
    Is the same possible with ALV reports as well?

    check this sample program.
    DD_STYLE_TABLE
    and check ur SAP setting also .
    in SAP Screen there is ICON(TV icon) , click this ->New Visual Design->Forn Size.
    Regards
    Prabhu

  • Printing ABAP list in fontsize

    Hi,
    Could we set perticular font-size for printing ABAP list ?
    Regards,
    Amit R

    Hi Amit
    Check the link below , it will be useful to u.
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a95e351ea11d189570000e829fbbd/content.htm
    http://www.oce.com/NR/rdonlyres/eihvvkydvfbuf4txsdbwcufqggviov54zgwkxx4yaxlozj5ajs4bcijjakhg3x573vznycykih2bop3yxtklzumddue/SAPimplementation.pdf
    The FORMAT statement and associated COL<xx> print controls supersede color setting with PRINT-CONTROL and CO00<n>.
    The R/3 standard includes these COL<xx> print controls:
    COL0H: Color off, font intensified
    COL0N: Color off, normal font
    COL0V: Color off, inverse font
    COL1H: Title color, font intensified
    COL1N: Title color, normal font
    COL1V: Title color, inverse font
    COL2H: Standard color, font intensified
    COL2N: Standard color, normal font
    COL2V: Standard color, inverse font
    COL3H: Total color, font intensified
    COL3N: Total color, normal font
    COL3V: Total color, inverse font
    COL4H: Key color, font intensified
    COL4N: Key color, normal font
    COL4V: Key color, inverse font
    COL5H: Positive color, intensified font
    COL5N: Positive color, normal font
    COL5V: Positive color, inverse font
    COL6H: Negative color, font intensified
    COL6N: Negative color, normal font
    COL6V: Negative color, inverse font
    COL7H: Group color, font intensified
    COL7N: Group color, normal font
    COL7V: Group color, inverse font
    Message was edited by: sreekanth reddy

  • Printing ABAP list in portrate format

    Hi,
      In one of requirement I wanted to print a report
      in portate format on A4 size paper. Report has been created with use of write statement only.
      When I checked print properties it shows only standard some page format(all are landscape).I even tried by creating custom portate format for ABAP list.
    Please anybody suggest the way to take printout of ABAP list in portrate format.
    Thanks in advance,
    Amit R

    Hi Amit,
    check the line count and  line size of your repor. And try with the line size = 80 and line count = 0. Then while printing the page format  will be determined based on these variable to print the report.
    If the report length is lange then you cannot print in the portate format.
    Hope this  will help you.
    Regards
    Satya.

  • ABAP List Faxing using BCS  method ( Business communication service )

    Experts,
    I have a requirement where we are faxing the ABAP list as it gets generated .
    I am using NEW-PRINT ON and NEW-PRINT OFF , to get the ABAP list in a spool request , and then  get the spool contents using function module : 'RSPO_RETURN_SPOOLJOB'
    I then use  Class / methods provided by Business communication service  , such as :
    cl_cam_address_bcs=>create_fax_address  ,to send this spool content to Fax gateway  .
    My fax goes , but the fax output  list is in X_65_255  format,  whereas i want the fax output to be in X_65_132 ..
    My  REPORT  statement does have X_65_132  as line count / line size BUT somehow the  Fax output does not take this list format  .. ANY IDEA's ????
    Would appreciate your reply .
    Ashutosh

    Naimesh,
    I have passed page format  X_65_132  in GET_PRINT_PARAMETERS ,  in export paramter ' Layout '  ... See code below :
    write a list into spool
      call function 'GET_PRINT_PARAMETERS'
        exporting
          line_count = sy-linct
          line_size  = sy-linsz
          layout     = 'X_65_132'   <<< Page format
          mode       = 'BATCH'
          immediately = ' '
          list_text   = htext_spool
          list_name   = 'ZV46 FAX'
          no_dialog   = 'X'
        importing
          out_parameters         = print_parameters
          valid                  = valid
        exceptions
          archive_info_not_found = 1 .
    BUT still  the fax coming out of our fax machine is compressed  because i believe the outgoing fax is using  page format  X_65_255 .
    Any idea why ????
    Would appreciate your reply .
    Ashutosh

  • Problem converting ABAP list into PDF

    Hello,
    Having converted a spool request of an abap list into pdf the "intensified" attribute of the list items will disappeare. Text in the list with i.e. COL_BACKGROUND INTENSIFIED would be converted to text with blue and normal font. None of the possible combinations of colours and intenstions have produced an output in bold.
    Any ideas would be appreciated.
    Thank you in advance.
    Best regards,
    Michael Weiskat

    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to create PDF files.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant.  Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
      tsp01.
    *-- STRUCTURES
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
    concatenate 'c:\'
                p_repid
                '.pdf'
      into mc_filename.
    *-- Setup the Print Parmaters
      call function 'GET_PRINT_PARAMETERS'
       exporting
         authority= space
         copies   = '1'
         cover_page                   = space
         data_set = space
         department                   = space
         destination                  = space
         expiration                   = '1'
         immediately                  = space
         in_archive_parameters        = space
         in_parameters                = space
         layout   = space
         mode     = space
         new_list_id                  = 'X'
         no_dialog= 'X'
         user     = sy-uname
       importing
         out_parameters               = mstr_print_parms
         valid    = mc_valid
       exceptions
         archive_info_not_found       = 1
         invalid_print_params         = 2
         invalid_archive_params       = 3
         others   = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
      if mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
      submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.
    *-- Find out what the spool number is that was just created
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid= mi_rqident
          no_dialog  = space
          dst_device = mstr_print_parms-pdest
        importing
          pdf_bytecount                  = mi_bytecount
        tables
          pdf        = mtab_pdf
        exceptions
          err_no_abap_spooljob           = 1
          err_no_spooljob                = 2
          err_no_permission              = 3
          err_conv_not_possible          = 4
          err_bad_destdevice             = 5
          user_cancelled                 = 6
          err_spoolerror                 = 7
          err_temseerror                 = 8
          err_btcjob_open_failed         = 9
          err_btcjob_submit_failed       = 10
          err_btcjob_close_failed        = 11
          others     = 12.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = mi_bytecount
              filename                = mc_filename
              filetype                = 'BIN'
         importing
              act_filename            = mc_filename
         tables
              data_tab                = mtab_pdf.
          FORM get_spool_number *
          Get the most recent spool created by user/report              *
    -->  F_REPID               *
    -->  F_UNAME               *
    -->  F_RQIDENT             *
    form get_spool_number using f_repid
         f_uname
                    changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid+0(8)
                  f_uname+0(3)
        into lc_rq2name separated by '_'.
      select * from tsp01 where  rq2name = lc_rq2name
      order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number

  • Abap Lists - Printing - defining font and CPI and applying to printed text

    Hi,
    I am trying to define some forms for matrix printing. I should change the font type, and CPI.
    We will print ABAP Lists.
    I see my fonts (courier, 100, 12CPI, Prnt.Ctrl SF005) are defined in SE73.
    In SPAD - device type (choose spec. one) u2013 Print Controls (tab) I can see SF005, marked u201EDirectu201C column, as well as u201EHexadecimalu201C. Control Character Sequence is 1B6B001B4D121B57001B461B35.
    I can see 31 more SFxxx Print controls here.
    How do I apply specific Print Controls (SF005) from this list to a printed document? (I assume this is the list of available prnt.ctrls that can be used for printing, but how do I "select" specific ones and apply them to document print?)
    How do I choose u201ECOL0N: Color off, normal fontu201D (intensified OFF u2013 I heard that sap print in bold by default)?
    Thanks in advance,
    cheers,
    Nenad
    P.s. u2013 in printer settings the default font is Coourier 10, 12CPI, draft output. If I change this settings on printer directly, no effect is applied on printed documents... Printing from ECC 6.0
    Edited by: Nenad Nikolic on Oct 26, 2010 4:49 PM - details...

    hi again,
    more info:
    In Formats (Z_fakt1) - Formats (tab): u201EPrinter initializationu201C, I can see some predefined settings, but it is copied from some IBM printer, and I wonder is it correct. There is nothing about font type:
    #reset
    \e\0x40
    select US-ASCII character set
    \e\0x52\0x00
    set line spacing 6 LPI
    \e\0x32
    set page length to 12 inch (=72 lines at 6 LPI)
    \e\0x43\0x48
    cancel bottom margin
    \e\0x4F
    set left margin to 0
    \e\0x6C\0x00
    select draft quality
    \e\0x78\0x00
    select non-proportional spacing
    \e\0x70\0x00
    cancel condensed printing
    \0x12
    disable double-width printing
    \e\0x57\0x00
    select 10 CPI
    \e\0x50
    Result here is: 11CPI. Bold. Looks like "Times New Roman"
    The exact copy from IBM printer is used for another format (Z_fakt2), nothing is different except:
    select 12 CPI
    \e\0x4D
    Result here is: 10CPI. Bold. I am under BIG impression that the font type is different. But it is possible the font looks different just due to a size difference. Looks like "Courier New"
    In both cases I print predefined text with same output device, same device type.
    When I set 15CPI (0x67) u2013 I still get 10CPI, just the font looks more plain, more "draft" then before - like once in DOS. I am certain that these font type is definitely different then before (for example, here "W" have parallel endings). These fonts are even more suitable for these reports...
    Shouldn't the fonts be SMALLER and more of them in 1 inch (15 characters per inch) now then 10CPI (10 character per inch - less characters to fill 1 inch)??
    If I set 1CPI - shouldn't there be just 1 big character on 24,5mm?
    When I delete all entry (except # reset \e\0x40) from "Printer initialization" for one Format, the print output looks exact as before deleting (and saving)?!
    I would like to set Courier font, (really 12CPI), plain text, no bold.
    Where should I set this options?
    Thanks and sorry for long input, but the more info you have, the more insight ou have in my problem...
    Cheers,
    N
    Edited by: Nenad Nikolic on Oct 26, 2010 5:30 PM - update

  • Printing A3 page format using ABAP List from SAP is a problem...

    Hi Experts,
    I am trying to print a standard output (ABAP List) A3 page size from SAP.
    I used SWIN, SAPWIN, I9HP4 device types, but none of them worked.
    I created page format type ZYEVMIYE 290MM – 420MM and the page format L120, W200. In order to make it usable with page size is A3. Unfortunately this did not work either.
    The behaviour of the problem is when I tried to print with the device types that mentioned above then printer indicator comes to an error. And nothing comes out from the printer.
    Just to be on the safe side I made a test from windows self test, it resulted success with A3 page size format. So from this point of the view I got a thought that somehow SAP (selected device types) is not able to send correct signal to Printer for page size A3, because on the printer information screen displays ‘load Tray2 for A4’ this is showing that SAP sends Printer a signal for page format A4.
    I need help on how to make SAP (selected device type) send a correct signal to Printer in order to printout A3 page size format.
    Quick reply will much be appreciated.

    Hi,
    At last i got a Solution to my Question.
    The Problem is that in my SAP-Code they have been translated the PDF into 255 string.But i am retreiving using 132 string.So, i resolved in this way.
    <b>For Each dr As DataRow In ds.Tables(0).Rows
    Dim dataline As String = dr(0)
    If dataline.Length < 255 Then
    dataline = dataline.PadRight(255, " ")
    End If
    sb.Append(dataline)
    Next.</b>
    May be this Thread is useful to Others.
    Regards,
    Rajender.

  • ABAP List formats to cater for both A4 and Letter environments

    We have an environment where now both Letter and A4 stationery is used.  Where can we get ABAP list formats for the Letter stationery and should we define them separately e.g. X_65_80 and X_65_80_LTR?
    Secondly what is the transaction path for copying and modifying ABAP list formats?

    Hi
      You cann;t change the font size thru report.
    Go for either Script/smartform for the same.
    Regards,
    Sreeram

  • ABAP list report, multiple selections - select-options

    I have written a very simple ABAP list report, that contains a single select-option.  On the selection screen, I have the option of entering multiple values, with each new value being displayed directly underneath the old, but I am only getting the first value entered on the screen displayed.  Does anyone have any sample code for me?

    Hi Daniel,
    Select_Options consists of 4 parameters, in with the range consists in eg...
    Select-options s_vbeln for vbak-vbeln.
    then s_vbeln-low, s_vbeln-high are the range values...
    So whne you write select query.
    write vbeln in s_vbeln
    instead of vbeln eq s_vbeln
    Hope this solves your problem.
    Thanks & Regards,
    Dileep .C

  • ABAP list report wont print on Z device type with Z format

    Our developer have created a report which outputs data in ABAP list format and the standard format would not fit. We have since created a custom format and copied a device type in to custom device type. So we now have a custom format and custom device type. However when we print, it spools correctly and shows as green but the report wont print. The only thing that gets printed is
    "Sort criteria         AscdgDescndSubtotalGRAND  TOTAL  :               X                X     PROJ" "
    The abap list format is Z_100_500. Basically the report has 450 columns and hence we created this format.
    I am not sure what this means. I have been advised by SAP to follow instruction on note 17895 - Adapting print list formats for customers however i cant fully comprehend point 5 of the note and I believe this is why it wont print. Has anyone adapted ABAP list using this note. Can you please let me know how i should go about printer initialisation mentioned in the noted.
    We have checked everything however dont seem to get around the issue. Any ideas will be appreciated

    No comments

  • Total Page in ABAP List

    Hi Experts,
    I have a requirement to print: "Page XX of XX" in my ABAP List report (this report is meant to be printed).
    For Current Page, I know that the system field is SY-PAGNO.  But I can't find the field for Total Page. Is there anyway to print this (Total Page) since it means that we have to predict how long the report will be before we WRITE anything?
    Thanks a lot,
    Sam

    In the first statement of ur report u'll have to reserve some lines for footer as follows:
    REPORT <prg name> LINE-COUNT 25(2).
    here ur list will display 23 lines of data and then 2 lines are reserved for footer.
    This means that in each page u can display 23 lines of text.  Now depending on number of entries in your internal table which contains data to be displayed, we can calculate the number of pages required to print the total output.
    E.g: I have 62 records in my internal table, so to get the total number of pages use the following logic:
          (U can find out the number of recs in internal table dynamically using DESCRIBE stmt)
           62/23 = 2.69
           Round the result to the next integer using CEIL , so the next interger is 3.
           So ur total number of pages is 3.  And u now the current page number by sy-pagno.
    Hope this solves ur problem.

Maybe you are looking for

  • PDF printing problems

    Dear All, I have migrated Application developed in Forms & Reports 6i (Client-Server) to Oracle10giDS. All the reports output is generating in PDF format. It is running perfectly OK and getting printed on All dot Matrix printer. But on the Line Print

  • Extraction of Business Partner data from CRM to MDM

    Does MDM provide standard extractors that can be installed in CRM so that BP data can be extracted and sent to XI via IDOC. If it does where can I find this information ?

  • How can i get a replacement install dvd

    Just acquired a used G4, with no disks.  Want to perform a fresh install to wipe out all old data.

  • Embed applet in Flash, possible?

    Hi All I have a quite weird question here maybe, but if that's possible to embed a java applet into Flash? Anyone can give me a hint? Thanks a zillion in advance!

  • User Address and SAP HCM HR Replication

    Hello All, We are in SRM 7.0 with ERP 6.0 EHP4 as backend. SRM organization structure is replicated from the HCM system. The organization structure in the HCM system is designed based on the functions like Manufacturing, IT etc. When a user tries to