<?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: Problem function 'LVC_FIELDCATALOG_MERGE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889146#M53059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only bothered about getting the Field Catalog, then you can try out the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools slis.
 
data: begin of itab OCCURS 0,
        mandt type mandt,
        vbeln type vbeln,
        matnr type matnr,
      end of itab.
 
data: prog_name type syrepid,
      fcat      type slis_t_fieldcat_alv.
 
prog_name = SY-REPID.
 
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   I_PROGRAM_NAME               = PROG_NAME
   I_INTERNAL_TABNAME           = 'ITAB'
   I_INCLNAME                   = PROG_NAME
  CHANGING
    CT_FIELDCAT                  = FCAT
 EXCEPTIONS
   INCONSISTENT_INTERFACE       = 1
   PROGRAM_ERROR                = 2
   OTHERS                       = 3.
 
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;I shall still look at LVC_FIELDCATALG_MERGE and see what's wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2005 08:11:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-04T08:11:00Z</dc:date>
    <item>
      <title>Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889143#M53056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all is it possible to use the function 'LVC_FIELDCATALOG_MERGE' for internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes plz guide me how to use. I checked the standard programs but all are using direct dictionary tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your information i have copied my program below. Here function returns sy-subrc = 0. but ct3 is still initial. Plz help me out to sort out this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  YCSR_RRB_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ct3 type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of ITAB_CS occurs 0,&lt;/P&gt;&lt;P&gt;         AUFNR like AFIH-AUFNR,&lt;/P&gt;&lt;P&gt;         ILOAN like AFIH-ILOAN,&lt;/P&gt;&lt;P&gt;         ERDAT like AUFK-ERDAT,&lt;/P&gt;&lt;P&gt;       end of ITAB_CS.&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             = 'ITAB_CS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CLIENT_NEVER_DISPLAY       = 'X'&lt;/P&gt;&lt;/LI&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           = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    CT_FIELDCAT                  = ct3[]&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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 07:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889143#M53056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889144#M53057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;itab_cs is not a structure - try to pass it as internal_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 07:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889144#M53057</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-02-04T07:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889145#M53058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it gives me error message 'Field catalog not found'. If u have any example with internal table than plz give me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 07:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889145#M53058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889146#M53059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only bothered about getting the Field Catalog, then you can try out the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools slis.
 
data: begin of itab OCCURS 0,
        mandt type mandt,
        vbeln type vbeln,
        matnr type matnr,
      end of itab.
 
data: prog_name type syrepid,
      fcat      type slis_t_fieldcat_alv.
 
