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

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

  • 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

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

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

  • SQ01 - ABAP List Report Header

    We have a query in SQ01 that provides a listing of employees and their
    IT0027 distribution accounts. Using the ABAP List as the output I have
    some control over the header information. I've done things like the
    report title, the username of the individual who runs it, the time and
    date it was run, etc. What I've been asked to do is display the input
    parameters for the report in the header.
    So, if someone requested KOSTL = E991234 (the screen field is
    SP$00008-LOW), then they'd like to see the header:
    "Report of Employees by Distribution Account"
    "For Cost Center: E991234"
    When I attempt to put the field KOSTL in the header then I get the cost
    center for the first employee record. So, if the user chooses more than
    one KOSTL, I only get one of the cost centers to display in the header.
    Clicking on the "Selections" icon provides a listing of ALL the
    parameters, but I only want to display one or two of those - and I want
    it in the header rather than as a separate item to click and print.
    Can anyone help with coding either in the query or the infoset?
    Thanks,
    John
    John Rich
    HR Team, IRIS Administrative Support
    The University of Tennessee

    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

  • Printing ABAP List(Report output - SE38) in A3 format

    I have a requirement to print the ABAP report in A3 page format. I am using LP01 printer and in in SPAD transcation I Changed the Tab "Output Attributes"
    Paper tray = "Paper tray 3" and Tab "Tray Info" Tray 3 = "DINA3"  still the report gets print in A4 page format.
    Even i tried by changing the lize size and line count...still .... it prints in A4 format only.
    Could you let me know what exactly I need to in order to print my report output in A3 Page format.
    Waiting for your reply.
    Thanks in Advance,
    Steevan

    Hi,
    Check this below link
    http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm
    Cheers!!
    VEnk@

  • Any one can help me for the report printing in Report 10g

    when the report is printed internet explorer i want database updateing how ?

    i asume you are using (Web)Reports 9i or higher.
    you could implement something like
    -- start report
    --check report progress
    LOOP
      l_report_status:= report_object_status(l_job_id);
      exit when (l_report_status not in('ENQUEUED', 'OPENING_REPORT', 'RUNNING'));
    END LOOP;
    -- report ended (with/without errors)
    IF (l_report_status='FINISHED')
    THEN
       -- Report run was successful: update database
    ELSE
       -- Report generation errors
    END IF;to check if the report finished succesfully.
    succes

  • 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

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

  • Application toolbar list report

    Hi,
    How would I get a button on the application toolbar for an abap list report.
    I could do it using a selection screen, but I want the button usuable when the list output is printed
    to the screen. I have clickable icons on the list report. Be nice to have toolbar buttons.
    thanks
    Dylan.

    Hi you are asking about selection-screen application tool bar buttons or output application tool bar buttons. If u want selection-screen application tool bar buttons then go with SCCRFIELDS structure. If u want output application tool bar buttons then go with Set pf-status.
    Regards,
    Kumar.

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

  • Print Layout Designer / Open Items List Report

    When I open the Reports>Sales and Purchasing>Open Items List report - How can I associate a different Print Layout depending on which Document Type is then selected from the drop down list..
    Eg. When I print a list of Open Purchase Orders I want to us a different print template than when I print a list of Open Sales Orders ?
    Thanks for any pointers..
    Karen

    Hello ...
    You must enter the LDP clicking the pencil icon that appears in the toolbar when the window is open open items list.
    Once there, create 2 new text fields, one with the text "Orders" and another that says "Customer Orders". Both fields were identified as Field_XXX and Field_YYY (where XXX and YYY are numbers that appear in their fields)
    There is a field of variable rate system, which is what lets you see the description of the type of document. (Orders, Customer Orders, etc.).. This field corresponds to variable 100 (check it that way), we assume that this field is the field F_ZZZ within the layout.
    Create 2 fields of type formula, the formula to edit it (Field_XXX == Field_ZZZ) and (Field_YYY == Field_ZZZ) respectively.
    Create 2 text fields (these are only to test the application, then to understand the functionality can not delete them or leave them visible). Set in one of these areas, the letter "A" in the second field and set the letter "B". both camps can put one over the other in the layout.
    Now comes the application of the field ... "A" condicionelo one of the formula fields and country "B" condicionelo another formula field. The conditional mode is to set the formula field in the general tab LINK A. ..
    Try then see a preview of both reports and can see that depending on the type of document you will see "A" or "B" as appropriate.
    Apply the same logic as those fields that you will create and generate the difference between formats.
    I hope this will be helpful
    Best Regards,

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

Maybe you are looking for

  • 5800 - Email Notification wont go

    Hi, I have updated my phone to the latest software. Since that the emai notification wont go even after reading and downloading every mail. Do somebody have a hint? Thanks. Atze

  • SIS190 modules missing wakeup lan - How to rebuild from sis190.c

    Hello, I have a network card with sis190 module. But this module build in original kernel, but don't support wake on lan. And only working with low mtu. So I think, what happening if I rebuild module from sis190.c from sis.com website supports? Maybe

  • Bulk Loader Program to load large xml document

    I am looking for a bulk loader database program that will load a very large xml document. The simple bulk loader application available on the oracle site will not load this document due to its size which is approximately 20MG. Please advise asap. Tha

  • What is "Optimistic Children Check" button?

    Hello, What is the purpose of the "Optimistic Children Check" button on the J2EE DC Explorer Window? I've searched help.sap.com and my local help system but no hits. Thanks in advance for any help. David

  • Exit popup?? (required for bank website)

    Hi, I'm about to create a website for a bank and I would rather use Adobe Muse for this project than WordPress.  However, I need to be able to create an exit popup that warns people when they are leaving the website after clicking a link.  Banks are