<?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: reg : warning message when using subroutines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-warning-message-when-using-subroutines/m-p/3574447#M860367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : t_fieldcat type slis_t_fieldcat_alv.
perform fieldcatlog tables t_fieldcat.

form fieldcatlog using lt_fieldcat type slis_t_fieldcat_alv.
...
...
endform.
&lt;/CODE&gt;&lt;/PRE&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;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 16:56:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-31T16:56:38Z</dc:date>
    <item>
      <title>reg : warning message when using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-warning-message-when-using-subroutines/m-p/3574446#M860366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using perform statements for fieldcatlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_fieldcat type  slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform fieldcatlog tables t_fieldcat.&lt;/P&gt;&lt;P&gt;form fieldcatlog tables FORM li_fieldcat LIKE i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM msg_fill_fieldcatalog  TABLES li_fieldcat LIKE i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*local declarations&lt;/P&gt;&lt;P&gt;  DATA: ls_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populate fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname       = 'MATNR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname         = 'I_FINAL_OUTPUT'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_m       =  text-001.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO li_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname       = 'WERKS'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname         = 'I_FINAL_OUTPUT'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_m       = text-002.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO li_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&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;i am getting warning as li_fieldcat stands for 2 fields for table and the table header line. field string li_fieldcat is not referenced statically in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can u people help me regarding this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 16:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-warning-message-when-using-subroutines/m-p/3574446#M860366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: reg : warning message when using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-warning-message-when-using-subroutines/m-p/3574447#M860367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : t_fieldcat type slis_t_fieldcat_alv.
perform fieldcatlog tables t_fieldcat.

form fieldcatlog using lt_fieldcat type slis_t_fieldcat_alv.
...
...
endform.
&lt;/CODE&gt;&lt;/PRE&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;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 16:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-warning-message-when-using-subroutines/m-p/3574447#M860367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T16:56:38Z</dc:date>
    </item>
  </channel>
</rss>

