<?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 Field symbol using for select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658440#M881233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frens, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a case where i m trying to select from a db table for all the entries maintained in a internal table which was declared as field symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below stmt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM adcp INTO CORRESPONDING FIELDS OF TABLE lt_adcp FOR ALL ENTRIES IN &amp;lt;lt_adr_comm&amp;gt;&lt;/P&gt;&lt;P&gt;          WHERE addrnumber = &amp;lt;lt_adr_comm&amp;gt;-addrnumber&lt;/P&gt;&lt;P&gt;        and persnumber = &amp;lt;lt_adr_comm&amp;gt;-persnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m getting error: The specified type has no structure and therefore no component called "ADDRNUMBER". component called "ADDRNUMBER".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence then I tried like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        assign component 'ADDRNUMBER' of structure&lt;/P&gt;&lt;P&gt;          &amp;lt;ls_adr_comm&amp;gt; to &amp;lt;lv_addrnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'PERSNUMBER' of structure&lt;/P&gt;&lt;P&gt;           &amp;lt;ls_adr_comm&amp;gt; to &amp;lt;lv_persnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM adcp INTO CORRESPONDING FIELDS OF TABLE lt_adcp FOR &lt;/P&gt;&lt;P&gt;        ALL ENTRIES IN &amp;lt;lt_adr_comm&amp;gt;&lt;/P&gt;&lt;P&gt;          WHERE addrnumber = &amp;lt;lv_addrnumber&amp;gt;&lt;/P&gt;&lt;P&gt;        and persnumber = &amp;lt;lv_addrnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time error is : The WHERE condition does not refer to the FOR ALL ENTRIES table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help asap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 09:59:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T09:59:08Z</dc:date>
    <item>
      <title>Field symbol using for select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658440#M881233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frens, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a case where i m trying to select from a db table for all the entries maintained in a internal table which was declared as field symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below stmt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM adcp INTO CORRESPONDING FIELDS OF TABLE lt_adcp FOR ALL ENTRIES IN &amp;lt;lt_adr_comm&amp;gt;&lt;/P&gt;&lt;P&gt;          WHERE addrnumber = &amp;lt;lt_adr_comm&amp;gt;-addrnumber&lt;/P&gt;&lt;P&gt;        and persnumber = &amp;lt;lt_adr_comm&amp;gt;-persnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m getting error: The specified type has no structure and therefore no component called "ADDRNUMBER". component called "ADDRNUMBER".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence then I tried like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        assign component 'ADDRNUMBER' of structure&lt;/P&gt;&lt;P&gt;          &amp;lt;ls_adr_comm&amp;gt; to &amp;lt;lv_addrnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'PERSNUMBER' of structure&lt;/P&gt;&lt;P&gt;           &amp;lt;ls_adr_comm&amp;gt; to &amp;lt;lv_persnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM adcp INTO CORRESPONDING FIELDS OF TABLE lt_adcp FOR &lt;/P&gt;&lt;P&gt;        ALL ENTRIES IN &amp;lt;lt_adr_comm&amp;gt;&lt;/P&gt;&lt;P&gt;          WHERE addrnumber = &amp;lt;lv_addrnumber&amp;gt;&lt;/P&gt;&lt;P&gt;        and persnumber = &amp;lt;lv_addrnumber&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time error is : The WHERE condition does not refer to the FOR ALL ENTRIES table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help asap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 09:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658440#M881233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T09:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol using for select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658441#M881234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you declared &amp;lt;lt_adr_comm&amp;gt; generically then indeed it has no structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post the declaration of the &amp;lt;lt_adr_comm&amp;gt; field-symbol and tell exactly what you  are trying to do / achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the &amp;lt;lv_addr&amp;gt; parameter does not refer to your internal table from FOR ALL ENTRIES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 15, 2008 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658441#M881234</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-15T10:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol using for select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658442#M881235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sample example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;data: begin of it_vbrp,&lt;/P&gt;&lt;P&gt;       vbeln like vbrp-vbeln,&lt;/P&gt;&lt;P&gt;       posnr like vbrp-posnr,&lt;/P&gt;&lt;P&gt;       brgew like vbrp-brgew,&lt;/P&gt;&lt;P&gt;       ntgew like vbrp-ntgew,&lt;/P&gt;&lt;P&gt;      end of it_vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_vbrp2,&lt;/P&gt;&lt;P&gt;       vbeln like vbrp-vbeln,&lt;/P&gt;&lt;P&gt;       posnr like vbrp-posnr,&lt;/P&gt;&lt;P&gt;       brgew like vbrp-brgew,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ntgew like vbrp-ntgew,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      end of it_vbrp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         brgew&lt;/P&gt;&lt;P&gt;         ntgew&lt;/P&gt;&lt;P&gt;         from vbrp&lt;/P&gt;&lt;P&gt;         into corresponding fields of it_vbrp&lt;/P&gt;&lt;P&gt;         where vbeln between '0090059462' and '0090060327'.&lt;/P&gt;&lt;P&gt;      assign it_vbrp to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      write:/ &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      move &amp;lt;fs&amp;gt; to it_vbrp2.&lt;/P&gt;&lt;P&gt;      clear &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658442#M881235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol using for select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658443#M881236</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;u can't use the field-symbols for FOR ALL ENTRIES option because when u define a table as field-symbol u can't indicate any structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658443#M881236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T10:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol using for select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658444#M881237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max bianchi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to do so,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following code to achieve the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*+ amvaidya 15.04.2008&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_i_ref&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;  DATA: l_i_ref_tab TYPE tt_ref_tab,&lt;/P&gt;&lt;P&gt;        l_matnr TYPE string VALUE ' ccode  EQ p_ccode AND omatnr EQ &amp;lt;l_i_ref&amp;gt;-matnr and ACTVITM eq ''''X'''' '.&lt;/P&gt;&lt;P&gt;  IF i_temp_a970 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    ASSIGN i_temp_a970 TO &amp;lt;l_i_ref&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   &amp;lt;l_i_ref&amp;gt; = i_temp_a970[].&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF i_temp_a004 IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   &amp;lt;l_i_ref&amp;gt; = i_temp_a004[].&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ASSIGN i_temp_a004 TO &amp;lt;l_i_ref&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  SELECT omatnr&lt;/P&gt;&lt;P&gt;         nmatnr&lt;/P&gt;&lt;P&gt;    FROM ztm_ref_table&lt;/P&gt;&lt;P&gt;    INTO TABLE l_i_ref_tab&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN &amp;lt;l_i_ref&amp;gt;&lt;/P&gt;&lt;P&gt;    WHERE (l_matnr).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 15:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-using-for-select-query/m-p/3658444#M881237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T15:17:13Z</dc:date>
    </item>
  </channel>
</rss>

