<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978674#M950284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chayaa,&lt;/P&gt;&lt;P&gt;When u use ABAP Objects u have to buid the field cat in different manner. &lt;STRONG&gt;U can't use REUSE ALV FMS for this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare ur field cat table like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: i_fieldcat       TYPE STANDARD TABLE OF lvc_s_fcat.
DATA: wa_fieldcat TYPE lvc_s_fcat.
FORM fieldcat USING fname tname pos edit.
  CLEAR wa_fieldcat.
  wa_fieldcat-fieldname = fname.
  wa_fieldcat-tabname   = tname.
  wa_fieldcat-scrtext_l = fname.
  wa_fieldcat-scrtext_m = fname.
  wa_fieldcat-scrtext_s = fname.
  wa_fieldcat-just      = ' '.
  wa_fieldcat-col_pos   = pos.
  wa_fieldcat-edit = edit.
  APPEND wa_fieldcat TO i_fieldcat.
ENDFORM.                    " fieldcat

  CALL METHOD grid-&amp;gt;set_table_for_first_display
*    EXPORTING
*      is_layout                     = wa_layout
    CHANGING
      it_outtab                     = i_mara
      it_fieldcatalog               = i_fieldcat
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc &amp;lt;&amp;gt; 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;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 06:49:17 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-06-16T06:49:17Z</dc:date>
    <item>
      <title>fieldcatalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978670#M950280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI , &lt;/P&gt;&lt;P&gt;in CALL METHOD ob_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;method how we can delcare the fieldcatalog , manually i created field catalog how we can pass this to this method ,&lt;/P&gt;&lt;P&gt;i am getting NO_FIELDCATALOG_FOUND exception ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am creating fieldcatalog automatically through " REUSE_ALV_FIELDCATALOG_MERGE "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how this fieldcatalog will assing in this method.&lt;/P&gt;&lt;P&gt;pls tell me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 06:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978670#M950280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T06:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978671#M950281</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;Create a structure same the internal table used for fieldcatalog in SE11 and pass the structure to I_STRUCTURE expotr parameter of fieldcatalog merge FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 06:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978671#M950281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978672#M950282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUt &lt;/P&gt;&lt;P&gt;i am creating some fields automatically and some fields manuallly so how can i do for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 06:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978672#M950282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T06:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978673#M950283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL METHOD cls_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            is_layout       = ws_layout&lt;/P&gt;&lt;P&gt;            i_save          = 'A'&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            it_outtab       = t_soheaderdata[]&lt;/P&gt;&lt;P&gt;            it_fieldcatalog = t_fieldcat[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this delete 'cls_grid' and give ur grid name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 06:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978673#M950283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T06:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: fieldcatalog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978674#M950284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chayaa,&lt;/P&gt;&lt;P&gt;When u use ABAP Objects u have to buid the field cat in different manner. &lt;STRONG&gt;U can't use REUSE ALV FMS for this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare ur field cat table like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: i_fieldcat       TYPE STANDARD TABLE OF lvc_s_fcat.
DATA: wa_fieldcat TYPE lvc_s_fcat.
FORM fieldcat USING fname tname pos edit.
  CLEAR wa_fieldcat.
  wa_fieldcat-fieldname = fname.
  wa_fieldcat-tabname   = tname.
  wa_fieldcat-scrtext_l = fname.
  wa_fieldcat-scrtext_m = fname.
  wa_fieldcat-scrtext_s = fname.
  wa_fieldcat-just      = ' '.
  wa_fieldcat-col_pos   = pos.
  wa_fieldcat-edit = edit.
  APPEND wa_fieldcat TO i_fieldcat.
ENDFORM.                    " fieldcat

  CALL METHOD grid-&amp;gt;set_table_for_first_display
*    EXPORTING
*      is_layout                     = wa_layout
    CHANGING
      it_outtab                     = i_mara
      it_fieldcatalog               = i_fieldcat
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc &amp;lt;&amp;gt; 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;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 06:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fieldcatalog/m-p/3978674#M950284</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-16T06:49:17Z</dc:date>
    </item>
  </channel>
</rss>

