<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: display report using ALV Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082567#M1180343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code related to ALV programming,&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;/code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SET PF-STATUS 'ALVLIST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at error from 2.&lt;/P&gt;&lt;P&gt;error_alv-pernr = error-pernr.&lt;/P&gt;&lt;P&gt;error_alv-empname = error-empname.&lt;/P&gt;&lt;P&gt;error_alv-paystartdate = error-paystartdate.&lt;/P&gt;&lt;P&gt;error_alv-payenddate = error-payenddate.&lt;/P&gt;&lt;P&gt;error_alv-amount = error-amount.&lt;/P&gt;&lt;P&gt;error_alv-warning = error-warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append error_alv.&lt;/P&gt;&lt;P&gt;clear error_alv. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;get the field catalog for alv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;clear alv_fc[].&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*i_program_name = sy-repid&lt;/P&gt;&lt;P&gt;i_structure_name  = alv_ddic1&lt;/P&gt;&lt;P&gt;*i_inclname = sy-repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = alv_fc[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e007(hrben00listreports).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;get events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;call function 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_list_type = 0&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            et_events   = gt_events[].&lt;/P&gt;&lt;P&gt;  read table gt_events with key name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move g_formname to gt_events-form.&lt;/P&gt;&lt;P&gt;    append gt_events.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gS_PRINT-NO_PRINT_LISTINFOS = 'X'.&lt;/P&gt;&lt;P&gt;gS_PRINT-NO_PRINT_SELINFOS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;display ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active             = ' '&lt;/P&gt;&lt;P&gt;              i_callback_program          = g_repid&lt;/P&gt;&lt;P&gt;              I_CALLBACK_PF_STATUS_SET    = cua_exit&lt;/P&gt;&lt;P&gt;              I_CALLBACK_USER_COMMAND     = ucomm_exit&lt;/P&gt;&lt;P&gt;              it_fieldcat                 = alv_fc[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             is_variant                  = gs_variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                      = 'A'&lt;/P&gt;&lt;P&gt;              it_events                   = gt_events[]&lt;/P&gt;&lt;P&gt;              is_layout                   = gs_layout&lt;/P&gt;&lt;P&gt;              is_print                    = gs_print&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_column       = start_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_line         = start_line&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_column         = end_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_line           = end_line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;              t_outtab = error_alv&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;/code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 18:20:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T18:20:14Z</dc:date>
    <item>
      <title>display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082558#M1180334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a task of reporting the data on ALVGrid. The report program runs fine and is showing up on the ABAP Editor screen, however the data is not displaying in the ALV Grid format. I need to know what am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the FM CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active             = ' '&lt;/P&gt;&lt;P&gt;              i_callback_program          = g_repid&lt;/P&gt;&lt;P&gt;              I_CALLBACK_PF_STATUS_SET    = cua_exit&lt;/P&gt;&lt;P&gt;              I_CALLBACK_USER_COMMAND     = ucomm_exit&lt;/P&gt;&lt;P&gt;              it_fieldcat                 = alv_fc[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             is_variant                  = gs_variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                      = 'A'&lt;/P&gt;&lt;P&gt;              it_events                   = gt_events[]&lt;/P&gt;&lt;P&gt;              is_layout                   = gs_layout&lt;/P&gt;&lt;P&gt;              is_print                    = gs_print&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_column       = start_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_line         = start_line&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_column         = end_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_line           = end_line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;              t_outtab = error_alv&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also included the PBO and PAI event code too, but did not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking at an different ALV report developed that shows the data in ALV Grid and what i find is it calls a program dynamically  SAPLSLVC_FULLSCREEN that my program does not. &lt;/P&gt;&lt;P&gt;What does this mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 16:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082558#M1180334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082559#M1180335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your mistake is here&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = cua_exit&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = ucomm_exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here names should be passed like 'CUA_EXIT' and 'UCOMM_EXIT' in capital letters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that you function will return sys-ubrc ne 0. Check this,&lt;/P&gt;&lt;P&gt;Also skipp &lt;STRONG&gt;i_callback_program = g_repid&lt;/STRONG&gt; as it doens't have to be provided but sometimes creates confusions and mistakes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 16:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082559#M1180335</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082560#M1180336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I have passed the value 'CUA_EXIT' and 'UCOMM_EXIT' int the two variables&lt;/P&gt;&lt;P&gt;cua_exit and ucomm_exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 17:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082560#M1180336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082561#M1180337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't pass them throughout variables. This would require dynamic evaluation what's inside, as during start of program, system doesn't know these variables content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the names directly&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
