<?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 report code dumping in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277279#M783626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,  now post your exact cpde again with the updated changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 17:53:44 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2008-01-03T17:53:44Z</dc:date>
    <item>
      <title>ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277271#M783618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;I am trying to write a simple ALV report code. I pasted the code below.&lt;/P&gt;&lt;P&gt;The program is getting dumped. I am unable to find where the error is.&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YBP_ALV1                                .&lt;/P&gt;&lt;P&gt;TABLES  : MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA    : BEGIN OF itab OCCURS 500,&lt;/P&gt;&lt;P&gt;          matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;          ersda LIKE mara-ersda,&lt;/P&gt;&lt;P&gt;          ernam LIKE mara-ernam,&lt;/P&gt;&lt;P&gt;          END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_lines LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS  : slis.&lt;/P&gt;&lt;P&gt;DATA int_fcat TYPE SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS  : s_matnr for mara-matnr matchcode object mat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select * FROM mara into CORRESPONDING FIELDS OF itab WHERE  matnr in s_matnr.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_repid = sy-repid.&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               = i_repid&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME           = 'ITAB'&lt;/P&gt;&lt;P&gt;I_INCLNAME                   = i_repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CT_FIELDCAT                  = int_fcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR                = 2&lt;/P&gt;&lt;P&gt;OTHERS                       = 3.&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;  WRITE: / 'RETURNCODE', sy-subrc, 'from function reuse_alv_fieldcatalog_merge'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM  = i_repid&lt;/P&gt;&lt;P&gt;IT_FIELDCAT                    = int_fcat&lt;/P&gt;&lt;P&gt;I_SAVE                         = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB                       = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR                  = 1&lt;/P&gt;&lt;P&gt;OTHERS                         = 2.&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;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Returncode', sy-subrc, 'from function reuse_alv_list_display'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Balu on Jan 3, 2008 12:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277271#M783618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277272#M783619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your function call,  do not put the name of the field catalog internal table in quotes, just pass the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IT_FIELDCAT = int_fcat      "&amp;lt;-- Remove quotes
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277272#M783619</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-03T17:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277273#M783620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed as you suggested but still it dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277273#M783620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277274#M783621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; IT_FIELDCAT = int_fcat[ ]   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; but this square bracket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277274#M783621</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-03T17:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277275#M783622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try define ITAB like so..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of xtab, 
        matnr LIKE mara-matnr,
        ersda LIKE mara-ersda,
        ernam LIKE mara-ernam,
        end of xtab.

data: itab like standard table of xtab with header line.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in this MERGE call, pass  XTAB, instead of ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
           I_PROGRAM_NAME = i_repid
           I_INTERNAL_TABNAME = 'XTAB'
           I_INCLNAME = i_repid
     CHANGING
           CT_FIELDCAT = int_fcat
     EXCEPTIONS
           INCONSISTENT_INTERFACE = 1
           PROGRAM_ERROR = 2
           OTHERS = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, what does the dump say?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277275#M783622</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-03T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277276#M783623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is still dumping.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277276#M783623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277277#M783624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the changes you suggested this is the dump analysis -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception will be dealt with in more detail&lt;/P&gt;&lt;P&gt;below. The exception, assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt; not caught, which&lt;/P&gt;&lt;P&gt; led to a runtime error. The reason for this exception is:&lt;/P&gt;&lt;P&gt;The call to the function module "REUSE_ALV_FIELDCATALOG_MERGE" is incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module interface allows you to specify only fields&lt;/P&gt;&lt;P&gt;of a particular type under "I_INTERNAL_TABNAME". The field "XTAB" specified&lt;/P&gt;&lt;P&gt; here&lt;/P&gt;&lt;P&gt;has a different field type.&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;balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277277#M783624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277278#M783625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the changes as you suggested. I.e with the original code I pasted the dump analysis is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_READ_SRC_LINE_TOO_LONG',&lt;/P&gt;&lt;P&gt; was neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure&lt;/P&gt;&lt;P&gt; "K_KKB_FIELDCAT_MERGE" "(FUNCTION)"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;You tried to read the program "YBP_ALV1" from the database. The READ REPORT&lt;/P&gt;&lt;P&gt;statement allows you to copy a program's source code into an internal&lt;/P&gt;&lt;P&gt;table. The lines of source code must not be longer than the width of the&lt;/P&gt;&lt;P&gt; internal table. The internal table is 72 characters wide. The source&lt;/P&gt;&lt;P&gt;code line is 80 wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277278#M783625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277279#M783626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,  now post your exact cpde again with the updated changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277279#M783626</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-03T17:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277280#M783627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;my code after the suggested changes -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YBP_ALV1                                .&lt;/P&gt;&lt;P&gt;TABLES  : MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA    : BEGIN OF xtab,&lt;/P&gt;&lt;P&gt;          matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;          ersda LIKE mara-ersda,&lt;/P&gt;&lt;P&gt;          ernam LIKE mara-ernam,&lt;/P&gt;&lt;P&gt;          END OF xtab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          itab LIKE STANDARD TABLE OF xtab WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_lines LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS  : slis.&lt;/P&gt;&lt;P&gt;DATA int_fcat TYPE SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS  : s_matnr for mara-matnr matchcode object mat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select * FROM mara into CORRESPONDING FIELDS OF itab WHERE&lt;/P&gt;&lt;P&gt;  matnr in s_matnr.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe TABLE itab LINES i_lines.&lt;/P&gt;&lt;P&gt;*if i_lines lt 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; write: / 'no material found'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; exit.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*clear i_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_repid = sy-repid.&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               = i_repid&lt;/P&gt;&lt;P&gt;   I_INTERNAL_TABNAME           = 'XTAB'&lt;/P&gt;&lt;P&gt;   I_INCLNAME                   = i_repid&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    CT_FIELDCAT                  = int_fcat&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                = 2&lt;/P&gt;&lt;P&gt;   OTHERS                       = 3.&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;  WRITE: / 'RETURNCODE', sy-subrc, 'from function reuse_alv_fieldcatalog_merge'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_CALLBACK_PROGRAM             = i_repid&lt;/P&gt;&lt;P&gt;   IT_FIELDCAT                    = int_fcat&lt;/P&gt;&lt;P&gt;   I_SAVE                         = 'A'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                       = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                  = 1&lt;/P&gt;&lt;P&gt;   OTHERS                         = 2.&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;  WRITE : / 'Returncode', sy-subrc, 'from function reuse_alv_list_display'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump analysis is as below. Sorry I pasted the wrong analysis before -&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_READ_SRC_LINE_TOO_LONG',&lt;/P&gt;&lt;P&gt; was neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure&lt;/P&gt;&lt;P&gt; "K_KKB_FIELDCAT_MERGE" "(FUNCTION)"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;You tried to read the program "YBP_ALV1" from the database. The READ REPORT&lt;/P&gt;&lt;P&gt;statement allows you to copy a program's source code into an internal&lt;/P&gt;&lt;P&gt;table. The lines of source code must not be longer than the width of the&lt;/P&gt;&lt;P&gt; internal table. The internal table is 72 characters wide. The source&lt;/P&gt;&lt;P&gt;code line is 80 wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 17:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277280#M783627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277281#M783628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh yes, the problem is the &amp;gt;72 character code editor, it allows you to have code in the ABAP editor which is greater than 72 characters across, this is fine, but in this case the MERGE funciton module is reading the source code of your program and is a little particular how it does it.  To fix your issue, you need to make sure that all lines of your source code are 72 characters or less, meaning that the following lines of code should be adjusted in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF SY-SUBRC = 0.
