<?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 field Catalog error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983406#M1492889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one doubt. In the thread you have mention that refer Kunnr , Vbeln. Here he has mentioned the data type C,N,D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the same reflect when you give the Kunnr,vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clear me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 05:56:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-22T05:56:07Z</dc:date>
    <item>
      <title>ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983400#M1492883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to build the field catalog as below but it is erroring saying it_fieldcat allows certain data types and ls_fieldcatalog uses a different data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;data ls_fieldcatalog type SLIS_T_FIELDCAT_ALV&lt;/P&gt;&lt;P&gt;              with header line.&lt;/P&gt;&lt;P&gt;DATA: i_repid type sy-repid.&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;ls_fieldcatalog-fieldname = 'Co Code'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'C'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '0'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'Document No'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'N'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'GL Account'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'N'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'Posting Date'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'D'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&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                    = ls_fieldcatalog&lt;/P&gt;&lt;P&gt;   I_SAVE                         = 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                       = it_tab&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 03:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983400#M1492883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983401#M1492884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it_fieldcatalog is internal table type whereas the parameter u r passing ls_fieldcatalog is a structure, it should be declared as a table type u need to use ls_fieldcatalog[] and the error will b removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vijetasap on Jun 22, 2010 6:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 04:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983401#M1492884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T04:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983402#M1492885</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;Do not create the field catalog internal table with header line, use the explicit work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ls_fieldcatalog type SLIS_T_FIELDCAT_ALV,     " Internal table for field catlog
         lw_fieldcatalog  like line of ls_fieldcatalog .         " Workarea for Fiel catlog
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now use this work are to append the record to ls_fieldcatalog. and pass the internal table &lt;STRONG&gt;ls_fieldcatalog&lt;/STRONG&gt; to the parameter &lt;STRONG&gt;IT_FIELDCAT&lt;/STRONG&gt; of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;DKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 04:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983402#M1492885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T04:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983403#M1492886</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 have to make two corrections in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First of all ls_fieldcatalaog is a table with headerline. So inorder to pass the body of the fieldcatalog you have to pass ls_fieldcatalaog[] in the function module. ie, you have to use the square brackets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. While defining the fieldcatalog you have to give the name of the field in the internal table for the paramater ls_fieldcatalog-fieldname. For eg, company code will be defined as bukrs then type 'BUKRS' in ls_fieldcatalog-fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be okay. Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you,&lt;/P&gt;&lt;P&gt;Jerry Jerome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 05:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983403#M1492886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T05:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983404#M1492887</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;Just follow the suggetsions given in above tread . It will resolve your query that is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Do not make use of header line , creat eexplicite work area and mak euse of ls_fieldcatalaog[] in the function module an append statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. The reason for the error you are getting is because you have made use of N , D , C data types and passed in fieldname This is not correct mak euse of eg KUNNR , VBELN there according to your data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 05:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983404#M1492887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T05:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983405#M1492888</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;Please Have a look below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Do not make use of header line , creat eexplicite work area and mak euse of ls_fieldcatalaog[] in the function module an append statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. The reason for the error you are getting is because you have made use of N , D , C data types and passed in fieldname This is not correct make use of eg KUNNR , VBELN there according to your data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 05:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983405#M1492888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T05:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983406#M1492889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one doubt. In the thread you have mention that refer Kunnr , Vbeln. Here he has mentioned the data type C,N,D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the same reflect when you give the Kunnr,vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clear me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 05:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983406#M1492889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983407#M1492890</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 must see your code and search SDN after posting .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;I.Muthukumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 07:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983407#M1492890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T07:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983408#M1492891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please fined the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ls_fieldcatalog type SLIS_FIELDCAT_ALV&lt;/P&gt;&lt;P&gt;       lt_fieldcatlog type SLIS_T_FIELDCAT_ALV&lt;/P&gt;&lt;P&gt;DATA: i_repid type sy-repid.&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;ls_fieldcatalog-fieldname = 'Co Code'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'C'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '0'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'Document No'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'N'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'GL Account'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'N'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'Posting Date'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'D'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog to lt_fieldcatalog.&lt;/P&gt;&lt;P&gt;clear ls_fieldcatalog.&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 = lt_fieldcatalog&lt;/P&gt;&lt;P&gt;I_SAVE = 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = it_tab&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983408#M1492891</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2010-06-22T08:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983409#M1492892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heyy Sumodh ,&lt;/P&gt;&lt;P&gt;By Kunnr , and vbeln I mean giving the names of the fields form the table it_itab so system takes corresponding data types into consideration. That is to mean give the names of the fields under Fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: UmaDave on Jun 22, 2010 10:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983409#M1492892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T08:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983410#M1492893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983410#M1492893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T08:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV field Catalog error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983411#M1492894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you one and all for helping me solve it . I awarded points and closing this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the changes a ssuggested it works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 15:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-field-catalog-error/m-p/6983411#M1492894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T15:12:43Z</dc:date>
    </item>
  </channel>
</rss>

