<?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: Problem with at selection screen on value request for file problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374085#M1402348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAX,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very Thanks For your answer.... I was just looking for any other alternative instead of calling the event 4 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 16:36:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-02T16:36:12Z</dc:date>
    <item>
      <title>Problem with at selection screen on value request for file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374083#M1402346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 4 radio buttons on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


PARAMETERS :
          r1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND DEV,
          r2 RADIOBUTTON GROUP g1,
          r3 RADIOBUTTON GROUP g1,
          r4 RADIOBUTTON GROUP g1.

PARAMETERS :

   file1  TYPE rlgrap-filename MODIF ID A1,   
   file2  TYPE rlgrap-filename MODIF ID A2,  
   file3  TYPE rlgrap-filename MODIF ID A3,   
   file4  TYPE rlgrap-filename MODIF ID A4,   


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using loop at screen and displaying one file1 when r1 is active on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simlarly &lt;/P&gt;&lt;P&gt;file2 when r2 is active on the selection screen&lt;/P&gt;&lt;P&gt;file3 when r3 is active on the selection screen&lt;/P&gt;&lt;P&gt;file4 when r4 is active on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine.. perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is i need to provide F4 help for all files dynamiaclly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ie : &lt;/P&gt;&lt;P&gt;  when file 1 is active then i need to provide f4 help using at selection screen on value request for file1&lt;/P&gt;&lt;P&gt;   when file 2 is active then i need to provide f4 help using at selection screen on value request for file2&lt;/P&gt;&lt;P&gt;  when file 3 is active then i need to provide f4 help using at selection screen on value request for file3&lt;/P&gt;&lt;P&gt;  when file 4 is active then i need to provide f4 help using at selection screen on value request for file4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam using the following code but its showing me some error&lt;/P&gt;&lt;P&gt;can any one correct it and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data :
  w_file      type rlgrap-filename.


 if R1 = 'X'.
  W_FILE = 'FILE1'.
   ELSEIF R2 = 'X'.
   W_FILE = 'FILE2'.
  ELSEIF R3 = 'X'.
   W_FILE = 'FILE3'.
  ELSEIF R4 = 'X'.
   W_FILE = FILE4'.
ENDIF.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR W_FILE.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its showing me error " On Value Request Shoud Be Follwed By Paramter Or Select option -low or High "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Can i pass the file name based on the radio button check for AT selection screen on value request Event&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;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 16:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374083#M1402346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T16:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with at selection screen on value request for file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374084#M1402347</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;U need to use that event four times for every "file" parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE3.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE2.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u can define a routine to be used for all above events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE1.
   PERFORM GET_FILE USING FILE1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE3.
   PERFORM GET_FILE USING FILE2.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE2.
   PERFORM GET_FILE USING FILE3.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE4.
   PERFORM GET_FILE USING FILE4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 16:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374084#M1402347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T16:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with at selection screen on value request for file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374085#M1402348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAX,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very Thanks For your answer.... I was just looking for any other alternative instead of calling the event 4 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 16:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374085#M1402348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T16:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with at selection screen on value request for file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374086#M1402349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how should i pass the file name to KD_GET_FILENAME_ON_F4 function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam facing some problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 17:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374086#M1402349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with at selection screen on value request for file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374087#M1402350</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;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS :
          R1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND DEV,
          R2 RADIOBUTTON GROUP G1,
          R3 RADIOBUTTON GROUP G1,
          R4 RADIOBUTTON GROUP G1.

PARAMETERS : FILE1  TYPE RLGRAP-FILENAME MODIF ID A1,
             FILE2  TYPE RLGRAP-FILENAME MODIF ID A2,
             FILE3  TYPE RLGRAP-FILENAME MODIF ID A3,
             FILE4  TYPE RLGRAP-FILENAME MODIF ID A4.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE1.
  PERFORM GET_FILE USING FILE1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE2.
  PERFORM GET_FILE USING FILE2.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE3.
  PERFORM GET_FILE USING FILE3.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE4.
  PERFORM GET_FILE USING FILE4.

FORM GET_FILE  USING    P_FILE.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    CHANGING
      FILE_NAME     = P_FILE
    EXCEPTIONS
      MASK_TOO_LONG = 1
      OTHERS        = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.

ENDFORM.                    " GET_FILE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 18:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-selection-screen-on-value-request-for-file-problem/m-p/6374087#M1402350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T18:12:36Z</dc:date>
    </item>
  </channel>
</rss>

