ABAP List Output Printing Error

Hi All,
I am facing a problem while printing the ABAP List Output. First Page is printing fine and from the second page its not printing. Where as in Standard reports everything is printing OK.
Thanks in Advance.
Best regards,
Shahid Malayil

Hello Shahid,
For list printing: Add to affected reports with NEW-PAGE PRINT ON LAYOUT/ SUBMIT... TO SAP-SPOOL LAYOUT (print at list generation). For printing from list display, adjust REPORT width specification to force selection of the format and move format to SAP namespace (name "X....").
May be this can help you.
Cheers
Mudassir.

Similar Messages

  • Problem with the ABAP List output while running program in background.

    Hi ,
        This is Sudhir S . I am trying to run a report in background which has 60 columns , but only 13 are displayed when we view it through the spool abap list .
    But when I run in foreground all the 60 columns are displayed. Since the data which I am trying to fetch is large I am running the report as a background job .
    I just need to know what can be done to get the 60 columns in spool abap list output.
    waiting for your  reply.
    <removed by moderator>
    With Regards
    Sudhir S
    Edited by: Thomas Zloch on Oct 6, 2010 1:51 PM - please do something else while waiting, all posts have the same priority here

    Hi,
    Check if SAP note 1226758 resolves this problem.
    Regards,
    Aidan

  • Help in abap list report printing

    Dear all,i did a customized list report using abap.the usual size for report print out is A4 which is line-count 65 and line-size  255. but for this report,my line-size is 296. i define at the begining of my program with "REPORT ZMM_STKVAL_VIEW LINE-COUNT 65 LINE-SIZE 296 MESSAGE-ID ZA."
    i can run this program but the output is not complete.i can only see untill the line-size of 255..anything exceed 255 kenot be displayed..
    Is there anyway to overcome this problem? My user doesnt required this report to be printed out but just to download it into EXCEL file. Thank you.

    Ok, if user doesn't need a list output, then simply gather the data and fire excel.
    report zrich_0001 .
    data: imara type table of mara with header line.
    start-of-selection.
      select * into table imara up to 100 rows
                from mara.
      call function 'WS_EXCEL'
           exporting
                filename = 'TEST.XLS'
           tables
                data     = imara.
    Regards,
    Rich Heilman

  • Convert ABAP list output to PDF without spool

    Hi All,
    We have used the FM 'CONVERT_ABAPSPOOLJOB_2_PDF' to convert the list output to PDF. It creates the spool number in SP01 and PDF is getting generated.
    But, in our SAP ECC 6.0 server all spools are redirected to printer by default and get printed because it configured like that. We requested BASIS people to reconfigure but they said no for a single report.
    So we need to find the alternate solution to generate the PDF without spool. We have searched in sdn, but didnot get any alternate solution.
    Please help us in this regard.
    Thanks in advance.

    data: begin of i_list occurs 0,
    line(255),
    end of i_list.
    data:i_mara like mara occurs 0 with header line.
    parameters: p_matnr like mara-matnr.
    start-of-selection.
    set pf-status 'PDFFILE'.
    select *
         from mara
         into table i_mara
        where matnr = p_matnr.
    loop at i_mara.
      write:i_mara-matnr,i_mara-ernam,i_mara-pstat.
      endloop.
    at user-command.
    if sy-ucomm = 'PDF'.
    DO.
    READ LINE SY-INDEX.
    IF SY-SUBRC NE 0.
    EXIT.
    ELSE.
    I_LIST = SY-LISEL.
    APPEND I_LIST.
    ENDIF.
    ENDDO.
    NEW-PAGE PRINT ON DESTINATION 'LP03' IMMEDIATELY ' ' COVER TEXT ' ' KEEP IN SPOOL 'X' NEW LIST IDENTIFICATION 'X' LINE-SIZE 132 LINE-COUNT 65 NO DIALOG.
    LOOP AT I_LIST.
    IF I_LIST-LINE IS INITIAL.
    SKIP.
    ELSE.
    at first.
      write: TEXT-001.
      endat.
    WRITE: I_LIST-LINE+0(132).
    ENDIF.
    ENDLOOP.
    NEW-PAGE PRINT OFF.
    data:filename like RLGRAP-filename value 'C:\PDFFILE.PDF'.
    DATA: SPOOL TYPE TSP01-RQIDENT.
    SPOOL = SY-SPONO.
    SUBMIT rstxpdft4
    WITH spoolno = spool
    WITH download = 'X'
    WITH p_file = filename
    AND RETURN.
    if sy-subrc = 0.
    write: 'pdf file generated'.
    else.
      write:'pdf file not generated'.
      EXIT.
      endif.
          endif.
    please paste this code and check once ,if it works modify the code according to ur requirement.
    regards,
    padmaja

  • ABAP List output to spool

    Hi all,
       Iam executing a report in the foreground and i want to send the output data directly to the spool instead of displaying as list output.
    Any idea.
    Regards,
    Shiva

    *****u CAN SEND THE REPORT TO SPOOL USING SUBMIT STATEMENT
    ****Check the code below, u have to use Logic of Checkbox to save u from
    ****infinite loop.
    data:
      w_repid like sy-repid,
      MC_VALID(1)      TYPE C,
      MSTR_PRINT_PARMS LIKE PRI_PARAMS.
    parameters:
      p_matnr like mara-matnr,
      chk_box as checkbox. "Send To Spool
    at selection-screen.
      if sy-ucomm eq 'ONLI' or sy-ucomm eq 'PRIN'.
        if chk_box eq 'X'.
          perform sendto_spool.
        endif.
      endif.
    start-of-selection.
      perform display_data.
    *&      Form  sendto_spool
          text
    -->  p1        text
    <--  p2        text
    FORM sendto_spool .
    *-- 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 MSTR_PRINT_PARMS-PDEST = SPACE.
        MSTR_PRINT_PARMS-PDEST = 'LOCL'.
      ENDIF.
    *-- Explicitly set output format
    IF P_PAART IS INITIAL.
       P_PAART = 'X_65_255'.
    ENDIF.
      MSTR_PRINT_PARMS-PAART = 'X_65_255'.
      MOVE SY-REPID TO W_REPID.
      SUBMIT (W_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
        SPOOL PARAMETERS MSTR_PRINT_PARMS
        USING SELECTION-SCREEN 1000
        with p_matnr eq p_matnr
        with chk_box eq ' '
        AND RETURN.
    ENDFORM.                    " sendto_spool
    *&      Form  display_data
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
    write: p_matnr,sy-datum.
    ENDFORM.                    " display_data

  • 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

  • SAP Query: ABAP List Only

    hello friends,
    how do i hide the "Output format" box from the UI of my SAP query?
    i would just want a query that would automatically have an ABAP List output without users having to choose other layouts (meaning the "Output format" is not seen on their end)?
    thank you in advance.
    best regards,
    albert

    hello Shiva,
    thanks for the input. i tried doing that and it brings me directly to the query results.
    however, i would want my users to see the selection screen, but not the Output Format window (where you can select a variety of layouts).
    any idea on this requirement?
    best regards,
    albert

  • 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 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

  • Inactivate the print button is the ABAP list

    How can I inactivate the print button in the report program (ABAP list)?
    I can inactive the print button on selection screen by using 'RS_SET_SELSCREEN_STATUS'. But can't achieve the same effect after the program jumped to the list output screen.
    Thanks!

    hi,
    To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.
    Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.
    set pf-status 'ZPF'.
    Regards,
    Richa.

  • Print preview in abap list format (OMLV) - Need preview in graphical format

    Dear All
    I am facing a problem with the print preview. (transaction code OMLV)
    When i am clicking on print preview button the system is displaying the output in a ABAP list format.
    and also the printout shows only the ABAP content.
    Pl. advise on how to view the print preview in a graphical format and not in the ABAP list format and pl. let me know the setting to print the spool in the graphical format.
    Thanks,
    Maxx

    Hi,
    this problem is not only related to warehouse. even the print preview spool for GR/GI slip in t-code SP01 shows as ABAP list and not as graphical screen.
    my question is why does the system shows the print preview for spool as an ABAP list instead of graphical view.
    pl. advise
    Thanks,
    Maxx

  • Trying to print ABAP List in Unix

    I am new to SAP and I am trying to print using unix as my host spooler.  I am printing to a Xerox machine connected to a print server.  I am just trying to print the test ABAP list you get when you go into SPAD and select Utilities/ouput devices then select ABAP List.  When I print this I get nothing but ABCD and a bunch of numbers.  I am trying to figure if the ABAP list is supposed to be that way or if something is wrong with my driver.

    Hello Rodney,
    What device type did you specify in the SPAD Output Device definition?  You need to make sure you select a device type which is compatible with the printer.  If the printer supports postscript printer language, then you need to select the 'Post2' or 'postscpt' device types.  If the printer support PCL, then test with 'hplj4' device type.  Most likely the currently selected device type is not compatible with the printer and therefore creates a print file which the printer cannot interpret.
    Regards,
    Nathan

  • Printing a simple abap-list in panel-format (DIN A4)

    Hallo Ladies and Gentlemen,
    i have a simple abap-list. when i print it, the list will be printed in landscape-format. how can i change it? i have to print it in panel-format.
    Thanks a lot,
    Marcel

    Hi Marcel,
    I think you have to click on the "Full Administration" button t see the option for "Page Formats"...
    Also go to transaction SPAD,
    in Devices / Servers tab press Output devices button
    Double click on the device type of your printer
    Press button Formats
    and here you get a list of all formats for your printer
    Regards,
    Abhy

  • Print preview in abap list format

    Dear All
    I am facing a problem with the print preview.
    When i am clicking on print preview button the system is displaying the output in a abap list format.
    but when i m taking the print it is coming correctly.
    The out put format is different in the print preview where as when i am taking the output it is coming correctly.
    Pls help me out on this.

    Please check this answered link:
    Invoice print preview defaults to ABAP List View

  • ABAP list printing on device I2SWIN

    Hello,
    we have defined output device (printer) with device type I2SWIN for printing on users frontend computers via SAPlpd. Settings of I2SWIN device type is default:
    SAPlpd/SAPWIN driver 3.0
    Do not use printer driver for ABAP list print
    Character set 1406 Printer I2SWIN  ISO 8859-2 (MS Windows Latin-2)
    We can print ABAP lists on this device. We define formats and set margins and orientation in this formats. But these settings are ignored during printing. If we change in I2SWIN setting Printer driver to "Printer driver for SWIN printing using SAPLP/Windows", then margins are accepted and printed, but there are wrong characters in print output (not in requested code page).
    Could anybody help us how to set print to accept margins in ABAP lists and also have print output with good code page.
             Thank you
                   Vaclav Jonas
    Edited by: Vaclav Jonas on Apr 24, 2008 3:02 PM

    O.K., we use margin settings according SAP Note 21738 and all works fine.

Maybe you are looking for

  • SSRS Execution Account cannot be used with Report Builder

    Running SQL Server 2012 SP2, I have specified an Execution Account in Reporting Services Configuration Manager as described here: http://msdn.microsoft.com/en-us/library/ms156302(v=sql.110).aspx The article states: "You can specify Integrated Securit

  • Apps open and them close instantly

    Hello I try and open various apps and it opens for a split second and then closes back to home screen

  • Help required in posting inbound idocs

    Hi, We are facing a problem during integration testing to post inbound idocs. The scenario is : A custom FM is written to process the inbound idocs, which does the following processes in sequence. 1. BAPI used to create Goods Receipt 2. BDC used to c

  • How to disable unlimited data?

    Hi Meteor! I would like to disable for few months my unlimited data because I wont be in Ireland for few months and I would like to keep the money only for calls.  How I could disable it? Thanks in advance,Loren

  • MIGO for services?

    Hi, Is it possible to do MIGO for services? If yes...how? Regards SIv