<?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: Need a sample program for hierarchial oops ALV report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380230#M1042073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Check the following sample code...&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;T A B L E S&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;tables : ekko.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  data definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_ekko,&lt;/P&gt;&lt;P&gt;          ebeln type ekko-ebeln,&lt;/P&gt;&lt;P&gt;          lifnr type ekko-lifnr,&lt;/P&gt;&lt;P&gt;          bsart type ekko-bsart,&lt;/P&gt;&lt;P&gt;          aedat type ekko-aedat,&lt;/P&gt;&lt;P&gt;          ernam type ekko-ernam,&lt;/P&gt;&lt;P&gt;        end of ty_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_eket,&lt;/P&gt;&lt;P&gt;           ebeln type ekpo-ebeln,&lt;/P&gt;&lt;P&gt;           ebelp type ekpo-ebelp,&lt;/P&gt;&lt;P&gt;           werks type ekpo-werks,&lt;/P&gt;&lt;P&gt;           matnr type ekpo-matnr,&lt;/P&gt;&lt;P&gt;           menge type eket-menge,&lt;/P&gt;&lt;P&gt;           wamng type eket-wamng,&lt;/P&gt;&lt;P&gt;           netpr type ekpo-netpr,&lt;/P&gt;&lt;P&gt;        end of ty_eket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_ekko type table of ty_ekko,&lt;/P&gt;&lt;P&gt;       it_eket type table of ty_eket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ob_hieralv type ref to cl_salv_hierseq_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_binding type salv_t_hierseq_binding,&lt;/P&gt;&lt;P&gt;      is_binding type salv_s_hierseq_binding.&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;S E L C T O P T I O N S&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_ebeln for ekko-ebeln.&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;S T A R T O F S E L E C T I O N&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select ebeln&lt;/P&gt;&lt;P&gt;       lifnr&lt;/P&gt;&lt;P&gt;       bsart&lt;/P&gt;&lt;P&gt;       aedat&lt;/P&gt;&lt;P&gt;       ernam from ekko&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_ekko&lt;/P&gt;&lt;P&gt;where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;       a&lt;SUB&gt;werks a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;menge b&lt;/SUB&gt;wamng&lt;/P&gt;&lt;P&gt;       a~netpr from ekpo as a join eket as b&lt;/P&gt;&lt;P&gt;                 on  a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                 and a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                 and a&lt;SUB&gt;ebelp = b&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;               into corresponding fields of table it_eket&lt;/P&gt;&lt;P&gt;              where a~ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_binding-master = 'EBELN'.&lt;/P&gt;&lt;P&gt;is_binding-slave = 'EBELN'.&lt;/P&gt;&lt;P&gt;append is_binding to it_binding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TRY.&lt;/P&gt;&lt;P&gt;call method cl_salv_hierseq_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;t_binding_level1_level2 = it_binding&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;r_hierseq = ob_hieralv&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;t_table_level1 = it_ekko&lt;/P&gt;&lt;P&gt;t_table_level2 = it_eket .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CATCH cx_salv_data_error .&lt;/P&gt;&lt;P&gt;*CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method ob_hieralv-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 13:02:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T13:02:19Z</dc:date>
    <item>
      <title>Need a sample program for hierarchial oops ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380229#M1042072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;                 I Need a sample program for hierarchial oops ALV report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 12:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380229#M1042072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need a sample program for hierarchial oops ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380230#M1042073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Check the following sample code...&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;T A B L E S&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;tables : ekko.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  data definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_ekko,&lt;/P&gt;&lt;P&gt;          ebeln type ekko-ebeln,&lt;/P&gt;&lt;P&gt;          lifnr type ekko-lifnr,&lt;/P&gt;&lt;P&gt;          bsart type ekko-bsart,&lt;/P&gt;&lt;P&gt;          aedat type ekko-aedat,&lt;/P&gt;&lt;P&gt;          ernam type ekko-ernam,&lt;/P&gt;&lt;P&gt;        end of ty_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_eket,&lt;/P&gt;&lt;P&gt;           ebeln type ekpo-ebeln,&lt;/P&gt;&lt;P&gt;           ebelp type ekpo-ebelp,&lt;/P&gt;&lt;P&gt;           werks type ekpo-werks,&lt;/P&gt;&lt;P&gt;           matnr type ekpo-matnr,&lt;/P&gt;&lt;P&gt;           menge type eket-menge,&lt;/P&gt;&lt;P&gt;           wamng type eket-wamng,&lt;/P&gt;&lt;P&gt;           netpr type ekpo-netpr,&lt;/P&gt;&lt;P&gt;        end of ty_eket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_ekko type table of ty_ekko,&lt;/P&gt;&lt;P&gt;       it_eket type table of ty_eket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ob_hieralv type ref to cl_salv_hierseq_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_binding type salv_t_hierseq_binding,&lt;/P&gt;&lt;P&gt;      is_binding type salv_s_hierseq_binding.&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;S E L C T O P T I O N S&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_ebeln for ekko-ebeln.&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;S T A R T O F S E L E C T I O N&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select ebeln&lt;/P&gt;&lt;P&gt;       lifnr&lt;/P&gt;&lt;P&gt;       bsart&lt;/P&gt;&lt;P&gt;       aedat&lt;/P&gt;&lt;P&gt;       ernam from ekko&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_ekko&lt;/P&gt;&lt;P&gt;where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;       a&lt;SUB&gt;werks a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;menge b&lt;/SUB&gt;wamng&lt;/P&gt;&lt;P&gt;       a~netpr from ekpo as a join eket as b&lt;/P&gt;&lt;P&gt;                 on  a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                 and a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                 and a&lt;SUB&gt;ebelp = b&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;               into corresponding fields of table it_eket&lt;/P&gt;&lt;P&gt;              where a~ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_binding-master = 'EBELN'.&lt;/P&gt;&lt;P&gt;is_binding-slave = 'EBELN'.&lt;/P&gt;&lt;P&gt;append is_binding to it_binding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TRY.&lt;/P&gt;&lt;P&gt;call method cl_salv_hierseq_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;t_binding_level1_level2 = it_binding&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;r_hierseq = ob_hieralv&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;t_table_level1 = it_ekko&lt;/P&gt;&lt;P&gt;t_table_level2 = it_eket .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CATCH cx_salv_data_error .&lt;/P&gt;&lt;P&gt;*CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method ob_hieralv-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380230#M1042073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T13:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need a sample program for hierarchial oops ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380231#M1042074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV&lt;STRONG&gt;TREE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the Classes CL_GUI_ALV_TREE&lt;/P&gt;&lt;P&gt;CL_GUI_LIST_TREE&lt;/P&gt;&lt;P&gt;CL_GUI_COLIMN_TREE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'we can show hierarchy, it is formally called Tree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 13:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-sample-program-for-hierarchial-oops-alv-report/m-p/4380231#M1042074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T13:02:30Z</dc:date>
    </item>
  </channel>
</rss>

