<?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: Set parameter id - problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957548#M393974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:  p_aufnr type aufnr memory id 'ANR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may work (see below from ABAP Help)&lt;/P&gt;&lt;P&gt;Addition 5 &lt;/P&gt;&lt;P&gt;... MEMORY ID pid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Assigns the memory ID pid to the parameter on theselection screen. This means that when the selection screen appears,the input field contains the last value entered by the user in a fieldwith memory ID pid. &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;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 00:48:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-23T00:48:20Z</dc:date>
    <item>
      <title>Set parameter id - problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957547#M393973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom program ABC which has a process order field at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_aufnr like afko-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another ALV custom program XYZ using REUSE_ALV_GRID_DISPLAY FM. In this program I have added a custom button to take the control to program ABC when pressed. I select a line which has a process order number in it and then I press this custom button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the USER_COMMAND I added something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    when 'BUTTON'.

        read table itab index rs_selfield-tabindex.
         set parameter id 'ANR' field itab-aufnr.
         call transaction 'ABC'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the process order number is not passed into the selection screen field of program ABC. I dont know what I am doing wrong. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 00:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957547#M393973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T00:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set parameter id - problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957548#M393974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:  p_aufnr type aufnr memory id 'ANR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may work (see below from ABAP Help)&lt;/P&gt;&lt;P&gt;Addition 5 &lt;/P&gt;&lt;P&gt;... MEMORY ID pid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Assigns the memory ID pid to the parameter on theselection screen. This means that when the selection screen appears,the input field contains the last value entered by the user in a fieldwith memory ID pid. &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;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 00:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957548#M393974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T00:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set parameter id - problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957549#M393975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      as mentioned by gareth, use memory id 'ANR' in the program of 'ABC'..and in teh calling program do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'BUTTON'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        read table itab index rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;         set parameter id 'ANR' field rs_selfield-value. "which has the order no.&lt;/P&gt;&lt;P&gt;         call transaction 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 06:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-parameter-id-problem/m-p/1957549#M393975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T06:09:56Z</dc:date>
    </item>
  </channel>
</rss>

