<?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 in RFC problem with WHERE statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721538#M895936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a Syntax error saying: "The field MATNR is unknown."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I said before MATNR = OBJEK won't work. It's the same syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried something new:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MATtemp TYPE MATNR.
MATtemp = MATNR.

* Put the requested values in temporary table
SELECT
ausp~atwrt
ausp~ATINN
into corresponding fields of table itab
FROM ausp
WHERE MATtemp = OBJEK.  &amp;lt;-------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Doing it like that it still crushes at the &amp;lt;----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt; (saying: "The field MATtemp is unknown."). But above I used MATNR to write the value in the temp-Var (that worked). So it must be a problem that a SELECT can't access "non-table variables".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to think about a way around this problem. When you have one you are free to give me a hint &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 3:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 13:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T13:24:09Z</dc:date>
    <item>
      <title>SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721529#M895927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a SELECT statement in the sourcecode part of a RFC. In this SELECT Statment I want to &lt;STRONG&gt;filter&lt;/STRONG&gt; the results by one of the IMPORT variables. This won't work because the variable is interpretate as field in the "FROM table". It says can't be found in table.&lt;/P&gt;&lt;P&gt;I also tried to put the variable in a local variable like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;temp LIKE MATNR.
temp = MATNR.
...
WHERE OBJCT = temp.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this works neither.&lt;/P&gt;&lt;P&gt;DO you know how to do this SELECT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721529#M895927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721530#M895928</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 can you use import parameters in where condition it will works fine I think you may facing problem not with import parameter something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:  below Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR &lt;/P&gt;&lt;P&gt;EXPORT&lt;/P&gt;&lt;P&gt;DESC LIKE MAKT-MATXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOURCECODE&lt;/P&gt;&lt;P&gt;select single matxt from makt into desc &lt;/P&gt;&lt;P&gt;                             where matnr = matnr and&lt;/P&gt;&lt;P&gt;                                      SPRAS = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same eg test it once it will works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721530#M895928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721531#M895929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this works neither....what doesn't work. Don't you get any values returned, or do you get a syntax error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the field objct defined in the table you want to select from? If the type is different then this could cause problems, or are you missing leading zero's or....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first tell what you mean by: But this works neither....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721531#M895929</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721532#M895930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;my Imports look different:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"  IMPORTING
*"     VALUE(FNCODE) TYPE  SY-TCODE OPTIONAL
*"     VALUE(MATNR) TYPE  MARA-MATNR OPTIONAL
*"     VALUE(MAKTX) TYPE  MAKT-MAKTX OPTIONAL
*"     VALUE(UDATE) TYPE  RM01A-AFDAT OPTIONAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;My SELECT looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
ausp~atwrt
ausp~ATINN
into corresponding fields of table itab
FROM ausp
WHERE MATNR = ausp~OBJEK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really don't know, what's the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721532#M895930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T12:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721533#M895931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ausp~OBJEK should be one of the import parameters ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;ausp~atwrt&lt;/P&gt;&lt;P&gt;ausp~ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE MATNR = &lt;STRONG&gt;ausp~OBJEK.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721533#M895931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721534#M895932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are selecting data from AUSP and you are also using this table in the WHERE statement. Sure this won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT
ausp~atwrt
ausp~ATINN
into corresponding fields of table itab
FROM ausp
WHERE MATNR = ausp~OBJEK.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to do it like this:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;ausp~atwrt&lt;/P&gt;&lt;P&gt;ausp~ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE MATNR = MATNR.  This is your import variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 12:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721534#M895932</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721535#M895933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No both hints won't work. What did you mean by MATNR = MATNR. The Key in ausp is called OBJEK. If you meant MATNR = OBJEK, it doesn't work either. It keeps saying MATNR is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Srinivas: Putting Objek into IMPORT won't solve the problem either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 3:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721535#M895933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721536#M895934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in table AUSP you have a field called OBJEK, correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN select statement you will have to use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;atwrt&lt;/P&gt;&lt;P&gt;ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE OBJEK = MATNR.  This matnr is your impor variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: I copied YOUR select statement in which is says WHERE MATNR = ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to compare MATNR and OBJEK you have to make sure that you need leading zero's or....So again, my question is: Do you have a syntax error or don't you get any values back after selecting data???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 28, 2008 3:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721536#M895934</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721537#M895935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In AUSP there is no field called MATNR ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;atwrt&lt;/P&gt;&lt;P&gt;ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE &lt;STRONG&gt;OBJEK&lt;/STRONG&gt; = MATNR. &amp;lt;-- declare this in import &lt;/P&gt;&lt;P&gt;parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721537#M895935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721538#M895936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a Syntax error saying: "The field MATNR is unknown."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I said before MATNR = OBJEK won't work. It's the same syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried something new:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MATtemp TYPE MATNR.
MATtemp = MATNR.

