Printing the list output.

Hi All,
I want to print the output of the report. I am printing it using NEW-PAGE PRINT ON . and concluded by NEW-PAGE PRINT OFF. I am doing this under the usercommand.  The problem is,, when I say print,(user command), I can print the output but the it is leading to the previous screen. I want to be in the same screen after my printing. I am pasting the code also. Can any one suggest me, where I am doing the mistake.
<b><REMOVED BY MODERATOR></b>
CASE P_UCOMM1.
    WHEN 'PRINT11'.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          COPIES         = '1'
          DESTINATION    = 'LOCL'
          IMMEDIATELY    = 'X'
          LINE_COUNT     = 25
          LINE_SIZE      = 132
          NO_DIALOG      = 'X'
          USER           = SY-UNAME
          ABAP_LIST      = 'X'
        IMPORTING
          OUT_PARAMETERS = L_PARAMS
          VALID          = L_VALID.
&--'REUSE_ALV_HIERSEQ_LIST_DISPLAY'--
      DATA:FLAG(1).
      CLEAR FLAG.
      IF L_VALID <> SPACE.
        NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.
        CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
          EXPORTING
            I_CALLBACK_PROGRAM       = GD_REPID
           I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET1'
           I_CALLBACK_USER_COMMAND  = 'EXEC'
            IS_LAYOUT                = M_LAYOUT
            IT_FIELDCAT              = I_FLDCATALOG
            IT_EVENTS                = I_EVENTS
            I_TABNAME_HEADER         = 'I_MHEAD'
            I_TABNAME_ITEM           = 'I_MITEM'
            IS_KEYINFO               = M_KEYINFO
          TABLES
            T_OUTTAB_HEADER          = I_MHEAD
            T_OUTTAB_ITEM            = I_MITEM.
        REFRESH I_FLDCATALOG.
        CLEAR M_LAYOUT.
        CLEAR M_KEYINFO.
        NEW-PAGE PRINT OFF.
        CLEAR L_PARAMS.
        CLEAR L_VALID.
      ENDIF.
      LOOP AT I_HITEM INTO W_HITEM.
        IF W_HITEM-CHECK = 'X'.
          W_HITEM-PFLAG = 'PRINTED'.
          MODIFY I_HITEM FROM W_HITEM INDEX SY-TABIX TRANSPORTING PFLAG
        ENDIF.
      ENDLOOP.
      IF SY-SUBRC = 0.
        LOOP AT I_PFLAG INTO W_PFLAG.
          UPDATE RESB SET WEMPF = 'X'
                      WHERE AUFNR = W_PFLAG-AUFNR
                        AND MATNR = W_PFLAG-MATNR
                        AND DUMPS = 'X'.
          COMMIT WORK.
          WAIT UP TO 1 SECONDS.
        ENDLOOP.
      ENDIF.
  ENDCASE.
Thanks
Ramesh.
Message was edited by:
        Alvaro Tejada Galindo

Hi,
When you get the list output .
click on print button to print it. A dialog box will come.
In that dialog box, there will be settings button . when you click on this button, you will get many options and the value of those options that can be set defualt for that report output.
In that there is s option of printer , select that option  and enter a value and then set that as default.
I hope this will solve your problem.
For any more help, please revert back.
Thanks and regards
Gurpreet Singh