I_CALLBACK_PF_STATUS_SET = 'CUA_EXIT'
I_CALLBACK_USER_COMMAND = 'UCOMM_EXIT'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 17:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082561#M1180337</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T17:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082562#M1180338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it. Even then it did not work. This time the report that displayed on the ABAP editor screen before also did not show up. I am unable to find where the problem is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 17:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082562#M1180338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T17:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082563#M1180339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program name give it as sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the field catlog give the field name in capital letters.&lt;/P&gt;&lt;P&gt;u will get the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 17:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082563#M1180339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T17:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082564#M1180340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste your entire code here. Place it in    tags please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082564#M1180340</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T18:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082565#M1180341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the FM REUSE_ALV_GRID_DISPLAY, I found that the SAPSLVScreen that paints the ALV report is called within this FM. It seems the function module is not executed, I confirmed that with couple of break points within the FM, the program is not stopping at those breakpoints. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to do with the parameters then, do I need to declare few more parameters like i_screen_start_column, start_line ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082565#M1180341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082566#M1180342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is not inside the function but outside it. Do you have subroutines defined which you are using in &lt;STRONG&gt;i_callback_pf_status_set&lt;/STRONG&gt; and &lt;STRONG&gt;i_callback_user_command&lt;/STRONG&gt; . See my code below. Subroutine name for GUI status must have interfave like &lt;EM&gt;USING ft_extab TYPE slis_t_extab.&lt;/EM&gt; and user command subroutine interface like &lt;EM&gt;USING f_ucomm TYPE sy-ucomm ls_selfield TYPE slis_selfield&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Include           ZDEPY_PRO_IN_UT_ALV_PMI
*&amp;amp;---------------------------------------------------------------------*
FORM alv_prepare.
  PERFORM alv_fieldcat_prepare    USING it_alv_fieldcat[].
  PERFORM alv_event_build         USING it_alv_events[].
  PERFORM alv_header_build        USING it_alv_listheader[].
  PERFORM alv_layout_prepare      USING wa_alv_layout.
  PERFORM alv_sort_info_prepare   USING it_alv_sortinfo[] wa_alv_sort.
ENDFORM.                    "ALV_PREPARE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_fieldcat_prepare
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FT_FIELDCAT  text
*----------------------------------------------------------------------*
FORM alv_fieldcat_prepare USING ft_fieldcat TYPE slis_t_fieldcat_alv.
  DATA: ls_fieldcat TYPE slis_fieldcat_alv.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'ICON'.
  ls_fieldcat-seltext_s   = 'Status'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-icon        = 'X'.
  ls_fieldcat-key         = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'BUKRS'.
  ls_fieldcat-ref_tabname = 'PME01'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-key         = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'WERKS'.
  ls_fieldcat-ref_tabname = 'PME01'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-key         = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'BTRTL'.
  ls_fieldcat-ref_tabname = 'PME01'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-key         = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'PERNR'.
  ls_fieldcat-ref_tabname = 'PME01'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-key         = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'VWTNR'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  ls_fieldcat-seltext_s   = 'Adm. no'.
  ls_fieldcat-seltext_l   = 'Administration number'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'KASIS'.
  ls_fieldcat-seltext_s   = 'Kasis'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'PERIOD'.
  ls_fieldcat-seltext_s   = 'Period'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'AMOUNT'.
  ls_fieldcat-seltext_s   = 'Amount'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
*  ls_fieldcat-cfieldname  = 'BETPE'.
  ls_fieldcat-do_sum      = 'X'.
  APPEND ls_fieldcat TO ft_fieldcat.

  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname   = 'MESS'.
  ls_fieldcat-seltext_s   = 'Message'.
  ls_fieldcat-tabname     = 'IT_ERROR'.
  APPEND ls_fieldcat TO ft_fieldcat.

