<?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 Problem with a very deep structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283013#M1988882</link>
    <description>&lt;P&gt;I have a very deep structure that is: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_header,
         version TYPE string,
       END OF ty_header.
TYPES: BEGIN OF ty_company_info,
         comptin      TYPE string,
         fydateend    TYPE string,
         bookcateg    TYPE numc2,
         acccodemaskg TYPE string,
         acccodemaska TYPE string,
         acccodemaskt TYPE string,
         chartcode    TYPE string,
         chartdescr   TYPE string,
       END OF ty_company_info.

TYPES: BEGIN OF ty_relations,
         acc     TYPE char14,
         reltype TYPE numc2,
       END OF ty_relations,
       tt_relations TYPE TABLE OF ty_relations WITH EMPTY KEY.

TYPES: BEGIN OF ty_accounts,
         acc                 TYPE string,
         descr               TYPE string,
         cat                 TYPE i,
         acckind             TYPE string,
         relations           TYPE tt_relations,
         vatcat              TYPE numc2,
         vatprc              TYPE p,
         vatexemptreason     TYPE string,
         busacttype          TYPE numc2,
         tradetype           TYPE numc2,
         offactcode          TYPE string,
         isdeduction         TYPE char1,
         deductionoffcodedet TYPE string,
         deductionoffcode    TYPE string,
         stampdutyoffcode    TYPE string,
         taxoffcode          TYPE string,
         extrataxoffcode     TYPE string,
         deductvattype       TYPE numc2,
       END OF ty_accounts,
       tt_accounts TYPE TABLE OF ty_accounts WITH EMPTY KEY.

TYPES: BEGIN OF ty_adata,
         companyinfo TYPE ty_company_info,
         accounts    TYPE tt_accounts,
       END OF ty_adata,
       tt_adata TYPE TABLE OF ty_adata WITH EMPTY KEY.


TYPES: BEGIN OF ty_accledg,
         header TYPE ty_header,
         data   TYPE tt_adata,
       END OF ty_accledg.
DATA: str_accledg         TYPE   ty_accledg.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;when I am trying to do the below&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;APPEND VALUE #( acc = '01' descr = 'Elias test' cat = 11 ) TO str_accledg-data-accounts.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The error is ""STR_ACCLEDG-DATA" is a table without a header line and therefore does not have a component called "ACCOUNTS"."&lt;/P&gt;
  &lt;P&gt;What is wrong?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 17:09:49 GMT</pubDate>
    <dc:creator>ekekakos</dc:creator>
    <dc:date>2020-12-10T17:09:49Z</dc:date>
    <item>
      <title>Problem with a very deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283013#M1988882</link>
      <description>&lt;P&gt;I have a very deep structure that is: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_header,
         version TYPE string,
       END OF ty_header.
TYPES: BEGIN OF ty_company_info,
         comptin      TYPE string,
         fydateend    TYPE string,
         bookcateg    TYPE numc2,
         acccodemaskg TYPE string,
         acccodemaska TYPE string,
         acccodemaskt TYPE string,
         chartcode    TYPE string,
         chartdescr   TYPE string,
       END OF ty_company_info.

TYPES: BEGIN OF ty_relations,
         acc     TYPE char14,
         reltype TYPE numc2,
       END OF ty_relations,
       tt_relations TYPE TABLE OF ty_relations WITH EMPTY KEY.

TYPES: BEGIN OF ty_accounts,
         acc                 TYPE string,
         descr               TYPE string,
         cat                 TYPE i,
         acckind             TYPE string,
         relations           TYPE tt_relations,
         vatcat              TYPE numc2,
         vatprc              TYPE p,
         vatexemptreason     TYPE string,
         busacttype          TYPE numc2,
         tradetype           TYPE numc2,
         offactcode          TYPE string,
         isdeduction         TYPE char1,
         deductionoffcodedet TYPE string,
         deductionoffcode    TYPE string,
         stampdutyoffcode    TYPE string,
         taxoffcode          TYPE string,
         extrataxoffcode     TYPE string,
         deductvattype       TYPE numc2,
       END OF ty_accounts,
       tt_accounts TYPE TABLE OF ty_accounts WITH EMPTY KEY.

TYPES: BEGIN OF ty_adata,
         companyinfo TYPE ty_company_info,
         accounts    TYPE tt_accounts,
       END OF ty_adata,
       tt_adata TYPE TABLE OF ty_adata WITH EMPTY KEY.


TYPES: BEGIN OF ty_accledg,
         header TYPE ty_header,
         data   TYPE tt_adata,
       END OF ty_accledg.
DATA: str_accledg         TYPE   ty_accledg.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;when I am trying to do the below&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;APPEND VALUE #( acc = '01' descr = 'Elias test' cat = 11 ) TO str_accledg-data-accounts.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The error is ""STR_ACCLEDG-DATA" is a table without a header line and therefore does not have a component called "ACCOUNTS"."&lt;/P&gt;
  &lt;P&gt;What is wrong?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283013#M1988882</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2020-12-10T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a very deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283014#M1988883</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;str_accledg-data is of type tt_adata, so a table. &lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;str_accledg = VALUE #( 
  Data = VALUE #( (    "table with one line
    Accounts = VALUE #( (  "table with one line
      acc = '01'
      descr = 'Elias test'
      cat = 11
    ) )
  ) )
).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283014#M1988883</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2020-12-10T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a very deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283015#M1988884</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;str_accledg &lt;/STRONG&gt;is a structure.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;data &lt;/STRONG&gt;is a table.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;companyinfo &lt;/STRONG&gt;is a structure&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;account &lt;/STRONG&gt;is a table and&lt;/P&gt;&lt;P&gt;the &lt;STRONG&gt;relations &lt;/STRONG&gt;is a table.&lt;/P&gt;&lt;P&gt;Why I need a header for &lt;B&gt;str_accledg.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Thanks &lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283015#M1988884</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2020-12-10T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a very deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283016#M1988885</link>
      <description>&lt;P&gt;Try to say  ... TYPE STANDARD TABLE OF...&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283016#M1988885</guid>
      <dc:creator>elmarmvogt</dc:creator>
      <dc:date>2020-12-10T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a very deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283017#M1988886</link>
      <description>&lt;P&gt;That was my thought. Get the brackets right. Or do it classically and then figure it out.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-very-deep-structure/m-p/12283017#M1988886</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-12-10T18:53:05Z</dc:date>
    </item>
  </channel>
</rss>

