<?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 with Classes and methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996399#M405907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make fieldcatalog with merge function we have to pass DDIC structure only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 17:17:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T17:17:48Z</dc:date>
    <item>
      <title>ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996386#M405894</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 am trying to do one ALV with splited screen. i am passing internal table in LVC_FIELDCATALOG_MERGE to merge fieldcatlog. when i tried to do that at the end it gives an error saying " Field catalog not found " and it stops running. i have gone through some of the BCALV demo progs but all of them are passing DDIC structure to merge fieldcatalog. i want to get result with internal table can i do that??? please reply ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhwanit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996386#M405894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996387#M405895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996387#M405895</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-15T18:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996388#M405896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah sure... here you go...&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  create_and_init_controls&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;FORM create_and_init_controls .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create docking container for alv control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT container_1&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      repid = g_repid&lt;/P&gt;&lt;P&gt;      dynnr = '100'&lt;/P&gt;&lt;P&gt;      extension = 100&lt;/P&gt;&lt;P&gt;      side  = cl_gui_docking_container=&amp;gt;dock_at_top.&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 a000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create docking container for alv control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT container_2&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      repid = g_repid&lt;/P&gt;&lt;P&gt;      dynnr = '100'&lt;/P&gt;&lt;P&gt;      extension = 300&lt;/P&gt;&lt;P&gt;      side  = cl_gui_docking_container=&amp;gt;dock_at_top.&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 a000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create alv control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT g_alv&lt;/P&gt;&lt;P&gt;     EXPORTING i_parent = container_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create alv control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT g_alv1&lt;/P&gt;&lt;P&gt;     EXPORTING i_parent = container_2.&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;P&gt;      i_internal_tabname = 'I_AO_OUTPUT'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat        = gt_fieldcatalog.&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;P&gt;&lt;/P&gt;&lt;P&gt;***PERFORM get_data_ao.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     i_structure_name       = 'I_AO'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     ct_fieldcat            = it_fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     inconsistent_interface = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     program_error          = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     OTHERS                 = 3.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="3" 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="3" 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;LI level="2" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_alv1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout          = gs_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog    = gt_fieldcatalog&lt;/P&gt;&lt;P&gt;      it_outtab          = gt_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; init = 'X'.&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; CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;/LI&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;     cntl_system_error = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     cntl_error        = 2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;error handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " create_and_init_controls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996388#M405896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996389#M405897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to see how you defined, the internal table 'I_AO_OUTPUT'&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996389#M405897</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-15T18:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996390#M405898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply. here i am sending the code where i have declared all the tables and data.&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;  Include           Z_RE_MASS_IDENTIFICATION_TOP.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                              Types                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis,&lt;/P&gt;&lt;P&gt;            cndp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                              Tables                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;    vibdao,          "Architectural Object&lt;/P&gt;&lt;P&gt;    vibpobjrel,      "Business Partner-Object Relationship&lt;/P&gt;&lt;P&gt;    but000,          "Business Partner General Data&lt;/P&gt;&lt;P&gt;    tb003t,          "BP Roles&lt;/P&gt;&lt;P&gt;    vibdpr,          "Property&lt;/P&gt;&lt;P&gt;    vitmoa,          "Term:Organizational Assignment&lt;/P&gt;&lt;P&gt;    vibdbu.          "Building&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             Constants                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;  wc_aotype_st LIKE vibdao-aotype VALUE 'Z1ST',&lt;/P&gt;&lt;P&gt;  wc_aotype_bu LIKE vibdao-aotype VALUE 'Z2BU',&lt;/P&gt;&lt;P&gt;  wc_appl LIKE vibpobjrel-appl VALUE '0057'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    Internal tables/structures                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;   BEGIN OF i_ao OCCURS 0,                        "Architectural Objects&lt;/P&gt;&lt;P&gt;     role    LIKE vibpobjrel-role,&lt;/P&gt;&lt;P&gt;     partner LIKE but000-partner,&lt;/P&gt;&lt;P&gt;     intreno LIKE vibpobjrel-intreno,&lt;/P&gt;&lt;P&gt;     aoid    LIKE vibdao-aoid,&lt;/P&gt;&lt;P&gt;     rltxt   LIKE tb003t-rltxt,&lt;/P&gt;&lt;P&gt;     appl    LIKE vibpobjrel-appl,&lt;/P&gt;&lt;P&gt;   END OF i_ao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  BEGIN OF i_uo_prop OCCURS 0,                    "Usage Objects-Property&lt;/P&gt;&lt;P&gt;    bukrs   LIKE vibdpr-bukrs,&lt;/P&gt;&lt;P&gt;    swenr   LIKE vibdpr-swenr,&lt;/P&gt;&lt;P&gt;    sgrnr   LIKE vibdpr-sgrnr,&lt;/P&gt;&lt;P&gt;    xgrtxt  LIKE vibdpr-xgrtxt,&lt;/P&gt;&lt;P&gt;    prctr   LIKE vitmoa-prctr,&lt;/P&gt;&lt;P&gt;    intreno LIKE vibdpr-intreno,&lt;/P&gt;&lt;P&gt;  END OF i_uo_prop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  BEGIN OF i_uo_bu OCCURS 0,                      "Usage Objects-Building&lt;/P&gt;&lt;P&gt;    bukrs   LIKE vibdbu-bukrs,&lt;/P&gt;&lt;P&gt;    swenr   LIKE vibdbu-swenr,&lt;/P&gt;&lt;P&gt;    sgenr   LIKE vibdbu-sgenr,&lt;/P&gt;&lt;P&gt;    xgetxt  LIKE vibdbu-xgetxt,&lt;/P&gt;&lt;P&gt;    prctr   LIKE vitmoa-prctr,&lt;/P&gt;&lt;P&gt;    intreno LIKE vibdbu-intreno,&lt;/P&gt;&lt;P&gt;  END OF i_uo_bu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of i_output occurs 0,&lt;/P&gt;&lt;P&gt;    appl like vibpobjrel-appl,&lt;/P&gt;&lt;P&gt;    aoid like vibdao-aoid,&lt;/P&gt;&lt;P&gt;    name like vibdao-xao,&lt;/P&gt;&lt;P&gt;  end of i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA splitter TYPE REF TO cl_gui_splitter_container.&lt;/P&gt;&lt;P&gt;*DATA container TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;DATA container_1 TYPE REF TO cl_gui_docking_container.&lt;/P&gt;&lt;P&gt;DATA container_2 TYPE REF TO cl_gui_docking_container.&lt;/P&gt;&lt;P&gt;DATA init.&lt;/P&gt;&lt;P&gt;DATA ok_code TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA g_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;DATA g_alv TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;DATA g_alv1 TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;DATA gs_layout TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;DATA gt_outtab LIKE standard TABLE OF i_ao.&lt;/P&gt;&lt;P&gt;DATA gt_fieldcatalog TYPE lvc_t_fcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996390#M405898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996391#M405899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still don't see a data statement for 'I_AO_OUTPUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996391#M405899</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-15T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996392#M405900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dwanit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_internal_tabname = 'I_AO_OUTPUT'
