<?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: Pass class methods with returning parameter in Select query where condition. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131669#M1975210</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;select a from ztable where
b = @( zclass-&amp;gt;get_attribute())intotable@data(lt_table).&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Mar 2021 20:35:43 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2021-03-17T20:35:43Z</dc:date>
    <item>
      <title>Pass class methods with returning parameter in Select query where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131665#M1975206</link>
      <description>&lt;P&gt;I am trying to directly call the method which has a returning parameter in the select query where condition . but this does't work. Gives an error. However this works for an IF condition.&lt;/P&gt;
  &lt;P&gt;if zclass-&amp;gt;get_attribute( ) = 1. "this works&lt;/P&gt;
  &lt;P&gt;endif.&lt;/P&gt;
  &lt;P&gt;select a from ztable into table @data(lt_table)&lt;/P&gt;
  &lt;P&gt;where&lt;/P&gt;
  &lt;P&gt;b = zclass-&amp;gt;get_attribute( ). "doesn't work&lt;/P&gt;
  &lt;P&gt;Does anyone have any idea about it? I am trying to avoid having local variables for all the getter methods and then passing them in the select query as there's quite a few of them and these values are required in multiple methods.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 02:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131665#M1975206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-25T02:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pass class methods with returning parameter in Select query where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131666#M1975207</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;kaundinya&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Try the below Code and let us know if it works,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select a from ztable into table @data(lt_table)
where
b =  @( zclass-&amp;gt;get_attribute( ) ) . 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 06:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131666#M1975207</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-01-25T06:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass class methods with returning parameter in Select query where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131667#M1975208</link>
      <description>&lt;P&gt;This works. Thanks!&lt;/P&gt;&lt;P&gt;Just a little change. The into table @data(lt_table) will come at the end like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select a from ztable where
b =@( zclass-&amp;gt;get_attribute( ) )
into table @data(lt_table).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jan 2020 09:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131667#M1975208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-26T09:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass class methods with returning parameter in Select query where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131668#M1975209</link>
      <description>&lt;P&gt;For information, the following part of the above code is named a &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenopen_sql_host_expressions.htm"&gt;host expression&lt;/A&gt; and exists since ABAP 7.50:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@( zclass-&amp;gt;get_attribute( ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jan 2020 11:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131668#M1975209</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-26T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pass class methods with returning parameter in Select query where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131669#M1975210</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;select a from ztable where
b = @( zclass-&amp;gt;get_attribute())intotable@data(lt_table).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-class-methods-with-returning-parameter-in-select-query-where-condition/m-p/12131669#M1975210</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2021-03-17T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

