<?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 Problem with logic at-selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706495#M1453201</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 this piece of code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 radiobuttons and corresponding screens and fields like r_matnr s_charge etc on that screen .&lt;/P&gt;&lt;P&gt;default radio button is r_build . &lt;/P&gt;&lt;P&gt;a) If on this screen is user forgots to give value for s_matnr then error is given .&lt;/P&gt;&lt;P&gt;now if we click on r_conf the contents of display screen when r_buld was pressed should be gone ..&lt;/P&gt;&lt;P&gt;the r_matnr , r_werks etc . should be blank . &lt;/P&gt;&lt;P&gt;what i should do to implement it ? also validation  of point a) should be performed for the current values of that screen .&lt;/P&gt;&lt;P&gt;plz help..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.
  PARAMETERS: r_build RADIOBUTTON GROUP r1 USER-COMMAND act DEFAULT 'X'.

 PARAMETERS: r_conf RADIOBUTTON GROUP r1.

SELECTION-SCREEN BEGIN OF LINE.
  
  SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID c.
  SELECTION-SCREEN END OF LINE.

  SELECTION-SCREEN BEGIN OF LINE.
  
  SELECT-OPTIONS : s_charg FOR mch1-charg MODIF ID c.
  SELECTION-SCREEN END OF LINE.

LOOP AT SCREEN.
         IF r_conf = 'X'.
        IF screen-group1 = 'A'.
          screen-active = 0.
        ENDIF.
      ELSE.
        IF r_rel = 'X'.
          IF screen-group1 = 'A' OR screen-group1 = 'B'
            OR  screen-group1 = 'C'.
            screen-active = 0.
          ENDIF.
        ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.

AT SELECTION-SCREEN ON s_matnr.
    IF s_matnr IS NOT INITIAL.
    some select where = s_matnr .
      MESSAGE e019(zesapp).
      LEAVE TO SCREEN 0.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 11:42:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-22T11:42:51Z</dc:date>
    <item>
      <title>Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706495#M1453201</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 this piece of code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 radiobuttons and corresponding screens and fields like r_matnr s_charge etc on that screen .&lt;/P&gt;&lt;P&gt;default radio button is r_build . &lt;/P&gt;&lt;P&gt;a) If on this screen is user forgots to give value for s_matnr then error is given .&lt;/P&gt;&lt;P&gt;now if we click on r_conf the contents of display screen when r_buld was pressed should be gone ..&lt;/P&gt;&lt;P&gt;the r_matnr , r_werks etc . should be blank . &lt;/P&gt;&lt;P&gt;what i should do to implement it ? also validation  of point a) should be performed for the current values of that screen .&lt;/P&gt;&lt;P&gt;plz help..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.
  PARAMETERS: r_build RADIOBUTTON GROUP r1 USER-COMMAND act DEFAULT 'X'.

 PARAMETERS: r_conf RADIOBUTTON GROUP r1.

SELECTION-SCREEN BEGIN OF LINE.
  
  SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID c.
  SELECTION-SCREEN END OF LINE.

  SELECTION-SCREEN BEGIN OF LINE.
  
  SELECT-OPTIONS : s_charg FOR mch1-charg MODIF ID c.
  SELECTION-SCREEN END OF LINE.

LOOP AT SCREEN.
         IF r_conf = 'X'.
        IF screen-group1 = 'A'.
          screen-active = 0.
        ENDIF.
      ELSE.
        IF r_rel = 'X'.
          IF screen-group1 = 'A' OR screen-group1 = 'B'
            OR  screen-group1 = 'C'.
            screen-active = 0.
          ENDIF.
        ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.

AT SELECTION-SCREEN ON s_matnr.
    IF s_matnr IS NOT INITIAL.
    some select where = s_matnr .
      MESSAGE e019(zesapp).
      LEAVE TO SCREEN 0.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 11:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706495#M1453201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706496#M1453202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen output.
if r_conf = 'X'.
clear:s_matnr,s_matnr[].
LOOP AT SCREEN.
   IF screen-group1 = 'A'.
       screen-active = 0.
modify screen.
        ENDIF.
endloop.
elseif r_rel = 'X'.
clear : s_charg,s_charg[].
loop at screen.
 IF screen-group1 = 'B'.
   screen-active = 0.
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>Mon, 22 Mar 2010 12:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706496#M1453202</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-03-22T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706497#M1453203</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;Write the logic loop at screen in the event at selection-screen output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706497#M1453203</guid>
      <dc:creator>former_member418469</dc:creator>
      <dc:date>2010-03-22T12:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706498#M1453204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the values are getting blank just after entering it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The loop at screen is in at selection-screen output ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706498#M1453204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T12:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706499#M1453205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ujjwal,&lt;/P&gt;&lt;P&gt;can you please elaborate on "the values are getting blank just after entering it ."...&lt;/P&gt;&lt;P&gt;you mean material number gets blank after you enter the value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in the below code you are checking material number NOT INITIAL that means some value is entered and if it does not satisfy the SELECT condition then it will give error message and navigate u again to your initial screen...maybe this could be the reason for the blank values...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON s_matnr.&lt;/P&gt;&lt;P&gt;    IF s_matnr IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    some select where = s_matnr .&lt;/P&gt;&lt;P&gt;      MESSAGE e019(zesapp).&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 22:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706499#M1453205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T22:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with logic at-selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706500#M1453206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;         actually  i tried to put clear statement  in loop at screen . &lt;/P&gt;&lt;P&gt;but its getting clear immediately after i press enter . It should work only when i change the radio button ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 05:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-logic-at-selection-screen/m-p/6706500#M1453206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T05:18:01Z</dc:date>
    </item>
  </channel>
</rss>