CHANGING
ct_fieldcat = gt_fieldcatalog.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cannot work this way. Instead, you have to define the line type of  'I_AO_OUTPUT' in an include and tell the function module the name of this include. For details refer to the following sample report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_FIELDCATALOG_1
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_fieldcatalog_1.


TYPE-POOLS: slis.

include zus_sdn_slisfcat_Data.
*DATA: BEGIN OF ty_s_list.
*DATA:   bukrs    LIKE knb1-bukrs.
*DATA:   kunnr    LIKE knb1-kunnr.
*DATA:   vkorg    TYPE knvv-vkorg.  " type does not work !!!
*DATA: END OF ty_s_list.


DATA:
  gs_list         LIKE ty_s_list,
  gt_list         LIKE ty_s_list OCCURS 0.

DATA:
  gt_fcat         TYPE slis_t_fieldcat_alv.


START-OF-SELECTION.

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name               = syst-repid
      i_internal_tabname           = 'TY_S_LIST'
*     I_STRUCTURE_NAME             =
*     I_CLIENT_NEVER_DISPLAY       = 'X'
      i_inclname                   = 'ZUS_SDN_SLISFCAT_DATA'
      I_BYPASSING_BUFFER           = 'X'
*     I_BUFFER_ACTIVE              =
    CHANGING
      ct_fieldcat                  = gt_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.




  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
      i_structure_name = 'LVC_S_FCAT'
    TABLES
      t_outtab         = gt_fcat
    EXCEPTIONS
      program_error    = 1
      OTHERS           = 2.
  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.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the coding of the include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Include           ZUS_SDN_FIELDCATALOG_1_DATA
*&amp;amp;---------------------------------------------------------------------*


