<?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 using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578701#M1080185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im adding few fields to the existing report. I filled all the required fields in output table but when i try to display its not showing newly added fields. Earlier it was having one structure passed to the parameters &lt;STRONG&gt;i_structure_name_item&lt;/STRONG&gt; and &lt;STRONG&gt;i_tabname_item&lt;/STRONG&gt; . so i just redefinded that structure with addition fields but it is not showing those fields in output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me, how to get display those additional fields in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the SAP program &lt;STRONG&gt;RFBPET00&lt;/STRONG&gt; into "Z" program and changed the structure to work as mention above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2008 17:59:11 GMT</pubDate>
    <dc:creator>former_member671224</dc:creator>
    <dc:date>2008-09-30T17:59:11Z</dc:date>
    <item>
      <title>using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578701#M1080185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im adding few fields to the existing report. I filled all the required fields in output table but when i try to display its not showing newly added fields. Earlier it was having one structure passed to the parameters &lt;STRONG&gt;i_structure_name_item&lt;/STRONG&gt; and &lt;STRONG&gt;i_tabname_item&lt;/STRONG&gt; . so i just redefinded that structure with addition fields but it is not showing those fields in output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me, how to get display those additional fields in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the SAP program &lt;STRONG&gt;RFBPET00&lt;/STRONG&gt; into "Z" program and changed the structure to work as mention above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 17:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578701#M1080185</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-09-30T17:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578702#M1080186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;so i just redefinded that structure with addition fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it Standard structure..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need add them to the fieldcatalog, if the structure is not exists in DD level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 19:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578702#M1080186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578703#M1080187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it is a standard structure..I copied all the fields from that structure and define a new structure in my program with new fields included in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u mean to say that i have to pass that defined type(structure) into &lt;STRONG&gt;fieldcalog merge&lt;/STRONG&gt; FM and generate the fieldcatalog for that structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 19:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578703#M1080187</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-09-30T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578704#M1080188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;yes, it is a standard structure..I copied all the fields from that structure and define a new structure in my &amp;gt;program with new fields included in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Dictionary level structures only it works, so you have to create structure in SE11 or else populate the fieldcatalog manually or using the merge function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to use the function then you have to define internal table in the following way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,  "specify occurs 0&lt;/P&gt;&lt;P&gt;           matnr like mara-matnr,  "don't use type when defining&lt;/P&gt;&lt;P&gt;         end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search the forum for sample usage of the merge function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 19:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578704#M1080188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T19:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578705#M1080189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mentioned u copied the sturctures to another structure say ZHEADER and ZITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that did you modify the program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gc_alv_output_header TYPE slis_tabname&lt;/P&gt;&lt;P&gt;                      VALUE 'FAGL_S_RFBPET00_LIST', "Reference Field&lt;/P&gt;&lt;P&gt;            gc_alv_output_detail TYPE slis_tabname&lt;/P&gt;&lt;P&gt;                      VALUE 'FAGL_S_RFBPET00_LIST2', "Reference Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did u replace 'FAGL_S_RFBPET00_LIST' with ZHEADEr ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did u modify this line ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gs_alv_output_header TYPE fagl_s_rfbpet00_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about this line ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gs_alv_output_detail TYPE fagl_s_rfbpet00_list2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 19:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578705#M1080189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578706#M1080190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im adding fields only to ITEM level, for EX definded structure as ITEM.&lt;/P&gt;&lt;P&gt;So in the below line, &lt;/P&gt;&lt;P&gt;gc_alv_output_detail TYPE slis_tabname&lt;/P&gt;&lt;P&gt;VALUE 'FAGL_S_RFBPET00_LIST2', "Reference Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i replaced 'FAGL_S_RFBPET00_LIST2' with ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code i used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA : BEGIN OF &lt;STRONG&gt;gt_alv_output_detail&lt;/STRONG&gt; OCCURS 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       INCLUDE STRUCTURE fagl_s_rfbpet00_list2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*DATA :  bewar   TYPE bseg-bewar,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       zzrncat TYPE bseg-zzrncat,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       prctr   TYPE bseg-prctr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       zzfnprd TYPE bseg-zzfnprd.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*DATA : END OF &lt;STRONG&gt;gt_alv_output_detail&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i used &lt;STRONG&gt;GT_ALV_OUTPUT_DETAIL&lt;/STRONG&gt; in place of 'FAGL_S_RFBPET00_LIST2' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anything i have to do other that this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 19:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578706#M1080190</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-09-30T19:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578707#M1080191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok ok... that means.. u didnt create a database structure.. ( i assumed u created one using SE11, sorry ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u just declared a structure programattically..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case, u have to use, field catalog.. either you can use, FM  - reuse_alv_fieldcatalog_merge..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create field catalog appending each field one by one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass the field catalog to the Heirseq_display FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are not familiar, the easiest way is to create the structure using SE11.  say ZITEM..with all those fields which u declared programmatically .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 20:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578707#M1080191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578708#M1080192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, if u are using field_catalog_merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shud change all this to LIKE.. instead of TYPE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA : bewar TYPE bseg-bewar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zzrncat TYPE bseg-zzrncat, &lt;/P&gt;&lt;P&gt;prctr TYPE bseg-prctr, &lt;/P&gt;&lt;P&gt;zzfnprd TYPE bseg-zzfnprd. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPe wont work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 20:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578708#M1080192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578709#M1080193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Augustine/Vijay,&lt;/P&gt;&lt;P&gt;I declared the itab in &lt;STRONG&gt;top include&lt;/STRONG&gt; as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools slis.
