Download a ALV report without repetitive headers and footers.

Hi,
I have an ALV report with header and footer. When I download the report into excel, after every 30 (approx) records there is a header and a footer. But I do not need it.
I need header only once and footer only once in the excel sheet. Please let me know how to achieve it.
Thanks
Krishna

Hi Manish,
if sy-pagno EQ 1 or sy-batch = 'X'.
  Call the top-of-page event code.
endif.
I don't think it can work as it calls the top-of-page at each page in batch mode. Better code should be something like :
if sy-pagno EQ 1.
  Call the top-of-page event code.
endif.
Note : for a generic solution, I think the page number is not automatically page number 1 (for example, if we use a cover page or have printed something else before). So we'd should better use a global variable (first_time) set to 'X' just before CALL FUNCTION 'REUSE_ALV_LIST...' :
IF first_time = 'X'.
  Call the top-of-page event code.
  CLEAR first_time.
ENDIF.
To All,
I really made a big confusion in my previous answers, which were in fact about column headings (how to print them only once). Sorry about that.
Sandra

Similar Messages

  • Run alv report without selection screen in background

    Hello Every body,
    i programmed a ALV Report without selection screen, and i want to create a job for this alv report.
    Any help?
    Thank u.
    Ouail.

    Hi Steve,
    Can you tell me where i have to put your code?
    this is my abap code:
    START-OF-SELECTION.
       p_filref = '\\SAPSERVER\f\SAFT\ivat\FI_Extract_1000_20140709_102346_910.XML'.
       PERFORM copy_from_xml_to_itab TABLES it_ref_file
                                     ref_xml_data
                                     USING p_filref.
    **Begin Extraction File
       SUBMIT ZZ_FI_IVAT_EXTRACTOR
       WITH p_bukrs EQ '1000'
       WITH p_gjahr EQ '1998'
       WITH filepath EQ '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
       WITH cldata eq space
       AND RETURN.
       DATA: FILE_TABLE  TYPE TABLE OF SDOKPATH,
       DIR_TABLE  TYPE TABLE OF SDOKPATH.
       CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
         EXPORTING
           DIRECTORY  = '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
           FILTER     = '*.*'
         TABLES
           FILE_TABLE = FILE_TABLE
           DIR_TABLE  = DIR_TABLE
         EXCEPTIONS
           CNTL_ERROR = 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.
       "get file name
       LOOP AT FILE_TABLE INTO p_filref.
       ENDLOOP.
       CONCATENATE '\\SAPSERVER\f\SAFT\iVAT_Extractie\' p_filref INTO path.
       PERFORM copy_from_xml_to_itab TABLES t_ext_file
                                     ext_xml_data
                                     USING path.
       PERFORM fill_xml_tab_in .
       perform build_fieldcatalog.
       PERFORM compare_data_ref_ext.
       PERFORM send_email.
       perform display_alv_report.
       PERFORM delete_extraction_file.
    in the perform copy_from_xml_to_itab TABLES it_ref_file......, i use this code:
       CREATE OBJECT gcl_xml.
    *Upload XML File
       CALL METHOD gcl_xml->import_from_file
         EXPORTING
           filename = p_filref
         RECEIVING
           retcode  = gv_subrc.
       IF gv_subrc = 0.
         CALL METHOD gcl_xml->render_2_xstring
           IMPORTING
             retcode = gv_subrc
             stream  = gv_xml_string
             size    = gv_size.
         IF gv_subrc = 0.
           REFRESH gt_xml_data[].
    * Convert XML to internal table
           CALL FUNCTION 'SMUM_XML_PARSE'
             EXPORTING
               xml_input = gv_xml_string
             TABLES
               xml_table = gt_xml_data
               return    = gt_return.
         ENDIF.
       ENDIF.

  • Excel Download to ALV report

    Hi Guys,
    I’m facing a peculiar problem.
    When I try to download an ALV report in excel format using (list ->export -> local file-> soread sheet )I’m not able to download complete set of records.
    Same is happening with ws_download,  even though the internal table contains all the record; the number of downloaded records are not same.
    Any one faced same problem. Pls. help me out.
    Regards,
    Sumit

    looks strange!!!!!!!!!!!
    change these in excel sheet and check out if it works
    Change the macro settngs in your excel sheet and checkout if it works
    Open empty excel sheet
    In menu Tools>Macros>Security , change the radiobutton to medium
    And also
    In the Same popup , goto the second tab Trusted Publishers and check the checkbox Trust access to visual basic Project

  • Crystal Reports 2008 Missing Page Headers and Footers when Exporting Excel

    After upgrading from Crystal Reports 9 to Crystal Reports 2008 we have noticed that when we export to Excel the document no longer retains the page headers and footers.  After doing some reading I see that there is a property called ExportPageHeadersAndFooters that we can tap into.  However, I am unable to get this to work for me.  Below is my code, do you have any suggestions?
                    ReportDocument rdReport =  new ReportDocument();
                    rdReport.Load(sReportFilePath);
                    ExportFormatType exType = ExportFormatType.Excel;
                    // create an instance of excel formatting options
                    ExcelFormatOptions foFormat = new ExcelFormatOptions();
                    foFormat.UsePageRange = false;
                    foFormat.ExcelUseConstantColumnWidth = true;
                    foFormat.ExcelTabHasColumnHeadings = true;
                    foFormat.ExportPageBreaksForEachPage = true;
                    foFormat.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage;
                    // set up more exporting options
                    rdReport.ExportOptions.ExportFormatType = ExportFormatType.Excel;
                    rdReport.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                    rdReport.ExportOptions.FormatOptions = foFormat;
                    rdReport.ExportToStream(exType);

    I was able to get it to work but I had to do this.
    ExportRequestContext expReqCntxt = new ExportRequestContext();
    expReqCntxt.ExportInfo = rdReport.ExportOptions;
    sExported = ((CrystalDecisions.CrystalReports.Engine.ReportDocument)rdReport).FormatEngine.ExportToStream(expReqCntxt);

  • I need to print web generated pages for report cards, etc. How can I turn off headers and footers when printing? (Mac OS X 10.8)

    By "headers and footers" I mean the url that gets printed at the top/bottom of the page.

    You can do that from
    '''Firefox Menu''' > '''Print Setup''' (Press the right arrow button in the right end of print option) > '''Print setup''' > '''Margin & Header/Footer''' tab
    In Header/ Footer section select '''--blank--- for ''' from drop down for everything or which ever you don't want

  • How to remove remove page headers and footers

    Hello
    I can't seem to remove headers and footers from my sheet in print view. I am trying to print a chart and the header and footer are eating up valuable real estate! When using 'Pages' I can simply turn them off, where is the equivalent setting in 'Numbers'.
    Any help would be much appreciated.
    Thanks

    Is it really useful to respond to a ridiculous rant ?
    We may perfectly define zero margins.
    What can't be done is to completely get rid of Headers and Footers as we may do in Pages.
    When we enter zero in the Header and Footer fields, we are defining the offset of the item to the top/bottom of the printable area. We don't set the item's height to zero.
    A workaround allowing us to get quite zero margins in Pages :
    Put the cursor in a header.
    Define the font size to 1.
    Put the cursor in a footer.
    Define the font size to 1.
    doesn't apply to Numbers.
    If we set the font size to 20, the header height become greater, if we set it to less than 10, the application set the item's height to 10 points.
    From my point of view, it's clearly a bug (already reported) but I don't know any application with no bug.
    So, if Mr MayBeDay is able to create an application without bugs, he may send a curriculum vitae to Apple which will certainly be glad to sign him.
    Yvan KOENIG (VALLAURIS, France) mercredi 5 janvier 2011 13:44:09

  • Printing w/o headers and footers in OSX10.5

    I am trying to print from Firefox (or any other browser) without the header and footer. I have seen posts from other places saying to use the 'Page SetUp' to adjust margins, remove headers/footers etc, but in OSX10.5 those options are not available. Any help??

    Bug Slinger
    Welcome to the Apple user discussion forums
    Look just to the right of the printer name in the print dialogue box and click on the little black triangle there - this will open a larger dialogue box that includes more options - in Safari print background and print headers and footers are there - the exact options depend on the software you are printing from
    LN
    Message was edited by: LarryHN

  • Different Headers and footers in case of multiple layouts

    Hi
    I have a requirement in which we have 4 layouts in one concurrent program and the layout to be selected is to be decided by the value of DFF at Invoice header level.
    The 4 layouts have different headers and footers for which i am trying use single template (RTF) or multiple sub templates through Import functionality in XML Publisher but not able to show different headers and footers in one document. Also i have tried with the ?start:body?> and <?end body?> tags but facing issues in displaying different headers and footers in one document as we cant call the same body tags again in one rtf.
    I am able to show different headers/footers data for 4 rtf templates by using import functionality as below but the footers can get shifted to next page if the line level records increases.
    Can someone please help. Want to know if its possible to have this functionality. Thanks in Advance.
    Regards,
    Sanket Z
    Edited by: 847314 on Feb 20, 2013 12:36 AM

    The possibility to have different headers/footers for 4 pages in a single word document. Is this functionality possible?
    I want to generate report in which the Invoice header DFF value will decide which template to pick up from 4 layouts and every template has different header/footer.
    i am trying use single template (RTF) or multiple sub templates through Import functionality
    There are two ways in which i am trying to achieve the solution.
    1. I am adding 4 layouts in a single document.
    We can't use the <?start:body?> and <?end body?> tags in one file multiple times so i cant go with this option.
    2. I am using import functionality in which i am registering one Master template which will call 4 sub templates as per the DFF value and that layout will be populated.
    Code for Master template
    <?if: TRX_TYPE ='INV'?>
    <?import:xdo://LLCUST.LL_TEST_LAYOUT1.en.AU/?><?call-template:SubledgerTemplate?>
    <?end if?>
    <?if: TRX_TYPE ='CM'?>
    <?import:xdo://LLCUST.LL_TEST_LAYOUT2.en.AU/?><?call-template:SubledgerTemplate2?>
    <?end if?>
    Code for Layout1 template(LL_TEST_LAYOUT1)
    <?template:SubledgerTemplate?>
    <?call-template:SubledgerTemplateHeader?>
    TAX INVOICE 1
    Invoice Date:TRX_DATE     
    Invoice No: TRX_NUMBER
    Lines data
    <?template:SubledgerTemplateHeader?> Header1<?end template?>
    <?template:SubledgerTemplateFooter?> Footer1<?end template?>
    <?call-template:SubledgerTemplateFooter?>
    <?end template?>
    But here after importing the RTF we need to call the particular template (<?call-template:SubledgerTemplate?>) which can't be combined with the <?start:body?> and <?end body?> tags. So the Footer will not be static at its place.
    Please suggest or let me know if you need any more info or i can forward you the template etc.
    Regards,
    Sanket

  • What happened to page headers and footers in the new version of Numbers?

    Just downloaded the update to Numbers. Where did the Show Layout  with page headers and footers go?

    They are somewhere on the cutting room floor at the Apple app factory.
    Send Feedback to Apple via the Numbers menu.
    Jerry

  • PDF Output - Include headers and footers?

    Hi,
    When I generate a PDF of my web help, I was hoping that it would include the headers and footers that are on my master pages, but it doesn't. I've poked around in the settings, but can't seem to find a way to make this happen. There's no conditional build tag on the header and footer.
    Does anyone know how to specify this?
    Thanks!

    Hi there
    You might start by reviewing the link below:
    Click here
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Can you resize the headers and footers thats located in the page setup? Is there any possible way...or is it set that small by default?

    No biggy if the answer is no. I just would like the printer's headers and footers the same size as my Internet Explorer 8 thats all.

    Hi Again Bob.
    It looks like I am going to be upgrading hardware and software to CS5 after all (With an extra headache of Q2ID). Just before I do so I was wondering if you could point me in the right direction...
    Is it possible that Amazon might stock legitimate versions of CS4? i.e: http://www.amazon.co.uk/Adobe-CS4-Design-Premium-Mac/dp/B001UV3T4W/ref=pd_rhf_p_t_1
    Or could one download a trial of CS4 and purchase after the 30 days? (no idea where a trial would come from either)
    I can't seem to get any information on CS4 at the moment, and would rather not purchase illegitimate software!
    Thanks for your help
    Lawrence

  • When I print a web page, how do I adjust the printe margins so that the headers and footers don't fall off the page?

    I have looked for a way to adjust the page margins for printing, but can't find it. I have found where to adjust what prints in the header and the footer. When I print, the headers and footers are so close to the edge, and sometimes half off the page edge at the top and the bottom, that I can't really read them. This didn't happen in the past. Maybe this has changed since the last update - I'm not sure. Is there a way that I can fix this, so that my headers and footers are readable?
    Thanks.

    Someone else reported this sound last September, but there wasn't any resolution to that thread: [https://support.mozilla.org/en-US/questions/938003 After upgrading to Snow Leopard on my Mac, Firefox makes typewriter or paper crinkling sounds when going to links and sites].
    Does it seem to be at all related to whether pages use Flash? Just wondering whether it is some kind of notification sound related to Flash's capabilities of using the webcam and microphone.

  • "Headers and Footers" error message

    Often when I'm in a topic and double-click on a template to
    open it and get some standard text, I get a dialog box called
    "Headers and Footers" which scolds me about "This topic was created
    from a template and the header and footer has been modified." There
    are two options: "Apply this modification to al topics created from
    the template" and "Apply this modification to this topic only.
    Note: Choosing this option will remove the link to the template."
    Weird this is, neither my topics nor my template have a header or
    footer. Did long ago, but I deleted it. Is this a common buggy
    error, or perhaps something residual from a header/footer of long
    ago? Thx, Eric

    Hi MunchMan and welcome to our community
    Normally, we use Templates to create Headers and Footers and
    apply them to a group or all topics. Naturally, if RoboHelp HTML
    thinks you have modified a Header or a Footer inside of a topic
    attached to a template, it is giving you the option of updating all
    topics with the template attached or disassociating from the
    existing template and basically "orphaning" the topic from any
    templates.
    I'm not sure I'd classify it as a bug. More along the lines
    of "working as designed" or "expected behavior".
    Cheers... Rick

  • How do I use Paged Media styles in css3 ( headers and footers ) ?

    I need to make printer friendly web pages, with neatly styled Page Headers and Footers.
    == This happened ==
    Not sure how often
    == Designing Style Sheets for Printer

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • Only headers and footers appear attempting to print PDFs in Safari 5.0.2

    I am a Mac user trying to help my friend, who uses Safari 5.0.2 on his PC. He can open PDFs within Safari, but when he attempts to print them, all that appears are headers and footers (same thing appears in Print Preview).
    Any suggestions?

    One thing that might be worth a try is uninstalling and then reinstalling his Adobe Reader, Don. (The theory is that that should swap out the nppdf32.dll file governing the Adobe PDF plugin used by Safari.)
    Any better printing performance following the Reader reinstall?

Maybe you are looking for

  • XI 2.0 Mapping Program Archive not imported

    Hi, I am working on XI 2.0 and using XSLT programs within a WinZip archive.  I have tested the mapping program outside of XI and all is OK/Well formed etc, but when I try to import the ZIP file containing the xsl template the imported archive is empt

  • Help, My 2010 Macbook Pro looks wierd!

    Last night I started up my 2010 17" macbook pro and I noticed the startup was strange. The gray screen looked different and the apple had a dotted line outline. When my desktop appeared the image looked like I used a polarized affect in Photoshop. I

  • Deploy RPD in OBIEE 11g

    Hi experts, I am able to deploy RPD & catalog using EM but this process is very time consuming(may be because of graphical presentation takes time to load). I want step by step how can I deploy RPD using command in windows. I am trying  http://obiee-

  • Change Ipod name

    I bought my wife a new 3g Nano. She hooked it up to her computer and itunes to get started. The ipod name is listed as owner. How do you change the name of her specific ipod in itunes or on the ipod? Thanks for the help.

  • Unable to view any videos.  Constantly buffering

    How can I stop the buffering ,  unable to watch any videos.  Please help.