<?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: GENERIC  ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959690#M67098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MMhhhh maybe simple way is to copy the FM REUSE_ALV_GRID_DISPLAY* .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use the standard FM ?&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2005 14:56:45 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2005-08-01T14:56:45Z</dc:date>
    <item>
      <title>GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959689#M67097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to make a "Generic ALV grid function  module" , this would take , all the parameters required for the the method set_table &lt;U&gt;for&lt;/U&gt;first_display like it_structure , it_outtab etc ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We require to pass any kind of an internal table to it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the process of achiving this , we &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. made a function group ,&lt;/P&gt;&lt;P&gt;2. added a screen to it.&lt;/P&gt;&lt;P&gt;3. created a function module .&lt;/P&gt;&lt;P&gt;4. passed parameters to it , specifiying the type of it_structure parameter as DD02L-TABNAME , and it_outtab as the generic type STANDARD TABLE  as shown in the class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. we call the screen from the function module ,&lt;/P&gt;&lt;P&gt;6. in order to make the parameters visible in the screen , global variables of the above types are declared in the top include&lt;/P&gt;&lt;P&gt;7. and then setting the values of these global variables  as the values of the parameters passed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here we are facing a problem , it_outtab being a generic type (STANDARD TABLE) , we cannot create another variable of the same type as it_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried to use field symobls as folows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt; TYPE STANDARD TABLE. In the top include &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And  then assign using &lt;/P&gt;&lt;P&gt; ASSIGN it_out TO &amp;lt;dyn_table&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code complies fine , but throws a runtime error as  ASSIGN_TYPE_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are unable to understand the cause of such an error , as the types of the field symbol and the table it_outtab are the same ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to resolve the above , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plese do help ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 14:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959689#M67097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T14:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959690#M67098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MMhhhh maybe simple way is to copy the FM REUSE_ALV_GRID_DISPLAY* .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use the standard FM ?&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 14:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959690#M67098</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-08-01T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959691#M67099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to create a generic funcion module , you can try passing it_outtab in the tables parameter of function module. you can refer to function module REUSE_ALV_GRID_DISPLAY in SE37. This is a generic function module to create an ALV Grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959691#M67099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T15:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959692#M67100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have actually done the same thing, only with a Popup,  here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

function z_popup_with_alvgrid.
*"----------------------------------------------------------------------
*"*"Global interface:
*"  IMPORTING
*"     REFERENCE(ENDPOS_COL) TYPE  I DEFAULT 90
*"     REFERENCE(ENDPOS_ROW) TYPE  I DEFAULT 22
*"     REFERENCE(STARTPOS_COL) TYPE  I DEFAULT 10
*"     REFERENCE(STARTPOS_ROW) TYPE  I DEFAULT 2
*"     REFERENCE(TEXTLINE1) TYPE  C OPTIONAL
*"     REFERENCE(TEXTLINE2) TYPE  C OPTIONAL
*"     REFERENCE(TEXTLINE3) TYPE  C OPTIONAL
*"     REFERENCE(TEXTLINE4) TYPE  C OPTIONAL
*"     REFERENCE(TITLE) TYPE  C OPTIONAL
*"     REFERENCE(FIELDCAT) TYPE  LVC_T_FCAT
*"  TABLES
*"      I_ALV
*"----------------------------------------------------------------------

  call screen 0200 starting at startpos_col
                               startpos_row
                     ending at endpos_col
                               endpos_row.

endfunction.

************************************************************************
*      Module  STATUS_0200  OUTPUT
************************************************************************
module status_0200 output.

  set pf-status '0200'.
  set titlebar  '0200' with title.

  data: alv_container  type ref to cl_gui_custom_container.
  data: alv_grid       type ref to cl_gui_alv_grid.

  data: xfieldcat type lvc_t_fcat.

  xfieldcat = fieldcat.

* Create Controls
  create object:

     alv_container
             exporting
                   container_name    = 'ALV_CONTAINER',

     alv_grid
             exporting
                   i_parent          =  alv_container.

*  Set grid for first display
  call method alv_grid-&amp;gt;set_table_for_first_display(
      exporting
           i_structure_name       = 'I_ALV'
      changing
           it_outtab       = i_alv[]
           it_fieldcatalog = xfieldcat[] ).

endmodule.

************************************************************************
*     Module  USER_COMMAND_0100  INPUT
************************************************************************
module user_command_0200 input.

  case sy-ucomm.
    when 'CONTINUE' or 'CANCEL'.
      set screen 0.
      leave screen.
  endcase.

endmodule.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I_ALV table is defined only in the TABLES statement and has no type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959692#M67100</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-01T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959693#M67101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can try like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   refer  type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get reference of it_out into refer.&lt;/P&gt;&lt;P&gt;assign refer-&amp;gt;*  to &amp;lt;ftab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 16:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959693#M67101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959694#M67102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can also have a look into these sample program&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alvhome.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959694#M67102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T03:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959695#M67103</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;Check this link.May be it can help you.&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so,kindly reard points by clicking on the star on the left of the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959695#M67103</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-08-02T03:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959696#M67104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is somewhat old, but I think the solution here is to assign like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN it_out[] to &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get an error when I assigned the contents of the table, rather than the header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 20:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-alv-grid/m-p/959696#M67104</guid>
      <dc:creator>roger_vandervort2</dc:creator>
      <dc:date>2005-11-10T20:26:23Z</dc:date>
    </item>
  </channel>
</rss>

