<?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: Custom selection values for query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822579#M42808</link>
    <description>&lt;P&gt;Hi Niklas&lt;/P&gt;&lt;P&gt;To do that, the field should be on the selection screen, and I don't think those fields are assigned in the Initialization section. I have an example that works is the Start-of-selection:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges my_opt for kna1-kunnr.
field-symbols &amp;lt;scr_opt&amp;gt; type standard table.

assign ('SP$00001[]') to &amp;lt;scr_opt&amp;gt;.
my_opt-sign = 'I'.
my_opt-option = 'EQ'.
my_opt-low = '0001026868'.
my_opt-high = ''.

append my_opt to &amp;lt;scr_opt&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 10:52:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-02-22T10:52:46Z</dc:date>
    <item>
      <title>Custom selection values for query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822576#M42805</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;
  &lt;P&gt;is it possible to fill the time range for a SQ01 seleciton screen with coding in SQ02?&lt;/P&gt;
  &lt;P&gt;The selection I need is not available in standart variant customization. I need to select LIKP-ERZET values from SYUZEIT-30min until SYUZEIT.&lt;/P&gt;
  &lt;P&gt;I tried :&lt;/P&gt;
  &lt;P&gt;SP$00002-LOW = sy-uzeit - 60&lt;/P&gt;
  &lt;P&gt;SP$00002-HIGH = sy-uzeit&lt;/P&gt;
  &lt;P&gt;in the SQ02 Coding/Initialization Page.&lt;/P&gt;
  &lt;P&gt;But since I have no experience in ABAP, this code is obviously not working.&lt;/P&gt;
  &lt;P&gt;Thanks in advance and best regards&lt;/P&gt;
  &lt;P&gt;Niklas&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 09:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822576#M42805</guid>
      <dc:creator>nibiklavic</dc:creator>
      <dc:date>2019-02-21T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom selection values for query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822577#M42806</link>
      <description>&lt;P&gt;Hi Niklas,&lt;/P&gt;&lt;P&gt;If you want to remove 30 min from the current time, try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data lv_30min_less type syst-uzeit.
data lv_30min type syst-uzeit value '003000'.

lv_30min_less = sy-uzeit - lv_30min.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822577#M42806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-21T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom selection values for query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822578#M42807</link>
      <description>&lt;P&gt;Hello Rafael,&lt;/P&gt;&lt;P&gt;thanks for your input. But how can I pass this value to my selection field?&lt;/P&gt;&lt;P&gt;SP$00002-LOW =.... is not working&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Niklas &lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822578#M42807</guid>
      <dc:creator>nibiklavic</dc:creator>
      <dc:date>2019-02-21T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom selection values for query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822579#M42808</link>
      <description>&lt;P&gt;Hi Niklas&lt;/P&gt;&lt;P&gt;To do that, the field should be on the selection screen, and I don't think those fields are assigned in the Initialization section. I have an example that works is the Start-of-selection:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges my_opt for kna1-kunnr.
field-symbols &amp;lt;scr_opt&amp;gt; type standard table.

assign ('SP$00001[]') to &amp;lt;scr_opt&amp;gt;.
my_opt-sign = 'I'.
my_opt-option = 'EQ'.
my_opt-low = '0001026868'.
my_opt-high = ''.

append my_opt to &amp;lt;scr_opt&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-selection-values-for-query/m-p/822579#M42808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-22T10:52:46Z</dc:date>
    </item>
  </channel>
</rss>

