<?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: ALV Display Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021349#M81255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear abt the problem. Can you please paste your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2005 16:07:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-28T16:07:29Z</dc:date>
    <item>
      <title>ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021347#M81253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys!&lt;/P&gt;&lt;P&gt;In my program I am using REUSE_ALV_GRID_DISPLAY function and the table i pass to it contains data (5 rows: run it on debug mode). However, after execution, the 5 rows of the table are displayed in the ALV but empty.&lt;/P&gt;&lt;P&gt;The code i'm using in this program works fine with another case.&lt;/P&gt;&lt;P&gt;Could anyone help me with this?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Hajar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021347#M81253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021348#M81254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have u prepared the catalog data for the fields used and passed it to the FM - REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021348#M81254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021349#M81255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear abt the problem. Can you please paste your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021349#M81255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021350#M81256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hajar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether you are passing internal table or not and check in debug mode whether records are shown in your internal table or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL function 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_bypassing_buffer        = 'X'
*            i_buffer_active          = ' '
            i_callback_program        = g_repid
*            i_callback_pf_status_set  = g_status_set
            i_callback_user_command   = g_user_command
            i_structure_name          = 'WA'
            is_layout                 = gs_layout
            it_fieldcat               = lt_fieldcat
            i_save                    = g_save
            is_print                  = gs_print
            is_variant                = gs_variant
