<?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: Run-time error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854987#M1320372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you passing sy-repid to W_prog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 06:35:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T06:35:34Z</dc:date>
    <item>
      <title>Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854980#M1320365</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;I developed a report program and when I try to execute the program,I am getting a run-time error as &lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;fields of a particular type under "I_INTERNAL_TABNAME".&lt;/P&gt;&lt;P&gt;The field "T_OUTPUT" specified here is a different&lt;/P&gt;&lt;P&gt;field type.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table T_OUTPUT is my output internal table.I have declared  it in the program as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_output,&lt;/P&gt;&lt;P&gt;      empid like zheempl-empid,&lt;/P&gt;&lt;P&gt;      grade like zheempl-grade,&lt;/P&gt;&lt;P&gt;      location like zheempl-location,&lt;/P&gt;&lt;P&gt;      pu    like zheempl-pu,&lt;/P&gt;&lt;P&gt;      name1 like zheempl-name1,&lt;/P&gt;&lt;P&gt;      role like zhealoc-role,&lt;/P&gt;&lt;P&gt;      stdat like zhealoc-stdat,&lt;/P&gt;&lt;P&gt;      endat like zhealoc-endat,&lt;/P&gt;&lt;P&gt;      end of ty_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_output type standard table of ty_output.&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               = W_PROG&lt;/P&gt;&lt;P&gt;     I_INTERNAL_TABNAME           = T_OUTPUT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_STRUCTURE_NAME             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_CLIENT_NEVER_DISPLAY       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     I_INCLNAME                   = W_PROG&lt;/P&gt;&lt;P&gt;     I_BYPASSING_BUFFER           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_BUFFER_ACTIVE              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat                  = T_FIELDCAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    PROGRAM_ERROR                = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS                       = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When do we get this kind of error and what would be the reason for the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854980#M1320365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854981#M1320366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to [this link&amp;gt;&amp;gt;|http://www.sap-img.com/fu015.htm] on delerations of *merge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854981#M1320366</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-06-22T06:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854982#M1320367</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;declare the Internal table like below and pass to FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; : begin of &lt;STRONG&gt;T_OUTPUT&lt;/STRONG&gt; occurs 0,&lt;/P&gt;&lt;P&gt;empid like zheempl-empid,&lt;/P&gt;&lt;P&gt;grade like zheempl-grade,&lt;/P&gt;&lt;P&gt;location like zheempl-location,&lt;/P&gt;&lt;P&gt;pu like zheempl-pu,&lt;/P&gt;&lt;P&gt;name1 like zheempl-name1,&lt;/P&gt;&lt;P&gt;role like zhealoc-role,&lt;/P&gt;&lt;P&gt;stdat like zhealoc-stdat,&lt;/P&gt;&lt;P&gt;endat like zhealoc-endat,&lt;/P&gt;&lt;P&gt;end of T_OUTPUT.&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 = W_PROG&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME = &lt;STRONG&gt;'T_OUTPUT'&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_STRUCTURE_NAME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CLIENT_NEVER_DISPLAY = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I_INCLNAME = W_PROG&lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_BUFFER_ACTIVE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = T_FIELDCAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCONSISTENT_INTERFACE = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROGRAM_ERROR = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854982#M1320367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854983#M1320368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I_INTERNAL_TABNAME = T_OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I_INTERNAL_TABNAME = 'T_OUTPUT'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854983#M1320368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854984#M1320369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&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 = W_PROG
* I_INTERNAL_TABNAME = T_OUTPUT
* I_STRUCTURE_NAME =
* I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = W_PROG
I_BYPASSING_BUFFER = 'X'
* I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = T_FIELDCAT
* EXCEPTIONS
* INCONSISTENT_INTERFACE = 1
* PROGRAM_ERROR = 2
* OTHERS = 3
.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854984#M1320369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854985#M1320370</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;Pass internal table as :&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME = &lt;STRONG&gt;'T_OUTPUT'&lt;/STRONG&gt;&lt;/P&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;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854985#M1320370</guid>
      <dc:creator>saumya_govil</dc:creator>
      <dc:date>2009-06-22T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854986#M1320371</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;Thank you.I have passed T_OUTPUT internal table in single quotes.Now the program is not throwing any run-time error but T_FIELDCAT internal table is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854986#M1320371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854987#M1320372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you passing sy-repid to W_prog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854987#M1320372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854988#M1320373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am passing sy-repid to w_prog.But still T_FIELDCAT is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854988#M1320373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854989#M1320374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use TYPE when declaring the internal table. You have to use LIKE if you want to use the fielcat FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854989#M1320374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T06:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Run-time error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854990#M1320375</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;You need to maintain the field catalog yourself using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data : i_fieldcat TYPE slis_t_fieldcat_alv.

fc_tmp-fieldname  = 'FIELDNAME'.
  fc_tmp-tabname   = 'T_OUTPUT'.
  fc_tmp-outputlen  = '20'.
  fc_tmp-col_pos    = 1.
  APPEND fc_tmp TO i_fieldcat.

  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
   EXPORTING
*   I_INTERFACE_CHECK              = ' '
     i_bypassing_buffer             = 'X'
     i_buffer_active                = ' '
     i_callback_program             = '&amp;lt;report name&amp;gt; '
*   I_CALLBACK_PF_STATUS_SET       = ' '
*   I_CALLBACK_USER_COMMAND        = ' '
*   I_STRUCTURE_NAME               =
*   IS_LAYOUT                      =
     it_fieldcat                    = i_fieldcat
*   IT_EXCLUDING                   =
*   IT_SPECIAL_GROUPS              =
*   IT_SORT                        =
*   IT_FILTER                      =
*   IS_SEL_HIDE                    =
*   I_DEFAULT                      = 'X'
     i_save                         = 'A'
*   IS_VARIANT                     =
*   IT_EVENTS                      =
*   IT_EVENT_EXIT                  =
*   IS_PRINT                       =
*   IS_REPREP_ID                   =
*   I_SCREEN_START_COLUMN          = 0
*   I_SCREEN_START_LINE            = 0
*   I_SCREEN_END_COLUMN            = 0
*   I_SCREEN_END_LINE              = 0
*   IR_SALV_LIST_ADAPTER           =
*   IT_EXCEPT_QINFO                =
*   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER        =
*   ES_EXIT_CAUSED_BY_USER         =
    TABLES
      t_outtab                       = t_output.
* EXCEPTIONS
*   PROGRAM_ERROR                  = 1
*   OTHERS                         = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 06:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error/m-p/5854990#M1320375</guid>
      <dc:creator>saumya_govil</dc:creator>
      <dc:date>2009-06-22T06:40:49Z</dc:date>
    </item>
  </channel>
</rss>

