Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

ALV top of page not getting displayed

$
0
0

Hi,

following is my code and i want to display the text in top of page. The subroutinge top is not getting executed in output.

please help.

 

 

 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

*   I_INTERFACE_CHECK                 = ' '

*   I_BYPASSING_BUFFER                = ' '

*   I_BUFFER_ACTIVE                   = ' '

*   I_CALLBACK_PROGRAM                = ' '

*   I_CALLBACK_PF_STATUS_SET          = ' '

*   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'

   I_CALLBACK_TOP_OF_PAGE            = 'TOP'

*   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '

*   I_CALLBACK_HTML_END_OF_LIST       = ' '

*   I_STRUCTURE_NAME                  =

*   I_BACKGROUND_ID                   = ' '

   i_grid_title                      'Breakdown Report for MEQ Maintenance'

*   I_GRID_SETTINGS                   =

   is_layout                         itlayout

   it_fieldcat                       itfcat

**   IT_EXCLUDING                      =

**   IT_SPECIAL_GROUPS                 =

**   IT_SORT                           =

**   IT_FILTER                         =

**   IS_SEL_HIDE                       =

*   I_DEFAULT                         = 'X'

*   i_save                            = 'A'

*   IS_VARIANT                        =

*   IT_EVENTS                         =

*   IT_EVENT_EXIT                     =

*   IS_PRINT                          =

*   IS_REPREP_ID                      =

*   I_SCREEN_START_COLUMN             = 0

*   I_SCREEN_START_LINE               = 0

*   I_SCREEN_END_COLUMN               = 0

*   I_SCREEN_END_LINE                 = 0

*   I_HTML_HEIGHT_TOP                 = 0

*   I_HTML_HEIGHT_END                 = 0

*   IT_ALV_GRAPHICS                   =

*   IT_HYPERLINK                      =

*   IT_ADD_FIELDCAT                   =

*   IT_EXCEPT_QINFO                   =

*   IR_SALV_FULLSCREEN_ADAPTER        =

* IMPORTING

*   E_EXIT_CAUSED_BY_CALLER           =

*   ES_EXIT_CAUSED_BY_USER            =

  TABLES

    t_outtab                          = it_meas

* EXCEPTIONS

*   PROGRAM_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.





form top.

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.



* Title

  wa_header-typ  = 'H'.

  wa_header-info = 'Customer Detail Report'.

  append wa_header to t_header.

  clear wa_header.



* Date

  wa_header-typ  = 'S'.

  wa_header-key = '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.



CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

  EXPORTING

    it_list_commentary       = t_header

*   I_LOGO                   =

*   I_END_OF_LIST_GRID       =

*   I_ALV_FORM               =

          .

endform.

 

But along with this infor also i want to mention the user name of the user executing the report.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>