<?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: parameter on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877155#M675394</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;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION.
" Run your bapi and get email address and pass it P_EMAIL parameter or select- option LOW
P_EMAIL = BAPI-EMAIL 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 19:04:38 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-10-03T19:04:38Z</dc:date>
    <item>
      <title>parameter on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877153#M675392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;What I need to do is to put the default value for parameter on selection screen. It should be the email address of the person who run this program (from user profile).To get this value I called BAPI_USER_GET_DETAIL . How to pass the value to the parameter on selection screen now?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 18:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877153#M675392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: parameter on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877154#M675393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to code this logic in INITIALIZATION event. Get the user id and mail address of the user running this program. In Initialization event, pass assign the value of email address to the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877154#M675393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: parameter on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877155#M675394</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;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION.
" Run your bapi and get email address and pass it P_EMAIL parameter or select- option LOW
P_EMAIL = BAPI-EMAIL 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877155#M675394</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-03T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: parameter on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877156#M675395</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;PRE&gt;&lt;CODE&gt;REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

PARAMETERS e_mail TYPE bapiadsmtp-e_mail.

DATA: return TYPE TABLE OF bapiret2,
      email  TYPE TABLE OF bapiadsmtp WITH HEADER LINE.

AT SELECTION-SCREEN OUTPUT.
  CALL FUNCTION 'BAPI_USER_GET_DETAIL'
    EXPORTING
      username = sy-uname
    TABLES
      return   = return
      addsmtp  = email.

  LOOP AT email.
    e_mail = email-e_mail.
    EXIT.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877156#M675395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: parameter on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877157#M675396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. Solved. Points assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-on-selection-screen/m-p/2877157#M675396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:30:33Z</dc:date>
    </item>
  </channel>
</rss>

