Data missing when Exporting or print preview from ALV report

Hi
I have a alv report which is showing fine but when i try to export it to say excel sheet or do print preview some of the data is missing. Can anyone tell me how to fix this. or at least point to some document that discuss this problem.
Here is my ALV CODE
*  CALL_ALV
form call_alv.
*  v_repid = sy-repid.
  perform build_field_catalog using field_tab[].
  perform build_eventtab      using events[].
  perform comment_build       using header_alv[].
  perform build_sorttab       using gt_sort[].
*  perform build_layout.
*  v_variant-variant = '/TEST3'.
* Call ABAP List Viewer
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program      = v_repid
      i_callback_user_command = ''
      i_structure_name        = 'REC'
      it_fieldcat             = field_tab[]
      it_special_groups       = gt_sp_group[]
      it_sort                 = gt_sort[]
      i_save                  = v_save
      is_variant              = v_variant
      it_events               = events[]
*      is_layout               = gd_layout
    tables
      t_outtab                 = REC
    exceptions
      program_error            = 1
      others                   = 2.
endform.
From my Catalog this data is missing
* BUILD_FIELD_CATALOG
form build_field_catalog USING pt_fieldcat type
                               slis_t_fieldcat_alv.
  data:  ls_fieldcat type slis_fieldcat_alv.
  clear: fieldcat, pt_fieldcat[].
  ls_fieldcat-tabname        =                'REC'.
  ls_fieldcat-edit           =                ' '.
    ls_fieldcat-fieldname      =                'PERNR'.
    ls_fieldcat-seltext_s      =                'Employee #     '.
    ls_fieldcat-seltext_m      =                'Employee #           '.
    ls_fieldcat-seltext_l      =                'Employee #           '.
    ls_fieldcat-datatype       =                'C'.
    append ls_fieldcat to pt_fieldcat.
There r coupole that's missing
But there couple that show's up like this one
    ls_fieldcat-fieldname      =                'STIME'.
    ls_fieldcat-seltext_s      =                'ST   '.
    ls_fieldcat-seltext_m      =                'St Tm     '.
    ls_fieldcat-seltext_l      =                'Start Time          '.
    ls_fieldcat-datatype       =                'C'.
    append ls_fieldcat to pt_fieldcat.
    ls_fieldcat-fieldname      =                'ETIME'.
    ls_fieldcat-seltext_s      =                'ET      '.
    ls_fieldcat-seltext_m      =                'Et Tm           '.
    ls_fieldcat-seltext_l      =                'End Time             '.
    append ls_fieldcat to pt_fieldcat.
I always reward points.
Thanks

hi Anwarul,
Try the following code:
*  CALL_ALV
form call_alv.
*  v_repid = sy-repid.
  perform build_field_catalog using field_tab[].
  perform build_eventtab      using events[].
  perform comment_build       using header_alv[].
  perform build_sorttab       using gt_sort[].
*  perform build_layout.
*  v_variant-variant = '/TEST3'.
* Call ABAP List Viewer
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program      = v_repid
      i_callback_user_command = ''
      i_structure_name        = 'REC'
      it_fieldcat             = field_tab[]
      it_special_groups       = gt_sp_group[]
      it_sort                 = gt_sort[]
      i_save                  = v_save
      is_variant              = v_variant
      it_events               = events[]
*      is_layout               = gd_layout
    tables
      t_outtab                 = REC
    exceptions
      program_error            = 1
      others                   = 2.
endform.
form build_field_catalog USING pt_fieldcat type
                               slis_t_fieldcat_alv.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
I_PROGRAM_NAME  = sy-repid
I_STRUCTURE_NAME = 'REC'
changing
CT_FIELDCAT          = pt_fieldcat.
When you export to excel, the character fields and numeric columns gets re-arranged, but all the fields will be displayed in this case.
hope this helps.

