<?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: field catalog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254612#M487944</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;in that case u should prepare the fieldcat manually like shown below.&lt;/P&gt;&lt;P&gt;CLEAR AFIELD.&lt;/P&gt;&lt;P&gt;AFIELD-Col_pos = 1.&lt;/P&gt;&lt;P&gt;AFIELD-seltext_m = 'NAME'.&lt;/P&gt;&lt;P&gt;AFIELD-KEY = 'X'.&lt;/P&gt;&lt;P&gt;AFIELD-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;AFIELD-intlen = '20'.&lt;/P&gt;&lt;P&gt;APPEND AFIELD TO FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR AFIELD.&lt;/P&gt;&lt;P&gt;AFIELD-Col_pos = 2.&lt;/P&gt;&lt;P&gt;AFIELD-seltext_m = 'NUMBER'.&lt;/P&gt;&lt;P&gt;AFIELD-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;AFIELD-intlen = '10'.&lt;/P&gt;&lt;P&gt;APPEND AFIELD TO FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2007 12:14:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-25T12:14:36Z</dc:date>
    <item>
      <title>field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254609#M487941</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;     in alv interactive list how can i display the fields in which the fields doesn't present in database tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254609#M487941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254610#M487942</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 can use the fm REUSE_ALV_FIELDCATALOG_MERGE to create the catalog in order of definition of output table:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; BEGIN OF T_OUTPUT OCCURS 0,
         FIELD1 LIKE .....,
         ..................
       END   OF T_OUTPUT.    
  
  
  GT_REPID = SY-REPID.
  
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            I_PROGRAM_NAME     = GT_REPID
            I_INTERNAL_TABNAME = 'T_OUTPUT'
            I_INCLNAME         = GT_REPID
       CHANGING
            CT_FIELDCAT        = GT_FIELDCAT[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need u can insert the characteristics of a field in catalog table by your self:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LS_FIELDCAT-FIELDNAME = ......
....................................
APPEND LS_FIELDCAT TO GT_FIELDCAT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254610#M487942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254611#M487943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You hardcode the Values for the fields which are not there in database table&lt;/P&gt;&lt;P&gt;and which yopu wants to display in the output.&lt;/P&gt;&lt;P&gt;that is the only way to display the fields which are not there in databse.&lt;/P&gt;&lt;P&gt;So during the internal table population hardcode the values and fill the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254611#M487943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254612#M487944</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;in that case u should prepare the fieldcat manually like shown below.&lt;/P&gt;&lt;P&gt;CLEAR AFIELD.&lt;/P&gt;&lt;P&gt;AFIELD-Col_pos = 1.&lt;/P&gt;&lt;P&gt;AFIELD-seltext_m = 'NAME'.&lt;/P&gt;&lt;P&gt;AFIELD-KEY = 'X'.&lt;/P&gt;&lt;P&gt;AFIELD-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;AFIELD-intlen = '20'.&lt;/P&gt;&lt;P&gt;APPEND AFIELD TO FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR AFIELD.&lt;/P&gt;&lt;P&gt;AFIELD-Col_pos = 2.&lt;/P&gt;&lt;P&gt;AFIELD-seltext_m = 'NUMBER'.&lt;/P&gt;&lt;P&gt;AFIELD-datatype = 'CHAR'.&lt;/P&gt;&lt;P&gt;AFIELD-intlen = '10'.&lt;/P&gt;&lt;P&gt;APPEND AFIELD TO FIELDCAT.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254612#M487944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254613#M487945</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;1. Create an Internal table with all the fields you required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a fieldcatlog with repect to that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Automaticall u will get all the field in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254613#M487945</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-05-25T12:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254614#M487946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to close your previous threads by rewarding points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question with heading &amp;lt;b&amp;gt;Count&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254614#M487946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: field catalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254615#M487947</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;define an final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab_final,&lt;/P&gt;&lt;P&gt;          field1 like &amp;lt;table name&amp;gt;-&amp;lt;fieldname&amp;gt;,&lt;/P&gt;&lt;P&gt;          field2 like &amp;lt;table name&amp;gt;-&amp;lt;fieldname&amp;gt;,&lt;/P&gt;&lt;P&gt;          end of itab_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-fieldname = 'FIELD1'.&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-seltext_l = 'field 1'.&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-col_pos = 1.&lt;/P&gt;&lt;P&gt;append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt;clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; d_fieldcat_wa-fieldname = 'FIELD2'.&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-seltext_l = 'field 2'.&lt;/P&gt;&lt;P&gt;d_fieldcat_wa-col_pos = 2.&lt;/P&gt;&lt;P&gt;append d_fieldcat_wa to d_fieldcat.&lt;/P&gt;&lt;P&gt;clear d_fieldcat_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gd_repid like sy-repid.&lt;/P&gt;&lt;P&gt;       gd_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function module reuse_alv_grid_display.&lt;/P&gt;&lt;P&gt;exporting.&lt;/P&gt;&lt;P&gt;program name = gd_repid.&lt;/P&gt;&lt;P&gt;t_fieldcatalog = d_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing.&lt;/P&gt;&lt;P&gt;t_outtab = itab.&lt;/P&gt;&lt;P&gt;exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 12:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog/m-p/2254615#M487947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T12:31:59Z</dc:date>
    </item>
  </channel>
</rss>

