Problem  in Printing the ALV list

Hi,
   I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
  inforamtions included two tables
  first table  contains Sort Criteria, Ascdg, Descnd, Subtotal  columns.
  And second table contains Data statistics , number of
columns.
But from Second page onwards , my alv list printed correctly .
  How can i avoid the First page inforamtion and
      what is the Reason of coming like this?
Thanks,
Neptune.M

I assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
you can for exapmle declare
data:
printstruc type SLIS_PRINT_ALV.
printstruc-NO_PRINT_LISTINFOS = 'X'.
call function 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
IS_PRINT = printstruc
There are many other flags in is_print structures that you can use to manipulate the printing.
Cheers!

Similar Messages

  • Is it Possible to display the output of the ALV list as POP-UP

    Hi Experts,
                     Is it Possible to display the output of the ALV list as POP-UP, if yes then provide some ideas on it.
    thanking in advance,
    Samad.

    Hi samad, it is possible to display alv list as pop-up by using the FM " REUSE_ALV_POPUP_TO_SELECT"
    try this sample code
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
          EXPORTING
       I_TITLE                       =  P1_TITLE
           I_SELECTION                   = 'X'
           I_ZEBRA                       = 'X'
      I_CHECKBOX_FIELDNAME          =
      I_LINEMARK_FIELDNAME          =
      I_SCROLL_TO_SEL_LINE          = 'X'
            I_TABNAME                     = 'T_VBAP'
           I_STRUCTURE_NAME              =  'T_VBAP'
           IT_FIELDCAT                   =  T_FCAT2
           I_CALLBACK_PROGRAM            = 'ZTEST_ALV_POPUP'
       IMPORTING
           ES_SELFIELD                   = I_SELFIELD
           E_EXIT                        = W_EXIT
          TABLES
            T_OUTTAB                      = T_VBAP.
    i think it will solve your problem
    Regards,
    Vijay

  • Problem in printing the selected labels value in smartform-SD_PACKING.....

    Dear all,
    Iam trying to print the packing list using smarforms,
    T.Code - VL74 - After providing the input for the selection screen,
    eg. output_type - 0001.
         outbound.deliv - 80000834.
    In the "OUTPUT FROM HANDLING UNITS" screen, im getting the list of labels available for that selection.
    say for eg.
      HU         Ob Object key Out. Med Role Name 1        City            PkMtT PackMatls
    1000004002 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
      1000004003 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004005 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004006 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    with the Selection check box attached to the first field, when i
    select the first and second HUs, it should be passed to the
    driver program, but im getting only one HU value passed into the driver program.
    In the driver program my code goes like below,
    REPORT ZSDPACKDR LINE-COUNT 100 MESSAGE-ID VV.
    TABLES: VBCO3, TVST.
    INCLUDE ZPALIDATA_PL.
    INCLUDE RVADTABL.
    DATA: RETCODE LIKE SY-SUBRC,             "Returncode
           XSCREEN(1) TYPE C.                 "Ausgabe Printer/Screen
    Internal table for lips
    DATA: lips_wa TYPE lips.
    DATA: int_lips LIKE lips_wa OCCURS 0 WITH HEADER LINE.
    *&      Form  ENTRY
          text
         -->RETURN_CODE  text
         -->US_SCREEN    text
    FORM ENTRY USING RETURN_CODE US_SCREEN.
       CLEAR RETCODE.
       XSCREEN = US_SCREEN.
       PERFORM PROCESSING USING XSCREEN.
       IF RETCODE NE 0.
         RETURN_CODE = 1.
       ELSE.
         RETURN_CODE = 0.
       ENDIF.
    ENDFORM.                    "ENTRY
    FORM PROCESSING USING PROC_SCREEN.
       PERFORM GET_DATA.
       CHECK RETCODE = 0.
    ENDFORM.                    "PROCESSING
    FORM GET_DATA.
      REFRESH: LVBPLK, LVBPLA, int_lips.
      CLEAR: LVBPLK, LVBPLA, int_lips.
       DATA: FM_NAME TYPE RS38L_FNAM.
       VBCO3-VENUM = NAST-OBJKY.                                "00000.....
       VBCO3-SPRAS = NAST-SPRAS.      "D
       VBCO3-KUNDE = NAST-PARNR.      "KUNDE
       VBCO3-PARVW = NAST-PARVW.      "WE
       VBCO3-PACKD = 'X'.
       CALL FUNCTION 'SD_PACKING_PRINT_VIEW_SINGLE'
         EXPORTING
           COMWA                    = VBCO3
         IMPORTING
           VBPLK_WA                 = LVBPLK
           VBPLA_WA                 = LVBPLA
           VBADR_TVST               = LVBADR                    "n_916660
         TABLES
           VBPLP_TAB                = LVBPLP
         EXCEPTIONS
           SHIPPING_UNIT_NOT_UNIQUE = 1
           SHIPPING_UNIT_NOT_FOUND  = 2
           OTHERS                   = 3.
       IF SY-SUBRC NE 0.
         RETCODE = 1.
         PERFORM PROTOCOL_UPDATE.
       ENDIF.
    in the above coding, i used SD_PACKING_PRINT_VIEW_SINGLE', but i tried with SD_PACKING_PRINT_VIEW also, but no values getting loaded in the importing structures. if im doing anything wrong, pls correct me.
    *CALL FUNCTION 'SD_PACKING_PRINT_VIEW'
    EXPORTING
       COMWA                         = VBCO3
      AUFTRAG_NICHT_LESEN           = ' '
      EXPORTDATEN_NICHT_LESEN       = ' '
    IMPORTING
      VBPLA_WA                      =
    TABLES
       VBPLK_TAB                     = LVBPLK
       VBPLP_TAB                     = LVBPLP
       VBPLS_TAB                     = LVBPLS
    EXCEPTIONS
      OBJECT_NOT_FOUND              = 1
      OTHERS                        = 2
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    The problem is:
    For any of the above function call,
    The VBCO3 itself im getting only one label number, hence it is processing for only one, i want to know how to pass on the multiple
    label number to this function call ie, in VBC03.
    meaning i would like to know, in which internal table , i can get the list of all the selected HUs, so that i shall loop this function call inorder get the appropriate output.
    kindly help me to sort this issues.
    Points assured.
    regs,
    Raja

    Dear Srihari,
    I wrote above code in first label(now i deleted do-enddo) only.
    first i  am moving seven lebels data into seven wa's.
    after that reading the first record and moving another itab(for printing at main window i.e. 8 label).
    clearly, there is no space problem..because instead puttting all the required field i put only customer name.
    Now it is printing well in first page with 8 labels(main window) also.
    But in the second Page it displays only 7 labels and not printing rest of the labels.
    for example my itab has 20 records it displays 8 labels in first page &
    next 7 labels in second page and not print the rest of the 5 labels i.e. it is not calling third page(?).
    code..
    CLEAR : WA1, WA2, WA3, WA4, WA5, WA6, WA7.
    loop at it_final into wa_final FROM 1 TO 7.
      if sy-tabix = '1'.
        wa1 = wa_final.
      elseif sy-tabix = '2'.
        wa2 = wa_final.
      elseif sy-tabix = '3'.
        wa3 = wa_final.
      elseif sy-tabix = '4'.
        wa4 = wa_final.
      elseif sy-tabix = '5'.
        wa5 = wa_final.
      elseif sy-tabix = '6'.
        wa6 = wa_final.
      elseif sy-tabix = '7'.
        wa7 = wa_final.
      endif.
      endloop.
       delete it_final from 1 to 7. 
    **Push every 8th row if it_final in it_main
        read table it_final into wa_final index 1.  "deleting 8th, 16th,... records
        if sy-subrc = 0.
          append wa_final to it_main.
         else.
          exit.
        endif.
    *Delete the rows from it_main which are present in it_final
      loop at it_main into wa_final.
        delete table it_final from wa_final.  "deleting 8 th row from it_final.
      endloop.
    Edited by: anurag.radha on Jan 6, 2012 1:09 PM

  • How to print two alv lists in one spool request

    Hello,
    I have made a report which has one alv list based on CL_SALV_TABLE and a message box displayed in a splitter container based on SBAL. In dialog mode everything is fine.
    If I run the report in batch mode, I have put the alv table to
    list_display = abap_true.
    For printing the messages I am using FM BAL_DSP_LOG_PRINT. It has this nice parameter
    i_s_list_append = abap_true.
    Unfortunatly the messages are not appended to the alv list, nor are they in the same spool request.
    I think the system will put it only into the first spool request, when the name, the printer, the number of prints and the format are the same and of couse, if the spool request is still open for appenfing (which it is).
    The name and the format are not the same in my case. So I tried to set the name to TEST using the print options of the FM
    ls_print_options-print_ctrl-pri_params-plist = 'TEST'.
    But unfortunately it is not working. No changes to the name, when I run the report in batch mode.
    Who has experiance with that? Why are both lists not in the same spool request? Are my findings right? Why isn't the name changed?
    Thank you for your help,
    Peter

    do 2 times
    perform write_form.
    end do.
    for header u can give condtion in form.
    use if condition in the editor...
    this will help u...
    Reward IF....... <= IF what? Points removed... read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]!
    Regards
    Anbu
    Edited by: Julius Bussche on Jul 17, 2008 7:01 PM

  • I have a Problem in print the long description data through EDI.

    I have a Problem in print the long description data through EDI:Actually we want to print the long description data through EDI, but it not handling our huge long description data. Here is the example of that>We can print the first two lines into EDI output, but it is failing to print the below text: 
    <B>EPSON, TM-U590 Series: </B> Reliable 88 column slip printer. Operator friendly dot matrix impact printing. Ideal for hotel, bank, restaurant and many more applications .<br><BR> Includes: Printer, Black ribbon & a Connect-It Interface. Power Supply & interface cable sold separately. All printers are RoHS compliant & have a standard 1 year depot warranty. <BR> <BR>
       -------------------------------------Failing to print this lines------------------------------------------------------------------
    <b>COLORS:</b> Epson Cool White (ECW) Only<BR><BR><B><FONT COLOR=#FF0000#>Click links below for helpful Information</FONT><b><br><table border="0" bordercolor="" style="" width="100%" cellpadding="5" cellspacing="5"><tr><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2605" target="_blank"><b>Spec Sheet</b></a></CENTER></FONT></td><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2606" target="_blank"><b>MSRP Price List</b></a></CENTER></FONT></td><TD><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2868" target="_blank"><b>Product Information Guide</b></a></CENTER></FONT></TD></TR><TR><td><FONT SIZE="2" COLOR=#0000FF><B>Warranty Information</B></FONT></td></tr><Tr><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2554" target="_blank"><b>Depot Warranty</b></a></CENTER></FONT></td><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2555" target="_blank"><b>Spare In the Air Warranty</b></a></CENTER></FONT></td><td></td></tr></table><br>
    Please provide some useful thoughts on this EDI issue.
    Thanks
    Ameer

    Try using the FM:
    ENQUE_READ2
    Passing the follwing values:
    GNAME --> VBAK (Sales Order header table)
    GARG   --> The lock argument
                       (This will be a combination of client number anb Sales Order No.
                        Eg: '3001210000054' where the first three digit i,e 300 is the client No
                       and 1210000054 is the sales order no.)
    Regards,
    Firoz.

  • Reg: Print in ALV List

    Hi Experts,
    I have a requirement where i have to display an ALV List without the TOP OF PAGE contents, but when i click print option in the ALV List i have to print the data with the TOP OF PAGE.
    How can i achieve this. Kindly help at the earliest.
    Thanks and Regards
    Vikram S

    Do as given below.
    Before building fieldscatalog
    perform eventtab_build.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = lt_events
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      read table lt_events with key name = slis_ev_top_of_page
      into ls_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to ls_event-form.
        modify lt_events from ls_event index sy-tabix.
      endif.
      clear ls_event.
    form top_of_page.                                           "#EC CALLED
      data: ls_line type slis_listheader.
      clear gt_list_top_of_page.
      clear ls_line.
      ls_line-typ  = 'S'.
      ls_line-key = text-400.
      append ls_line to gt_list_top_of_page.
      clear ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = text-200.
      ls_line-info = period.
      append ls_line to gt_list_top_of_page.
    if sy-ucomm eq 'PRINT'
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
               i_logo             = 'ENJOYSAP_LOGO'
                it_list_commentary = gt_list_top_of_page.
    endform.                    "top_of_page
    endif.

  • How to skip the alv list when submit a report by SUBMIT statement?

    Dear Experts,
    I  have  to submit a report(RMVKON00) for a special request in my  add-on program,  I use the following statment:
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = ABAPLIST_TAB
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
      TABLES
        LISTASCI                 = LISTASCI_TAB[]
       LISTOBJECT                = ABAPLIST_TAB
    EXCEPTIONS
       EMPTY_LIST               = 1
       LIST_INDEX_INVALID       = 2
       OTHERS                   = 3
    But  it still display the alv list , and I must click  button 'BACK' ,then it return my add on program.
    I hope to skip the alv list  (does not display the alv list ) .
    Would you like to help me?
    Thanks and Best Regards,
    Colin.
    Edited by: Colin on Jan 8, 2010 10:09 AM

    Hi Colin,
    I dont think you would be able to skip the ALV output using SUBMIT. However try changing the value of sy-lsind after the submit statement.
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    sy-lsind = sy-lsind - 1.
    If that doesnt work then try using JOB_START JOB_SUBMIT, JOB_CLOSE...
    Thanks,
    Best regards,
    Prashant

  • How to convert the alv list data into pdf format

    Hi Expersts,
                      Is it possible to convert the alv list output data into PDF format? if yes, then please help me with this issue.
    thanks in advance,
    Regards,
    Samad

    hii samad,
    you can go through these link.i hope it ll solve your purpose
    How to convert list output to PDF
    Display ALV list output in PDF format
    regards,
    Shweta

  • Subtotal text in the 3rd column of the alv list

    Hi Guru,
    Can anyone know or have some codes on how to implement a subtotal text in the 3rd column of the ALV list. Im using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY to display the report.
    Please give some advise or help.
    Thanks and rewards is given.

    Hi my friend,
    Insted Using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY
    better use REUSE_ALV_GRID_DISPLAY.
    in that 
            it_sort            = i_sort[]
      constants :     c_x       type char1 value 'X'.
        l_rec_fieldcat_wa-do_sum    = c_x.
      endif.

  • Problem with Printing the Billing date...

    Hi Experts...
    Here im facing the problem in printing the billing date.
    The scenario is as follows.
    The posting date of Billing is 10.10.2008
      The document date of Billing is also 10.10.2008.
    At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
    What modifications should i do to rectify the problem.
    Please advice.
    Regards,
    Y P.

    Prasad,
    Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
    Chandan

  • How to add a button on the ALV LIST pop up

    Hi ,
    Can any one help me to add a button on the ALV list which is a pop up using ABAP Objects.
    Thanks in advance.
    Regards,
    Kavya.

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • Printing the Pick List at operation level

    Hi all,
    Is  it possible to Print the Pick List at operation level.
    Components are assigned  to each operations and release of  production order takes place at operational level. Once operation is released then only relavent component assigned to that particular operation should come in pick list.
    Thanks in advance for your time and efforts.
    Regards,
    Siva
    Edited by: Siva Kumar M on May 19, 2008 3:40 PM

    Hi ,
    System will not select the Opertaion which has status CRTD by default.
    For further selection please try with below settings. ,
    Profile = std profile
    Production Order Number,
    Selection at Operation level
    System status = CRTD  and Actiavte Excl .check box.
    Now system will display the pick list for  released operation and it`s component only 
    Please check, Reward if it is useful.
    Pradeep
    Edited by: Pradeep Kumar on May 19, 2008 3:45 PM

  • Printing the pick list from the delivery automatically

    Hi All,
    Please let me know how to do the : Printing the pick list from the delivery automatically ?
    Thanks in advance.
    Regards,
    Nagaraju.

    hi,
    execute VL70.
    balajia

  • How do you print the reminder list

    How do you print the reminder list?

    With Reminders open and your list you'd like to print select, press command "A". After that copy them (command "C"). After that, open your Text Edit app. Once that is open, paste your copy in there (command "V"). From here you can print like you normally do.

  • How to print the top of page part along with the ALV list and generate PDF

    HI all,
             I have created one ALV by using oops concept .
             and also am able to get the top of page where I have One standard logo on the right hand side
             and some details on the left side .
               Now my requirement is to while printing the list the logo and other top of page details should appear
               In the PDF output but currently while am pressing the print preview button only the alv data is coming
              am already using the method
        handle_top_of_page
          FOR EVENT print_top_of_page
                 OF cl_gui_alv_grid,
    may be am missing something ... How to get the top of page along with the logo printed ?

    Hi  Surya,
    After generating the grid display  click on print button,
    a spool number is generated. capture the spool number and convert it to pdf using the fm:
    CONVERT_ABAPSPOOLJOB_2_PDF  and save the file
    Hope this will solve your problem.
    Regards,
    R K.

Maybe you are looking for

  • Need Classes help......

    Hi all, i was wondering if anyone can help me out with my code. i've got a class Desktop, and a class menu. the class Desktop contains the following... public class Desktop extends JFrame implements ActionListener{ protected JDesktopPane  thedesktop;

  • Map Control Problem

    Hello all, I'm working on a project where maps in windows 8 store app is involved. Here's what happens with me: on app start after the main page is loaded I add a map control. After that I get some data from a server using HTTPClient and put the retr

  • Loop(block)

    plz pay attention to question especially(masijade. ) i won't ask u for childdish code sry for that. one more error the code u give me doesn't work for the subblock which is 2x2 and more than 2 dimension how to write the code to multiply each processo

  • ITunes 5.0.1 still won't recognize iPod shuffle

    This is really getting old.

  • Why did my Captivate 8 trial version end early?

    Downloaded on 3/3/2015, used a few times, opened this morning, it said 24 days left for trial version. Had it open and worked in it for approx. 10.5 hours. Closed my file to work on some audio.  Realized I needed some info from my captivate file, tri