Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: How to display message in the title bar in ALV?

$
0
0

Hi Nidhi,

 

first you get the top of page event by using :

DATA git_events         TYPE slis_t_event,

          gwa_event          TYPE slis_alv_event.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

     IMPORTING

       et_events = git_events.

 

   READ TABLE git_events INTO gwa_event

        WITH KEY name = slis_ev_top_of_page .

   gwa_event-form = slis_ev_top_of_page .

   MODIFY git_events FROM gwa_event INDEX sy-tabix .


then call function to alv display


gwa_layout-no_colhead = ' '.

   CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

    EXPORTING

*   I_INTERFACE_CHECK              = ' '

    i_bypassing_buffer              = 'X'

*   I_BUFFER_ACTIVE                = ' '

      i_callback_program            = sy-repid

    i_callback_pf_status_set       = 'SET_PF_STATUS'

    i_callback_user_command        = 'USER_COMMAND'

*   I_STRUCTURE_NAME               =

    is_layout                       = gwa_layout

      it_fieldcat                   = git_fcat1

*   IT_EXCLUDING                   =

*   IT_SPECIAL_GROUPS              =

*   IT_SORT                        =

*   IT_FILTER                      =

*   IS_SEL_HIDE                    =

*   I_DEFAULT                      = 'X'

*   I_SAVE                         = ' '

*   IS_VARIANT                     =

      it_events                     = git_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

*   IR_SALV_LIST_ADAPTER           =

*   IT_EXCEPT_QINFO                =

*   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE

* IMPORTING

*   E_EXIT_CAUSED_BY_CALLER        =

*   ES_EXIT_CAUSED_BY_USER         =

     TABLES

       t_outtab                     = <it_output>

    EXCEPTIONS

      program_error                 = 1

      OTHERS                        = 2

             .

   IF sy-subrc <> 0.

* Implement suitable error handling here

 

   ENDIF.

 

 

************* write your message or write statements inside form top_of_page

 

FORM top_of_page.

 

write "message"

 

endform.

 

Regards

Ashwin.


Viewing all articles
Browse latest Browse all 8451

Trending Articles



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