<?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 how do I get a value from a table without a header? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027154#M415680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ABAP skills aren't very advanced ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a local structure which I have filled with info from a Web Service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;importing
            get_webservice_response = ls_response.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure has two elements, the second of which interests me and is a table called get_webservice_return:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lt_mytable = ls_response-get_webservice_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good, by doing this lt_mytable is the same as the table returned by the webservice. (It is a dynamic table which, depending on the returned results, can have zero lines or however many lines as there are results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in that table, there is first a controller then there are values like firstname, lastname, company, zipcode etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; lv_zipcode = lt_mytable-zipcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;etc, but I get an error saying "LT_MYTABLE is a table without a header line and therefore has no component called ZIPCODE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I have done?&lt;/P&gt;&lt;P&gt;How can I pass the values of a line to another structure ?&lt;/P&gt;&lt;P&gt;How can I pass the values of a column to another structure ?&lt;/P&gt;&lt;P&gt;In Web Dynpro I have a context with the same values as the lt_mytable, how do I pass all the values of the lt_mytable into the context nodes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 17:18:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T17:18:02Z</dc:date>
    <item>
      <title>how do I get a value from a table without a header?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027154#M415680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ABAP skills aren't very advanced ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a local structure which I have filled with info from a Web Service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;importing
            get_webservice_response = ls_response.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure has two elements, the second of which interests me and is a table called get_webservice_return:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lt_mytable = ls_response-get_webservice_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good, by doing this lt_mytable is the same as the table returned by the webservice. (It is a dynamic table which, depending on the returned results, can have zero lines or however many lines as there are results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in that table, there is first a controller then there are values like firstname, lastname, company, zipcode etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; lv_zipcode = lt_mytable-zipcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;etc, but I get an error saying "LT_MYTABLE is a table without a header line and therefore has no component called ZIPCODE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I have done?&lt;/P&gt;&lt;P&gt;How can I pass the values of a line to another structure ?&lt;/P&gt;&lt;P&gt;How can I pass the values of a column to another structure ?&lt;/P&gt;&lt;P&gt;In Web Dynpro I have a context with the same values as the lt_mytable, how do I pass all the values of the lt_mytable into the context nodes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 17:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027154#M415680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T17:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get a value from a table without a header?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027155#M415681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to read a line of the internal table table into a work area, then move the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ls_mytable like line of lt_mytable.

read table lt_mytable into ls_mytable index 1.

lv_zipcode = ls_mytable-zipcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 17:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027155#M415681</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-05T17:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get a value from a table without a header?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027156#M415682</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;You have to create a work area and move the values to the work area to get a value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_MARA TYPE STANDARD TABLE OF MARA.&lt;/P&gt;&lt;P&gt;DATA: WA         TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_MARA INTO WA INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / WA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 17:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027156#M415682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T17:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get a value from a table without a header?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027157#M415683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can read the internal table on the basis of their Index Number&lt;/P&gt;&lt;P&gt;syntax is :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Read table &amp;lt;table-name&amp;gt; Index &amp;lt;Index-no&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 17:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-a-value-from-a-table-without-a-header/m-p/2027157#M415683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T17:46:57Z</dc:date>
    </item>
  </channel>
</rss>

