<?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: Code review in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918761#M381877</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 might not used  P_FIELDCAT  field in the program. Comment the field, error will be rectified. &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;kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 10:48:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T10:48:28Z</dc:date>
    <item>
      <title>Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918760#M381876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;         I was doing Code review for a report, when I was checking code through  extended program check it was giving a warning as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program:  ZCSRE_HU_PRODUCTION_REPORT  Include:  ZCSRM_HU_PRD_PROCESS_FORMS  Line :    149&lt;/P&gt;&lt;P&gt;P_FIELDCAT stands for 2 fields: Table P_FIELDCAT[] and its header line&lt;/P&gt;&lt;P&gt;Field P_FIELDCAT is not referenced statically in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me how to remove this warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918760#M381876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918761#M381877</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 might not used  P_FIELDCAT  field in the program. Comment the field, error will be rectified. &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;kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918761#M381877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918762#M381878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         P_FIELDCAT is an internal table with headerline in your case. SO P_FILEDCAT[] is the internal table and P_FILEDCAT is the header line. I think in your program there is not static (IN the code) reference to it. Just try and comment the declaration of thisP_FIELDCAT and see if you still get this warninig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918762#M381878</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-02-20T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918763#M381879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you response below is the code where it is using it please see it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f9004_display_data TABLES   p_output&lt;/P&gt;&lt;P&gt;                                 p_fieldcat.&lt;/P&gt;&lt;P&gt;  CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       is_variant                    = w_variant&lt;/P&gt;&lt;P&gt;       i_save                        = c_a&lt;/P&gt;&lt;P&gt;       is_layout                     = w_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;       it_outtab                     = p_output[]&lt;/P&gt;&lt;P&gt;       it_fieldcatalog               = p_fieldcat[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;       invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;       program_error                 = 2&lt;/P&gt;&lt;P&gt;       too_many_lines                = 3&lt;/P&gt;&lt;P&gt;       OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH text-e06."Error in ALV report display&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f9004_display_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918763#M381879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T10:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918764#M381880</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;Write the form like below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_populate_item TABLES P_OUTPUT structure ....&lt;/P&gt;&lt;P&gt;                            P_fieldcat STRUCTURE ....&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;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918764#M381880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918765#M381881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith,&lt;/P&gt;&lt;P&gt;  I have faced the similar problem. It happens due to the usage of the TABLE parameter in the SUBROUTINE interface. Your TABLE PARAMETER is : P_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can eliminate this by using the changing parameter instead. For this, create a GLOBAL DATA in TOP include of the report as:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_FIELDCAT Type Table of ..... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the subroutine defination write:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;SUBROUTINE NAME&amp;gt; Changing P_FIELDCAT TYPE GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in program call subroutine as following:-&lt;/P&gt;&lt;P&gt;PERFORM &amp;lt;SUBROUTINE NAME&amp;gt; changing p_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: This would DEFINITELY solve your problem. Also restrict using TABLE &lt;/P&gt;&lt;P&gt;           PARAMETER as it creates a header line by default. Instead use &lt;/P&gt;&lt;P&gt;           CHANGING AND USING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Please award points if you feel satisfied with the solution :D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ravi &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918765#M381881</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2007-02-20T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918766#M381882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith, &lt;/P&gt;&lt;P&gt;Replace your code by following code.And it would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In GLOBAL DATA or TOP Include add the following line:-&lt;/P&gt;&lt;P&gt;Data: GT_FIELDCAT type table of &amp;lt;STRUCTURE_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f9004_display_data CHANGING p_fieldcat LIKE GT_FIELDCAT&lt;/P&gt;&lt;P&gt;                                           TABLES p_output.&lt;/P&gt;&lt;P&gt;CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_variant = w_variant&lt;/P&gt;&lt;P&gt;i_save = c_a&lt;/P&gt;&lt;P&gt;is_layout = w_layout&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = p_output[]&lt;/P&gt;&lt;P&gt;it_fieldcatalog = p_fieldcat[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;too_many_lines = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE i000 WITH text-e06."Error in ALV report display&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " f9004_display_data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ravi &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918766#M381882</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2007-02-20T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918767#M381883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;           and iam getting another warnig for the same line please go through it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Program:  ZCSRE_HU_PRODUCTION_REPORT  Include:  ZCSRM_HU_PRD_PROCESS_FORMS  Line :    149&lt;/P&gt;&lt;P&gt;P_OUTPUT stands for 2 fields: Table P_OUTPUT[] and its header line&lt;/P&gt;&lt;P&gt;Field P_OUTPUT is not referenced statically in the program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f9004_display_data TABLES i_final&lt;/P&gt;&lt;P&gt;                                   i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f9004_display_data TABLES   p_output&lt;/P&gt;&lt;P&gt;                                 p_fieldcat.&lt;/P&gt;&lt;P&gt;CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       is_variant                    = w_variant&lt;/P&gt;&lt;P&gt;       i_save                        = c_a&lt;/P&gt;&lt;P&gt;       is_layout                     = w_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;       it_outtab                     = p_output[]&lt;/P&gt;&lt;P&gt;       it_fieldcatalog               = p_fieldcat[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;       invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;       program_error                 = 2&lt;/P&gt;&lt;P&gt;       too_many_lines                = 3&lt;/P&gt;&lt;P&gt;       OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH text-e06."Error in ALV report display&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f9004_display_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see this code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 12:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-review/m-p/1918767#M381883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T12:00:07Z</dc:date>
    </item>
  </channel>
</rss>

