ALV header not showing in display

Hello experts,
This problem has been bugging me for quite some time. I modified a report to be shown in ALV format. Now, when I execute the report the header does not display. Anyway, I have pasted below my code so you guys might see if I'm missing something. Help would be greatly appreciated. Thanks guys and have a nice day!
FORM display_alv.
  PERFORM f_build_comment USING gt_list_top_of_page[].
  PERFORM f_build_layout USING gs_layout.
  PERFORM f_init_fieldcat USING gt_fieldcat[].
  PERFORM f_init_events USING 'TOP' gt_events[].
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
       EXPORTING
            i_callback_program      = g_repid
            i_callback_user_command = 'USER_COMMAND'.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
            it_fieldcat = gt_fieldcat[]
            is_layout   = gs_layout
            i_tabname   = 'IT_ZTS0001'
            it_events   = gt_events[]
            it_sort     = gt_sort_del
            i_text      = '1ST'
       TABLES
            t_outtab    = it_zts0001.
  gt_print-reserve_lines = 2.
  gt_print-no_coverpage = 'X'.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
       EXPORTING
            is_print = gt_print.
ENDFORM.                    " DISPLAY_ALV
      FORM f_build_comment                                          *
-->  %TOP_OF_PAGE                                                  *
FORM f_build_comment USING %top_of_page TYPE slis_t_listheader.
  DATA: ls_line TYPE slis_listheader,
        d_name(60),
        lv_date(10),
        lv_time(10),
        lc_dttm(50).
**-REPORT NAME
  CLEAR: d_name, ls_line.
  MOVE: sy-title TO d_name.
  ls_line-typ  = 'H'.
  ls_line-info = d_name.
  APPEND ls_line TO %top_of_page.
**-USER ID AND DATE/TIME
  CLEAR: d_name, ls_line.
  CONCATENATE: 'Generated by:' sy-uname INTO d_name SEPARATED BY space.
  ls_line-typ  = 'H'.
  ls_line-info = d_name.
  APPEND ls_line TO %top_of_page.
  CLEAR: d_name, ls_line.
  WRITE: sy-datum TO lv_date MM/DD/YYYY,
         sy-uzeit TO lv_time USING EDIT MASK '__:__:__'.
  CONCATENATE: 'Generated on:' lv_date lv_time
    INTO d_name SEPARATED BY space.
  ls_line-typ  = 'H'.
  ls_line-info = d_name.
  APPEND ls_line TO %top_of_page.
ENDFORM.                    " F_BUILD_COMMENT
      FORM f_build_layout                                           *
-->  %LAYOUT                                                       *
FORM f_build_layout USING %layout TYPE slis_layout_alv.
  %layout-zebra             = 'X'.
ENDFORM.                    " F_BUILD_LAYOUT
      FORM f_init_fieldcat                                          *
-->  %FIELDCAT                                                     *
FORM f_init_fieldcat USING %fieldcat TYPE slis_t_fieldcat_alv.
  DATA: lc_fieldcat TYPE slis_fieldcat_alv.
  CLEAR lc_fieldcat.
  DEFINE m_field.
    add 1 to lc_fieldcat-col_pos.
    lc_fieldcat-fieldname   = &1.
    lc_fieldcat-outputlen   = &2.
    lc_fieldcat-seltext_l   = &3.
    lc_fieldcat-do_sum      = &4.
    lc_fieldcat-inttype     = &5.
    lc_fieldcat-hotspot     = &6.
    lc_fieldcat-fix_column  = &7.
    lc_fieldcat-ddictxt     = 'L'.
    lc_fieldcat-no_zero     = 'X'.
    append lc_fieldcat to %fieldcat.
  END-OF-DEFINITION.
  m_field 'KUNNR' '12' 'Customer Number'        ''  ''  ''  ''.
  m_field 'CD_SEQ' '12' 'Code'                  ''  ''  ''  ''.
  m_field 'ZADDRESS' '12' 'Address'             ''  ''  ''  ''.
  m_field 'ZCPERSON' '12' 'Contact Person'      ''  ''  '' ''.
  m_field 'ZCNUMBER' '12' 'Contact Number'      ''  ''  '' ''.
ENDFORM.                    " f_init_fieldcat
      FORM f_init_events                                            *
