<?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: selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731094#M634013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to display the description as a comment with the parameter??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Number      000001, On pressing enter the desc. comes in line as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Number      000001   Material 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 16:53:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-04T16:53:20Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731093#M634012</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 have the material number in the selection screen ..when i select the material number i want to display the material description in same line ...&lt;/P&gt;&lt;P&gt;How can i achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BAlu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731093#M634012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731094#M634013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to display the description as a comment with the parameter??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Number      000001, On pressing enter the desc. comes in line as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Number      000001   Material 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731094#M634013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T16:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731095#M634014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but you should need to modify the Search Help....Or you can use this FM...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;F4IF_INT_TABLE_VALUE_REQUEST&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731095#M634014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731096#M634015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002 .

selection-screen begin of line.
selection-screen comment (20) matnr.
parameters: p_matnr type mara-matnr.
selection-screen comment (40) maktx.
selection-screen end of line.

at selection-screen output.
matnr = 'Material Number'.
if maktx is initial.
  select single maktx into maktx
         from makt
        where matnr = p_matnr
          and spras = sy-langu.
 endif.


at selection-screen on value-request for p_matnr.


data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.


  call function 'F4IF_FIELD_VALUE_REQUEST'
       exporting
            tabname           = 'MARA'
            fieldname         = 'MATNR'
            dynpprog          = sy-cprog
            dynpnr            = sy-dynnr
            dynprofield       = 'P_MATNR'
       tables
            return_tab        = return
       exceptions
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            others            = 5.

  read table return with key fieldname = 'P_MATNR'.

* Add it back to the dynpro.
  dynfields-fieldname = return-retfield.
  dynfields-fieldvalue =  return-fieldval.
  append dynfields.


  clear dynfields.
  dynfields-fieldname = 'MAKTX'.
  call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
      input         = return-fieldval
    IMPORTING
      OUTPUT        = p_matnr.

  select single maktx into dynfields-fieldvalue
         from makt
        where matnr = p_matnr
          and spras = sy-langu.
  append dynfields.


* Update the dynpro values.
  call function 'DYNP_VALUES_UPDATE'
       exporting
            dyname     = sy-cprog
            dynumb     = sy-dynnr
       tables
            dynpfields = dynfields
       exceptions
            others     = 8.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also handle if you do F4 help on the MATNR field, and select a material, the description will be filled in automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731096#M634015</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-04T16:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731097#M634016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanq Rich,&lt;/P&gt;&lt;P&gt;but if select one material number the description is coming ...after that if i entered wrong material number the description should b clear.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BAlu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 17:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731097#M634016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731098#M634017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so just modify this event as you see below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

at selection-screen output.
clear maktx.
matnr = 'Material Number'.
  select single maktx into maktx
         from makt
        where matnr = p_matnr
          and spras = sy-langu.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 17:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731098#M634017</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-04T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731099#M634018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;still its not clearing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 18:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731099#M634018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T18:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731100#M634019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please add this piece of code in richs code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.
  MATNR = 'Material Number'.

  SELECT SINGLE MAKTX INTO MAKTX
         FROM MAKT
        WHERE MATNR = P_MATNR
          AND SPRAS = SY-LANGU.

&amp;lt;b&amp;gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    CLEAR MAKTX.
  ENDIF.&amp;lt;/b&amp;gt;

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 19:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2731100#M634019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T19:29:21Z</dc:date>
    </item>
  </channel>
</rss>