Similar Messages

  • Chinese Fonts are coming ZUNK when i do print preview from web UI

    Hello All,
    I have a smartform which includes a standard text which is maintained in Chinese language. This smartform would be called from web UI -> activities -> Fax -> print preview.
    when i do print preview of any activity, everything is coming correct except chinese text, it is coming as zunk characters.
    i have created a standard text ( through Tcode - SO10 ) in CHINESE When i call it in my Smartforms it is displaying like boxes ( garbage ) .
    But when seen in SO10 in Chinese login language the text is maintained properly in Chinese
    Please let me know wat is missed out or is there any settings which should be enabled.
    how would i do  Character set enabled for chinese language?
    Thank You...
    seema
    Edited by: seema rajjot on Sep 21, 2011 5:04 PM

    Hi Sagar,
    Yes that's a problem for Cyrillic fonts , I suppose you are using two action definitions : one for ES and one for EN print.
    For Spanish you have to use a smart style which supports the ISO Cyrillic characters and that will then open up correctly for Spanish users.
    Regards,
    Hasan Rafiq

  • Error when exporting to other format from crystal report

    Hi,
    I have been facing an error "Method 'IRCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version = 11.0.3300.0, Culture-neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overriden." while trying to export the crystal report to another format (e.g. pdf and excel) from an application from a software vendor.
    For your information, the machine OS that is running the application is Window 7. Before I did the installation of the application, it already has Visual Studio 2005 and Crystal Report XI Release 1 installed in the Window  7 system. After I had the above error, I went to search more information on the website and found out that I need to upgrade to Crystal Report XI Release 2 from the search results. However, after I upgraded from Crystal Report XI Release 1 to Crystal Report XI Release 2 and apply service pack 6, I still faced the same error when I tried to export. I even tried to uninstall Visual Studio 2005 and Crystal Report XI Release 2 but I'm still facing the same above error while exporting. I also tried to reinstall the application from software vendor but the same error come out.
    Your help is highly appreciated. Thanks!!
    Regards,
    Jennifer

    Good morning Jennifer
    When you say:
    " I also tried to reinstall the application from software vendor but the same error come out."
    I wonder if the app you are trying to install is from a 3rd party vendor / developer? If it is, installing CR XI r2 (11.5) will not resolve the issue for you. From the error, the app was compiled with CR XI R1 (11.0) and the only way to get that app to use CR XI r2 will be to recompile it with CR XI r2 assemblies. E.g.; you will have to have access to the source code and then recompile the app, ensuring that you are referencing CR XI r2 assemblies. Or am I missing something here?
    Ludek

  • Error in print preview in ALV report

    Hi....All,
    Good Day.
    I have developed a ALV report. It is displaying all data properly. The problem is...
    When I am pressing the print preview button... it is getting dump.
    The dump short message is....... "Field symbol has not yet been assigned".
    Hope that I will get a solution from you as previous.
    With Thanks
    Sohel

    Do you use a field for coloring a column or cell?
    If the coding is not too large it could be helpfull to post the coding as well.
    Regards,
    John.

  • Overlapping of Columns in the Print Preview of ALV Report

    Hi ,
          I have created a ALV report  which has 62 columns, when i see the print preview, the rows overlaps one another. I want a printout where no line items or rows should overlap each other. Never mind if the extra overlapped columns get truncated. Kindly help me to solve this problem.
    Regards,
    shivu

    U need to increase u201Cno. of columns fieldu201D in the Format typesu201D. For details pl. see this link.
    http://www.****************/Tutorials/ALV/Spool/width.htm
    Regards,
    Joy.

  • Getting Error While Going For Print Preview in ALV Report

    Hi,
    We doveloped a new report based on client requirment while going for print preview all the fields are shufling.Can you please guide me I am unable to solve this problem.
    Regards
    Suresh

    Do you use a field for coloring a column or cell?
    If the coding is not too large it could be helpfull to post the coding as well.
    Regards,
    John.

  • Data Missing when exporting to .txt

    Hi,
    I am exporting my report to csv but it gets saved as .txt,when i open the .txt file i dont see any data and it is blank.The same can be viewed in pdf and rtf
    Any inputs on this.
    Regards,
    Raja

    Hi Raja,
    Not sure, what version are you in, but must not be in latest.
    You have to write a e-text to get csv/txt of the desired format.
    By default, if you are not in latest version, you will see some data when you select csv without E-text template

  • Modification of print preview of alv report

    Dear all,
            I got a new requirement, after running CADO transaction with sel.parameters PERNR and DATERANGE  it displays alvgrid . If an enduser want to print this ALVGRID that must display sel.parameters at the top of first page.Is it possible while triggering the print to change alvreport layout.
           Please help regarding this.
    Thanks in advance

    I have the same problem, too.
    Can anyone give the solution please..?
    Thanks

  • Print Preview and Export not working FROM ALV Report

    Hi
    I have this ALV report which is working fine. But when I try to do a print preview it doesn't show the columns which r sorted. The columns r there but the data starts from the one which is not sorted so the layout is all messed up. In the ALV report the columns that r sorted groups them into one, I mean they just show only one time rest of the row for the same thing is blank it doesn't repeat the same data in those column. I am not sure whether that's causing it or not.
    Please help.

    Hi Anwarul,
    do not sort passing parameters for sorting. Create a layout (called ALV variant) or do the sorting online clicking columns(s) and sort icons. It will not change when displayed in print preview.
    What function/object do you use?
    Regards,
    Clemens

  • Objects missing when exporting to PDF, but show up when printing to PDF

    Hi - I'm working with someone, both of us in InDesign CS4, and she has some documents that cause a few random objects to just go missing when exported to PDF (same on my computer). But when printing to PDF, they show up fine. They also show up fine if we recreate each individual object, but that can end up being a lot of work. She prefers to export to PDF because of quality. I'm drawing a blank on this one!
    The attached file shows the issue. The green blocks just don't want to show up when exporting.

    Peter -
    The links are just the PDFs of the black and white portions and don't really matter too much since they show up fine when exporting or printing to PDF. Our main concern is the green blocks, which are indeed the green areas of the plan you pointed out. They are actually separate objects created directly within InDesign that can be moved and adjusted.
    I just updated to 6.0.4 and that didn't help. I wonder if this may be a variant of the bugs I was reading about with master pages and certain things not showing up when creating PDFs or printing (even though none of these things are on the master page)?
    Thanks

  • Data disappears when exporting.

    Hi,
    I've just discovered a problem with one of my reports that seems to be dropping information from the details when I export it to a file type. I have reports set to run in enterprise on a weekly basis showing outstanding purchase orders. The report runs correctly when I run it directly from Crystal Reports XI r2, but when it is exported to a different file type, some lines of detail are missing. I have exported to a number of different file types, and still the problems occur. I can print the report from Crystal, and all the data is there.
    There aren't any formulas suppressing any data anywhere in the report
    Anyone have any ideas why this is happening?

    When you use a report to export, it is best to ensure :
    1. all fields on each sectoin are same height ; and
    2. all fields witin the same column are aligned.
    Otherwise, some data could be missing when export especially Excel because some rows / columns are merged.

  • Program to Print Preview from Spool

    Hello gurus,
    I hope you guys could help me out...my requirement is to write an ABAP program that receives a spool number and displays its print preview to the user from there user can choose to print or delete the spool number
    Any advices ?:)

    Hi ..
    Call this FM to generate the Print preview from SPOOL
        CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
          EXPORTING
            spool_request_id = hrqident
          EXCEPTIONS
            OTHERS           = 0.
    <b>REWARD IF HELPFUL</b>

  • Firefox doesn't print or open preview, when I select print preview I get the following error: Couldn't open the file. It may be corrupt or a file format that Preview doesn't recognize.

    Firefox doesn't print or open preview, when I select print preview I get the following error: Couldn’t open the file. It may be corrupt or a file format that Preview doesn’t recognize.
    However, when I print from Safari or another program, I have no problems
    == Yesterday

    The only solution to corrupted files is to restore from your back up.
    Regards
    TD

  • Exporting data from ALV Report...

    Dear All,
    While I am exporting data from ALV report to any other Format (Excel, Txt, HTML) it only export the data of last column, but the heading is comming properly and also the column heading is displaying properly.
    So how to rectify it. (the report is Object Oriented).
    Regards,
    Dahrmesh

    Hi Davabap,
    Refer this sample program "BCALV_GRID_VERIFY" . I hope it is problem with structure mismatching.
    Otherwise can you paste your code ?
    Regards,
    Vicky
    PS: Award points if helpful

  • When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    There have been a lot of recent reports of difficulties sharing to DVD, but haven't been hearing about unreadable disks. Posibly there was an encoding error. Or it could have been bad media (blank disk).
    Does it play in your Mac?
    What brand of disks are you using?
    Russ

Maybe you are looking for

  • Macbook airport issues fixed?

    I just ran Apple software updated and it include a fix for time machine/airport drivers. Tada, its all fixed...or so it seems!

  • Vendor credit memo

    hi all, How to post credit memo for vendor withrespect to PO or Invoice. Rds, Javed

  • Env-entry?

    How do you 'configure' a Workshop application? The normal way to do this in J2EE is to add environment entries in web.xml, ejb-jar.xml or even application.xml. In Workshop there is only web.xml. And when deploying as an EAR file, it gets packaged in

  • Access datagrid column from another column

    Hello Basically, I have 2 columns in a DataGrid, both with CheckBox itemRenderers. When I check the first checkbox, I want the second to be enabled = false.  I'm stuck. Thanks!

  • Multiple Wireless Controller 5508 in WCS 7.0

    I have two Wireless Controller 5508 that are IDENTICAL in configurations and they will work as an ACTIVE/STANDBY scenario because right now we only have 30 APs, which one of the controller should be fine dealing with them... Now, the way we used to w