WRITE: / 'RETURNCODE', sy-subrc,
     'from function reuse_alv_fieldcatalog_merge'.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF SY-SUBRC = 0.
WRITE : / 'Returncode', sy-subrc,
     'from function reuse_alv_list_display'.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate and run and it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277281#M783628</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-03T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277282#M783629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu, &lt;/P&gt;&lt;P&gt;You need to reset the maximum line width of ABAP Editor.&lt;/P&gt;&lt;P&gt;Goto Utilities =&amp;gt; Settings =&amp;gt; Select Tab for ABAP Editor =&amp;gt; Select Editor =&amp;gt; Uncheck the last check box which says that ' Downward -compat Line length 72'.&lt;/P&gt;&lt;P&gt;Or Else..&lt;/P&gt;&lt;P&gt;Ensure that there are no lines with width more than 72...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277282#M783629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T18:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277283#M783630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lokesh,&lt;/P&gt;&lt;P&gt;The box is not checked. But that was a helpful point for me to learn. I gave you points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Balu on Jan 3, 2008 1:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277283#M783630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T18:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277284#M783631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I assigned points.&lt;/P&gt;&lt;P&gt;Now the program is not dumping but I do not see any results in the output.&lt;/P&gt;&lt;P&gt;It just shows list contains no data.&lt;/P&gt;&lt;P&gt;But when I go to SE16 and disply the table entries of mara, I get a list.&lt;/P&gt;&lt;P&gt;Any idea why I am not seeing any results in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277284#M783631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277285#M783632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, please make the following changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

START-OF-SELECTION.

*select * FROM mara into CORRESPONDING FIELDS OF itab WHERE *matnr in s_matnr.
*ENDSELECT.

Select *  into corresponding fields of TABLE itab
            from mara
                   where matnr in s_matnr

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277285#M783632</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-03T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277286#M783633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help Rich.&lt;/P&gt;&lt;P&gt;Points assigned. I&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 18:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277286#M783633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T18:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report code dumping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277287#M783634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, Hi Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN SE38 , Goto Utilities =&amp;gt; Settings =&amp;gt; Select Tab for ABAP Editor =&amp;gt; Select Editor =&amp;gt; Uncheck the last check box which says that ' Downward -compat Line length 72'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last box is not checked, and I've still the ABAP error CX_SY_READ_SRC_LINE_TOO_LONG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another parameter where the lengh of ABAP line is limited to 72 characters please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ludovic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 09:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-code-dumping/m-p/3277287#M783634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T09:45:55Z</dc:date>
    </item>
  </channel>
</rss>

