<?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: Enabling Select-options in an RFC function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591288#M1567267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens Li,&lt;/P&gt;&lt;P&gt;Thanx for your valuable inputs.&lt;/P&gt;&lt;P&gt;My problem is resolved.&lt;/P&gt;&lt;P&gt;I really appreciate you guys for the Endeavour for making this forum a colossal success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam24 on Jan 18, 2011 7:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jan 2011 06:47:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-18T06:47:44Z</dc:date>
    <item>
      <title>Enabling Select-options in an RFC function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591284#M1567263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abaper's,&lt;/P&gt;&lt;P&gt;I am using BAdi definition NOTIF_EVENT_SAVE for sending mail notification to user.&lt;/P&gt;&lt;P&gt;Under CHANGE_DATA_AT_SAVE method I have called an RFC enabled function module and written code here for mail notification.I used cl_bcs class for sending file.On executing this I am getting a mail box wherein we can enter user id and send mail.But I don't want to use cl_bcs for sending mail now.So I modified the code by including SO_NEW_DOCUMENT_SEND_API1 function.&lt;/P&gt;&lt;P&gt;My requirement is I want to enable select-options in this function module so that user can get a popup wherein he can select user name from master.On activating I am getting following error:&lt;/P&gt;&lt;P&gt;Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active).&lt;/P&gt;&lt;P&gt;Can any one help me how to resolve this error?&lt;/P&gt;&lt;P&gt;I am using this customized function module for mail notification.If I hardcode mail id,notification is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jan 2011 08:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591284#M1567263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-16T08:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Select-options in an RFC function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591285#M1567264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; My requirement is I want to enable select-options in this function module so that user can get a popup wherein he can select user name from master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the function groups TOP include, you can define a selection-screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF SCREEN 9786 [TITLE title].
select-options: s_uname for ...
SELECTION-SCREEN END OF SCREEN 9786.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the function use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL SELECTION-SCREEN dynnr
                      [STARTING AT col1 lin1
                      [ENDING   AT col2 lin2]]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything declared in the function body source code is local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you must make sure that CHANGE_DATA_AT_SAVE is not processed in update task.&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;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Clemens Li on Jan 16, 2011 7:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jan 2011 18:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591285#M1567264</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-16T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Select-options in an RFC function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591286#M1567265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens Li,&lt;/P&gt;&lt;P&gt;Thanx a lot for your input.Its working fine now.When I execute this function module I am getting a separate screen.When the user opens 6 screens already,my newl popup screen is not coming as system shows Maximum number of sessions opened.Can I overcome this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 12:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591286#M1567265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-17T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Select-options in an RFC function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591287#M1567266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, not really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not worry: The average user will close every session after using it - just to open up again afterward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could catch the error, issue a message (TYPE S DISPLAY LIKE 'E') asking the user to close unused open session and try again in a loop.&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;Clemens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 13:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591287#M1567266</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-17T13:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Select-options in an RFC function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591288#M1567267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens Li,&lt;/P&gt;&lt;P&gt;Thanx for your valuable inputs.&lt;/P&gt;&lt;P&gt;My problem is resolved.&lt;/P&gt;&lt;P&gt;I really appreciate you guys for the Endeavour for making this forum a colossal success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam24 on Jan 18, 2011 7:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 06:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-select-options-in-an-rfc-function-module/m-p/7591288#M1567267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T06:47:44Z</dc:date>
    </item>
  </channel>
</rss>

