<?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: Retrieving Selection-Screen Button Variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949278#M695376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_selvalues type table of rsselread with header line,&lt;/P&gt;&lt;P&gt;      l_program   type sy-repid,&lt;/P&gt;&lt;P&gt;      l_workspace type wsid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_selvalues-name = 'P_WSID'.&lt;/P&gt;&lt;P&gt;  l_selvalues-kind = 'P'.&lt;/P&gt;&lt;P&gt;  append l_selvalues.&lt;/P&gt;&lt;P&gt;  l_program = sy-repid.&lt;/P&gt;&lt;P&gt;  call function 'RS_SELECTIONSCREEN_READ'&lt;/P&gt;&lt;P&gt;    exporting program     = l_program&lt;/P&gt;&lt;P&gt;    tables    fieldvalues = l_selvalues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 18:58:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T18:58:42Z</dc:date>
    <item>
      <title>Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949274#M695372</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;Im currently doing a modification to a custom HR/Payroll report. I changed the report type to 1_MHR001 because I wanted the selections screen to include the 'Org. Structure' button, in order to allow easier hierarchical selection. The problem is that I need to make a comparison between the selected Organizational Units and a custom field, but I am not able to retrieve the values entered by the user. If you take a look at the image bellow, you'll see a blue square (covering the Organizational Unit field in the 'get PERNR' selection fields) and a red square (covering the top 'Org. Structure' button). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://img442.imageshack.us/my.php?image=selscreenil8.png"&amp;gt;Image of the selection screen...&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the Organizational Unit values (pnporgeh) but I can't get to the values that are input by the user after pressing the 'Org. Structure' button. I thought they'd be placed in the same variable, but they are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I access those values? In what variable are they stored? How can I get that information (for future reference) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949274#M695372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T17:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949275#M695373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FM DYNP_VALUES READ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 18:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949275#M695373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T18:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949276#M695374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the function module RS_SELECTIONSCREEN_READ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 18:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949276#M695374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949277#M695375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one returns an exception (invalid dynpro name). The second one returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 18:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949277#M695375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T18:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949278#M695376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_selvalues type table of rsselread with header line,&lt;/P&gt;&lt;P&gt;      l_program   type sy-repid,&lt;/P&gt;&lt;P&gt;      l_workspace type wsid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_selvalues-name = 'P_WSID'.&lt;/P&gt;&lt;P&gt;  l_selvalues-kind = 'P'.&lt;/P&gt;&lt;P&gt;  append l_selvalues.&lt;/P&gt;&lt;P&gt;  l_program = sy-repid.&lt;/P&gt;&lt;P&gt;  call function 'RS_SELECTIONSCREEN_READ'&lt;/P&gt;&lt;P&gt;    exporting program     = l_program&lt;/P&gt;&lt;P&gt;    tables    fieldvalues = l_selvalues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 18:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949278#M695376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selection-Screen Button Variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949279#M695377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced my code with yours.. just to check if I did anything wrong. The only record in the table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'P_WSID' | 'P'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 19:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-selection-screen-button-variables/m-p/2949279#M695377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T19:08:08Z</dc:date>
    </item>
  </channel>
</rss>