prog_name = SY-REPID.
 
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   I_PROGRAM_NAME               = PROG_NAME
   I_INTERNAL_TABNAME           = 'ITAB'
   I_INCLNAME                   = PROG_NAME
  CHANGING
    CT_FIELDCAT                  = FCAT
 EXCEPTIONS
   INCONSISTENT_INTERFACE       = 1
   PROGRAM_ERROR                = 2
   OTHERS                       = 3.
 
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;I shall still look at LVC_FIELDCATALG_MERGE and see what's wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 08:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889146#M53059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T08:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889147#M53060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem with LVC_FIELDCATALOG_MERGE seems that the internal table that u r passing does not contain any records, because of which u do get SY_SUBRC = 0 but ct3 as INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try initialising the internal table like the example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ALV_SOURCE,               "Structure for ALV Grid fields&lt;/P&gt;&lt;P&gt;         EMPLCODE LIKE ZMC_EMP-EMPLCODE,&lt;/P&gt;&lt;P&gt;         NAME LIKE ZMC_EMP-NAME,&lt;/P&gt;&lt;P&gt;         DESIGNATION LIKE ZMC_EMP-DESIGNATION,&lt;/P&gt;&lt;P&gt;         DEPTCODE LIKE ZMC_DEPTT-DEPTCODE,&lt;/P&gt;&lt;P&gt;         DEPTNAME LIKE ZMC_DEPTT-DEPTNAME,&lt;/P&gt;&lt;P&gt;       END OF ALV_SOURCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; "ALV GRID DATA ELEMENTS - BEGIN  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "Field Catalog for ALV Grid display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_ALV_FLDS TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "Work Area for Field Catalog of ALV Grid display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      WA TYPE LVC_T_FCAT WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "ALV Grid Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CTL_ALV_EMPLOYEE TYPE REF TO CL_GUI_ALV_GRID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "ALV Control Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CTL_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "Name of container on the screen for ALV Control Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CONTAINER_NM_ON_SCR TYPE SCRFNAME VALUE 'CTL_CUS_ALV',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "Internal table to store ALV Grid data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_ALV_SOURCE TYPE TABLE OF ALV_SOURCE WITH DEFAULT KEY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    "ALV Control Layout Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      LAYOUT TYPE LVC_S_LAYO,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  "ALV GRID DATA ELEMENTS - END   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*......... your code for alv initialisation..........&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Set Field Catalog for ALV Grid display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM SET_FIELD_PARAMS.                  "Populate Field Catalogue&lt;/P&gt;&lt;P&gt;PERFORM MASK_COLS TABLES IT_ALV_FLDS.   "Apply Field Cat to ALV Grid&lt;/P&gt;&lt;P&gt;*......... your code for further processing..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SET_FIELD_PARAMS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set Field Catalog attributes for ALV Grid display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form SET_FIELD_PARAMS.&lt;/P&gt;&lt;P&gt;    WA-FIELDNAME = 'EMPLCODE'.&lt;/P&gt;&lt;P&gt;    WA-REF_TABLE = 'IT_ALV_SOURCE'.&lt;/P&gt;&lt;P&gt;    WA-REF_FIELD = 'EMPLCODE'.&lt;/P&gt;&lt;P&gt;    WA-COLTEXT = 'Employee Code'.&lt;/P&gt;&lt;P&gt;    WA-SELTEXT = 'Employee Code'.&lt;/P&gt;&lt;P&gt;    WA-COL_POS = '1'.&lt;/P&gt;&lt;P&gt;    WA-OUTPUTLEN = '13'.&lt;/P&gt;&lt;P&gt;    APPEND WA TO IT_ALV_FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA-FIELDNAME = 'NAME'.&lt;/P&gt;&lt;P&gt;    WA-REF_TABLE = 'IT_ALV_SOURCE'.&lt;/P&gt;&lt;P&gt;    WA-REF_FIELD = 'NAME'.&lt;/P&gt;&lt;P&gt;    WA-COLTEXT = 'Name'.&lt;/P&gt;&lt;P&gt;    WA-SELTEXT = 'Name'.&lt;/P&gt;&lt;P&gt;    WA-COL_POS = '2'.&lt;/P&gt;&lt;P&gt;    WA-OUTPUTLEN = '25'.&lt;/P&gt;&lt;P&gt;    APPEND WA TO IT_ALV_FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA-FIELDNAME = 'DESIGNATION'.&lt;/P&gt;&lt;P&gt;    WA-REF_TABLE = 'IT_ALV_SOURCE'.&lt;/P&gt;&lt;P&gt;    WA-REF_FIELD = 'DESIGNATION'.&lt;/P&gt;&lt;P&gt;    WA-COLTEXT = 'Designation'.&lt;/P&gt;&lt;P&gt;    WA-SELTEXT = 'Designation'.&lt;/P&gt;&lt;P&gt;    WA-COL_POS = '3'.&lt;/P&gt;&lt;P&gt;    WA-OUTPUTLEN = '20'.&lt;/P&gt;&lt;P&gt;    APPEND WA TO IT_ALV_FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA-FIELDNAME = 'DEPTCODE'.&lt;/P&gt;&lt;P&gt;    WA-REF_TABLE = 'IT_ALV_SOURCE'.&lt;/P&gt;&lt;P&gt;    WA-REF_FIELD = 'DEPTCODE'.&lt;/P&gt;&lt;P&gt;    WA-COLTEXT = 'Deptt Code'.&lt;/P&gt;&lt;P&gt;    WA-SELTEXT = 'Deptt Code'.&lt;/P&gt;&lt;P&gt;    WA-COL_POS = '4'.&lt;/P&gt;&lt;P&gt;    WA-OUTPUTLEN = '10'.&lt;/P&gt;&lt;P&gt;    APPEND WA TO IT_ALV_FLDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA-FIELDNAME = 'DEPTNAME'.&lt;/P&gt;&lt;P&gt;    WA-REF_TABLE = 'IT_ALV_SOURCE'.&lt;/P&gt;&lt;P&gt;    WA-REF_FIELD = 'DEPTNAME'.&lt;/P&gt;&lt;P&gt;    WA-COLTEXT = 'Deptartment Name'.&lt;/P&gt;&lt;P&gt;    WA-SELTEXT = 'Deptartment Name'.&lt;/P&gt;&lt;P&gt;    WA-COL_POS = '5'.&lt;/P&gt;&lt;P&gt;    WA-OUTPUTLEN = '20'.&lt;/P&gt;&lt;P&gt;    APPEND WA TO IT_ALV_FLDS.&lt;/P&gt;&lt;P&gt;endform.                    " SET_FIELD_PARAMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  MASK_COLS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Field Catalogs for the ALV Grid display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_ALV_FLDS  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form MASK_COLS tables p_it_alv_flds TYPE LVC_T_FCAT.&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             = 'IT_ALV_SOURCE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_CLIENT_NEVER_DISPLAY       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_BYPASSING_BUFFER           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat                  = P_IT_ALV_FLDS[]&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;P&gt;    MESSAGE S264(T) WITH&lt;/P&gt;&lt;P&gt;      'There was an error in initialising the ALV control.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endform.                    " MASK_COLS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 08:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889147#M53060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T08:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889148#M53061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like there's a problem with the Function Module LVC_FIELDCATALOG_MERGE in the release 4.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a 4.6C system, the parameter I_INTERNAL_TABNAME is not defined in the interface for this function module. In the 4,7 system, this parameter appears, but the problem is that there's no parameter I_CALLBACK_PROGRAM, which has to be provided when you use the I_INTERNAL_TABNAME parameter. Observe the following in the code for the FM LVC_FIELDCATALOG_MERGE - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  call function 'K_KKB_FIELDCAT_MERGE'
    exporting