-->  P_TYPE                                                        *
-->  %EVENTS                                                       *
FORM f_init_events USING p_type CHANGING %events TYPE slis_t_event.
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
            i_list_type     = 0
       IMPORTING
            et_events       = %events
       EXCEPTIONS
            list_type_wrong = 1
            OTHERS          = 2.
  IF sy-subrc = 0.
    PERFORM f_build_events USING: slis_ev_user_command.
    IF p_type = 'TOP'.
      PERFORM f_build_events USING: gc_top.
   ELSEIF p_type = 'SUM'.
     PERFORM f_build_events_sum USING: gc_topsum.
    ENDIF.
  ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " F_INIT_EVENTS
      FORM f_build_events                                           *
-->  %EVENT                                                        *
FORM f_build_events USING %event.
  READ TABLE gt_events WITH KEY name = %event.
  IF sy-subrc = 0.
    MOVE: %event TO gt_events-form.
   MOVE 'USER_COMMAND' TO gt_events-form.
    MODIFY gt_events INDEX sy-tabix.
  ENDIF.
ENDFORM.                    " F_BUILD_EVENTS
      FORM top_of_page                                              *
FORM top_of_page.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
            it_list_commentary = gt_list_top_of_page.
ENDFORM.

Hi,
Using ALV_BLOCK you can append multiple internal table and display them in one shot.
With ALV Grid you cannot do that, but the output is more prettier than a list. It will look a excel sheet.
Look at the layout values you are passing for the size of the ALV.
Regards,
Ravi
Note : Please mark the helpful answers

