<?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: How to populate a Table inside a structure? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416601#M1049239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be sure, enter the debugger in the method and see if shipment is really an an structure with a field and an internal table inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also had a problem like that a few weeks ago, and we had the declaration wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 22:53:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-05T22:53:05Z</dc:date>
    <item>
      <title>How to populate a Table inside a structure?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416600#M1049238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im very new to ABAP and Im having a rather sily problem. I have a Structure (ZSHIPMENT) with one component (CASES) of the type Z_CASE_TABLE. Z_CASE_TABLE is a table with a line type of ZCASE_STR. ZCASE_STR is a Structure with one Component (CASE_ID) of type String.&lt;/P&gt;&lt;P&gt;So ZSHIPMENT - ZCASE_TABLE - ZCASE_STR - CASE ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write some code to create this object and use it in a method.&lt;/P&gt;&lt;P&gt;This is what Im trying:&lt;/P&gt;&lt;P&gt;method TEST_02.&lt;/P&gt;&lt;P&gt;  DATA: Shipment TYPE ZSHIPMENT,&lt;/P&gt;&lt;P&gt;    case TYPE ZCASE_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case-case_id = 'case1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT case INTO Shipment-cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get this error: CASE is not an internal table - the "OCCURS n" specification is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a hint on how to populate my memory object?&lt;/P&gt;&lt;P&gt;Ive tryed all shorts of things but I never get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 22:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416600#M1049238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T22:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a Table inside a structure?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416601#M1049239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be sure, enter the debugger in the method and see if shipment is really an an structure with a field and an internal table inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also had a problem like that a few weeks ago, and we had the declaration wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 22:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416601#M1049239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T22:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a Table inside a structure?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416602#M1049240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wow! you hit the nail in the head! The zshipment type was not active to its latets version. Thanks to the debugger I could see its real face.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 23:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-populate-a-table-inside-a-structure/m-p/4416602#M1049240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T23:07:02Z</dc:date>
    </item>
  </channel>
</rss>

