<?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 HR_DISPLAY_BASIC_LIST (4.6 to ECC6) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-display-basic-list-4-6-to-ecc6/m-p/7984466#M1605056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to replace FM HR_DISPLAY_BASIC_LIST, as it is obsolete in ECC 6.0.&lt;/P&gt;&lt;P&gt;Some people suggested that I should use REUSE_ALV_GRID_DISPLAY for the replacement, but I have 3 table parameters being passed to the FM HR_DISPLAY_BASIC_LIST. Whereas in REUSE_ALV_GRID_DISPLAY there is only one table parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF i_list_of_unix_files OCCURS 0,
       file(150)    TYPE c,      "Name of directory (possibly truncated)
       rcomp        LIKE t880-rcomp,
       name1        LIKE t880-name1,
       mod_date(12) TYPE c,
       END OF i_list_of_unix_files.

DATA : BEGIN OF i_selected_files OCCURS 0,
       unix_path(350) TYPE c.
DATA : END OF i_selected_files.

DATA : BEGIN OF i_record_unix_file OCCURS 0,
       record(350) TYPE c.
DATA : END OF i_record_unix_file.


    CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'          
      EXPORTING                                    
        file_name            = 'ZUNIRB02'          
        head_line1           = sy-title            
        dyn_pushbutton_text1 = 'Download file'     
      TABLES                                        
        data_tab             = i_list_of_unix_files 
        fieldname_tab        = i_fieldnametab   
        select_tab           = i_selected_files 
      EXCEPTIONS                 
        download_problem     = 1 
        no_data_tab_entiries = 2 
        table_mismatch       = 3 
        print_problems       = 4 
        OTHERS               = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 14:47:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-20T14:47:14Z</dc:date>
    <item>
      <title>HR_DISPLAY_BASIC_LIST (4.6 to ECC6)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-display-basic-list-4-6-to-ecc6/m-p/7984466#M1605056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to replace FM HR_DISPLAY_BASIC_LIST, as it is obsolete in ECC 6.0.&lt;/P&gt;&lt;P&gt;Some people suggested that I should use REUSE_ALV_GRID_DISPLAY for the replacement, but I have 3 table parameters being passed to the FM HR_DISPLAY_BASIC_LIST. Whereas in REUSE_ALV_GRID_DISPLAY there is only one table parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF i_list_of_unix_files OCCURS 0,
       file(150)    TYPE c,      "Name of directory (possibly truncated)
       rcomp        LIKE t880-rcomp,
       name1        LIKE t880-name1,
       mod_date(12) TYPE c,
       END OF i_list_of_unix_files.

DATA : BEGIN OF i_selected_files OCCURS 0,
       unix_path(350) TYPE c.
DATA : END OF i_selected_files.

DATA : BEGIN OF i_record_unix_file OCCURS 0,
       record(350) TYPE c.
DATA : END OF i_record_unix_file.


    CALL FUNCTION 'HR_DISPLAY_BASIC_LIST'          
      EXPORTING                                    
        file_name            = 'ZUNIRB02'          
        head_line1           = sy-title            
        dyn_pushbutton_text1 = 'Download file'     
      TABLES                                        
        data_tab             = i_list_of_unix_files 
        fieldname_tab        = i_fieldnametab   
        select_tab           = i_selected_files 
      EXCEPTIONS                 
        download_problem     = 1 
        no_data_tab_entiries = 2 
        table_mismatch       = 3 
        print_problems       = 4 
        OTHERS               = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-display-basic-list-4-6-to-ecc6/m-p/7984466#M1605056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T14:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: HR_DISPLAY_BASIC_LIST (4.6 to ECC6)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-display-basic-list-4-6-to-ecc6/m-p/7984467#M1605057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a look at the FM code, you could see that the fieldname table is transformed into the IT_FIELDCAT parameter structure of the REUSE_ALV_GRID_DISPLAY as the SELECT_TAB is for what i can see the selected record in case of ALV with mark field, which in ALV is handle by data_changed event. So, basically it's a matter of doing the same that is done in code line 102 in DISPLAY_GRID_LIST FM (  PERFORM DGL_BUILD_FIELDCAT TABLES T_FIELDCAT FIELDNAME_TAB.) for the field catalog and do some coding for the data_changed event. There are lots of examples with this FM in ABAP repository. Look for BCALV_GRID*.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 15:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-display-basic-list-4-6-to-ecc6/m-p/7984467#M1605057</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2011-06-20T15:08:09Z</dc:date>
    </item>
  </channel>
</rss>

