Problem with alv print

Hi,
I am using alv grid, there is a problem with print, when i look at print preview it shows only 1 row and even the values in that row are incorrect.
Please help me solv the problem.
Thanks,
Sai.

Here is the code
*&      Form  DISPLAY
      text
FORM display.
  DATA : fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
*data : wa_fieldcat type slis_fieldcat_alv.
  DATA : t_header  TYPE slis_t_listheader,
         wa_header TYPE slis_listheader.
  DATA : cnt(3) TYPE c VALUE 0.
cnt = cnt + 1.
  fieldcatalog-fieldname   = 'XBLNR'.
  fieldcatalog-seltext_m   = 'Invoice No'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 8.
  fieldcatalog-tabname   = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'BLDAT'.
  fieldcatalog-seltext_m   = 'Invoice Date'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 9.
  fieldcatalog-tabname     = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
*CT3 No.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'SGTXT'.
  fieldcatalog-seltext_m   = 'CT3 No'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 8.
  fieldcatalog-tabname   = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'MBLNR'.
  fieldcatalog-seltext_m   = 'GRR No.'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 10.
  fieldcatalog-tabname     = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'BUDAT'.
  fieldcatalog-seltext_m   = 'GRR DATE'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 9.
  fieldcatalog-tabname     = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'NAME1'.
  fieldcatalog-seltext_m   = 'Vendor Name'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 30.
  fieldcatalog-tabname   = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'MATNR'.
  fieldcatalog-seltext_m   = 'Material No'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 18.
  fieldcatalog-tabname   = 'it_final'.
  fieldcatalog-no_zero   = 'X'.
  fieldcatalog-key         = 'X'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'MAKTX'.
  fieldcatalog-seltext_m   = 'Matdesc'.
  fieldcatalog-col_pos     =  cnt.
  fieldcatalog-outputlen   =  30.
  fieldcatalog-tabname   = 'it_final'.
  fieldcatalog-key         = 'X'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
**Excise Duty
cnt = cnt + 1.
fieldcatalog-fieldname   = 'EDUTY'.
fieldcatalog-seltext_m   = 'EXCISE DUTY '.
fieldcatalog-col_pos     = cnt.
fieldcatalog-outputlen   = 30.
fieldcatalog-tabname   = 'it_final'.
fieldcatalog-do_sum    = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR  fieldcatalog.
*Excise Duty
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'DBDTY'.
  fieldcatalog-seltext_m   = 'DEBIT DUTY '.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 12.
  fieldcatalog-tabname   = 'it_final'.
  fieldcatalog-do_sum    = 'X'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
*Excise Duty
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'CRDTY'.
  fieldcatalog-seltext_m   = 'CREDIT DUTY '.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 12.
  fieldcatalog-tabname   = 'it_final'.
  fieldcatalog-do_sum    = 'X'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
*Credit Date
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'CRDAT'.
  fieldcatalog-seltext_m   = 'Cr. DATE'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 9.
  fieldcatalog-tabname     = 'it_final'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
*Closing Balance
  cnt = cnt + 1.
  fieldcatalog-fieldname   = 'CL_BALANCE'.
  fieldcatalog-seltext_m   = 'BALANCE AMT'.
  fieldcatalog-col_pos     = cnt.
  fieldcatalog-outputlen   = 15.
  fieldcatalog-tabname   = 'it_final1'.
  APPEND fieldcatalog TO fieldcatalog.
  CLEAR  fieldcatalog.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = sy-repid
      i_callback_top_of_page   = 'TOP-OF-PAGE'
      it_fieldcat              = fieldcatalog[]
      i_save                   = 'X'
    TABLES
      t_outtab                 = it_final[]
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.
ENDFORM.                    "DISPLAY
Form  TOP-OF-PAGE                                                 *
ALV Report Header                                                 *
FORM top-of-page.
*ALV Header declarations
  DATA: t_header TYPE slis_t_listheader,
        wa_header TYPE slis_listheader,
        t_line LIKE wa_header-info,
        ld_lines TYPE i,
        ld_linesc(10) TYPE c,
        v_date1(10),
        v_date2(10).
