<?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 with method set table for first display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570830#M257670</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;adding to the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for you knowledge, chk this ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: begin of int_table occurs 0,&lt;/P&gt;&lt;P&gt;field1 like table-field1,&lt;/P&gt;&lt;P&gt;field2 like table-field2,&lt;/P&gt;&lt;P&gt;end of int_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here an internal table with work area is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_table[] - &amp;gt; content or body of int_table.&lt;/P&gt;&lt;P&gt;int_table - &amp;gt; work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 09:11:02 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-09-18T09:11:02Z</dc:date>
    <item>
      <title>alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570822#M257662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to make an alv report using OO programming. I've already made it using the function module 'reuse_alv_list_display' and it's working propperly so my database query it's exactly the same, but whe I veryfy the sintax, the next error message appears:'gt_output is not type compatible with formal parameter it_outtab'. I don't know what's going on, because I think I've declared my parameters properly, anyway this is my source code:&lt;/P&gt;&lt;P&gt;DATA: grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      g_custom_container TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF st_output,&lt;/P&gt;&lt;P&gt;      tplnr LIKE viaufkst-tplnr,&lt;/P&gt;&lt;P&gt;      pltxt LIKE iflo-pltxt,&lt;/P&gt;&lt;P&gt;      acpos LIKE pmco-acpos,&lt;/P&gt;&lt;P&gt;      END OF st_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:gt_output TYPE STANDARD TABLE OF st_output WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:TPLNR FOR gt_output-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 1000.&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;      Module  STATUS_1000  OUTPUT&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;      text&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;*creo q para hacerlo con objetos hay que definir 1º la vista, y despues&lt;/P&gt;&lt;P&gt;*hacer el select sobre ella, en lugar de hacer los joins en el select&lt;/P&gt;&lt;P&gt;*la vista que definamos se utiliza como tipo de tabla para gt_output.&lt;/P&gt;&lt;P&gt;MODULE STATUS_1000 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CONTAINER_NAME = 'CCCONTAINER'.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT grid&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_PARENT = g_custom_container.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT V&lt;SUB&gt;TPLNR I&lt;/SUB&gt;PLTXT P~ACPOS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_output&lt;/P&gt;&lt;P&gt;FROM VIAUFKST AS V&lt;/P&gt;&lt;P&gt;INNER JOIN IFLO AS I&lt;/P&gt;&lt;P&gt;ON V&lt;SUB&gt;TPLNR = I&lt;/SUB&gt;TPLNR&lt;/P&gt;&lt;P&gt;INNER JOIN PMCO AS P&lt;/P&gt;&lt;P&gt;ON V&lt;SUB&gt;OBJNR = P&lt;/SUB&gt;OBJNR&lt;/P&gt;&lt;P&gt;WHERE V~TPLNR IN TPLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;  EXPORTING I_STRUCTURE_NAME = 'st_output'&lt;/P&gt;&lt;P&gt;  CHANGING IT_OUTTAB = gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_1000  OUTPUT&lt;/P&gt;&lt;P&gt;Thanks everybody, this is a really good way to learn about ABAP programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570822#M257662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570823#M257663</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 haven't to use internal table with header line, so or you define it without headerline &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA:gt_output TYPE STANDARD TABLE OF st_output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH HEADER LINE. &amp;lt;----------------------------&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you transfer only the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;*EXPORTING I_STRUCTURE_NAME = 'st_output'&lt;/P&gt;&lt;P&gt;*CHANGING IT_OUTTAB = gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING I_STRUCTURE_NAME = 'ST_OUTPUT'&lt;/P&gt;&lt;P&gt;CHANGING IT_OUTTAB = GT_OUTPUT[].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570823#M257663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570824#M257664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ALV OOPS.You cannot use a header line with internal table.So you have to declare your table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;gt_output type standard table of st_output .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570824#M257664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570825#M257665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Look at the below example programs:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04&lt;/P&gt;&lt;P&gt;BCALV_EDIT_05&lt;/P&gt;&lt;P&gt;BCALV_EDIT_06&lt;/P&gt;&lt;P&gt;BCALV_EDIT_07&lt;/P&gt;&lt;P&gt;BCALV_EDIT_08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570825#M257665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570826#M257666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have created the table gt_output[] with header line.&lt;/P&gt;&lt;P&gt;So while passing it it should be passed as gt_output[] and not as gt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct this, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 08:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570826#M257666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T08:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570827#M257667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK THANKS EVERYBODY!!!&lt;/P&gt;&lt;P&gt;Now would anybody mind to explain me what i'm doing when I write gt_output[]? what's the difference between gt_output and gt_output[]? I'm sorry but i've just started with ABAP.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570827#M257667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570828#M257668</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;gt_output[] - &amp;gt; content of an internal tabel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_output - &amp;gt; only the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570828#M257668</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-18T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570829#M257669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gt_output[] is referring the whole table content. you will see it clearly at debugging mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570829#M257669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: alv with method set table for first display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570830#M257670</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;adding to the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for you knowledge, chk this ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: begin of int_table occurs 0,&lt;/P&gt;&lt;P&gt;field1 like table-field1,&lt;/P&gt;&lt;P&gt;field2 like table-field2,&lt;/P&gt;&lt;P&gt;end of int_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here an internal table with work area is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_table[] - &amp;gt; content or body of int_table.&lt;/P&gt;&lt;P&gt;int_table - &amp;gt; work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 09:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-method-set-table-for-first-display/m-p/1570830#M257670</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-18T09:11:02Z</dc:date>
    </item>
  </channel>
</rss>

