<?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: select statement coding needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148121#M1193014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is because of the field symbol.&lt;/P&gt;&lt;P&gt;You are using field symbol without assigning it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &amp;lt;fs&amp;gt; is a field symbol, you can not directly use it like&lt;/P&gt;&lt;P&gt;SELECT PERID&lt;/P&gt;&lt;P&gt;FROM PA0002&lt;/P&gt;&lt;P&gt;WHERE PERNR = &amp;lt;FS&amp;gt;-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual procedure is &lt;/P&gt;&lt;P&gt;ASSIGN ITAB TO &amp;lt;FS&amp;gt; (please check syntax of ASSIGN).&lt;/P&gt;&lt;P&gt;and use&lt;/P&gt;&lt;P&gt;SELECT PERID&lt;/P&gt;&lt;P&gt;FROMPA0002&lt;/P&gt;&lt;P&gt;WHERE PERNR = &amp;lt;FS&amp;gt;-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where itab is your internal table with field PERNR in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just assign your field symbol before using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mubeen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 19:32:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-28T19:32:08Z</dc:date>
    <item>
      <title>select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148116#M1193009</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;I need some coding to select data from table and insert in a target field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition of start routine I have this:&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TYITAB,&lt;/P&gt;&lt;P&gt;MATERIAL TYPE /BI0/ASD_O0100-MATERIAL,&lt;/P&gt;&lt;P&gt;ITEM_CATEG TYPE /BI0/ASD_O0100-ITEM_CATEG,&lt;/P&gt;&lt;P&gt;END OF TYITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF TYITAB,&lt;/P&gt;&lt;P&gt;WA TYPE TYITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the implementation:&lt;/P&gt;&lt;P&gt;I need it to write material and item category from /BI0/ASD_O0100 to itab where source_fields-material are identical with material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on select statement in implementation would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148116#M1193009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148117#M1193010</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;PRE&gt;&lt;CODE&gt;SELECT MATERIAL ITEM_CATEG  
 FROM  /BI0/ASD_O0100
 INTO TABLE ITAB
WHERE &amp;lt;Condt&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148117#M1193010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148118#M1193011</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;Thank you - it does give me a runtime error when executing which stops at the  select statement beginning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: GETWA_NOT_ASSIGNED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  SELECT MATERIAL ITEM_CATEG&lt;/P&gt;&lt;P&gt;   FROM  /BI0/ASD_O0100&lt;/P&gt;&lt;P&gt;   INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;  WHERE MATERIAL = &amp;lt;SOURCE_FIELDS&amp;gt;-MATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sonni Jacobsen on Jan 28, 2009 8:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148118#M1193011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148119#M1193012</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;The problem could be with &amp;lt;SOURCE_FIELDS&amp;gt;-MATERIAL ..instead of this try to hard code the material number and test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148119#M1193012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148120#M1193013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT statement is a very important statement in ABAP and it is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT field names&lt;/P&gt;&lt;P&gt;FROM database table name / view name&lt;/P&gt;&lt;P&gt;INTO TABLE internal table name&lt;/P&gt;&lt;P&gt;WHERE conditions&lt;/P&gt;&lt;P&gt;AND/OR more conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: SELECT nachn vorna perid&lt;/P&gt;&lt;P&gt;from pa0002&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;where pernr = '10001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other forms of SELECT like if you want to select just one record&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;FROM data base table name&lt;/P&gt;&lt;P&gt;INTO stucture&lt;/P&gt;&lt;P&gt;WHERE conditions&lt;/P&gt;&lt;P&gt;AND/OR more conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many other forms, check syntax in ABAP editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you want to know more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mubeen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148120#M1193013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: select statement coding needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148121#M1193014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is because of the field symbol.&lt;/P&gt;&lt;P&gt;You are using field symbol without assigning it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &amp;lt;fs&amp;gt; is a field symbol, you can not directly use it like&lt;/P&gt;&lt;P&gt;SELECT PERID&lt;/P&gt;&lt;P&gt;FROM PA0002&lt;/P&gt;&lt;P&gt;WHERE PERNR = &amp;lt;FS&amp;gt;-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual procedure is &lt;/P&gt;&lt;P&gt;ASSIGN ITAB TO &amp;lt;FS&amp;gt; (please check syntax of ASSIGN).&lt;/P&gt;&lt;P&gt;and use&lt;/P&gt;&lt;P&gt;SELECT PERID&lt;/P&gt;&lt;P&gt;FROMPA0002&lt;/P&gt;&lt;P&gt;WHERE PERNR = &amp;lt;FS&amp;gt;-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where itab is your internal table with field PERNR in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just assign your field symbol before using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mubeen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 19:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-coding-needed/m-p/5148121#M1193014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T19:32:08Z</dc:date>
    </item>
  </channel>
</rss>

