<?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: Error with the FIELD CAT function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545869#M853095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS:slis.
DATA: it_vabp TYPE STANDARD TABLE OF vbap WITH HEADER LINE.

DATA: it_fieldcat TYPE slis_t_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   i_program_name               = sy-repid
   i_internal_tabname           = 'IT_VBAP'
   i_inclname                   = sy-repid
  CHANGING
    ct_fieldcat                  = it_fieldcat
* EXCEPTIONS
*   INCONSISTENT_INTERFACE       = 1
*   PROGRAM_ERROR                = 2
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 11:03:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-31T11:03:04Z</dc:date>
    <item>
      <title>Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545863#M853089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the error message i had got from the FIELDCAT function module.&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_READ_SRC_LINE_TOO_LONG', was&lt;/P&gt;&lt;P&gt;     not caught in&lt;/P&gt;&lt;P&gt;    procedure "K_KKB_FIELDCAT_MERGE" "(FUNCTION)", nor was it propagated by a&lt;/P&gt;&lt;P&gt;     RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;    exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    There was an attempt to read program "/A1SSPC/ITP_SCH_REP" from the database.&lt;/P&gt;&lt;P&gt;    The READ REPORT statement allows you to copy a program text into an&lt;/P&gt;&lt;P&gt;    internal table. The occupied line length in the program text must not&lt;/P&gt;&lt;P&gt;    exceed the width of the internal table.&lt;/P&gt;&lt;P&gt;    The internal table "\FUNCTION=K_KKB_FIELDCAT_MERGE\DATA=???" is 72 characters&lt;/P&gt;&lt;P&gt;     wide. The program line is&lt;/P&gt;&lt;P&gt;    204 characters wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Hariharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 09:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545863#M853089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545864#M853090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check your internal table is having the same number of fields compared to the structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer this thread &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4549002"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 09:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545864#M853090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545865#M853091</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;thanks for your reply,&lt;/P&gt;&lt;P&gt;what the syntax for dividing a line in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Hariharn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 09:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545865#M853091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545866#M853092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Change the settings in SE38 utilities-&amp;gt;settings-&amp;gt;select checkbox                                     &lt;/P&gt;&lt;P&gt;line 72 something&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 09:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545866#M853092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T09:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545867#M853093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hariharan Natarajan &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; The problem is when you use the Function &lt;/P&gt;&lt;P&gt;REUSE_ALV_FIELDCATALOG_MERGE to populate the fieldcatalog. all the lines of the code should be 72 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if you have comments or any thing..Decrease the Lines which are above 72 chars. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;gt;&amp;gt;&amp;gt;..............................................................more than 72 chars then break it into 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you have comment lines more than 72 chars rreduce them to 72 chars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 10:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545867#M853093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T10:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545868#M853094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had declared the internal table as this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: /A1SSPC/ITP_SEL,&lt;/P&gt;&lt;P&gt;        /A1SSPC/ITP_SYSD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: WA_A1SSPC_ITP_SYSD          type /A1SSPC/ITP_SYSD,&lt;/P&gt;&lt;P&gt;      IT_A1SSPC_ITP_SYSD          TYPE STANDARD TABLE OF&lt;/P&gt;&lt;P&gt;      /A1SSPC/ITP_SYSD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are suppose to give the occurs 0 here for the FELDCAT Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;hariharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 10:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545868#M853094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T10:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error with the FIELD CAT function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545869#M853095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS:slis.
DATA: it_vabp TYPE STANDARD TABLE OF vbap WITH HEADER LINE.

DATA: it_fieldcat TYPE slis_t_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   i_program_name               = sy-repid
   i_internal_tabname           = 'IT_VBAP'
   i_inclname                   = sy-repid
  CHANGING
    ct_fieldcat                  = it_fieldcat
* EXCEPTIONS
*   INCONSISTENT_INTERFACE       = 1
*   PROGRAM_ERROR                = 2
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 11:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-with-the-field-cat-function-module/m-p/3545869#M853095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T11:03:04Z</dc:date>
    </item>
  </channel>
</rss>