*      i_callback_program     = i_program_name
      i_tabname              = ls_fieldcat_kkblo-tabname
      i_strucname            = i_structure_name
      i_bypassing_buffer     = i_bypassing_buffer
      i_buffer_active        = l_buffer_active
*      i_inclname             = i_inclname
    changing
      ct_fieldcat            = lt_fieldcat[]
    exceptions
      inconsistent_interface = 1
      others                 = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But inside the FM K_KKB_FIELDCAT_MERGE, you would find something like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  if ( i_callback_program eq space or i_tabname eq space )
      and i_strucname eq space.
    message a530(0k) raising inconsistent_interface .
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that is what is causing the problem. Hope it is clear to you. If you have any doubts, please do get back. If not, then please reward the points mark the thread as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. : Since this FM is not usable when you specify the internal table, please use the FM 'REUSE_ALV_FIELDCATALOG_MERGE, as illustrated in my previous post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 08:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889148#M53061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T08:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889149#M53062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving answer...&lt;/P&gt;&lt;P&gt;Actually i have many other ways to sort out this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to use specifically this function.. That's why i ask the question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Poornanad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your guidance... In fist reply u told me to use REUSE_ALV_FIELDCATALOG_MERGE that is from SLIS and it is not compitible with List Viewer Control. I tried that first before asking question in SDN. In second reply u explained me very finely and i got the problem with function module also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Madhur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i want to build field catalog semi automatically. U told me to build manually. Thanks for your guidance also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 10:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889149#M53062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889150#M53063</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;The FM LVC_FIELDCATALOG_MERGE don't work with INTERNAL TABLE only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's should be used for merge any STRUCTURE in the ABAP DICTIONARY with your INTERNAL TABLE or used only with a STRUCTURE in the ABAP DICTIONARY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
  EXPORTING
    * I_BUFFER_ACTIVE		= 'X'
    I_STRUCTURE_NAME		= 'STRUCTURE' 		"Like MKPF for example
    * I_CLIENT_NEVER_DISPLAY 	= 'X'
    * I_BYPASSING_BUFFER	= 'X'
    I_INTERNAL_TABNAME		= 'IT_TAB' 		"Your Internal Table
  CHANGING
    ct_fieldcat = it_fieldcat				"Your Fieldcatalogue
  EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR = 2
    OTHERS = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 18:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889150#M53063</guid>
      <dc:creator>mauriciolauffer</dc:creator>
      <dc:date>2010-12-28T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889151#M53064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mauricio... look at the DATE!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please stop bumping those old posts with your copy pasta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 18:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889151#M53064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-28T18:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889152#M53065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; copy pasta.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 18:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889152#M53065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-28T18:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889153#M53066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi When you are using the Function module pass your internal table name to parameter I-internal_tabname.&lt;/P&gt;&lt;P&gt;when defining internal table name define like this:&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;         matnr like (Not type) mara-matnr,&lt;/P&gt;&lt;P&gt;maktx  like (NOT TYPE) makt-maktx,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 19:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889153#M53066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-28T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function 'LVC_FIELDCATALOG_MERGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889154#M53067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, ignoring the fact that this is an ancient post, I'd love to hear how that suggestion fixes the issue :-S...  You do know that you're recommending deprecated syntax as well, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 19:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-lvc-fieldcatalog-merge/m-p/889154#M53067</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-12-28T19:47:30Z</dc:date>
    </item>
  </channel>
</rss>

