<?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: About AT SELECTION SCREEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691132#M622564</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;&lt;/P&gt;&lt;P&gt;giv separately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR VAL1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR VAL2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 10:32:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T10:32:06Z</dc:date>
    <item>
      <title>About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691129#M622561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help about AT SELECTION SCREEN ON VALUE REQUEST FOR a.&lt;/P&gt;&lt;P&gt;Actually, I need this to be ON VALUE REQUEST FOR a and b, because I need to update both parameter with this single search help. Can anybody show me how to do this?&lt;/P&gt;&lt;P&gt;Thanks before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691129#M622561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691130#M622562</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;Have you tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR a.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR b.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found it in the help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... ON VALUE-REQUEST FOR psel_low_high &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;In this addition, the field psel_low_high iseither the name of a report parameter or of the form sel-LOW orsel-HIGH, where sel is the name of a selection criterion.The effect of this is twofold: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The possible entries pushbutton for F4 appears beside theappropriate field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user activates this pushbutton or presses F4 for thefield, the event is executed. You can thus implement a self-programmedpossible entries routine for the input/output fields of the selectionscreen. If the program contains such an event and the user pressesF4, the system processes this rather than displaying the checktable or the fixed values of the Dictionary field - even if the reportparameter or the selection option with LIKE or FOR pointsto a Dictionary field. You can, for example, use the CALL SCREEN statement to display a selection list ofpossible values. The contents of the field psel_low_high at theend of this processing block are copied to the appropriate input/outputfield. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This addition is only allowed with report-specific parameters ( PARAMETERS ) or selection options (SELECT-OPTIONS). Fordatabase-specific parameters or selection options, you can achieve thesame effect by using the addition VALUE-REQUEST FOR ... with thekey word PARAMETERS or SELECT-OPTIONS in the includeDBxyzSEL (where xyz = name of logical database). In this case,you must program the possible entries in the database programSAPDBxyz. &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;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tamás Nyisztor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691130#M622562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691131#M622563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samanta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use AT SELECTION SCREEN ON VALUE REQUEST FOR a and b.&lt;/P&gt;&lt;P&gt;Instead what you can do is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the code for search help in a sub-routine. &lt;/P&gt;&lt;P&gt;FORM Search_help.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR a.&lt;/P&gt;&lt;P&gt;PERFORM Search_help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR b.&lt;/P&gt;&lt;P&gt;PERFORM Search_help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning, call the same sub-routine for both the events. This solves the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for helpful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691131#M622563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691132#M622564</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;&lt;/P&gt;&lt;P&gt;giv separately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR VAL1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR VAL2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691132#M622564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691133#M622565</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;You could use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST FOR a. Get the values for a first. Then fetch the corresponding values for b. Then populate the b in the selection screen. So the effect is, when user clicks f4 he will select a and after he says continue he can see 2 values in a and b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Preetham S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691133#M622565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691134#M622566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  u can do it separately for both fields as it does not allow for 2 fields simultaneously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691134#M622566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: About AT SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691135#M622567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...Samanta...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the proper code that give u the Complete info on How to write the Logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zsel_f4help                             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Report with selection screen and to display the list of&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;possible entries for field 'B' as per the value in field 'A'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_vbeln TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;p_posnr TYPE vbap-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF help_item OCCURS 0,&lt;/P&gt;&lt;P&gt;  posnr TYPE vbap-posnr,&lt;/P&gt;&lt;P&gt;  matnr TYPE vbap-matnr,&lt;/P&gt;&lt;P&gt;  arktx TYPE vbap-arktx,&lt;/P&gt;&lt;P&gt;  END OF help_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;  APPEND dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Read the Values of the SCREEN FIELDs&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname               = sy-cprog&lt;/P&gt;&lt;P&gt;      dynumb               = sy-dynnr&lt;/P&gt;&lt;P&gt;      translate_to_upper   = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields           = dynfields&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;      invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;      invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;      invalid_request      = 5&lt;/P&gt;&lt;P&gt;      no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;      invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;      undefind_error       = 8&lt;/P&gt;&lt;P&gt;      double_conversion    = 9&lt;/P&gt;&lt;P&gt;      stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;      OTHERS               = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Find out the Value of P_VBELN&lt;/P&gt;&lt;P&gt;  READ TABLE dynfields WITH KEY fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_vbeln = dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Convert the Value into internal format&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      input  = p_vbeln&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      output = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Fetch the correponding itemnos from VBAP&lt;/P&gt;&lt;P&gt;  SELECT posnr matnr arktx INTO TABLE help_item&lt;/P&gt;&lt;P&gt;  FROM vbap&lt;/P&gt;&lt;P&gt;  WHERE vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Generate the F4 help with internal table values&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield    = 'POSNR'&lt;/P&gt;&lt;P&gt;      dynprofield = 'P_POSNR'&lt;/P&gt;&lt;P&gt;      dynpprog    = sy-cprog&lt;/P&gt;&lt;P&gt;      dynpnr      = sy-dynnr&lt;/P&gt;&lt;P&gt;      value_org   = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab   = help_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 10:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-at-selection-screen/m-p/2691135#M622567</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-22T10:34:19Z</dc:date>
    </item>
  </channel>
</rss>

