<?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: Read Only Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976235#M1340112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;inside loop instead of setting active = 0&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input = 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2009 10:16:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-10T10:16:36Z</dc:date>
    <item>
      <title>Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976232#M1340109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement that.... the parameter field should be in display mode and &lt;/P&gt;&lt;P&gt;it  has an F4 help and i can select the value from that. &lt;/P&gt;&lt;P&gt;user can not edit the value what ever i selected in F4 help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have already tried with this code.. but i can able to select the values from F4 help... but selected values is not listing in the parameter as though it is in display mode.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE string MODIF ID GRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'GRP'.&lt;/P&gt;&lt;P&gt;      screen-active  = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;How to achive this... pls help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976232#M1340109</guid>
      <dc:creator>raja_narayanan2</dc:creator>
      <dc:date>2009-08-10T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976233#M1340110</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;How are u managing the F4 help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use the event AT SELECTION-SCREEN ON VALUE-REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976233#M1340110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976234#M1340111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_file TYPE string.

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_FILE'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976234#M1340111</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2009-08-10T10:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976235#M1340112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;inside loop instead of setting active = 0&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input = 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976235#M1340112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976236#M1340113</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;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;directory_browse&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      initial_folder       = lv_folder&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      selected_folder      = p_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error           = 1&lt;/P&gt;&lt;P&gt;      error_no_gui         = 2&lt;/P&gt;&lt;P&gt;      not_supported_by_gui = 3&lt;/P&gt;&lt;P&gt;      OTHERS               = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select some folder and click on ok button that selected folder is not setting in the parameter field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understand the issue....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976236#M1340113</guid>
      <dc:creator>raja_narayanan2</dc:creator>
      <dc:date>2009-08-10T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976237#M1340114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with all screen setting paramters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen-input&lt;/P&gt;&lt;P&gt;screen-output &lt;/P&gt;&lt;P&gt;screen-active.....etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but not able to achive it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976237#M1340114</guid>
      <dc:creator>raja_narayanan2</dc:creator>
      <dc:date>2009-08-10T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976238#M1340115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I had the same issue and after struggling with this a lot I realized that this is not possible. If parameter is in read-only mode you will not be able to pick value from input help and return it to you screen field.&lt;/P&gt;&lt;P&gt;I found an alternative solution though:&lt;/P&gt;&lt;P&gt;- create input/ouptun field on screen layout&lt;/P&gt;&lt;P&gt;- select &lt;EM&gt;output only&lt;/EM&gt; mode - you will get a field which doens't have this icon at the end which allows to pick value after F4 is pressed&lt;/P&gt;&lt;P&gt;- just next to this field place a litte button (this will show your input help once you click on this pushbutton - simulation of F4)&lt;/P&gt;&lt;P&gt;- now place your custom coding for this button (either &lt;EM&gt;Search help&lt;/EM&gt; created in Dictionary or using fm &lt;EM&gt;F4IF_FIELD_VALUE_REQUEST&lt;/EM&gt; ) and return picked value directly to this read-only screen field like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"in PAI
    DATA: ret_tab TYPE TABLE OF ddshretval,
          wa_ret  like line of ret_tab.

if ok_code = 'FC_PUSHBUTTON'. "your pushbutton code

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname           = 'TRDIR'  "example table and field to pick value from
        fieldname         = 'NAME'
        searchhelp        = 'ZGLXX_HLP_COL_REPORTS_PMI'  "and search help if any exists
      TABLES
        return_tab        = ret_tab
      EXCEPTIONS
        field_not_found   = 1
        no_help_for_field = 2
        inconsistent_help = 3
        no_values_found   = 4
        OTHERS            = 5.

READ TABLE ret_tab into wa_ret INDEX 1.
CHECK sy-subrc = 0.
trdir-name = wa_ret-fieldval.  "here TRDIR-NAME is name of read-only field
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976238#M1340115</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-10T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976239#M1340116</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;Try this, it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_FILE TYPE STRING MODIF ID GRP LOWER CASE.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'GRP'.
*      SCREEN-ACTIVE = '0'.
      SCREEN-INPUT   = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
  DATA: LV_FOLDER TYPE STRING,
        SEL_FOLDER TYPE STRING.


  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_BROWSE
    EXPORTING
      INITIAL_FOLDER       = LV_FOLDER
    CHANGING
      SELECTED_FOLDER      = SEL_FOLDER
    EXCEPTIONS
      CNTL_ERROR           = 1
      ERROR_NO_GUI         = 2
      NOT_SUPPORTED_BY_GUI = 3
      OTHERS               = 4.


  DATA: DYNAME LIKE  D020S-PROG,
        DYNUMB LIKE  D020S-DNUM.

  DATA: DYNPFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.

  DYNPFIELDS-FIELDNAME = 'P_FILE'.
  MOVE SEL_FOLDER TO DYNPFIELDS-FIELDVALUE.
  APPEND DYNPFIELDS.

  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      DYNAME     = DYNAME
      DYNUMB     = DYNUMB
    TABLES
      DYNPFIELDS = DYNPFIELDS.&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>Mon, 10 Aug 2009 10:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976239#M1340116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T10:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976240#M1340117</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;Issues solved....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-only-parameter/m-p/5976240#M1340117</guid>
      <dc:creator>raja_narayanan2</dc:creator>
      <dc:date>2009-08-10T10:45:16Z</dc:date>
    </item>
  </channel>
</rss>

