<?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: Module pool logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597148#M268176</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; For first set of radiobutton group, assign a function code. You can assign it in the properties of the radiobutton which you get when you double click on radiobutton ( similar to the way we do for push buttons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now, in PAI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
  if rb2 = 'X'.
    v_second = 'X'.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  if v_second = 'X'.
    loop at screen.
      if screen-name = 'RB3' or 
         screen-name = 'RB4' or 
         screen-name = 'RB5'.  
       screen-input = '0'.
       modify screen.
    endloop.
  else.
    loop at screen.
      if screen-name = 'RB3' or 
         screen-name = 'RB4' or 
         screen-name = 'RB5'.  
       screen-input = '1'.
       modify screen.
    endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have set a function code for the first radiobutton group, PAI gets triggered as soon as you select any of the two radiobuttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2006 09:01:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-02T09:01:36Z</dc:date>
    <item>
      <title>Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597142#M268170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;  I am new to ABAP, check the following image&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://server6.theimagehosting.com/image.php?img=LOGIC1s.JPG"&amp;gt;Image&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;I want to create a module pool program, so that when I click  on FAIL radio button, the other radio button group must be disable or deactive(should not take any input values).&lt;/P&gt;&lt;P&gt;Please explain in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 06:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597142#M268170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T06:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597143#M268171</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;When you click the Radio button then in the PAI event,you can loop at screen internal table, check for that radio button group and then disable it.Try this out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 07:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597143#M268171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597144#M268172</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;in module of PBO flow logic do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first assign the all radio buttons you want to disable  to a group such as 'DIS'. and then code like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE disable_radio output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF fail = 'X'&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;   if screen-group1 = 'DIS'.&lt;/P&gt;&lt;P&gt;      screen-input = 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;ENDIF.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 07:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597144#M268172</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-10-02T07:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597145#M268173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wasim.&lt;/P&gt;&lt;P&gt;How to assign the radio buttons to a group as 'DIS'.&lt;/P&gt;&lt;P&gt;I do not know the syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 08:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597145#M268173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T08:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597146#M268174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select all the radio buttons and right click on it and define Radiobutton Group - &amp;gt; Define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 08:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597146#M268174</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-02T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597147#M268175</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;I can't understand your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1:&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;P&gt;But, assuming that you have two radio buttons and you want to select only one, in such case declare radio button as a group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad1 radiobutton group rad default 'X',&lt;/P&gt;&lt;P&gt;            p_rad2 radiobutton group rad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above declarations will facilitate you to select only one radio button at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2:&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;P&gt;Assume that you have two groups and in each group you have 2 radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad1 radiobutton group rad default 'X',&lt;/P&gt;&lt;P&gt;            p_rad2 radiobutton group rad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            p_rad3 radiobutton group rad1 default 'X',&lt;/P&gt;&lt;P&gt;            p_rad4 radiobutton group rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you want to disable group2 depending on some value then do the logic in AT-SELECTION SCREEN OUTPUT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF 'do the check' and screen-group1 EQ RAD2.&lt;/P&gt;&lt;P&gt;   screen-input = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;Regs,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 08:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597147#M268175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T08:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597148#M268176</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; For first set of radiobutton group, assign a function code. You can assign it in the properties of the radiobutton which you get when you double click on radiobutton ( similar to the way we do for push buttons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now, in PAI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
  if rb2 = 'X'.
    v_second = 'X'.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  if v_second = 'X'.
    loop at screen.
      if screen-name = 'RB3' or 
         screen-name = 'RB4' or 
         screen-name = 'RB5'.  
       screen-input = '0'.
       modify screen.
    endloop.
  else.
    loop at screen.
      if screen-name = 'RB3' or 
         screen-name = 'RB4' or 
         screen-name = 'RB5'.  
       screen-input = '1'.
       modify screen.
    endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have set a function code for the first radiobutton group, PAI gets triggered as soon as you select any of the two radiobuttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 09:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-logic/m-p/1597148#M268176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T09:01:36Z</dc:date>
    </item>
  </channel>
</rss>