* Put the requested values in temporary table
SELECT
ausp~atwrt
ausp~ATINN
into corresponding fields of table itab
FROM ausp
WHERE MATtemp = OBJEK.  &amp;lt;-------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Doing it like that it still crushes at the &amp;lt;----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt; (saying: "The field MATtemp is unknown."). But above I used MATNR to write the value in the temp-Var (that worked). So it must be a problem that a SELECT can't access "non-table variables".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to think about a way around this problem. When you have one you are free to give me a hint &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 3:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721538#M895936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721539#M895937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Srinivas: THAT is exactly the problem. MATNR is not a field of ausp. It is the field I declared in IMPORT in order to compare it to another field which IS IN ausp. That's the initial situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721539#M895937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721540#M895938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel, the syntax should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;atwrt&lt;/P&gt;&lt;P&gt;ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE OBJEK = MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get a syntax error in this case or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, please let me know the exact syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is that no value is returned from this select than this is most likely caused by the fact that you can not just compare OBJEK (CHAR 50) and MATNR (CHAR18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We really want to help you, but we DO have to know the exact problem (syntax error, no values returned...??).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721540#M895938</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721541#M895939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field  &lt;STRONG&gt;MATtemp&lt;/STRONG&gt; should be in the table ... ausp ..&lt;/P&gt;&lt;P&gt;It gives the error as it is not present in the table ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace  &lt;STRONG&gt;MATtemp&lt;/STRONG&gt; with &lt;STRONG&gt;OBJEK&lt;/STRONG&gt; and write the select as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Put the requested values in temporary table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;ausp~atwrt&lt;/P&gt;&lt;P&gt;ausp~ATINN&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;FROM ausp&lt;/P&gt;&lt;P&gt;WHERE &lt;STRONG&gt;OBJEK = MATNR&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721541#M895939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721542#M895940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a Syntax error saying: "The field MATNR is unknown."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721542#M895940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721543#M895941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field MATNR should be declared in IMPORT parameters&lt;/P&gt;&lt;P&gt;of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721543#M895941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721544#M895942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In table AUSP you dont have any MATNR..it has OBJEK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your select should be some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select..&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where OBJEK = MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721544#M895942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721545#M895943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Srinivas: MATNR is declared in IMPORT already.&lt;/P&gt;&lt;P&gt;When I add this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:
MATNR LIKE MARA-MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Syntax error is "MATNR" is already declared. So it means it has been declared before (as I said).&lt;/P&gt;&lt;P&gt;From IMPORT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"     VALUE(MATNR) TYPE  MARA-MATNR OPTIONAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721545#M895943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721546#M895944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you sure about everything you are saying, because I did the same as you are saying and no syntax error at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(MATNR) TYPE  MATNR OPTIONAL
*"----------------------------------------------------------------------
  DATA: lt_ausp TYPE TABLE OF ausp.

  SELECT * FROM ausp
    INTO TABLE lt_ausp
    WHERE objek = matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721546#M895944</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721547#M895945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I got it working. I am sooo sorry I did not understand what you meant.&lt;/P&gt;&lt;P&gt;I didn't know that in a where-statement the tablefield must be LEFT from '='.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I was "slow on the uptake".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721547#M895945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT in RFC problem with WHERE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721548#M895946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, as long as it is solved now....which it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 13:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-rfc-problem-with-where-statement/m-p/3721548#M895946</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-28T13:46:35Z</dc:date>
    </item>
  </channel>
</rss>