ENDFORM.                    "alv_fieldcat_prepare

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_layout_prepare
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FS_LAYOUT  text
*----------------------------------------------------------------------*
FORM alv_layout_prepare USING fs_layout TYPE slis_layout_alv.
  fs_layout-colwidth_optimize = 'X'.
  fs_layout-totals_text = 'Total'.
  fs_layout-info_fieldname = 'ROWCOLOR'.
  fs_layout-no_vline = 'X'.
  fs_layout-no_hline = 'X'.
  fs_layout-window_titlebar = 'List for trade union contibution'.
  fs_layout-box_fieldname  = 'SELROW'.
*  fs_layout-prnt_title = 'X'.

  fs_layout-subtotals_text  = ''.
  fs_layout-totals_text     = ''.
  fs_layout-no_sumchoice    = 'X'.
  fs_layout-no_subchoice    = 'X'.
ENDFORM.                    "alv_layout_prepare

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_sort_info_prepare
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FT_SORT    text
*      --&amp;gt;FS_SORT    text
*----------------------------------------------------------------------*
FORM alv_sort_info_prepare  USING   ft_sort TYPE slis_t_sortinfo_alv
                                    fs_sort TYPE slis_sortinfo_alv.
  "BUKRS
  CLEAR fs_sort.
  fs_sort-spos = '01'.
  fs_sort-fieldname = 'BUKRS'.
  fs_sort-tabname = 'IT_ERROR'.
  fs_sort-up = 'X'.
  fs_sort-subtot = 'X'.
  APPEND fs_sort TO ft_sort.

  CLEAR fs_sort.
  fs_sort-spos = '02'.
  fs_sort-fieldname = 'WERKS'.
  fs_sort-tabname = 'IT_ERROR'.
  fs_sort-up = 'X'.
  fs_sort-subtot = 'X'.
  APPEND fs_sort TO ft_sort.

  CLEAR fs_sort.
  fs_sort-spos = '03'.
  fs_sort-fieldname = 'BTRTL'.
  fs_sort-tabname = 'IT_ERROR'.
  fs_sort-up = 'X'.
  fs_sort-subtot = 'X'.
  APPEND fs_sort TO ft_sort.


ENDFORM.                    "alv_sort_info_prepare

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_event_build
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FT_EVENTS  text
*----------------------------------------------------------------------*
FORM alv_event_build USING ft_alv_events TYPE slis_t_event.
  DATA: ls_event TYPE slis_alv_event.
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type = 0
    IMPORTING
      et_events   = ft_alv_events.

  READ TABLE ft_alv_events WITH KEY name = slis_ev_subtotal_text
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_subtotal_text TO ls_event-form.
    APPEND ls_event TO ft_alv_events.
  ENDIF.

  READ TABLE ft_alv_events WITH KEY name = slis_ev_user_command
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_user_command  TO ls_event-form.
    APPEND ls_event TO ft_alv_events.
  ENDIF.

ENDFORM.                    "alv_event_build

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_header_build
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FT_LISTHEADER  text
*----------------------------------------------------------------------*
FORM alv_header_build USING ft_listheader TYPE slis_t_listheader.
  DATA: ls_head TYPE slis_listheader,
        l_begda(10) TYPE c,
        l_endda(10) TYPE c,
        l_period(21) TYPE c,
        l_sys(20) TYPE c,
        l_comc TYPE t001-butxt,
        l_date(10) TYPE c.

  WRITE: pn-begda TO l_begda DD/MM/YYYY,
         pn-endda TO l_endda DD/MM/YYYY.

  CONCATENATE l_begda '-' l_endda INTO l_period.
  CONCATENATE sy-sysid '/' sy-mandt '/' sy-uzeit INTO l_sys.
  WRITE sy-datum TO l_date DD/MM/YYYY.

  SELECT SINGLE butxt FROM t001 INTO l_comc
         WHERE bukrs EQ pa_comc.

  ls_head-typ = 'H'.   "Header in alv
  ls_head-info = l_comc.
  APPEND ls_head TO ft_listheader.

  CLEAR ls_head.
  ls_head-typ  = 'S'.
  ls_head-key  = 'Period:'.
  ls_head-info = l_period.
  APPEND ls_head TO ft_listheader.

  ls_head-typ  = 'S'.
  ls_head-key  = 'Program name:'.
  ls_head-info = sy-repid.
  APPEND ls_head TO ft_listheader.

  ls_head-typ  = 'S'.
  ls_head-key  = 'Date:'.
  ls_head-info = l_date.
  APPEND ls_head TO ft_listheader.

  ls_head-typ  = 'S'.
  ls_head-key  = 'User:'.
  ls_head-info = sy-uname.
  APPEND ls_head TO ft_listheader.

  ls_head-typ  = 'S'.
  ls_head-key  = 'System:'.
  ls_head-info = l_sys.
  APPEND ls_head TO ft_listheader.

