<?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: FIELDCATALOG USING INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264278#M1215664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT THE FIELDCAT MUST BE OF TYPE " LVC_S_FCAT "...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 08:39:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-03T08:39:49Z</dc:date>
    <item>
      <title>FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264274#M1215660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;IAM USING THIS FM TO CREATE FIELDCAT STRUCTURE USING THE KNA1 DATABASE  TABLE STRUCTURE... BUT I WANT TO CREATE FIELDCAT USING MY INTERNAL TABLE.. I TRIED IT BUT IT IS GOING TO DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ME..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;   EXPORTING&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;     I_STRUCTURE_NAME             = 'KNA1'&lt;/P&gt;&lt;P&gt;       I_CLIENT_NEVER_DISPLAY       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_BYPASSING_BUFFER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_INTERNAL_TABNAME           = 'IKNA1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      CT_FIELDCAT                  = FIELDCAT&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; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264274#M1215660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264275#M1215661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be a database table.&lt;/P&gt;&lt;P&gt;Otherwise dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264275#M1215661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264276#M1215662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following link: &lt;/P&gt;&lt;P&gt;[Utilising REUSE_ALV_FIELDCATALOG_MERGE using program-internal table |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1253621"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Pushpraj: Please see the FM documentation before answering. DONOT misguide people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264276#M1215662</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-03-03T08:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264277#M1215663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUT IS THERE IS ANY OTHER WAY OR OTHER FM FOR MY SOLUTION...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE FIELDCAT MUST BE OF TYPE " LVC_S_FCAT "..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264277#M1215663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264278#M1215664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT THE FIELDCAT MUST BE OF TYPE " LVC_S_FCAT "...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264278#M1215664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264279#M1215665</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;check this example&lt;/P&gt;&lt;P&gt;data LS_FCAT type LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;  call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      I_STRUCTURE_NAME = 'ZSUPPORTTOOL'       "database structure or table name &lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      CT_FIELDCAT      = GT_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at GT_FIELDCAT into WA_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if WA_FIELDCAT-FIELDNAME = 'MODULE'.&lt;/P&gt;&lt;P&gt;      WA_FIELDCAT-COLTEXT = 'MODULE'.&lt;/P&gt;&lt;P&gt;      WA_FIELDCAT-OUTPUTLEN = 6.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if WA_FIELDCAT-FIELDNAME = 'AREA'.&lt;/P&gt;&lt;P&gt;      WA_FIELDCAT-COLTEXT = 'AREA'.&lt;/P&gt;&lt;P&gt;      WA_FIELDCAT-OUTPUTLEN = 25.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    modify GT_FIELDCAT index SY-TABIX from WA_FIELDCAT.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264279#M1215665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264280#M1215666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just comment ur statement I_STRUCTURE_NAME = 'KNA1'&lt;/P&gt;&lt;P&gt;give I_INTERNAL_TABNAME = 'IKNA1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should work then .&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;&lt;/P&gt;&lt;P&gt;Rajnesh D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264280#M1215666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264281#M1215667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use like this:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_fcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;  DATA: lv_pos  TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lv_pos = lv_pos + 1.&lt;/P&gt;&lt;P&gt;  ls_fcat-fieldname = 'INSTANCE'. :(fieldname of internal table)&lt;/P&gt;&lt;P&gt;  ls_fcat-coltext   = 'Instance'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_pos   = lv_pos.&lt;/P&gt;&lt;P&gt;  ls_fcat-outputlen = 20.&lt;/P&gt;&lt;P&gt;  ls_fcat-no_out    = 'X'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_opt   = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND ls_fcat TO pt_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fcat-edit      = ' '.&lt;/P&gt;&lt;P&gt;  lv_pos = lv_pos + 1.&lt;/P&gt;&lt;P&gt;  ls_fcat-fieldname = 'PARENT'.&lt;/P&gt;&lt;P&gt;  ls_fcat-coltext   = 'Parent'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_pos   = lv_pos.&lt;/P&gt;&lt;P&gt;  ls_fcat-outputlen = 20.&lt;/P&gt;&lt;P&gt;  ls_fcat-no_out    = 'X'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_opt   = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND ls_fcat TO pt_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_pos = lv_pos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fcat-fieldname = 'LEVEL'.&lt;/P&gt;&lt;P&gt;  ls_fcat-coltext   = 'level'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_pos   = lv_pos.&lt;/P&gt;&lt;P&gt;  ls_fcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_opt   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND ls_fcat TO pt_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_pos = lv_pos + 1.&lt;/P&gt;&lt;P&gt;  ls_fcat-fieldname = 'ITEM_NO'.&lt;/P&gt;&lt;P&gt;  ls_fcat-coltext   = 'Item'.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_pos   = lv_pos.&lt;/P&gt;&lt;P&gt;  ls_fcat-outputlen = 20.&lt;/P&gt;&lt;P&gt;  ls_fcat-col_opt   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND ls_fcat TO pt_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ruchi Tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264281#M1215667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264282#M1215668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath,&lt;/P&gt;&lt;P&gt;When use the the FM to create the field catalog the &lt;STRONG&gt;internal table should have the header line&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to use the FM create the internal table with header line otherwise&lt;/P&gt;&lt;P&gt;fill the fieldcat manually as Ruchi mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Mar 3, 2009 9:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264282#M1215668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264283#M1215669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can draw an analogy &amp;amp; try as suggested in the post for LVC_FIELDCATALOG_MERGE as well. My suggestion will be to declare your internal table with LIKE keyword. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A question: Why have you passed 'KNA1' to the I_STRUCTURE_NAME parameter any relevance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264283#M1215669</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-03-03T08:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDCATALOG USING INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264284#M1215670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my question is answered and im closing the thread....thank u all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 06:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog-using-internal-table/m-p/5264284#M1215670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T06:00:19Z</dc:date>
    </item>
  </channel>
</rss>

