<?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 Check in selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267210#M1216131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;In Selection screen, i have one input field for project. Now my requirement is that &lt;/P&gt;&lt;P&gt;When i enter the project and press enter and if it belongs to a particluar company code , for e.g. '1000'&lt;/P&gt;&lt;P&gt;then i should see two radio buttons below it. But if the project does not&lt;/P&gt;&lt;P&gt;belong to this CCode, then the radiobuttons should not be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2009 09:55:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-06T09:55:22Z</dc:date>
    <item>
      <title>Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267210#M1216131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;In Selection screen, i have one input field for project. Now my requirement is that &lt;/P&gt;&lt;P&gt;When i enter the project and press enter and if it belongs to a particluar company code , for e.g. '1000'&lt;/P&gt;&lt;P&gt;then i should see two radio buttons below it. But if the project does not&lt;/P&gt;&lt;P&gt;belong to this CCode, then the radiobuttons should not be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267210#M1216131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267211#M1216132</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;Make use of LOOP AT screen.&lt;/P&gt;&lt;P&gt;If the project meets ur criterion then screen-name = 'Radi_1' and rad_2&lt;/P&gt;&lt;P&gt;screen-invisible = 0.&lt;/P&gt;&lt;P&gt;MODIFY screen.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially keep the radiobuttons hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code this in selection-screen output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267211#M1216132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267212#M1216133</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;Use :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_rb1 radiobutton group1 modif if abc,
        p_rb2 radiobutton group1 modif if abc.

AT SELECTION-SCREEN OUTPUT.
  "select query
  if sy-subrc ne 0. "no record found
    loop at screen.
      if screen-group1 = 'ABC'.
        screen-invisible = 1. "hide radiobuttons
      endif.
      modify screen.
    endloop.
  else.
    loop at screen.
      if screen-group1 = 'ABC'.
        screen-invisible = 0. "display radiobuttons
      endif.
      modify screen.
    endloop.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267212#M1216133</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-06T10:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267213#M1216134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve it by using &lt;STRONG&gt;LOOP AT SCREEN&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;check its syntax for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267213#M1216134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267214#M1216135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;i have put the following code but yet when i execute i can see both the radiobuttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : rb1 radiobutton group g2 modif id abc,&lt;/P&gt;&lt;P&gt;                   rb2 radiobutton group g2 modif id abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM PROJ WHERE&lt;/P&gt;&lt;P&gt;           PSPNR IN S_PSPNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if proj-vbukr = '5800'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        screen-invisible = 1. "hide radiobuttons&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        screen-invisible = 0. "display radiobuttons&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267214#M1216135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267215#M1216136</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 with the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : p_proj(4),
             r1 RADIOBUTTON GROUP g1 USER-COMMAND x modif id mod,
             r2 RADIOBUTTON GROUP g1 modif id mod.


AT SELECTION-SCREEN OUTPUT.
  IF p_proj ='1000'.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-invisible = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-invisible = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267215#M1216136</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-06T10:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267216#M1216137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all. its working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267216#M1216137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267217#M1216138</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;use following code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_rb1 radiobutton group grp1 modif id abc,&lt;/P&gt;&lt;P&gt;        p_rb2 radiobutton group grp1 modif id abc.&lt;/P&gt;&lt;P&gt;data : i_var like mara-matnr value '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select matnr from mara&lt;/P&gt;&lt;P&gt;  into i_var  WHERE matnr = i_var.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0. "no record found&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        screen-invisible = 1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        screen-invisible = 0.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267217#M1216138</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2009-03-06T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267218#M1216139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priti,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if proj-vbukr = '5800'. 

loop at screen.
if screen-group1 = 'ABC'.
screen-invisible = 1. "hide radiobuttons  "Just check if this is even getting executed.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group1 = 'ABC'.
screen-invisible = 0. "display radiobuttons
modify screen.
endif.
endloop.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267218#M1216139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267219#M1216140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;But it is not working the other way. The condition is that if company code is '1000' then it should not display the radiobuttons else for all other company codes it should display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 05:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267219#M1216140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-07T05:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267220#M1216141</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;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi experts,&lt;/P&gt;&lt;P&gt;&amp;gt; But it is not working the other way. The condition is that if company code is '1000' then it should not display the radiobuttons else for all other company codes it should display&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As your requirement, if company code is 1000, then it should not display those radiobuttons, else the radiobuttons need to be displayed.&lt;/P&gt;&lt;P&gt; So use code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_rb1 radiobutton group gp1 modif id abc,
             p_rb2 radiobutton group gp1 modif id abc.

data : v_bukrs type bukrs.
 
AT SELECTION-SCREEN OUTPUT.
  "select query (select sinlge bukrs into v_bukrs where &amp;lt;condition&amp;gt;.)
  if sy-subrc = 0. "if company code found
    if v_bukrs = '1000'. "if company code is 1000
      loop at screen.
        if screen-group1 = 'ABC'.
          screen-invisible = 1. "hide radiobuttons
        endif.
        modify screen.
      endloop.
    else. "if company code is not 1000
      loop at screen.
        if screen-group1 = 'ABC'.
          screen-invisible = 0. "display radiobuttons
        endif.
        modify screen.
      endloop.
    endif.
  else. "if no company code found
    loop at screen.
      if screen-group1 = 'ABC'.
        screen-invisible = 0. "display radiobuttons
      endif.
      modify screen.
    endloop.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 05:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267220#M1216141</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-07T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267221#M1216142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 05:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-in-selection-screen/m-p/5267221#M1216142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-07T05:38:32Z</dc:date>
    </item>
  </channel>
</rss>

