<?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 Question regarding SELECT-OPTIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967938#M68959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a select-option in my program like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_role FOR AGR_DEFINE-AGR_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work. To make it work I need to define AGR_DEFINE with the tables statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why? In my opinion I just make a reference to a dictionary object. The tables statement is more or less used to create a headerline for a used database table. I don't see any relation in that. Still it is needed to make it work. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2005 14:53:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-14T14:53:57Z</dc:date>
    <item>
      <title>Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967938#M68959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a select-option in my program like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_role FOR AGR_DEFINE-AGR_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work. To make it work I need to define AGR_DEFINE with the tables statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why? In my opinion I just make a reference to a dictionary object. The tables statement is more or less used to create a headerline for a used database table. I don't see any relation in that. Still it is needed to make it work. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 14:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967938#M68959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967939#M68960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can make it works in the folling way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ZAGR_DEFINE type AGR_DEFINE.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_role FOR ZAGR_DEFINE-AGR_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ZAGR_NAME type AGR_DEFINE-AGR_NAME.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_role FOR ZAGR_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Svetlin Rusev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 14:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967939#M68960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967940#M68961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_role type agr_name.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_role FOR w_role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good Luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 14:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967940#M68961</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-09-14T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967941#M68962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that's a new solution. Still I can't understand why I have to declare the table in order to make a select-option with reference to a dictionary-object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967941#M68962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967942#M68963</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;Because the system gives some dictionary characteristics of table field, as search help (for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967942#M68963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967943#M68964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been the syntax for select-options since the begining. You need the definition of 'FOR' defined before you use it in the select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the interpreter/compiler was designed to understand and inherit the properties of the referred field if you use 'LIKE' or 'TYPE' but not when you are using 'FOR'. Since the LOW and HIGH fields of the select-option inherits the properties of the 'FOR' field, the properties of it are needed to be defined before. Why, I still don't know, but that is the design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some strange reason, SYST(or SY) fields reference will work even if you don't define them before. Is there a clue here? System structure/fields seem to be available for referencing but not static database table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967943#M68964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967944#M68965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer can be that you are not referencing the field to do this you use the statement LIKE &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967944#M68965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967945#M68966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the quick and usefull replies. I guess it's just designed this way and has to do with the way the interpreter works.  From a conceptual point of view however it still does not make much sense to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-select-options/m-p/967945#M68966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:36:45Z</dc:date>
    </item>
  </channel>
</rss>