Title
  wa_header-typ  = 'H'.
  wa_header-info = 'B-17 BOND REGISTER - INDIGENOUS RAW MATERIALS'.
  APPEND wa_header TO t_header.
  CLEAR wa_header.
Date
  wa_header-typ  = 'S'.
  wa_header-key = ' Report generated on Date: '.
  CONCATENATE  sy-datum+6(2) '.'
               sy-datum+4(2) '.'
               sy-datum(4) INTO wa_header-info.   "todays date
  APPEND wa_header TO t_header.
  CLEAR: wa_header.
opening balance
  wa_header-typ  = 'S'.
  wa_header-key = ' Opening Amount: '.
  wa_header-info = gv_op_balance.   "Opening amount
  APPEND wa_header TO t_header.
  CLEAR: wa_header.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = t_header.
    i_logo             = 'ENJOYSAP_LOGO'.
ENDFORM.                    "top-of-page

Similar Messages

  • T.code FBL5N: a problem with the print of the output list

    Hi All,
    with reference to the t.code FBL5N, I have  a problem with the print of the output list of the report.
    When I execute the print, I obtain one customer for each page printed.
    I wonder if is possible to obtain more customers for each page printed.
    Could anyone help me?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Dec 21, 2008 10:36 PM

    Hi,
    Though personally i havent tried this option, check the same
    Go to Menu: Settings >> Switch List
    This will make the value displayed in ALV format and then try taking print outs.
    Regards,
    Sridevi

  • Problem with HP Printer Utility and Mac OSX 10.5.4

    I have a problem with HP printer Utility. When a standard user adds a new paper profile HP Printer Utility asks to type an administrator's name and password to allow HP printer Utility to make changes. Is it possible to avoid this? Otherwise I have to give admin rights to every user because they have to be able to add new papers. HP printer Utility sharing and permisssions are set to read and write to everyone.
    HP designjet Z3200
    MacOSX 10.5.4 (Mac pro intel)
    HP printer utility 3.6.0.

    Just found an email HP Support sent to me back in January 2008, about this issue
    "Hello Hunter,
    Thank you for contacting HP Total Care.
    There currently is not proper driver for 10.5, so it is surprising that the printer is printing correctly on your Mac from any application.
    Your issue cannot be resolved until the 10.5 driver is developed and released.
    To sign up for an update as soon as it is available ...click on the link below:
    HP's subscriber's choice is a free service where you can select to receive timely email notifications ranging from software and driver updates to creative ways to do more with your HP products.
    http://h71036.www7.hp.com/hho/html/3618-0-0-225-121.html
    If you need further assistance, please reply to this message and we will be happy to assist you further.
    You may receive an e-mail survey regarding your e-mail support experience. We would appreciate your feedback.
    For information on keeping your HP and Compaq products up and running, please visit our Web site
    at:
    http://www.hp.com/go/totalcare
    Sincerely,
    Dave
    HP Total Care"
    I just sent them an email today on any updates regarding a release date on the Leopard driver for P1005, i'll post any info i receive.

  • Problems with my printer HP Officejet pro 8600 Plus + Yosemite

    Hi got problems with my printer HP Officejet pro 8600 Plus till I installed Yosemite it is not recognized so what can I do now.. No new drivers found by HP

    Thanks for this AnnRT!
    I've spent the best part of a day trying to figure this out. Everything was fine and then one day nothing worked! I have narrowed the issue down to Bonjour via WiFi as everything worked fine via USB, and via IP over WiFi.
    I've now set a static IP for the printer and things seem to be working fine again
    Thanks!
    Chris

  • Problem with pdf-printing in Adobe Acrobat Pro

    Hi,
    I have Adobe Acrobat Pro 9.4.3.
    PDF-printing has always worked great but suddenly there is some kind of problem.
    After printing a excel-document from "Print to pdf" built-in function in MacOS OR Adobes Printer I have corruptet pdf-files when showing them in Adobe Reader/Acrobat, but the MacOS Preview-software shows them correct.
    So, there cannot be any problem with the printing, but the local preview on my computer using Reader or Acrobat. I dont even use the Myriad font in the document, I use Verdana.

    You say you're using Verdana but you're not. The error message clearly shows you're using MyriadPro Bold.
    You probably recently installed the Mac OS X 10.6.7 update which has a bug with OpenType PostScript fonts like MyriadPro Bold. Either use Verdana or another TrueType or PostScript font, or revert to Mac OS X 10.6.6.
    Read about the problem here: http://www.tidbits.com/article/12078

  • HP Officejet Pro 8600+ "There is a problem with the printer or ink system..."

    I have an HP Officejet Pro 8600+ that is coming up with an error message. This just happened out of the blue yesterday. The printer is just over a year old.
    It says:
    "There is a problem with the printer or ink system. Print head missing not detected incorectly installed or incompatable" 
    I have removed and reinstalled ink cartridges, the head, unplugged, cleaned, etc. etc.
    HP Officejet Pro 8600+
    Product Number CM750A
    Serial Number {Content Removed}
    Not under warranty
    Please advise.
    This question was solved.
    View Solution.

    Sorry that you are experiencing this problem. Here is a link that may assist you with the ink system.
    http://goo.gl/BXDFf
    It seems to be a bad print head, or it needs manually cleaned with lint free cloth and water. If these steps do not resolve the issue, contact HP Support (1800-474-6836).
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Problem with the printer or ink system code 0x610000f6 HP model 6700 premium

    Hello, I have recieved an alert for the second time in a week stating that there is a problem with the printer or ink system. The alert prompts me  to turn off, then on the printer. If problem persists, contact HP. 0x610000f6. What could be the cause for this type of alert to appear?

    '0x610000f6' error message appears if there is a 'Paper Jam' or a 'Carriage Jam' in the printer.
    You can experience following issues:
    The product won't print.
    The print job stops unexpectedly.
    To resolve Error code '0x610000f6' follow methods provided in below mentioned link
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01620497

  • Problems with HP printer and PSE 11 (was bill v)

    When using my HP 7020e photosmart printer and Adobe photoshop elements 11, I get a very small white border on the prints. I have set for borderless printing. Adobe says the print size is 4.2 x 6.18 instead of 4 x 6. Any suggestions?

    I had already set it to borderless but it still prints a very small white 
    border. HP had no solution. I am ready to send the printer back to them.
    In a message dated 1/14/2014 5:47:22 A.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  Problems with HP printer and PSE 11 (was bill v)
    created by hyadav (http://forums.adobe.com/people/hyadav)  in Photoshop 
    Elements - View the full  discussion
    (http://forums.adobe.com/message/6010537#6010537)

  • Problem with my printer "sorry not recognised"

    Dispite posting the problem i had after MUCH hard work and searching for how to do this, i never got a reply (i thought this was a support forum), i hate to say it but support from HP has seriously gone down hill, i have a problem with my printer which is in warrenty can i send and email NOOOOOOO cos i have to put S/N and product number i put them in but i get "sorry not recognised" How the hell are you meant to get any support when they make 99% impossible to to post and email them  i am sorry HP but your support is a shambles, your heads should be hung in shame.

    Same problem and the same printer, Yosemite not recognize the printer (which I think is incredible, Windows was better in these areas to get a new OS).
    Some advice from those who have been mentioned here and do not solve the problem?
    If I had known I stay with Snow Leopard, worked best on Imac mid-2010.
    Very unhappy with Apple, had understood that they were more serious and respectful to customers.

  • Pavillion G6. Shrunk C Drive, and formatted the other as I drive. Had some problems with my printe

    I shrank C drive. that left me with another drive, which I formatted as drive I.  The recovery drive is D, as it was when I received the computer.   I had some problems with my printer (Epson) through a Dlink DIR655B1, and wanted to return the computer to factory condition.
    When I try to use the recovery through Windows, it says factory reset is disabled??  When I try to shut down, reboot, and use the bios restore, it just comes up with an error message, says to use the dvd that came with the computer, which it didn't?
    Any way I can put this all back to normal?
    Thanks
    Joe

    517joe wrote:
    I shrank C drive. that left me with another drive, which I formatted as drive I.  The recovery drive is D, as it was when I received the computer.   I had some problems with my printer (Epson) through a Dlink DIR655B1, and wanted to return the computer to factory condition.
    When I try to use the recovery through Windows, it says factory reset is disabled??  When I try to shut down, reboot, and use the bios restore, it just comes up with an error message, says to use the dvd that came with the computer, which it didn't?
    Any way I can put this all back to normal?
    Thanks
    Joe
    You damaged the partition structure when you shrank C, see this guide to properly add a 5th partition after you get it restored using HP recovery media.
    http://h30434.www3.hp.com/t5/Other-Notebook-PC-Questions/How-to-repartition-HDD-of-HP-notebook-with-...

  • I have a problem with ALV Grid User Command?

    Hi Experts,
    I have a problem with ALV GRID User Command.
    I am calling TCODE IW33 (Order Display) from the ALV output at first time by selecting an order. But, User command is calling IW33 Initial screen with blank value of order. Even I checked in debugging the value what I selected is passing properly, but once that screen (IW33 Initial) displays, value doesn't appear. Then, Manually, I  created another session and gone to TCODE IW33 and displayed an order. After that I came out from that order. Then again run my ALV program and selected another order, now order is displaying, but not what I selected current order instead of displaying previous order what I just displayed manually. If I selected any other order, system will display the same order what I dislayed manually.
    Here is my code.
    FORM user_command_alv  USING u_ucomm TYPE sy-ucomm
                           us_self_field TYPE slis_selfield.
    CASE u_ucomm.
    WHEN '&IC1'.
    READ TABLE it_final INDEX us_self_field-tabindex INTO wa_final.
            WHEN 'ORDER'.
              IF NOT wa_final-order IS INITIAL.
                SET PARAMETER ID 'COK' FIELD wa_final-order.
                CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
              ENDIF.
    endform.
    PARAMETER ID 'COK'  also the standard one.
    Could you please help me out, Where I did wrong?
    If I select any order, that order only should display.
    Thanks in advance.
    Regards,
    Sarayu.
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:33 PM

    hi,
    Please check it once the Paramater ID is 'ANR' for IW33 order number.
    Hope this may help.
    Regards,
    Sravanthi

  • Problem with ALV grid in edit mode

    Hello, gurus!
    I have a problem with ALV-grid. Sometimes when I call F4 help for a cell, data is inserted in a different cell.  And when I call check_changed_data method, my internal table (passed to ALV-control in set_table_for_first_display) does not updates properly. In what can be a problem?
    Thanks,
    Mikhail

    Hi Prabhu,
    MODULE pbo_100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      title_of_report = text-010.
      SET TITLEBAR '0100' WITH title_of_report.
      DATA: g_event_receiver TYPE REF TO lcl_event_handler.
      IF z_custom_container IS INITIAL .
        CREATE OBJECT z_custom_container
          EXPORTING
            container_name = 'ALV_ZAC'.
        CREATE OBJECT alv_grid
          EXPORTING
            i_parent = z_custom_container.
        g_repid = sy-repid.
        gs_variant-report = g_repid.
        x_save = 'A'.
        PERFORM check_alv_grid_fields.
        ps_layout-cwidth_opt = 'X'.
        ps_layout-edit = 'X'.
        CALL METHOD alv_grid->set_ready_for_input
          EXPORTING
            i_ready_for_input = '1'.
    *    CALL METHOD alv_grid->register_edit_event
    *      EXPORTING
    *        i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        APPEND   s_list_rec   to it_list_rec.
        CALL METHOD alv_grid->set_table_for_first_display
          EXPORTING
            is_layout       = ps_layout
            is_variant      = gs_variant
            i_save          = x_save
          CHANGING
            it_fieldcatalog = pt_fieldcat
            it_outtab       = it_list_rec[].
        CALL METHOD alv_grid->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CALL METHOD alv_grid->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    ENDIF.
    FORM check_alv_grid_fields .
      DATA: ls_fcat LIKE LINE OF pt_fieldcat.
    REFRESH pt_fieldcat .
    CLEAR: ps_layout, ls_fcat.
      ls_fcat-fieldname = 'VBELN'.
      ls_fcat-ref_field = 'VBELN'. ls_fcat-ref_table =  'LIPS'. " .
      ls_fcat-outputlen = 9.
    *  ls_fcat-datatype   = 'CHAR'.
    *  ls_fcat-inttype    = 'C'.
      APPEND  ls_fcat TO pt_fieldcat.
      CLEAR: ls_fcat.
      ls_fcat-fieldname = 'ERDAT'.
      ls_fcat-ref_field = 'ERDAT'. ls_fcat-ref_table = 'LIPS'.
      ls_fcat-outputlen = 9.
    *  ls_fcat-f4availabl = 'X' .
    *  ls_fcat-datatype   = 'DATS'.
    *  ls_fcat-inttype    = 'D'.
      APPEND ls_fcat TO pt_fieldcat.
      CLEAR: ls_fcat.
    ENDFORM.                    " check_alv_grid_fields
    FORM save_p .
      CLEAR l_valid.
      CALL METHOD alv_grid->check_changed_data
        IMPORTING
          e_valid = l_valid.
      IF l_valid IS INITIAL.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel = text-i01
            txt1  = text-i02
            txt2  = text-i03
            txt3  = text-i04.
      ELSE.
        i_dat_reg = zrumm_prr-cdprr.
        CLEAR is_temp_otc.
        freshit i_prrpus_fax.
        freshit i_list2_ot.
        LOOP AT it_list_rec INTO s_list_rec.
          MOVE-CORRESPONDING s_list_rec TO i_list2_ot.
          i_list2_ot-fgrup = 'RECE'.
          i_list2_ot-prrnu = i_num_prr.
          APPEND i_list2_ot.
          MOVE-CORRESPONDING s_list_rec TO i_prrpus_fax.
          APPEND i_prrpus_fax.
        ENDLOOP.
      ENDIF.
    Edited by: Mikhail Sarychev on Mar 16, 2011 6:41 AM
    Edited by: Mikhail Sarychev on Mar 16, 2011 6:49 AM
    Edited by: Mikhail Sarychev on Mar 16, 2011 6:49 AM

  • I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I hav

    Hi
    I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I have followed adobes recommendations and have tried both letting the printer respektive photoshop manage the colors. But nothing works. I see that there are different opinions about which is best to do so I tried both. I have the latest printer driver installed. Can anyone help me with this?

    Do the following:
    Print a test page from the printer. Perhaps the print head needs cleaning via its maintenance facility.
    Let the printer manage colors, not PSE
    Calibrate the monitor

  • There is a problem with the printer or ink system.

    Will not print. Turn it off then back on; will print one document, but not the last page. Try printing only the last page, but will not print. Will not print one page documents at all. Will not print more than one document without repeating this process.
    First Error message: "There is a problem with the printer or ink system. Turn the printer off, then on. If you continue to get this message, contact HP." Out of warranty.
    Tried this page: http://support.hp.com/us-en/document/c03081973
    Which led me to this page: http://support.hp.com/us-en/document/c03262508
    Now that the ink cartridges are removed as instructed, the carriage will not return to the center of the access area.

    Hey @KennyBee51,
    Thanks again for getting back to me regarding this issue.
    I would have to agree that the HP Officejets Printhead system is defective. I would recommend at this time that you contact our Technical Support queue by phone to explore additional hardware options.
    HP Technical Support can be reached at: 800-474-6836.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    HP Worldwide Contact
    It has been a pleasure working with you. I wish you luck going forward with this!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • I am unable to print a proper playlist in the jewel case format.  Lines print on top of one another.  No problem with other print formats

    I am unable to properly print a playlist in the jewel case format.  All lines bunch together.  I have no problem with other print formats.  Help please.

    If it is a USB powered external, no AC adpater, that may be the reason. Mac notebooks are known to have low powered USB ports. You can get around that with a Y USB cable to connect to 2 USB ports at the same time.

Maybe you are looking for