Similar Messages

  • Header not showing up in Firefox (but OK in IE7)

    Hello everyone.
    I'm hoping someone can help me with this situation. I'm
    having a problem with my header sometimes not showing up in Firefox
    2.0 (I'm using 2.0.0.13), yet it shows up fine in IE7. The problem
    is intermittent, sometimes it displays as it should and other times
    it's not there (the header is a JPG, 1000x125 pixels, around 25k in
    file size). Sometimes clicking the "Go" button will make it appear
    (other times not) and sometimes "refresh" will do the same or make
    it "disappear" if it's already there. I'm using DW MX 2004 and I
    don't remember having this problem before until just recently on
    some pages that I made from scratch. Here is an
    example of one of
    the pages. So far it's a pretty simple layout using a table, a
    header and a few horizontal buttons.
    If it the header shows up in Firefox, please refresh or
    reload and see if it no longer shows up.
    I'm wondering if I should be doing something else in DW for
    the header so that it will show up every time in Firefox. I can
    post the code if I need to, or you can view it when you visit the
    page.
    Can someone please help?
    Thank you

    > @josie1one, can I ask what OS you are using? I'm not
    sure if it matters,
    > but
    > I'd be curious to know with my results from using XP and
    Win98.
    WinXP Professional.
    > @Dooza, It IS very confusing, ha ha. My viewing
    >
    http://www.beatleslane.com/zhtz/header01.jpg
    works fine on my end.
    >
    http://www.beatleslane.com/header01.jpg
    should NOT work because there's no
    > such
    > file in that location.
    Not Dooza but you say without /zhtz/ it shouldn't work but
    your code is:
    <td height="125" colspan="5"><img
    src="header01.jpg" alt="header"
    width="1000" height="125"></td>
    Note no /zhtz/ ??? Did you try what I suggested? Just for
    laughs?
    Jo
    "CreativeSpurt" <[email protected]> wrote in
    message
    news:ftg0ge$p$[email protected]..
    > @josie1one, I know what you mean by "It won't reappear
    at all for me now.
    > Fine
    > in IE6 oddly". Sometimes I can't make it reappear in FF2
    either, yet no
    > problems in IE7.
    >
    > My main computer is a Win XP Home Ed., and it's the
    computer I'm having
    > this
    > header issue with. As I mentioned, I tried it on a Win98
    (with FF2) and I
    > didn't have a problem (in limited testing). I just now
    tried it on an old
    > Win98
    > laptop (also with FF2) and no problems there either. So,
    the problem seems
    > to
    > only appear with my XP computer using FF. No problems
    with NN9 or IE7 or
    > Win98.
    > And it sounds like josie1one has the same issue as me
    viewing the page, so
    > it's
    > not just me.
    >
    > @josie1one, can I ask what OS you are using? I'm not
    sure if it matters,
    > but
    > I'd be curious to know with my results from using XP and
    Win98.
    >
    > @Dooza, It IS very confusing, ha ha. My viewing
    >
    http://www.beatleslane.com/zhtz/header01.jpg
    works fine on my end.
    >
    http://www.beatleslane.com/header01.jpg
    should NOT work because there's no
    > such
    > file in that location.
    >

  • Appraisal document header not showing up in the Portal

    when I look at the appraisal document in Portal ESS MSS (using WD4A application Appraisal Document) the header of the appraisal document does not show up (in PHAP_ADMIN it does).
    how can I show the appraisal document header in the Portal?
    regards,
    Tiberiu

    >
    Chris Thomas wrote:
    > Do you know how to set the template such that the Header is expanded (displayed) by default ?
    >
    > Chris
    hi chris, that would almost definitely only be available by doing a webdynpro enhancement to hap_main_document.

  • Header not showing up in PDF

    I put a logo in the header of my form and it is not showing up on the saved PDF ~ any idea why?

    Please read the FAQ at http://forums.adobe.com/docs/DOC-4144.  If this does not help you resolve the issue then re-post to this thread.
    -Jeff

  • Custom Inserted HTTP Header not showing up in Iplanet Logs

    ALL:
    I have some iPlanet Enterprise/6.0 web servers sitting behind a LoadBalancer. The LoadBalancer is setup in an 'one-armed mode', and takes a client HTTP request passes it onto the server, but during this process, changes the client source IP to that of local static IP that the LoadBalancer has. Due to our setup we cannot change this.
    By changing the client source IP to a local address, we have lost any useful user session tracking that was done by source IP.
    To get around this, I have the LoadBalancer inserting an HTTP header with the client real source IP. Reading the NSAPI Programmer's Guide (Table 7-1 "http://docs.sun.com/source/816-5686-10/07_magnu.htm"), there is an option "%Req->headers.headername%" that can be used with 'flex-int' to log any header value.
    My output from snoop looks as follows:
    HTTP: ----- HyperText Transfer Protocol -----
    HTTP:
    HTTP: GET /plugin.do HTTP/1.1
    HTTP: OrigClientAddr:10.5.4.28
    HTTP: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP: Accept-Language: en-us
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP:
    I have set the value to "%Req->headers.OrigClientAddr%" and it still does not show up in the log file. Any clues?
    Works fine in Apache with:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{OrigClientAddr}i\" \"%{User-Agent}i\"" headerinsert
    CustomLog logs/access_log headerinsert

    Always nice to find resolution to one's own question.
    Fix was to change the header value to all lower case.
    From:
    "%Req->headers.OrigClientAddr%"
    To:
    "%Req->headers.origclientaddr%"

  • Vendor does not show in Display Vendor list

    Hello SRM Experts,
    I have a problem where I can see the Vendor in BP but I am not able to find this Vendor on the display vendor list on the web.
    In BP, I can see that "Display in BP role" for this Vendor is "Business Partner (Gen.)" and not "Vendor".
    Could this be the reason that it does not show up?
    Also we dont have this vendor in VENMAP table but it is in BUT000.
    Please advise.
    Thanks and Regards
    Aaarvi

    My apologies for not being clear.
    I meant in EBP, while creating a shopping cart, we select the Vendor. While selecting we have the F4 option.
    I do not see the mentioned Vendor in this list, but I can see this in BP transaction. This Vendor also exists in ECC.
    Per my investigation, I cannot this Vendor in VENMAP but is there in BUT000. Also as mentioned previously, the type is different for this Vendor.
    Please advise.
    Thanks and Regards
    Aaarvi

  • When mirroring keynote with my iPod air 2 the presentation will not show on display in presentation mode

    When I mirror a presentation on my iPad air 2 to a TV the content will not show in presentation mode. It will show in edit mode.

    Same problem here - 80 gb classic and same thing happened to me this week - plays fine alone - when hooked to computer says it needs to be reformatted and then when i try to reformat i get error 1415 can't reformat - this is bs and im not shelling out for another ipod - why would it work fine but when connecting it to windows suddenly not work> I think Itunes 10 has got some issues

  • HT201401 My IPhone5 is not showing any display at all...........It's all black & am unable to see any apps etc etc

    My IPhone5 is not showing any of my apps etc.........it's a completely dark screen

    My IPhone5 is not showing any of my apps etc.........it's a completely dark screen

  • Need to add checkbox in alv header Not  in grid

    Dear Guru's,
                       My question is i want to add checkbox on top of alv grid ie on top of page .
    my requriement is for SD module- status of order -Mass Update.
    suppose status checkbox on header is HFSC is checked ( check box),
    for all the sales order which are showed on the alv grid must be updated with this status for which i am calling trasaction VA02 in program and doing changes but i am not able to create checkbox on header .
    Again i have already used ALV without classesso please give me solution accordinglly . Thanks in advance.

    Hi,
    For working with top of page we generally use SLIS_LISTHEADER right.
    In this type the first field is
    type - which can accept values as follows
               H - Heading
               S - Selection
               A - Action
    May be the options Selection or Action may help u.

  • Aperture not showing up / displaying in Mail Photo Browser in Leopard 10.5

    This is for anyone who upgraded to Leopard 10.5.1 and wanted to use Mail's Photo Browser to insert Aperture pics into mail messages. At first, it only displayed the iPhoto and Photo Booth folders in Mail's Photo Browser on my Powermac but I remember seeing it in the Apple store.
    If you already generate previews in Aperture, this is pretty much a non-issue. But for me, it frustrated me for a long time. To make it work, the previews must be set in Aperture. I turned it off because it used up extra HD space.
    In Aperture, you need to check the "Share previews with iLife and iWorks" under Preferences. Then decide which size and quality of a preview you want. The larger the size and quality, the better it will turn out when you use it in the photo browser. This dictates the image size and quality of what is imported into your Mail message. (I used the smallest size and a quality of 7, which gave satisfactory results without making the aperture library grow too much). I figured it I wanted to email a large, I could attach it separately via a standard export from Aperture. Don't go too low on the quality as it will not turn out very good.
    Remember to go and generate previews for each folder or pictures, as those are the only ones that will show up in the Mail photo browser. The folders will show up but no pictures if you don't generate the previews.
    It takes a minute before it refreshes in the Mail Photo Browser. Just play with the different settings and put them into your mail to compare the results.

    I had a similar problem and what I found was that I had some corrupt .avi files. Once I removed them all was well. I had to create a new iPhoto library and hunt and peck. I would drag part of the old library into the new library then see if iTunes would see the photos - once it froze then I knew what part of the iPhoto library to look at.
    MJ

  • HTTP Header not showing up

    I am trying to add a authorization header to the HTTP Post, but it isn't showing up when my end point is https. It only shows up when my end point is http.
    This is how my header is supposed to look like, but it only works when my end point is http.
    Content-Type: text/xml
    Authorization: Basic TWFyc2hmaWVsZDoidzMrJTFAJjJpIUk2
    User-Agent: Microsoft (R) BizTalk (R) Server 2010
    Host: ***.***.***
    Content-Length: 54091
    Expect: 100-continue
    What should I do for this to show up with my https end point ?
    I am using HTTP Adapter and I am trying to write authorization header using:
    inmsg.Context.Write("UserHttpHeaders", "http://schemas.microsoft.com/BizTalk/2003/http-properties", "Authorization: Basic " + System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(Username + ":" + Password)));
    EDIT: I am using HTTP Adapter to accomplish this.

    HTTP data packet/conversation is exactly same with
    HTTP or HTTPS. Only difference is they are encrypted in HTTPS. May since they are encrypted you are not seeing the exact word “Authorization: Basic…” when you search for this text/string.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Top bar does not show for displaying PDFs in browser

    The top bar (the one that has: File-Edit-View-Documents-Tools-Window-Help) displays when the Preference is set to NOT display PDFs in my browser. But when I set the Preference to display PDFs in my browser, the top bar does not display.
    How can I get the top bar to display when my Preference is to display PDFs
    in my browser? That is the manner in which I use Acrobat Reader 90 percent of the time.
    I am using Acrobat Reader 9 which I just downloaded yesterday, my operating system is Windows XP (with Service Packs 1 and 2) and my browser is Internet Explorer.
    Can anyone here help me? Or is there a better place to get help on this?
    Milton Beychok

    Well the problem is that, in Windows, the menu bar is owned by the application. When you view the PDF in the browser, the browser owns the menu bar and chooses what to show. Hence it shows only the browser items and not the Reader menus. If you view it outside the browser, Reader is running stand-alone and shows it's menu items.
    I think, all you can do is show make sure the button bars you want are exposed by default.

  • Flash Header: Not Showing in Safari

    Not sure if it is isolated to my machine. While my flash
    header works in Camino and Firefox, nothing comes up but the grey
    background in Safari. There should be my logo and a set of flash
    links. Nothing though. All of a sudden it is doing this. Never had
    a problem before. The only thing I did was drop a folder called
    "support chat" in my main directory, but that should affect any
    other pages at all. All the files are contained in that support
    chat folder so they should affect the html files in my main
    directory.
    http://www.thevettergroup.com

    Well i tried a couple of sites and none of them are showing
    flash at all!!! On our intranet setup as well the problem persists.
    None of the flash objects load in the browser. Tried on IE but no
    luck.
    Although if you just load a html page directly in browser
    without using the web server, the flash shows fine.
    If anyone knows what the issue is then please do post a
    reply.
    Thanks!

  • MacPro 2013 will not show full display dimensions only 1080p

    I own the "ASUS PB278Q 27-Inch WQHD LED-lit Professional Graphics Monitor" which has 2560x1440 WQHD resolution. When I use HDMI that works in full 1440 dimension quality, but when I switched to display port 1.2 using a wire from amazon "Accell B143B-003J UltraAV Mini DisplayPort to DisplayPort 1.2 Cable with Latch, White, 3.3-Feet" It only displays in 1080p max. Can anyone please help to explain why I can't acheive the full resolution of my displaying unless I use the HDMI wire? I switched to display port so I can plug in my TV to the HDMI port as a second display so I won't be able to go back to HDMI. Side note: No TV (second display) was not connected yet to affect any quality settings.
    Thanks!

    What is the refresh rate that the monitor is using? The FirePro 500's and 700's appear to have a problem displaying at 60Hz @ 4K. Theres a Samsung 4K thread here that describes how to alter one of the system files to get the refresh up, but the highest I've been able to get mine and have a stable full picture is 50Hz. We I believe are at Apples mercy waiting on an updated plist to fix this problem.

  • S_PL0_86000030 not  showing proper display

    S_PL0_86000030 display get change
    balance c/f to Accumulated balance there are 7 columns
    but now showing  only three columns  1)debit bal 2)credit bal 3) accumulated bal.   
    how do i get all seven columns?

    Hi
    When you run the Transaction: S_PL0_86000030.. at the bottom of the Selection Screen you have 3 Option for Output Type:
    1.Graphical Report Output
    2.Classical Drilldown report
    3.Object list
    You can choose Graphical Report Output or Object List and then run the report.In the report screen click the Change Layout button and in the pop-up screen you can select the desired column fields you need and drag it on the left.This will give you the desired output you need.
    If you wanted it to be your default layout then save it and use it whenever you run the Transaction.
    Regards
    Andrew

Maybe you are looking for

  • Best practice for image inserts

    I am planning to create new webhelp topics and edit existing topics in my project. Is it the best practice to place graphics files in the same folder as the HTML input files?

  • Cant get ipod music off of the ipod to burn a cd.

    I have tons of music on my ipod, but I cant burn a cd bc i cant get the music off of the ipod. PLEASE HELP THIS HAS BEEN DRIVING ME CRAZY FOR 3 DAYS.

  • Bug on Oracle 11.2.0.1 on Windows x86 32bit

    Hello, I have a very strange behavior on a database Oracle 11.2.0.1 on a Windows x86 32bit machine. I have 2 simple query on a small table with different condition. If I run the 2 query separately, they extract 2 data correcty, but if I run a unique

  • Warning: accessing obsolete X509Anchors causing stall

    My MBP has been stalling more and more in recent weeks.  The symptom presents itself as everything freezing (including the clock) for several seconds to as many 15 or 20 and then suddenly everything starts working again.  I've been checking the Conso

  • Export/Import User Page custimizations in V2

    This is a common question customers have about Portal V2. If we have 2 portal environments with same user base and want to export a page group and or page from 1 to the other, how can we bring over user customizations of the page as well? thanks