<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926657#M384403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi priyanka,&lt;/P&gt;&lt;P&gt;    at selection screen output u have to handle this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 9000.&lt;/P&gt;&lt;P&gt;PARAMETERS p1 as checkbox modif id MD.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call selection-screen 9000.&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 = 'MD'.&lt;/P&gt;&lt;P&gt;screen-invisible = '0'. / to disable u have use screen-invisible = '1'.&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;Hope this helps u.&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;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 13:48:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T13:48:37Z</dc:date>
    <item>
      <title>Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926651#M384397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Check box P_CAT8. If this check box is checked, then 2 fields LIFNR and BELNR will me enabled and they are mandatory. But, without giving values in these 2 fields, if I again uncheck the check box, these fields should become disabled again. can anybody tell me how to handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926651#M384397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926652#M384398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka ,&lt;/P&gt;&lt;P&gt;  You will have to use the event at selection screen output and inside this &lt;/P&gt;&lt;P&gt;loop at screen .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;YOUR CODE TO ENABLE/DISABLE A FEILD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926652#M384398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926653#M384399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;   Refer this link for sample logic:(Vijay's Solution)&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="169471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926653#M384399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926654#M384400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003.

parameters:  p_cat8 as checkbox user-command chk.
parameters:  p_lifnr type lfa1-lifnr modif id chk.
parameters:  p_belnr type bsak-belnr modif id chk.

at selection-screen output.

  if p_cat8 = space.
    loop at screen.
      if screen-group1 = 'CHK'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
  endif.

at selection-screen.


check sy-ucomm &amp;lt;&amp;gt; 'CHK'.

  if p_cat8 = 'X'.
    if p_lifnr is initial.
      message e001(00) with 'Please fill in the LIFNR field'.
    endif.
    if p_belnr is initial.
      message e001(00) with 'Please fill in the BELNR field'.
    endif.
  endif.

&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>Tue, 20 Feb 2007 13:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926654#M384400</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-02-20T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926655#M384401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[code]PARAMETERS: SP_CHECK AS CHECKBOX USER-COMMAND CHECK.
SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR MODIF ID GRP.

AT SELECTION-SCREEN OUTPUT.
  IF SP_CHECK IS INITIAL.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'GRP'.
        SCREEN-INPUT = '0'.
        SCREEN-OUTPUT = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    CLEAR: SO_MATNR.
    REFRESH: SO_MATNR.
  ENDIF.

AT SELECTION-SCREEN ON SP_CHECK.
  PERFORM MATERIAL_CHECK.

FORM MATERIAL_CHECK.

  IF NOT SP_CHECK IS INITIAL.
    IF SO_MATNR[] IS INITIAL.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'SO_MATNR-LOW'.
          SCREEN-INPUT = '1'.
          SCREEN-OUTPUT = '0'.
          SCREEN-REQUIRED = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDFORM.                    " MATERIAL_CHECK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926655#M384401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926656#M384402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;You need to use the LOOP AT SCREEN logic over here, in the AT SELECTION SCREEN Event, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF  P_CAT8 = 'X'.
 LOOP AT SCREEN.

 ENDLOOP.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See the below links for more inofrmation&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm" target="test_blank"&gt;http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/selection_screens.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/selection_screens.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926656#M384402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926657#M384403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi priyanka,&lt;/P&gt;&lt;P&gt;    at selection screen output u have to handle this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 9000.&lt;/P&gt;&lt;P&gt;PARAMETERS p1 as checkbox modif id MD.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call selection-screen 9000.&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 = 'MD'.&lt;/P&gt;&lt;P&gt;screen-invisible = '0'. / to disable u have use screen-invisible = '1'.&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;Hope this helps u.&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;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926657#M384403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926658#M384404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my opinion this scenario is not possible .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause i have checked the  box so now the code has to show that these are the mandatory fields so without entering any fields if i try  to process the screen then an error is triggerd saying to fill the screen , &lt;/P&gt;&lt;P&gt;we cannot bypass once the system throws this error message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cannot make them disable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : p_cat8 as checkbox user-command r  modif id abc.


PARAMETERS: p_lifnr like lfa1-lifnr modif id def.

PARAMETERS: p_belnr like mseg-belnr modif id def.

at selection-screen output.

if p_cat8 ne ' '.
loop at screen.
if screen-group1 = 'DEF'.
screen-input = '1'.
screen-required = '1'.
modify screen.
endif.
endloop.

else.

loop at screen.
if screen-group1 = 'DEF'.
screen-required = '0'.
screen-input = '0'.
modify screen.
endif.
endloop.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1926658#M384404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:06:58Z</dc:date>
    </item>
  </channel>
</rss>

