<?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 Declaring deep structures in OOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123746#M1188049</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;&lt;/P&gt;&lt;P&gt;I would like to ask for your help in solving a problem, i'm currently stuck at this and can't proceed with the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to declare a deep structure in a table and was able to come up with this in procedural programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;tables: zsd_output_net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_table_structure occurs 0.&lt;/P&gt;&lt;P&gt;          include structure zsd_output_net.&lt;/P&gt;&lt;P&gt;data end of t_table_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_output_all,&lt;/P&gt;&lt;P&gt;              bukrs type anla-bukrs,&lt;/P&gt;&lt;P&gt;              out_table like t_table_structure occurs 0,&lt;/P&gt;&lt;P&gt;end of t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_output_all type standard table of t_output_all with header line,&lt;/P&gt;&lt;P&gt;      wa_out_table like line of t_table_structure.&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked and I was able to append entries to table out_table. However, I'm having trouble translating this to OOP since OOP does not support declaration with "OCCURS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I came up in OOP:&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;data: begin of t_table_structure.&lt;/P&gt;&lt;P&gt;           include structure zsd_output_net.&lt;/P&gt;&lt;P&gt;data end of t_table_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_inner_table,&lt;/P&gt;&lt;P&gt;            in_table like t_table_structure,&lt;/P&gt;&lt;P&gt;end of t_inner_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_output_all,&lt;/P&gt;&lt;P&gt;            bukrs type anla-bukrs,&lt;/P&gt;&lt;P&gt;            out_table type t_inner_table initial size 1,&lt;/P&gt;&lt;P&gt;           end of t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_output_all type standard table of t_output_all,&lt;/P&gt;&lt;P&gt;      wa_output_all type t_output_all,&lt;/P&gt;&lt;P&gt;      gt_inner_table type standard table of t_inner_table,&lt;/P&gt;&lt;P&gt;      wa_inner_table type t_inner_table,&lt;/P&gt;&lt;P&gt;      wa_out_table like t_table_structure.&lt;/P&gt;&lt;P&gt;**************************************************************&lt;/P&gt;&lt;P&gt;This did not work because out_table just became a structure and not a table in a table. What should I do so that I would get the same effect as with structural programming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 10:15:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-02T10:15:52Z</dc:date>
    <item>
      <title>Declaring deep structures in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123746#M1188049</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;&lt;/P&gt;&lt;P&gt;I would like to ask for your help in solving a problem, i'm currently stuck at this and can't proceed with the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to declare a deep structure in a table and was able to come up with this in procedural programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;tables: zsd_output_net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_table_structure occurs 0.&lt;/P&gt;&lt;P&gt;          include structure zsd_output_net.&lt;/P&gt;&lt;P&gt;data end of t_table_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_output_all,&lt;/P&gt;&lt;P&gt;              bukrs type anla-bukrs,&lt;/P&gt;&lt;P&gt;              out_table like t_table_structure occurs 0,&lt;/P&gt;&lt;P&gt;end of t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_output_all type standard table of t_output_all with header line,&lt;/P&gt;&lt;P&gt;      wa_out_table like line of t_table_structure.&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked and I was able to append entries to table out_table. However, I'm having trouble translating this to OOP since OOP does not support declaration with "OCCURS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I came up in OOP:&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;data: begin of t_table_structure.&lt;/P&gt;&lt;P&gt;           include structure zsd_output_net.&lt;/P&gt;&lt;P&gt;data end of t_table_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_inner_table,&lt;/P&gt;&lt;P&gt;            in_table like t_table_structure,&lt;/P&gt;&lt;P&gt;end of t_inner_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_output_all,&lt;/P&gt;&lt;P&gt;            bukrs type anla-bukrs,&lt;/P&gt;&lt;P&gt;            out_table type t_inner_table initial size 1,&lt;/P&gt;&lt;P&gt;           end of t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_output_all type standard table of t_output_all,&lt;/P&gt;&lt;P&gt;      wa_output_all type t_output_all,&lt;/P&gt;&lt;P&gt;      gt_inner_table type standard table of t_inner_table,&lt;/P&gt;&lt;P&gt;      wa_inner_table type t_inner_table,&lt;/P&gt;&lt;P&gt;      wa_out_table like t_table_structure.&lt;/P&gt;&lt;P&gt;**************************************************************&lt;/P&gt;&lt;P&gt;This did not work because out_table just became a structure and not a table in a table. What should I do so that I would get the same effect as with structural programming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 10:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123746#M1188049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T10:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring deep structures in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123747#M1188050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I came up in OOP:&lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;data: begin of t_table_structure.&lt;/P&gt;&lt;P&gt;include structure zsd_output_net.&lt;/P&gt;&lt;P&gt;data end of t_table_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_inner_table,&lt;/P&gt;&lt;P&gt;in_table like t_table_structure,&lt;/P&gt;&lt;P&gt;end of t_inner_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :gt_inner_table type standard table of t_inner_table,&lt;/P&gt;&lt;P&gt;        wa_inner_table type t_inner_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_output_all,&lt;/P&gt;&lt;P&gt;bukrs type anla-bukrs,&lt;/P&gt;&lt;P&gt;out_table type gt_inner_table ,&lt;/P&gt;&lt;P&gt;end of t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_output_all type standard table of t_output_all,&lt;/P&gt;&lt;P&gt;wa_output_all type t_output_all,&lt;/P&gt;&lt;P&gt;wa_out_table like t_table_structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 10:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123747#M1188050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring deep structures in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123748#M1188051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You nailed it PBS! Thanks a lot &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 01:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-deep-structures-in-oop/m-p/5123748#M1188051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T01:30:52Z</dc:date>
    </item>
  </channel>
</rss>

