<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058754#M724483</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;Thanks for the replies.  I did what you guys suggested...did little bit more research on it... but still getting the memory dump.  I guess it might be this minisap version...I just downloaded couple of days ago, might have some issues...Well I will try this on with my other pc....and see how things are....thanks for the great help!  Appreciate your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Nov 2007 22:37:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-24T22:37:27Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058751#M724480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just testing the following code...to practice on ALV.  For some reason, I am not able to see the output.   It gives out a memory dump, if I try to run this.   After some troubleshooting...found that it gives the memory dump when I call the function...REUSE_ALV_GRID_DISPLAY.  Also found that if I use some data dictionary structure for my field catalog...it does not give me this memory dump.  Could anyone please help me on this.   What I am doing in creating fieldcatalog, that I should not be doing??  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have some confusion about the field catalog function as well.  If I use the function: REUSE_ALV_FIELDCATALOG_MERGE...do I still need to populate my field catalog internal table with the field names or this function should do it for me.  I did check the field catalog internal table after calling this function, but it does not show any field names in it.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the great help...in advanced.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WS_REPNAME LIKE SY-REPID.&lt;/P&gt;&lt;P&gt;WS_REPNAME = SY-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;data : wa type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;CARRID like sflight-carrid,&lt;/P&gt;&lt;P&gt;CONNID like sflight-connid,&lt;/P&gt;&lt;P&gt;FLDATE like sflight-fldate,&lt;/P&gt;&lt;P&gt;PRICE like sflight-price,&lt;/P&gt;&lt;P&gt;CURRENCY  like sflight-currency,&lt;/P&gt;&lt;P&gt;PLANETYPE like sflight-planetype,&lt;/P&gt;&lt;P&gt;SEATSMAX like sflight-seatsmax,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from sflight into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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     = WS_REPNAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           I_INTERNAL_TABNAME = Internal output table field name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I_STRUCTURE_NAME = 'ITAB'&lt;/P&gt;&lt;P&gt;            I_INCLNAME         = WS_REPNAME&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            CT_FIELDCAT        = ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BUILD_FIELD_CATELOG CHANGING itab1.&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;   IT_FIELDCAT                       = ITAB1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                          = ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BUILD_FIELD_CATELOG CHANGING itab1 TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 1.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'carrid'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'Airline id'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 2.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'connid'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'Connection id'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 3.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'fldate'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'DATE'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 4.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'price'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'PRICE'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 5.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'currency'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'Currency'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 6.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'planetype'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'PLANE-TYPE'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-col_pos = 7.&lt;/P&gt;&lt;P&gt;wa-fieldname = 'seatsmax'.&lt;/P&gt;&lt;P&gt;wa-seltext_s = 'MAX. SEATS'.&lt;/P&gt;&lt;P&gt;wa-tabname = 'itab'.&lt;/P&gt;&lt;P&gt;append wa to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 19:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058751#M724480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T19:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058752#M724481</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;While building your fieldcatalog you should make sure that all the field names should be in upper case. example as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa-col_pos = 1.
wa-fieldname = 'CARRID'. "Changed carrid to CARRID
wa-seltext_s = 'Airline id'.
wa-tabname = 'itab'.
append wa to itab1.

wa-col_pos = 2.
wa-fieldname = 'CONNID'. "Changed connid to CONNID
wa-seltext_s = 'Connection id'.
wa-tabname = 'itab'.
append wa to itab1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to change all the fieldname to upper case, then you can overcome this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 19:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058752#M724481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T19:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058753#M724482</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;The sample report &amp;lt;b&amp;gt;ZUS_SDN_FIELDCATALOG_1&amp;lt;/b&amp;gt; in thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="290829"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demonstrates how to use internal data definitions (instead of DDIC structures) for generating the fieldcatalog.&lt;/P&gt;&lt;P&gt;However, I highly disregard to use internal data definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 19:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058753#M724482</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-11-24T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058754#M724483</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;Thanks for the replies.  I did what you guys suggested...did little bit more research on it... but still getting the memory dump.  I guess it might be this minisap version...I just downloaded couple of days ago, might have some issues...Well I will try this on with my other pc....and see how things are....thanks for the great help!  Appreciate your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 22:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058754#M724483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T22:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058755#M724484</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;What the dump says? Can you please paste the dump message here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 22:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058755#M724484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T22:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058756#M724485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the great help!   Well I found the solution to my runtime errors.  Apparently I needed to pass the table name with square brackets while calling the GRID DISPLAY function...like this:&lt;/P&gt;&lt;P&gt;&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;IT_FIELDCAT = ITAB1 &amp;lt;--- instead of this, I should pass the table as ITAB1[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = ITAB.   &amp;lt;---and this one as well...ITAB[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that fixed my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all those who helped me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 21:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3058756#M724485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T21:31:35Z</dc:date>
    </item>
  </channel>
</rss>