DATA: BEGIN OF ty_s_list.
DATA:   bukrs    LIKE knb1-bukrs.
DATA:   kunnr    LIKE knb1-kunnr.
DATA:   vkorg    TYPE knvv-vkorg.  " type does not work !!!
DATA: END OF ty_s_list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996392#M405900</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-03-15T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996393#M405901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This function module may only work when dealing with structures which are defined in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996393#M405901</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-15T18:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996394#M405902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the below code now i am sorry that was wrong code which i have posted. in the below code you can see data statement for i_ao_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data_ao&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;FORM get_data_ao .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: wa_ao LIKE i_ao.&lt;/P&gt;&lt;P&gt;  DATA: i_ao_output LIKE STANDARD TABLE OF i_ao.&lt;/P&gt;&lt;P&gt;  DATA: wa_ao_output LIKE i_ao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;    vibpobjrel~role&lt;/P&gt;&lt;P&gt;    but000~partner&lt;/P&gt;&lt;P&gt;    vibpobjrel~intreno&lt;/P&gt;&lt;P&gt;    vibdao~aoid&lt;/P&gt;&lt;P&gt;    tb003t~rltxt&lt;/P&gt;&lt;P&gt;    vibpobjrel~appl&lt;/P&gt;&lt;P&gt;      INTO TABLE i_ao&lt;/P&gt;&lt;P&gt;         FROM vibdao&lt;/P&gt;&lt;P&gt;           LEFT OUTER JOIN vibpobjrel&lt;/P&gt;&lt;P&gt;              ON vibdao&lt;SUB&gt;intreno = vibpobjrel&lt;/SUB&gt;intreno&lt;/P&gt;&lt;P&gt;           INNER JOIN but000&lt;/P&gt;&lt;P&gt;              ON but000&lt;SUB&gt;partner = vibpobjrel&lt;/SUB&gt;partner&lt;/P&gt;&lt;P&gt;           INNER JOIN tb003t&lt;/P&gt;&lt;P&gt;              ON tb003t&lt;SUB&gt;role = vibpobjrel&lt;/SUB&gt;role&lt;/P&gt;&lt;P&gt;          WHERE&lt;/P&gt;&lt;P&gt;            tb003t~spras = sy-langu AND&lt;/P&gt;&lt;P&gt;            vibdao~aotype = p_aotype AND&lt;/P&gt;&lt;P&gt;            vibdao~aoid IN s_aoid AND&lt;/P&gt;&lt;P&gt;            ( ( vibdao~aotype = wc_aotype_st AND&lt;/P&gt;&lt;P&gt;              vibdao~zzsstdort IN s_reglo AND&lt;/P&gt;&lt;P&gt;              vibdao~slagewe IN s_metro AND&lt;/P&gt;&lt;P&gt;              vibdao~sverkehr IN s_trans ) ) OR&lt;/P&gt;&lt;P&gt;            ( ( vibdao~aotype = wc_aotype_bu AND&lt;/P&gt;&lt;P&gt;              vibdao~rgebart IN s_paset AND&lt;/P&gt;&lt;P&gt;              vibdao~sunutza IN s_saset AND&lt;/P&gt;&lt;P&gt;              vibdao~zzgemeinde IN s_munic AND&lt;/P&gt;&lt;P&gt;              vibdao~sgrart IN s_stval AND&lt;/P&gt;&lt;P&gt;              vibdao~zztier1 IN s_tier1 ) ).&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 i806(k9) WITH 'No data found for given selection'(t15).&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_bp = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT i_ao INTO wa_ao WHERE role IN s_role AND partner IN s_partnr.&lt;/P&gt;&lt;P&gt;      APPEND wa_ao TO i_ao_output.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_data_ao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996394#M405902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996395#M405903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, it appears that you are using a parameter name that does not exist in this function module, instead of I_INTERNAL_TABLE, it should be I_STRUCTURE_NAME.&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_STRUCTURE_NAME = 'SBOOK'
     changing
          ct_fieldcat        = gt_fieldcatalog.


check sy-subrc  = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996395#M405903</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-15T18:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996396#M405904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhwanit,&lt;/P&gt;&lt;P&gt;It seems there is some problem with your code. Specially the structure and internal table you are using to build the field catalog.&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;P&gt;i_internal_tabname =&amp;lt;b&amp;gt; 'I_AO_OUTPUT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = gt_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you define the internal table 'I_AO_OUTPUT' properly?&lt;/P&gt;&lt;P&gt;What I ll suggest go for some Z(structure) via SE11 and use it to create the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for the code below....I_AO is it a std. SAP structure u r using?&lt;/P&gt;&lt;P&gt;Plz define Z(structure) for this too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope u ll get the required O/P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***PERFORM get_data_ao.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;i_structure_name = &amp;lt;b&amp;gt;'I_AO'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;ct_fieldcat = it_fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it ll help and u ll get the required solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank-You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996396#M405904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996397#M405905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your support you guys were right to pass that i have to have an DDIC structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 17:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996397#M405905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T17:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996398#M405906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make fieldcatalog with merge function we have to pass DDIC structure only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 17:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996398#M405906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALV with Classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996399#M405907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make fieldcatalog with merge function we have to pass DDIC structure only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 17:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-with-classes-and-methods/m-p/1996399#M405907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T17:17:48Z</dc:date>
    </item>
  </channel>
</rss>

