<?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: Call function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431981#M543742</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;It is used for Hierarchical sequential list output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Functionality&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This module outputs two internal tables as a formated hierarchical-sequential list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Principle:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of header information to be output.&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of item information to be output.&lt;/P&gt;&lt;P&gt;Pass a structure containing the general list layout details&lt;/P&gt;&lt;P&gt;Pass a field catalog in the form of an internal table. The field catalog describes the fields to be output in the list.&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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 06:52:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T06:52:04Z</dc:date>
    <item>
      <title>Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431977#M543738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the use of REUSE_ALV_HIERSEQ_LIST_DISPLAY for using in call fuction in abap edtior. I need fully details in programming level to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431977#M543738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431978#M543739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these programs of how the FM is used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BALVBT02&lt;/P&gt;&lt;P&gt;BALVHD01&lt;/P&gt;&lt;P&gt;BALVHD01_GROUP&lt;/P&gt;&lt;P&gt;BALVHT01&lt;/P&gt;&lt;P&gt;BCALV_TEST_HIERSEQ_LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431978#M543739</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-20T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431979#M543740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZGS_ALV_HIERSEQUENTIAL_REPORT.

TYPE-POOLS: slis.

TABLES: ekko.

SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.

DATA: BEGIN OF i_ekko OCCURS 0,
            ebeln LIKE ekko-ebeln,
            ernam LIKE ekko-ernam,
            bsart LIKE ekko-bsart,
            var1,
      END OF i_ekko.

DATA: BEGIN OF i_ekpo OCCURS 0,
            ebeln LIKE ekpo-ebeln,
            ebelp LIKE ekpo-ebelp,
            matnr LIKE ekpo-matnr,
            aedat LIKE ekpo-aedat,
      END OF i_ekpo.

DATA: fldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
      layout TYPE slis_layout_alv,
      key    TYPE slis_keyinfo_alv,
      events TYPE slis_t_event.

PERFORM get_data.
PERFORM append_data.

layout-expand_fieldname = 'VAR1'.
layout-zebra            = 'X'.

key-header01  = 'EBELN'.
key-item01    = 'EBELN'.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
  EXPORTING
*   I_INTERFACE_CHECK              = ' '
    i_callback_program             = sy-cprog
*   I_CALLBACK_PF_STATUS_SET       = ' '
*   I_CALLBACK_USER_COMMAND        = ' '
    is_layout                      = layout
    it_fieldcat                    = fldcat[]
*   IT_EXCLUDING                   =
*   IT_SPECIAL_GROUPS              =
*   IT_SORT                        =
*   IT_FILTER                      =
*   IS_SEL_HIDE                    =
*   I_SCREEN_START_COLUMN          = 0
*   I_SCREEN_START_LINE            = 0
*   I_SCREEN_END_COLUMN            = 0
*   I_SCREEN_END_LINE              = 0

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431979#M543740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431980#M543741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,chk this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/how-to-use-alv-for-hierarchical-lists.htm" target="test_blank"&gt;http://www.sap-img.com/abap/how-to-use-alv-for-hierarchical-lists.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431980#M543741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431981#M543742</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;It is used for Hierarchical sequential list output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Functionality&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This module outputs two internal tables as a formated hierarchical-sequential list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Principle:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of header information to be output.&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of item information to be output.&lt;/P&gt;&lt;P&gt;Pass a structure containing the general list layout details&lt;/P&gt;&lt;P&gt;Pass a field catalog in the form of an internal table. The field catalog describes the fields to be output in the list.&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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431981#M543742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431982#M543743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function module  REUSE_ALV_HIERSEQ_LIST_DISPLAY is used for ALV Hierarchical sequential list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An Example Prg..&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;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_interface_check              = 'I'&lt;/P&gt;&lt;P&gt;      i_callback_program             = gv_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_callback_pf_status_set       = 'STATUS_DATA'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_callback_user_command        = 'COMMAND_DATA'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_layout                      = gs_layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      it_fieldcat                    = gt_fieldcat&lt;/P&gt;&lt;P&gt;     i_default                      = ' '&lt;/P&gt;&lt;P&gt;      i_save                         = 'A'&lt;/P&gt;&lt;P&gt;      i_tabname_header               = v_headers_itable&lt;/P&gt;&lt;P&gt;      i_tabname_item                 = v_items_itable&lt;/P&gt;&lt;P&gt;      i_structure_name_header        = v_headers_table&lt;/P&gt;&lt;P&gt;      i_structure_name_item          = v_items_table&lt;/P&gt;&lt;P&gt;      is_keyinfo                     = gs_keyinfo&lt;/P&gt;&lt;P&gt;      i_bypassing_buffer             = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab_header                = i_headers&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     t_outtab_item                  = i_result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      t_outtab_item                  = i_report&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error                  = 1&lt;/P&gt;&lt;P&gt;      OTHERS                         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field cat creation worked like this : &lt;/P&gt;&lt;P&gt;FORM fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_fieldcat TYPE slis_fieldcat_alv.&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_internal_tabname = v_items_itable&lt;/P&gt;&lt;P&gt;            i_structure_name   = v_items_table&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            ct_fieldcat        = gt_fieldcat.&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_internal_tabname = v_headers_itable&lt;/P&gt;&lt;P&gt;            i_structure_name   = v_headers_table&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            ct_fieldcat        = gt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and of course you need to tell the thing what is key and item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_keyinfo-header01 = 'PA'.&lt;/P&gt;&lt;P&gt;  gs_keyinfo-item01  = 'PA'.&lt;/P&gt;&lt;P&gt;  gs_keyinfo-item02 = 'SAPDOC'.&lt;/P&gt;&lt;P&gt;  PERFORM fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2431982#M543743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:55:54Z</dc:date>
    </item>
  </channel>
</rss>

