<?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: SQL error:field is unknown in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307805#M1990621</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You need to escape LDT_VAL everywhere, so change to this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for all entries in @LDT_VAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Next, you need to use the ~ to indicate fields from specific tables (or table aliases). In this example, change to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Where MSEG~MATNR = @LDT_VAL-MATNR
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jan 2021 04:54:15 GMT</pubDate>
    <dc:creator>joltdx</dc:creator>
    <dc:date>2021-01-11T04:54:15Z</dc:date>
    <item>
      <title>SQL error:field is unknown</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307804#M1990620</link>
      <description>&lt;P&gt;Hi, the coding is as blew: and there's an error happening. &lt;/P&gt;
  &lt;P&gt; Field"LDT_VAL-MATNR" is unknown. It is neither in one of the specified tables nor defined by a "Data" statement.&lt;/P&gt;
  &lt;P&gt;How to deal with it?&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Types:
  Begin of GTS_VAL,
    MATNR TYPE MARA-MATNR,
  End of GTS_VAL.
  GTT_VAL Type table of GTS_VAL.

Data LDT_VAL type GTT_VAL.

Select ~
for all entries in LDT_VAL
Where MSEG-MATNR = @LDT_VAL-MATNR
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2021 02:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307804#M1990620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-11T02:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error:field is unknown</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307805#M1990621</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You need to escape LDT_VAL everywhere, so change to this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;for all entries in @LDT_VAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Next, you need to use the ~ to indicate fields from specific tables (or table aliases). In this example, change to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Where MSEG~MATNR = @LDT_VAL-MATNR
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2021 04:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307805#M1990621</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-01-11T04:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error:field is unknown</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307806#M1990622</link>
      <description>&lt;P&gt;Your syntax is completely wrong. One possibility:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM MSEG
INTO TABLE @DATA(ITAB)
FOR ALL ENTRIES IN @LDT_VAL
WHERE MATNR = @LDT_VAL-MATNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(but instead of *, specify the columns you really need)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 06:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-field-is-unknown/m-p/12307806#M1990622</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-11T06:12:57Z</dc:date>
    </item>
  </channel>
</rss>