*            it_events                 = gt_events[]
            i_grid_title              = list_title
            colwidth_optimize         = 'X'  "optimale Spaltenbreite
       IMPORTING
            e_exit_caused_by_caller   = g_exit_caused_by_caller
            es_exit_caused_by_user    = gs_exit_caused_by_user
       TABLES
            t_outtab                  = &amp;lt;b&amp;gt;itab&amp;lt;/b&amp;gt;
       EXCEPTIONS
            program_error             = 1
            others                    = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or give your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points for helpfull answers and close the thread if your question is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021350#M81256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021351#M81257</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;u need to build a field catalogue internal table for all ur fields used in the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code &lt;/P&gt;&lt;P&gt;form add_field_to_catalogue using  x_col_pos&lt;/P&gt;&lt;P&gt;                                   x_fieldname&lt;/P&gt;&lt;P&gt;                                   x_tabname&lt;/P&gt;&lt;P&gt;                                   x_key&lt;/P&gt;&lt;P&gt;                                   x_reptext&lt;/P&gt;&lt;P&gt;                                   x_rollname&lt;/P&gt;&lt;P&gt;                                   x_lowercase&lt;/P&gt;&lt;P&gt;                                   x_outputlen.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-col_pos   = x_col_pos.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-fieldname = x_fieldname.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-tabname   = x_tabname.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-key       = x_key.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-reptext   = x_reptext.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-dd_roll   = x_rollname.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-lowercase = x_lowercase.&lt;/P&gt;&lt;P&gt;  wa_fieldcatalog-outputlen = x_outputlen.&lt;/P&gt;&lt;P&gt;  append wa_fieldcatalog to t_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021351#M81257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021352#M81258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify more here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis. "ALV Declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of wa,&lt;/P&gt;&lt;P&gt;      pernr type string,&lt;/P&gt;&lt;P&gt;      nachn type string,&lt;/P&gt;&lt;P&gt;      vorna type string,&lt;/P&gt;&lt;P&gt;      libattes type string,&lt;/P&gt;&lt;P&gt;      datdem type string,&lt;/P&gt;&lt;P&gt;      datdep type string,&lt;/P&gt;&lt;P&gt;      statdem type string,&lt;/P&gt;&lt;P&gt;      delivre type string,&lt;/P&gt;&lt;P&gt;      modlivr type string,&lt;/P&gt;&lt;P&gt;      user type string,&lt;/P&gt;&lt;P&gt;      end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_result_tab TYPE STANDARD TABLE OF wa INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;wa_result TYPE wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV data declarations&lt;/P&gt;&lt;P&gt;DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;gd_tab_group TYPE slis_t_sp_group_alv,&lt;/P&gt;&lt;P&gt;gd_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM data_retrieval.&lt;/P&gt;&lt;P&gt;PERFORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;PERFORM build_layout.&lt;/P&gt;&lt;P&gt;PERFORM display_alv_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check function code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check field clicked on within ALVgrid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF rs_selfield-fieldname = 'Mat.'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data table, using index of row user clicked on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE result_tab INTO result_struct INDEX rs_selfield-tabindex.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set parameter ID for transaction screen field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET PARAMETER ID 'BES' FIELD result_struct-pernr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sxecute transaction ME23N, and skip initial data entry screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL TRANSACTION 'ZTRIAL' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Form BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build Fieldcatalog for ALV Report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Mat.'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Matricule de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Nom'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Nom de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Prénom'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Prénom de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 2.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Attestation'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Type d attestation'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 3.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Date de demande'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Date de demande de l attestation'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 4.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Date de traitement'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Date de traitement de l attestation'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 5.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Statut'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Statut de l attestation'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 6.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Délivré par'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Service émetteur'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 7.&lt;/P&gt;&lt;P&gt;fieldcatalog-outputlen = 15.&lt;/P&gt;&lt;P&gt;*fieldcatalog-datatype = 'CURR'.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Mode de réception'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Mode de réception'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 8.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Gestionnaire'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Code du gestionnaire qui'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 9.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;ENDFORM. " BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Form BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build layout for ALV grid report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM build_layout.&lt;/P&gt;&lt;P&gt;gd_layout-no_input = 'X'.&lt;/P&gt;&lt;P&gt;gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;ENDFORM. " BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Form DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display report using ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM display_alv_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_layout = gd_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = wa_result_tab&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Form DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve data form EKPO table and populate itab it_ekko&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM data_retrieval.&lt;/P&gt;&lt;P&gt;  loop at result_tab into result_struct.&lt;/P&gt;&lt;P&gt;      wa_result-pernr = result_struct-pernr.&lt;/P&gt;&lt;P&gt;      wa_result-nachn = result_struct-nachn.&lt;/P&gt;&lt;P&gt;      wa_result-vorna = result_struct-vorna.&lt;/P&gt;&lt;P&gt;      wa_result-libattes = result_struct-libattes.&lt;/P&gt;&lt;P&gt;      wa_result-datdem = result_struct-datdem.&lt;/P&gt;&lt;P&gt;      wa_result-datdep = result_struct-datdep.&lt;/P&gt;&lt;P&gt;      wa_result-statdem = result_struct-statdem.&lt;/P&gt;&lt;P&gt;      wa_result-delivre = result_struct-delivre.&lt;/P&gt;&lt;P&gt;      wa_result-modlivr = result_struct-modlivr.&lt;/P&gt;&lt;P&gt;      wa_result-user = result_struct-user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      append wa_result to wa_result_tab.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;ENDFORM. " DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run this code i get an ALV containing 5 empty rows (my table contain 5 full rows)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 16:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021352#M81258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021353#M81259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in fieldcatalogue build form specify the data type and length of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 17:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021353#M81259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021354#M81260</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;Your catalog table is wrong, look at your internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of wa,&lt;/P&gt;&lt;P&gt;          pernr type string,&lt;/P&gt;&lt;P&gt;          nachn type string,&lt;/P&gt;&lt;P&gt;          vorna type string,&lt;/P&gt;&lt;P&gt;          libattes type string,&lt;/P&gt;&lt;P&gt;          datdem type string, &lt;/P&gt;&lt;P&gt;          datdep type string,&lt;/P&gt;&lt;P&gt;          statdem type string,&lt;/P&gt;&lt;P&gt;          delivre type string,&lt;/P&gt;&lt;P&gt;          modlivr type string,&lt;/P&gt;&lt;P&gt;          user type string,&lt;/P&gt;&lt;P&gt;       end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_result_tab TYPE STANDARD TABLE OF wa INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now see the code you have wroten to build catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Mat.'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Matricule de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'Nom'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Nom de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'NACHN'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Prénom de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 2.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But where field Mat. is? or Prénom? and so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to insert the technical name of field in the field fieldname:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'PERNR'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'Matricule de l agent'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 17:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021354#M81260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T17:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021355#M81261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot for your help. I used technical names in my field catalogue but i still get empty ALV.&lt;/P&gt;&lt;P&gt;any other suggestions??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hajar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 17:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021355#M81261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021356#M81262</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;This is your routine to fill wa_result_tab, but where do you load result_tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM data_retrieval.&lt;/P&gt;&lt;P&gt;loop at result_tab into result_struct.&lt;/P&gt;&lt;P&gt;wa_result-pernr = result_struct-pernr.&lt;/P&gt;&lt;P&gt;wa_result-nachn = result_struct-nachn.&lt;/P&gt;&lt;P&gt;wa_result-vorna = result_struct-vorna.&lt;/P&gt;&lt;P&gt;wa_result-libattes = result_struct-libattes.&lt;/P&gt;&lt;P&gt;wa_result-datdem = result_struct-datdem.&lt;/P&gt;&lt;P&gt;wa_result-datdep = result_struct-datdep.&lt;/P&gt;&lt;P&gt;wa_result-statdem = result_struct-statdem.&lt;/P&gt;&lt;P&gt;wa_result-delivre = result_struct-delivre.&lt;/P&gt;&lt;P&gt;wa_result-modlivr = result_struct-modlivr.&lt;/P&gt;&lt;P&gt;wa_result-user = result_struct-user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_result to wa_result_tab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;ENDFORM. " DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you use type STRING  for define your table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021356#M81262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021357#M81263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My result_tab is loaded somewhere else, i'm sure that it's filled with data and that the wa_result_tab is also filled. I used the type string just to try with it after that I tried using another structure that its elements have the same types as the ones in the table but it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021357#M81263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021358#M81264</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've never used a field type string for alv, so i don't know if it can be some problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to define the fields of your table like the dictionary fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wa_result_tab occurs 0,&lt;/P&gt;&lt;P&gt;        pernr like &amp;lt;table&amp;gt;-pernr,&lt;/P&gt;&lt;P&gt;      end of wa_result_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this fm to load catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021358#M81264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021359#M81265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot max i'll try right now and let you know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hajar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021359#M81265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021360#M81266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much max finally my problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hajar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 19:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display-problem/m-p/1021360#M81266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T19:04:31Z</dc:date>
    </item>
  </channel>
</rss>

