ABAP list

hi ,
there is a function module or something which write an abap list according to some parameters like no of columns, etc ?
Writting an abap list with write instruction it is not so easy.
Thank you.

hi,
if u want to display normal output of a report like this...
for ex: ur itab contains fields, EMPID, NAME, SALARY.
LOOP AT ITAB.
WRITE: ITAB-EMPID, ITAB-NAME, ITAB-SALARY.
ENDLOOP.
and in TOP-OF-PAGE event u display the titles like ur wish.
And one more way is u can diaply ALV list foramt by using FM.
REUSE_ALV_LIST_DISPLAY.
To do this first u have to create fieldcataulog and u have to pass ur ITAB to FM.
Regards,
Shankar.

Similar Messages

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

  • 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

  • Put logo in ABAP list/smallest font when sending to spool

    Hi Gurus,
    I have a requirement. I did a ABAP list, not ALV, classic one, I also send it to spool and then convert to pdf and download to pc.
    Now our customer wants a logo for it, also as the report is long, when print it or downloading it to pdf, some of parts are missing. So they say that can't we take it in smallest fonts??
    So is it possible to place logo for a classic ABAP list and is it possible to send it in smallest fonts when sending to spool or downloading to pdf??
    I will be pleased for your replies.
    Thanks.

    Hi,
    ABAP lists are simple reports with just rows and columns with text only. it is not possible to put a graphic into an ABAP list. For graphics, you need to use a sapscript form or smartform to create the spool.
    Regards,
    Aidan

  • 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

  • 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 debug Abap List in New Debugger?

    Hi All
    How can we debug the ABAP list in the new debugger? I know that it can be done by switching to old debugger.
    Or
    Did SAP by any chance missed this option?
    Regards,
    Rupesh

    You can just look for this variable  (SAPMSSY0)%_LIST
    it is an internal table of the current list; double_click on it and you will get a look at the contents of the table
    slide your horizontal scroll bar to the right till you get the field LINE . Here we go !
    18.08.2011                         Progr. ZIPPO_FOR_ALL_SERVICE                                1#1########`
    ##########R
    ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    Edited by: luciano puppo on Aug 18, 2011 11:36 AM

  • Display in Abap List

    Hi Experts,
    I am facing an issue in priniting. Print Preview of form is coming in ABAP list format and there is no option to change in OTF format.
    Rahul

    Hi,
    Pl follow the below steps,
    1. If you print via access methods U/S and use SAPlpd, replace SAPlpd with SAPSprint (note 894444).
    2. If you print via access methods 'F', switch to access method 'G'.
    3. Download device type THSWINU that is attached to this note.
    4. Import the device type using report RSTXSCRP and assign it to package SPOO.
    5. Assign the device type to your output devices that formerly used THSAPWIN.
    Hope this helps,
    Thanks,
    Naga

  • 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

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

Maybe you are looking for

  • How to change the storage destination of  Lob objects

    Hi All I've an existing table with a Lob entry. I'd like to redirect all Lob segments in a precific tablespace. I'd like to do this without reconstruct the table. Is it possible ? Thanks in advance, A.G.

  • Just installed mountain lion but iPhoto and Google Chrome keeps crashing.

    Hi, I just installed mountian lion not long ago, but my google chrome and iPhoto keeps crashing. Is there anything i can do? reinstalling is not woring at all. Here is the error for my iPhoto. Process:         iPhoto [469] Path:            /Applicati

  • Wildcard matching for a single uid/email address

    I need to create an account which will receive all mail who's "To:" field matches a string. Specifically, I wish to create a UID=mailproxy which will receive all mail addressed to *[email protected]  If it matters, mail addressed to this account will

  • MacBook Pro Retina Safari Fix

    Hey All, First time poster...thanks for making the site such a great place.  Received a replacement MacBook Pro Retina and still have the same issues in Safari. Here are two sample websites that look weird when I go to view: http://www.usatoday.com/s

  • MBP Display going haywire

    Hi, I have a MBP 17", 10.6.8.  The display is going crazy, lots of sections of various applications and windows all jumping around the screen. (photo attached) Happened only 3 times.  Think it may be a graphic card problem, but want more clarificatio