ENDFORM.                    "alv_header_build

*-----------------------------------------------------------------*
* This form is executed by dynamic call, it has to be named       *
* like this, use this FM to add header to alv                     *
* The function uses internal table typed slis_t_listheader        *
* and displays icon, just as a facility;)                         *
* To prepare alv header use the subroutine above                  *
*-----------------------------------------------------------------*
FORM top_of_page.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
     EXPORTING
*           i_logo             = 'HTMLCNTL_TESTHTM2_SAPLOGO'
          i_logo             = 'ENJOYSAP_LOGO'
          it_list_commentary = it_alv_listheader.
ENDFORM.                    "alv_top_of_page_display

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;F_UCOMM      text
*      --&amp;gt;LS_SELFIELD  text
*----------------------------------------------------------------------*
FORM user_command USING f_ucomm TYPE sy-ucomm
                        ls_selfield TYPE slis_selfield.
  IF f_ucomm = '$ERR'.  "Error button
    PERFORM alv_display TABLES it_error.
  ELSEIF f_ucomm = '$COR'.  "Correct button
    PERFORM alv_display TABLES it_correct.
  ELSEIF f_ucomm = '$ALL'.  "All button
    PERFORM prepare_overview_table.
    PERFORM alv_display TABLES it_tmp.
  ENDIF.
ENDFORM.                    "USER_COMMAND

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SET_PF_STATUS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;FT_EXTAB   text
*----------------------------------------------------------------------*
FORM set_pf_status USING ft_extab TYPE slis_t_extab.
  SET PF-STATUS 'ALV_STATUS'.
ENDFORM.                    "SET_PF_STATUS
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  alv_display
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM alv_display TABLES ft_alv_outtab STRUCTURE s_ee_data.
  DATA: l_repid TYPE sy-repid.
  l_repid = sy-repid.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = l_repid
     i_callback_pf_status_set          = 'SET_PF_STATUS'
     i_callback_user_command           = 'USER_COMMAND'
     i_callback_top_of_page            = 'TOP_OF_PAGE'
     is_layout                         = wa_alv_layout
     it_fieldcat                       = it_alv_fieldcat[]
     it_sort                           = it_alv_sortinfo[]
     i_default                         = 'X'
     i_save                            = 'A'
     it_events                         = it_alv_events[]
    TABLES
      t_outtab                          = ft_alv_outtab[]
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "alv_display

 PERFORM alv_display TABLES some_internal_table_with_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice to see yours anyway. Could you please provide your entre program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Feb 4, 2009 7:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082566#M1180342</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T18:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082567#M1180343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code related to ALV programming,&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;/code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SET PF-STATUS 'ALVLIST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at error from 2.&lt;/P&gt;&lt;P&gt;error_alv-pernr = error-pernr.&lt;/P&gt;&lt;P&gt;error_alv-empname = error-empname.&lt;/P&gt;&lt;P&gt;error_alv-paystartdate = error-paystartdate.&lt;/P&gt;&lt;P&gt;error_alv-payenddate = error-payenddate.&lt;/P&gt;&lt;P&gt;error_alv-amount = error-amount.&lt;/P&gt;&lt;P&gt;error_alv-warning = error-warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append error_alv.&lt;/P&gt;&lt;P&gt;clear error_alv. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;get the field catalog for alv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;clear alv_fc[].&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*i_program_name = sy-repid&lt;/P&gt;&lt;P&gt;i_structure_name  = alv_ddic1&lt;/P&gt;&lt;P&gt;*i_inclname = sy-repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = alv_fc[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e007(hrben00listreports).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;get events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;call function 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_list_type = 0&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            et_events   = gt_events[].&lt;/P&gt;&lt;P&gt;  read table gt_events with key name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move g_formname to gt_events-form.&lt;/P&gt;&lt;P&gt;    append gt_events.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gS_PRINT-NO_PRINT_LISTINFOS = 'X'.&lt;/P&gt;&lt;P&gt;gS_PRINT-NO_PRINT_SELINFOS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;display ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active             = ' '&lt;/P&gt;&lt;P&gt;              i_callback_program          = g_repid&lt;/P&gt;&lt;P&gt;              I_CALLBACK_PF_STATUS_SET    = cua_exit&lt;/P&gt;&lt;P&gt;              I_CALLBACK_USER_COMMAND     = ucomm_exit&lt;/P&gt;&lt;P&gt;              it_fieldcat                 = alv_fc[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             is_variant                  = gs_variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                      = 'A'&lt;/P&gt;&lt;P&gt;              it_events                   = gt_events[]&lt;/P&gt;&lt;P&gt;              is_layout                   = gs_layout&lt;/P&gt;&lt;P&gt;              is_print                    = gs_print&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_column       = start_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_start_line         = start_line&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_column         = end_column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_screen_end_line           = end_line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;              t_outtab = error_alv&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;/code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082567#M1180343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082568#M1180344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, you might be right. How should I set up ALV_STATUS and in my case it is ALVLIST, it asked for interface objects. How should I go about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082568#M1180344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082569#M1180345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tweaked your code and is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_test2.

