<?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 when regarding from other program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671179#M296635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure,  all you need to do is set up a selection-screen flag,  then you can set this flag when SUBMITing the program,  then check this flag and then turn the field to output only.  HEre is what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

parameters: p_fld1(10) type c,
            p_fld2(10) type c.
parameters: p_flg type c no-display.

at selection-screen.
  if p_flg = 'X'.
     loop at screen.
        if screen-name = 'P_FLD2'.
           screen-input = '0'.
           modify screen.
        endif.
    endloop.
  endif.
  

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here that P_FLG is the flag which is NO-DISPLAY,  when it is "X", we will deactivate the P_FLD2.  So when you submit it,  set the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  submit zrich_0001 via selection-screen
            with p_fld1 = 'Value1'
            with p_fld2 = 'Value2'
            with p_flg  = 'X'.
         

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Mon, 20 Nov 2006 18:26:30 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-20T18:26:30Z</dc:date>
    <item>
      <title>Selection screen when regarding from other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671178#M296634</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;i am passing one input to selection screen of zreport from my module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to enter another input at the selection screen as one input is retrieved from module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user can still change the input that has been retrieved from module pool which i don't want to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can say that to remove that field from selection screen but the problem is that sometimes the zreport is run directly in that case the user &lt;/P&gt;&lt;P&gt;has to enter two input fields in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that when i come to zreport from module pool the field for which i am bringing value from module pool can be greyed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls let me know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 18:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671178#M296634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen when regarding from other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671179#M296635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure,  all you need to do is set up a selection-screen flag,  then you can set this flag when SUBMITing the program,  then check this flag and then turn the field to output only.  HEre is what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

parameters: p_fld1(10) type c,
            p_fld2(10) type c.
parameters: p_flg type c no-display.

at selection-screen.
  if p_flg = 'X'.
     loop at screen.
        if screen-name = 'P_FLD2'.
           screen-input = '0'.
           modify screen.
        endif.
    endloop.
  endif.
  

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here that P_FLG is the flag which is NO-DISPLAY,  when it is "X", we will deactivate the P_FLD2.  So when you submit it,  set the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  submit zrich_0001 via selection-screen
            with p_fld1 = 'Value1'
            with p_fld2 = 'Value2'
            with p_flg  = 'X'.
         

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Mon, 20 Nov 2006 18:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671179#M296635</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-20T18:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen when regarding from other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671180#M296636</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;Thanks Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded full points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 18:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-when-regarding-from-other-program/m-p/1671180#M296636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T18:38:52Z</dc:date>
    </item>
  </channel>
</rss>