* Alv Output Internal Table(Header)
DATA : gt_alv_output_header TYPE fagl_s_rfbpet00_list OCCURS 0 WITH HEADER LINE.

* Alv Ouput Work Area
DATA : gs_alv_output_header TYPE fagl_s_rfbpet00_list.

* Alv Output Internal Table(Detail)
DATA : BEGIN OF gt_alv_output_detail OCCURS 0.
        INCLUDE STRUCTURE fagl_s_rfbpet00_list2.
DATA :  bewar   like bseg-bewar,
        zzrncat like bseg-zzrncat,
        prctr   like bseg-prctr,
        zzfnprd like bseg-zzfnprd.
DATA : END OF gt_alv_output_detail.
* Alv Ouput Work Area
DATA : gs_alv_output_detail LIKE LINE OF gt_alv_output_detail.

DATA:
      gt_fieldcat TYPE slis_t_fieldcat_alv,
      gt_fieldcat1 TYPE slis_t_fieldcat_alv,
      gs_fieldcat TYPE slis_fieldcat_alv.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And used merge function to get the fieldcatalog as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
            i_program_name         = g_syrepid
            i_internal_tabname     = 'GT_ALV_OUTPUT_HEADER'
           i_structure_name       = 'FAGL_S_RFBPET00_LIST'
            i_client_never_display = 'X'
*            i_inclname             = 'ZRFBPET00_TOP'
       CHANGING
            ct_fieldcat            = gt_fieldcat[]
      EXCEPTIONS
           inconsistent_interface = 1
           program_error          = 2
           OTHERS                 = 3.                      "#EC *

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
            i_program_name         = g_syrepid
            i_internal_tabname     = 'GT_ALV_OUTPUT_DETAIL'
*           i_structure_name       = 'FAGL_S_RFBPET00_LIST2'
            i_client_never_display = 'X'
            i_inclname             = 'ZRFBPET00_TOP'
       CHANGING
            ct_fieldcat            = gt_fieldcat1[]
      EXCEPTIONS
           inconsistent_interface = 1
           program_error          = 2
           OTHERS                 = 3.                      "#EC *

*  IF NOT p_hs IS INITIAL.
  LOOP AT gt_fieldcat1 INTO gs_fieldcat.
    APPEND gs_fieldcat TO gt_fieldcat.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But im getting ABAP DUMP as "source code is longer than the internal table" for detail itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest what wil be the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 22:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578709#M1080193</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-09-30T22:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: using Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578710#M1080194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your source code line width should not exceed more than 72 chars, make sure that it should not exceed 72 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume the code line length is more than 72&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : gt_alv_output_header TYPE fagl_s_rfbpet00_list OCCURS 0 WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then change it to like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : gt_alv_output_header TYPE fagl_s_rfbpet00_list
                                OCCURS 0 WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 02:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-reuse-alv-hierseq-list-display/m-p/4578710#M1080194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T02:00:16Z</dc:date>
    </item>
  </channel>
</rss>