TYPE-POOLS slis.

DATA: alv_fc TYPE slis_t_fieldcat_alv,   "fieldcatalog table
      gt_events    TYPE slis_t_event WITH HEADER LINE.         "events

DATA: gs_layout TYPE slis_layout_alv,         "alv layout structure
      gs_print type SLIS_PRINT_ALV.

gs_print-no_print_listinfos = 'X'.
gs_print-no_print_selinfos = 'X'.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
  EXPORTING
    i_list_type = 0
  IMPORTING
    et_events   = gt_events[].
READ TABLE gt_events WITH KEY name = slis_ev_top_of_page.
IF sy-subrc = 0.
  MOVE 'TOP-OF-PAGE' TO gt_events-form.
  APPEND gt_events.
ENDIF.


CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  EXPORTING
    i_structure_name       = 'DDIC_STRUCTURE'     "give DDIC structure name here i.e. 'SFLIGHT'
  CHANGING
    ct_fieldcat            = alv_fc[]
  EXCEPTIONS
    inconsistent_interface = 1
    program_error          = 2
    OTHERS                 = 3.

IF sy-subrc NE 0.
  MESSAGE e007(hrben00listreports).
ENDIF.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
  EXPORTING
    i_buffer_active          = ' '
    i_callback_program       = sy-repid
    i_callback_pf_status_set = 'CUA_EXIT'
    i_callback_user_command  = 'UCOMM_EXIT'
    it_fieldcat              = alv_fc[]
    i_save                   = 'A'
    it_events                = gt_events[]
    is_layout                = gs_layout
    is_print                 = gs_print
  TABLES
    t_outtab                 = error_alv
  EXCEPTIONS
    program_error            = 1
    OTHERS                   = 2.


"set status
FORM CUA_EXIT USING ft_extab TYPE slis_t_extab.
  SET PF-STATUS 'ALVLIST'.
ENDFORM.                    

"your PAI
FORM ucomm_exit   USING f_ucomm TYPE sy-ucomm
                        ls_selfield TYPE slis_selfield.
  IF f_ucomm = ...  "react here
  ENDIF.
ENDFORM.                    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 18:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082569#M1180345</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082570#M1180346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared the interface objects, status, menu and other items that are linked to ALVLIST. Do I need to declare some screen elements here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some assistance here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 19:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082570#M1180346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082571#M1180347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you just design your desired &lt;STRONG&gt;application toolbar&lt;/STRONG&gt; (buttons) and menu entries. This forms GUI status (yours ALVLIST) which you activate and that's it. No relationship with the screen elements there is needed.&lt;/P&gt;&lt;P&gt;If you are not sure which options you need just set standard GUI status with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PF-STATUS space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can finally reach the point you wanted. If so please close  the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 19:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082571#M1180347</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-02-04T19:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082572#M1180348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using this FM CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you use this            FM CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this is helping or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 19:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082572#M1180348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: display report using ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082573#M1180349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it. Thanks a lot for the help. really apprecaite it. Shall award the points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 20:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-report-using-alv-grid/m-p/5082573#M1180349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T20:06:24Z</dc:date>
    </item>
  </channel>
</rss>

