<?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: Query regarding ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597191#M594897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Along with the I_STRUCTURE_NAME, also pass the I_INCLNAME = SY-REPID.&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;/P&gt;&lt;P&gt;Reward points for useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 07:15:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T07:15:59Z</dc:date>
    <item>
      <title>Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597184#M594890</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;        Please clarify this query of mine in ALV.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Code:&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab_data1 like standard table of zdetails1.&lt;/P&gt;&lt;P&gt;data: repid type syrepid.&lt;/P&gt;&lt;P&gt;data : fieldcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          i_program_name     = repid&lt;/P&gt;&lt;P&gt;          i_internal_tabname = 'itab_data1'&lt;/P&gt;&lt;P&gt;          i_bypassing_buffer = 'X'&lt;/P&gt;&lt;P&gt;     changing&lt;/P&gt;&lt;P&gt;          ct_fieldcat        = fieldcat&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;After the execution of the Function Module the fieldcat does not contain any rows .&lt;/P&gt;&lt;P&gt;Kindly explain me why the fieldcat does not contain any rows.&lt;/P&gt;&lt;P&gt;Please reply as fast as possible.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597184#M594890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597185#M594891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Change the repid type syrepid to r_repid type sy-repid&lt;/P&gt;&lt;P&gt;and where is u r select query..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;suresh.d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597185#M594891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597186#M594892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
I_STRUCTURE_NAME = 'ZDETAILS1'
i_bypassing_buffer = 'X'
changing
ct_fieldcat = fieldcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597186#M594892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597187#M594893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See how SAP uses:-&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--- merge fieldcat from ddic structure ---&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;             i_program_name         = con_self&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           I_INTERNAL_TABNAME     = PD_TABNAME_FIELDCAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;             i_structure_name       = pd_strucname_ddic&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           I_INCLNAME             = LC_INCLUDENAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;             ct_fieldcat            = lt_fieldcat&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;             OTHERS                 = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597187#M594893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597188#M594894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balasubramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM you need to pass the parameter &lt;/P&gt;&lt;P&gt;I_STRUCTURENAME with the ZStructure that you have created in the data dictionary. Then it will work.&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;/P&gt;&lt;P&gt;Reward if answer is informatory.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597188#M594894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597189#M594895</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;Try like thi s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : itab_data1 like standard table of zdetails1.
data: repid type syrepid.
data : fieldcat type slis_t_fieldcat_alv.


call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = sy_repid
i_internal_tabname = 'ITAB_DATA1'
i_bypassing_buffer = 'X'
changing
ct_fieldcat = fieldcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; type-pools : slis.
 
data : begin of it_toto occurs 0 ,
         matnr type matnr ,
         maktx type maktx ,
       end   of it_toto ,
 
       it_fieldcatalog  type slis_t_fieldcat_alv.
 
 
 
 
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  EXPORTING
    I_PROGRAM_NAME               = sy-repid
    I_INTERNAL_TABNAME           = 'IT_TOTO'
*   I_STRUCTURE_NAME             =
*   I_CLIENT_NEVER_DISPLAY       = 'X'
*   I_INCLNAME                   =
    I_BYPASSING_BUFFER           = 'X'
*    I_BUFFER_ACTIVE              =
  CHANGING
    ct_fieldcat                  = it_fieldcatalog.
* 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;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597189#M594895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597190#M594896</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 like this.&lt;/P&gt;&lt;P&gt;data : itab_data1 like standard table of zdetails1.&lt;/P&gt;&lt;P&gt;data: repid type syrepid.&lt;/P&gt;&lt;P&gt;data : fieldcat type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_program_name = repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = &amp;lt;b&amp;gt;'ITAB_DATA1'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;i_bypassing_buffer = 'X'&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;ct_fieldcat = fieldcat&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;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597190#M594896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597191#M594897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Along with the I_STRUCTURE_NAME, also pass the I_INCLNAME = SY-REPID.&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;/P&gt;&lt;P&gt;Reward points for useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-alv/m-p/2597191#M594897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T07:15:59Z</dc:date>
    </item>
  </channel>
</rss>

