<?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 Using  TYPE-POOLS: SLIS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001689#M76617</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;Check the standard program BCALV_TEST_HIERSEQ_LIST.It will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this also.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Z_ALV_HIERSEQ_LIST.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Z_ALV_HIERSEQ_LIST.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2005 10:35:29 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-07-27T10:35:29Z</dc:date>
    <item>
      <title>ALV Using  TYPE-POOLS: SLIS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001687#M76615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Using TYPE-POOLS: SLIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a "special group" using structure&lt;/P&gt;&lt;P&gt;slis_sp_group_alv&lt;/P&gt;&lt;P&gt;and appending it to table of type &lt;/P&gt;&lt;P&gt;slis_t_sp_group_alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i call this special group internal table using the function module:&lt;/P&gt;&lt;P&gt;"REUSE_ALV_HIERSEQ_LIST_DISPLAY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sample code will look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_sgroup TYPE slis_t_sp_group_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;IT_SPECIAL_GROUPS        = gt_sgroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is How should i add the contents of my internal tables which i create using 'fieldcat' into this "special group" say 'xyzw' is the name of my special group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 08:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001687#M76615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T08:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Using  TYPE-POOLS: SLIS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001688#M76616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you have to populate the internal table ( i.e, Fill the internal table ). Then pass that internal table to that function u r calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See d below code for your reference for how to add the rows to the internal table. Follow similarly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zsomalv3 NO STANDARD PAGE HEADING.

TYPE-POOLS: slis.

DATA: BEGIN OF i_data OCCURS 0,
        qmnum      LIKE qmel-qmnum,
        qmart      LIKE qmel-qmart,
        qmtxt      LIKE qmel-qmtxt,
        ws_row     TYPE i,
        ws_char(5) TYPE c,
        chk,
      END OF i_data.

DATA: report_id  LIKE sy-repid.
DATA: ws_title   TYPE lvc_title VALUE 'An ALV Report'.
DATA: i_layout   TYPE slis_layout_alv.
DATA: i_fieldcat TYPE slis_t_fieldcat_alv.

SELECT qmnum
       qmart
       qmtxt
       INTO TABLE i_data
       FROM qmel
       WHERE qmnum &amp;lt;= '00030000010'.


LOOP AT i_data.
  i_data-ws_row = sy-tabix.
  i_data-ws_char = 'AAAAA'.
  MODIFY i_data.
ENDLOOP.

report_id = sy-repid.
PERFORM f1000_layout_init CHANGING i_layout.
PERFORM f2000_fieldcat_init CHANGING i_fieldcat.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   i_callback_program                = report_id
   i_grid_title                      = ws_title
   is_layout                         = i_layout
   it_fieldcat                       = i_fieldcat
   i_save                            = 'A'
  TABLES
    t_outtab                          = i_data
 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.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F1000_Layout_Init
*&amp;amp;---------------------------------------------------------------------*

FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.

  CLEAR i_layout.
  i_layout-colwidth_optimize = 'X'.
  i_layout-edit = 'X'.

ENDFORM.                    " F1000_Layout_Init
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f2000_fieldcat_init
*&amp;amp;---------------------------------------------------------------------*
FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.

  DATA: line_fieldcat TYPE slis_fieldcat_alv.

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'QMNUM'.
  line_fieldcat-tabname   = 'I_DATA'.
  line_fieldcat-key       = 'X'.  
  line_fieldcat-seltext_m = 'Notification No.'
  APPEND line_fieldcat TO i_fieldcat.

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'QMART'.
  line_fieldcat-ref_tabname = 'I_DATA'.
  line_fieldcat-hotspot = 'X'.           
  line_fieldcat-seltext_m = 'Notif Type'.
  APPEND line_fieldcat TO i_fieldcat.

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'QMTXT'.
  line_fieldcat-tabname   = 'I_DATA'.
  line_fieldcat-seltext_m = 'Description'.
  APPEND line_fieldcat TO i_fieldcat.

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'WS_ROW'.
  line_fieldcat-tabname   = 'I_DATA'.
  line_fieldcat-seltext_m = 'Row Number'.
  APPEND line_fieldcat TO i_fieldcat.

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'WS_CHAR'.
  line_fieldcat-tabname   = 'I_DATA'.
  line_fieldcat-seltext_l = 'Test Character Field'.
  line_fieldcat-datatype  = 'CHAR'.
  line_fieldcat-outputlen = '15'.     
  APPEND line_fieldcat TO i_fieldcat. 

  CLEAR line_fieldcat.
  line_fieldcat-fieldname = 'CHK'.
  line_fieldcat-tabname   = 'I_DATA'.
  line_fieldcat-seltext_l = 'Checkbox'.
  line_fieldcat-checkbox  = 'X'. 
  line_fieldcat-edit      = 'X'. 
  APPEND line_fieldcat TO i_fieldcat.

ENDFORM.                    " f2000_fieldcat_init

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i_fieldcat is the internal table u r passing to the function above. Just see how it is populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 08:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001688#M76616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Using  TYPE-POOLS: SLIS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001689#M76617</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;Check the standard program BCALV_TEST_HIERSEQ_LIST.It will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this also.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Z_ALV_HIERSEQ_LIST.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Z_ALV_HIERSEQ_LIST.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001689#M76617</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-27T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Using  TYPE-POOLS: SLIS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001690#M76618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Below is the explanation that I could find for your case.&lt;/P&gt;&lt;P&gt;  " If fields have been grouped in the field catalog by a shared value of the parameter SP_GROUP, the technical key of the group (FIELDCAT-SP_GROUP) is assigned to the field group text in internal table IT_SPECIAL_GROUPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also the documentation of the field catalog parameter&lt;/P&gt;&lt;P&gt;FIELDCAT-SP_GROUP of the IMPORTING parameter IT_FIELDCAT&lt;/P&gt;&lt;P&gt;and the Layout paramter LAYOUT-GROUP_BUTTONS of the IMPORTING paramter&lt;/P&gt;&lt;P&gt;IS_LAYOUT. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you have a special group XYZW in the Field catalog. This group and the text should be populated in IT_SPECIAL_GROUPS table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varaprasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Varaprasad B V V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 11:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-type-pools-slis/m-p/1001690#M76618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T11:01:58Z</dc:date>
    </item>
  </channel>
</rss>

