<?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-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393221#M1545776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I think you can dynamically give the table and field name for select-options,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS : S_FLD FOR (DYNFLD).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will create a generic select-option for these dynamic fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ANmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Nov 2010 14:03:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-01T14:03:24Z</dc:date>
    <item>
      <title>Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393220#M1545775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making a program where, in the selection-screen, I ask for a table name and a field name to be able to update some data in the table using those. I have too a criteria section where you enter the name of the field of the restriction where you want to change datas in your table and a select-options to write the infos about the restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I want to change data X in field Y in table Z where the field "name" into table Z is between L and S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though, my problem actually is when I write my select-options, I don't have yet the table name and its field in and it becomes really problematic when it comes to write the "for" in "select-options so_crit for (here)". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with field-symbol but it doesn't work considerating that the user has to enter a table and a field name first unless there is something tricky that I don't understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe there is a way to not use the "for" and make the select-options usable for any kind of datas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SBenoit on Nov 1, 2010 2:51 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SBenoit on Nov 1, 2010 2:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Nov 1, 2010 3:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 13:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393220#M1545775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393221#M1545776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I think you can dynamically give the table and field name for select-options,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS : S_FLD FOR (DYNFLD).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will create a generic select-option for these dynamic fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ANmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393221#M1545776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393222#M1545777</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;Yuo need a parameter fir the table name and a select-option for the field name, but I don't understand if you need a selecti-option tio insert the criteria for selecting the record to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393222#M1545777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393223#M1545778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have in my selection-screen is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter for table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter for the field of the table used for the criteria&lt;/P&gt;&lt;P&gt;Select-options for the datas used to fill the criteria (like the equivalent of the "where" in a "Select" from a table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter for the field of the table the modification will be done.&lt;/P&gt;&lt;P&gt;Parameter for the new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ANmol, I have to go to a meeting but I'll try your solution and I'll give you an update. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393223#M1545778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393224#M1545779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like a very dangerous weapon in the hand of the wrong people. Will you block SAP standard tables from being updated with your tool?&lt;/P&gt;&lt;P&gt;As for your actual question, almost all Open SQL statements allow dynamic field lists, table names and where-conditions, you might be able to solve this by studying ABAP online help.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393224#M1545779</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-11-01T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393225#M1545780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Thomas, there are serious validations made to only change the Z tables. And don't worry, I have a supervisor knowing SAP way more than me that is watching to be sure that everything is made properly. Also, I'm sorry for not having been clear on the subject line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ANmol, I have tried what you suggested and it works &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; Thank you very much for your help &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/7393225#M1545780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:54:13Z</dc:date>
    </item>
  </channel>
</rss>

