Skip to Content
author's profile photo Former Member
Former Member

Module pool logic

Hello Friends,

I am new to ABAP, check the following image

Imagehttp://server6.theimagehosting.com/image.php?img=LOGIC1s.JPG">Image>

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).

Please explain in detail.

Thank You.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 02, 2006 at 07:03 AM

    HI,

    in module of PBO flow logic do like this.

    first assign the all radio buttons you want to disable to a group such as 'DIS'. and then code like that.

    MODULE disable_radio output.

    IF fail = 'X'

    LOOP AT SCREEN.

    if screen-group1 = 'DIS'.

    screen-input = 0.

    MODIFY SCREEN.

    endif.

    ENDLOOP.

    ENDIF.

    Regards,

    ENDMODULE.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2006 at 07:02 AM

    Hi,

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2006 at 08:28 AM

    Hello,

    I can't understand your question.

    Case 1:

    =======

    But, assuming that you have two radio buttons and you want to select only one, in such case declare radio button as a group.

    PARAMETERS: p_rad1 radiobutton group rad default 'X',

    p_rad2 radiobutton group rad.

    The above declarations will facilitate you to select only one radio button at a time.

    Case 2:

    =======

    Assume that you have two groups and in each group you have 2 radio buttons.

    PARAMETERS: p_rad1 radiobutton group rad default 'X',

    p_rad2 radiobutton group rad,

    p_rad3 radiobutton group rad1 default 'X',

    p_rad4 radiobutton group rad1.

    Now if you want to disable group2 depending on some value then do the logic in AT-SELECTION SCREEN OUTPUT,

    LOOP AT SCREEN.

    IF 'do the check' and screen-group1 EQ RAD2.

    screen-input = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    Regs,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2006 at 09:01 AM

    hi,

    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).

    Now, in PAI.

      
      if rb2 = 'X'.
        v_second = 'X'.
      endif.

    Now in PBO.

      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.

    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.

    Regards,

    Sailaja.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.