Similar Messages

  • Set Printer for List Output

    Is there any way to set a default printer in the program for printing the list output?
    Jyotsna loomba

    Hi,
    When you get the list output .
    click on print button to print it. A dialog box will come.
    In that dialog box, there will be settings button . when you click on this button, you will get many options and the value of those options that can be set defualt for that report output.
    In that there is s option of printer , select that option  and enter a value and then set that as default.
    I hope this will solve your problem.
    For any more help, please revert back.
    Thanks and regards
    Gurpreet Singh

  • How to print the list outout with out getting output?

    How to print the list outout with out getting output?
    My requirement is that when i exicute the program the list output has to print with out getting output list display on the screen.
    if possible cana anyone share the code....
    Phani,

    See this Sample Program.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Awrd POints If useful
    Bhupal

  • Prevent users from printing the List of Business Partner window

    Hi All
    I have had this request and not sure if it possible.
    He wants to prevent the users from printing the List of business partner.
    That is when you do a search on the marketing documents.
    when do a search it brings up the window, List of Business Partners.
    they can go to file print...choose table and print the list of BP.
    is there anyway to prevent that?
    Thank you
    Jerusha

    is it a smartform
    You have to disable from ADOBE end
    sfpoutputparams-NOPRINT = X
    when calling the function module FP_JOB_OPEN.
    Unfortunately the PDF converter, which converts the output
    of a Smartform, does not allow to disable the print button.
    Please see note 841850 about this. Only the PDF-based forms
    support this features (class CL_FP_PDF_OBJECT also belongs
    to the PDF-based forms).

  • Printing report list output in A4 paper

    Hi!
    Is it possible to fit the list output of a report having a line-size of 240 into an A4 paper ?...when I was trying to print the output is being cut. Some columns at the right were not printed since all columns do not fit on the paper even on landscape. The system defaults format is X_65_255 which has 65 rows and 255 lines. How can I make it fit an A4 paper?
    Thanks in advance!

    Hi Mervin,
    To make printing possible on A4 paper you'll need to define a new output format.
    For this use transaction SPAD.
    Press the button "Full Administration" (F7).
    Select the tab "Device Types".
    Press the button "Page formats".
    Set the screen in Change Mode (press Change button or F8).
    Press the Create button (Shift+F1).
    Give a name (starting with Z, like Z_LAND).
    Select Orientation "Landscape".
    Set papersize width/unit to 255 CH
    Set papersize height/unit to 65 LN
    Save your work.
    Go back to tha SPAD tabpages.
    Press the button "Format Types".
    Set the screen in Change Mode (press Change button or F8).
    Press the Create button (Shift+F1).
    Enter in the screen a format name (starting with Z or Y).
    Set the format type to type L (Format type for ABAP lists).
    Set the page format to your created format (like Z_LAND).
    Enter the number of lines that can be printed on A4 (e.g. 65)
    Enter the number characters (columns) that can be printed on one row on A4 (e.g. 255).
    Give a comprehensive comment.
    Save your work.
    Go back to tha SPAD tabpages.
    Select tab "Devices / servers".
    Press the button "Output devices".
    Select your printer.
    Set the screen in Change Mode (press Change button or F8).
    Go to tabpage "Tray info".
    Choose the right tray for your selected printer and fill in the previously created page format.
    Save your work.
    Leave transaction SPAD.
    This format can be used to print your reports.
    Remove your own printerdefault (Via menu System --> User profile --> Own data, tabpage Defaults).
    When printing a dialog appears where you now can choose the modified printer (with modified page settings).
    As you can see, this is more of a job the the admin guys.
    As a remark: The default page formax X_65_255 should print 255 columns on paper (landscape). Most likely a small character set is used for this. The character size can also be modified (in the same transaction) to fit an entire row.
    Hope this gives you a clue where you can influence the way lists are printed.
    Regards,
    Rob.

  • In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?

    In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?
    Thanks to all.

    Actually, I noticed in "More Like This" questions similar to mine.  One of the suggestions worked perfectly.
    Command Shift 4 turns the arrow into a target scope.  Use it to take a screen shot of the area you want printed.  Thanks to all.

  • Need to Print the Report Output

    Hi,
    I want to print the report output. How to install a printer in Oracle Appls. If i give number of copies 1 or morethan 1(from SRS Window)...the report is completed-warning. pls advice
    Thanks in advance.

    Hi,
    I changed the printer to Epson LQ2170 and Epson LQ2180 but since I don't know the initialization and reset parameter (already search for the manual but couldn't find it, downloaded from Epson's website but couldn't find it either) so I register it with LQ1070. I'd tested to print the reports directly from Reports Builder 6i and it printed just as I wanted to but when I tried to print from oracle apps it only printed up to about 3/4 width of the paper. I tried to change the report's height and width, paper size, orientation but no luck. What should I do? Thanks

  • How to print the list shown in the finder

    I work as a photographer. For my clients I burn the pictures on DVD / CD.
    Some of my clients want a indexprint from the folder on the disk.
    How can print the list wich is shown in the finder? A screenshot doesn't work because there are often more items in the folder than the screen shows.
    A friend told me this isn't possible in OS X. In OS9 this function was available, but removed in OS X.... ?
    Regards
    Walter
    G5 Dual   Mac OS X (10.4.8)   also Intel Imac

    Hi Walter,
    To make a list, choose all (COMMAND + a) in the window than "copy" and "paste" to TextEdit or MS Word, or directly into email.
    Also, If you drag a folder or entire volume onto the Print Setup Utility it will print it's contents.
    -mj
    [email protected]

  • How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    Click the playlist in iTunes.  Then go to File > Print ...
    One of the options you will see to print is "CD Jewel Case Insert".  That's just what you want!

  • In mail, how do I print the list of Previous Recipients?

    I'm using mail in 10.5.4. It works fine for me, including the capability of suggesting email addresses from the Previous Recipients list. But, of course, this runs only on my eMac at home.
    I plan to be away for 3 weeks, and will be using email on various folks' computers, by contacting my email server directly (verizon.net). But my email server does not have my Previous Recipients list.
    How can I print the Previous Recipients list?
    In the Previous Recipients window, I find that I can select a single email address with a mouse click, and select all the recipients (command-a), but the copy command (command-c) does not work.
    I've also tried to look at the file:
    ~/Library/Application Support/AddressBookApplication Support/AddressBook/MailRecents-v4.abcdmr,
    but it is not in a readily viewable text format. The Unix "file" command describes it as an "SQLite database (Version 3)."
    Does anyone know how to print a copy of the Previous Recipients, to take with me on vacation?
    Thanks

    This turns out to be more complicated than I had hoped, but it is possible.
    The Apple mail program uses a database program available in Unix called “sqlite3.”
    The executable is in /usr/bin.
    For information about this program, type “man sqlite3” in a terminal window. Also, there is information on the web, at www.sqlite.org.
    A friend whose day job is in database administration helped me work this out.
    First, go the proper directory in a terminal window:
    cd ~/Library/Application Support/AddressBook
    The file of interest is MailRecents-v4abcdmr.
    Note that the “file” command describes this as:
    file MailRecents-v4abcdmr
    MailRecents-v4.abcdmr: SQLite database (Version 3)
    sqlite3 MailRecents-v4.abcdmr
    SQLite version 3.4.0
    Enter ".help" for instructions
    sqlite>
    Let’s see the headers:
    sqlite> .headers ON
    Now, let’s get some information about what’s in this database file:
    sqlite> select * from SQLITE_MASTER; /* don’t forget the semicolon */
    /* lots of output */
    The table ZABCDMAILRECENT is of interest to us. Note that the last 3 columns are called ZLASTNAME, ZFIRSTNAME, and ZEMAIL. We want these from the table, in columns, in filename.txt.
    sqlite> .mode columns ZABCDMAILRECENT
    sqlite> .width 15 15 36 /* make sure the columns are wide enough */
    sqlite> .output filename.txt /* note: no ‘;’ */
    sqlite:> select ZLASTNAME, ZFIRSTNAME, ZEMAIL from ZABCDMAILRECENT;
    sqlite> .exit
    Done. The email names and addresses are now in filename.txt, one per line.
    Maybe, someday, someone at Apple will add this capability to mail.

  • NOT Able to print the Report output in the Printer

    Hello guys
    I have a concurrent Program-which is a report.A printer is installed in Oracle apps and i have assigned that printer to the concurrent Program.Now the problem is when i run the report after giving number of copies as 1 in options button,the report is getting completed sucessfully but it is not getting printed in the printer.
    please help me in this issue.
    log message:
    Printing output file.
    Request ID : 56734501      
    Number of copies : 1      
    Printer : xx-printer
    Finished executing request completion options.
    thanks

    Pl post your OS and EBS versions and pl confirm that you can print the file to the printer from the OS level using OS commands.
    MOS Doc 297522.1 - How to investigate printing issues and work towards its resolution ?
    HTH
    Srini

  • ICal under 10.5 doesn't print the List view with To Do's correctly.

    The problem is this: I have a bunch of To Do's in iCal. I usually print them out on paper using the LIST VIEW (print dialog) so that I can take my To Do list with me. Unfortunately, after updating to Leopard 10.5, all the URL's in my To Do's have wierd links to my email and print funny code on paper now. It's like the added feature of To Do's in mail has caused something here. Anyone else experiencing this? By this way, this only happens with old to do's (before the upgrade), not new ones.

    John,
    This has happened to me as well. Our school uses phpicalendar to publish lesson plans to our web server. I have had this happen to three other teachers as well. In order to get them back to the correct server I have to export their calendars to the desktop, create a new calendar and publish it to the correct location, then import their calendars from the desktop. I haven't been able to re-enter the correct URL in the existing calendars - get an error when publishing.

  • Can I export the list output to screen.

    HI,
    My concept is I want to export the output of the list into a screen.
    Can anybody help
    regards
    Mave

    Hi Mave,
    If yours is an ALV list, you can create your own custom button in the application toolbar for Export and using ALV event handling, you can implement the functionality to be incorporated in the custom export button. In the implementation, you can create a screen with table control and then the same internal table data used to display the list can be used to transfer data into the table control.
    Cheers
    sharmistha

  • PRINTING A LIST OUTPUT WITHOUT USING SP01 TCODE

    Dear All
    I have developed an pf report which is of list output format i have used WRITE statements ...and i want to print this output ; like whenever i click print option on menu bar it should ask for print preview option and after confirmation i will print it without going to SP01 tcode .is there any way i could achieve this functionality .. kindly help me in this regard or suggest me a better way of doing it
    Thanking you

    do a F1 on NEW-PAGE statement its all there...

  • How to print the form output in news paper format

    Hi All,
    How we will print the data in the output in newspaper format in SAP script?
    Can any body give some idea on this.
    Thanks&Regards
    Mahesh

    If what I understand is correct..!!!!!!!!!
    design the windows in required format. and make the window belongs to all required pages and just type the matter there itself. then run the form from ABAP editor.
    Cheers.

Maybe you are looking for

  • Multiple All Day Events Missing in Week View

    Hello, I just got my first BB a Curve 8900 and am very impressed. The only thing I don't like is that if I have more than one all day event on a particular day, in Week View I can't see them. (I've used a variety of other phones/PDAs over the years a

  • Error while opening a form after R12 install

    Hi, I have installed EBS R12.0.4 on linux. The install is successful and i am able to login. But when I am trying to open a forms session I am getting an error "Unknown plugin (application/x-java-applet;jpi-version=1.5.0_13)". I am using Mozilla Fire

  • Mail configuration in shared services

    Hi, I have configured SMTP Mail Server name in the shared services but still not able to send HFR and Web analysis reports through email. When I click on Email Link in WOrkspace on a particular report, getting below error: Enter the user email addres

  • When i sign into my Ipad the sign into Icloud keeps popping up.  I can't do anything else with it at this time.

    I am not where my normal network connection is and I cant get in to put a password in for the network where I am at due to the icloud pop up.  what can I do to get it to stop.

  • Sender make some changes to the data

    Hi, Could anybody please answer to this question. In file to idoc scenario, the data has been sent from sender(file) to receiver(R/3) . If the customer wants to make some modifications in the data is it possible to update the receiver system.How can