<?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: Defning parameters for selection at runtime... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107121#M982169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use the ABAP Help for AT SELECTION SCREEN OUTPUT.  You might get an answer faster and learn something on your own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2008 18:30:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-26T18:30:46Z</dc:date>
    <item>
      <title>Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107117#M982165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a group of radio buttons as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_desk radiobutton group 1,    "Desktop location&lt;/P&gt;&lt;P&gt;                  p_unix radiobutton group 1.   "Unix location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if p_desk ='X', I want the file path to be set as  follows and use function F4_FILENAME at value request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND if p_unix is 'X', then I want the filepath to be set as follows and use function F4_DXFILENAME_TOPRECURSION at avlue request &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE filename-fileextern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define parameters at runtime ? How can we do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107117#M982165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107118#M982166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't define them in runtime...rather hide or unhide it at runtime in AT SELECTION SCREEN OUTPUT event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107118#M982166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107119#M982167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I do it, please explain ? Maybe a example will be nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107119#M982167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107120#M982168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You define only a single parameter of type C lenght 1.&lt;/P&gt;&lt;P&gt;At selection-screen on Field even of that parameter you check the value whether it is '1' set the flag w_flag = 'X' else set it w_flag = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check a condition depending on that flag and carry with your operation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107120#M982168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107121#M982169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use the ABAP Help for AT SELECTION SCREEN OUTPUT.  You might get an answer faster and learn something on your own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107121#M982169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107122#M982170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using a toggle in the AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants:&lt;/P&gt;&lt;P&gt;c_mod_group1 type c value 'A',&lt;/P&gt;&lt;P&gt;c_mod_group2 type c value 'B',&lt;/P&gt;&lt;P&gt;c_hide type c value '0',&lt;/P&gt;&lt;P&gt;c_show type c value '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen.....&lt;/P&gt;&lt;P&gt;Parameters: p_desk  radiobutton group rad1 user-command uc1,&lt;/P&gt;&lt;P&gt;                 p_unix radiobutton group rad1 default 'X',&lt;/P&gt;&lt;P&gt;                p_filedesk type......MODIF ID b Lower case,&lt;/P&gt;&lt;P&gt;               p_fileunix type..... MODIF ID a lower case.&lt;/P&gt;&lt;P&gt;end of selection screen....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen output.&lt;/P&gt;&lt;P&gt;Perform toggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOrm toggle.&lt;/P&gt;&lt;P&gt;if p_unix = 'x'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      CASE screen-group1.&lt;/P&gt;&lt;P&gt;        WHEN c_mod_group1.&lt;/P&gt;&lt;P&gt;          screen-active = c_hide.           "show field&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      CASE screen-group1.&lt;/P&gt;&lt;P&gt;        WHEN c_mod_group2.&lt;/P&gt;&lt;P&gt;          screen-active = c_show.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_desk = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      CASE screen-group1.&lt;/P&gt;&lt;P&gt;        WHEN c_mod_group1.&lt;/P&gt;&lt;P&gt;          screen-active = c_show.        "show field&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;      CASE screen-group1.&lt;/P&gt;&lt;P&gt;        WHEN c_mod_group2.&lt;/P&gt;&lt;P&gt;          screen-active = c_hide.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow for the file to be input for only one option.  Then when the user executes you can pull the data for the file based on the radiobutton selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or AT Selection-Screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If p_desk = 'X'.&lt;/P&gt;&lt;P&gt;Perform ........&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Perform ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopes this helps&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;&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107122#M982170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Defning parameters for selection at runtime...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107123#M982171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_SOURAV9
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ztest_sourav9.

PARAMETERS:
p_desk RADIOBUTTON GROUP 1 DEFAULT 'X' USER-COMMAND flag, "Desktop location
p_unix RADIOBUTTON GROUP 1 ,  "Unix location
p_file1 LIKE rlgrap-filename MODIF ID m1 DEFAULT 'File 1' ,
p_file2 LIKE filename-fileextern MODIF ID m2 DEFAULT 'File 2'.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF p_desk = 'X' AND
      screen-group1 = 'M2'.
      screen-active = '0'.
    ELSEIF p_unix = 'X' AND
       screen-group1 = 'M1'.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
*....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file2.
*...

START-OF-SELECTION.
  IF p_desk = 'X'.
    WRITE: p_file1.
  ELSE.
    WRITE:  p_file2.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 18:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defning-parameters-for-selection-at-runtime/m-p/4107123#M982171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T18:50:55Z</dc:date>
    </item>
  </channel>
</rss>

