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

how to hide subscreen in module pool

hello expert.

i created one Box, and inside box i created one subscreen in Module pool ->layout.and two radio button out side of the Box.

if i select 2nd radio button , want to hide subscreen.

how to hide subscreen. could you please send me the solution asap , it's urgent.

i written below code but not working.

LOOP AT SCREEN.

IF rad2 Eq 'X'

IF SCREEN-NAME = 'SUB1' .

SCREEN-INPUT = 0.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Regards

srinivas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 21, 2011 at 10:35 AM

    Hello,

    In Flow Logic
    
    CALL SUBSCREEN SUB1 USING SY-REPID DYNPRO  " iN Top Include declare 2 variables
    CALL SUBSCREEN SUB2 USING SY-REPID DYNPRO1
    
    
    Create dummy screens without screen elements
    In Program based on the Radio button selected 
    
    
    Make sure you assign a Fucntion Code (Ofcourse Define the Radio Button Grouping)
    " For more info on Radio Button groupong in Screen Search the Forum
    
    if R1 = 'X'.  " A Radio button is selected
    dynpro = '2000'    " Actual Screen with screen elements
    dynrpo1 = '3000'  " Actual Screen with screen eleemtns
    esle.
    dynpro == '4000'. "Dummy Screens
    dynpro1 = '5000'.   " Dymmy Screen
    endif.  " Loop at screen will not serve your purpose here

    Cheerz

    Ramchander Rao.K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 07:05 AM

    Hi,

    when ur condition satisfies call an empty screen on the subscreen

    i.e if r_but eq 'X'.

    call screen 100. (empty screen)

    endif.

    Plzz reward points if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      example:

      BOX1

      MATNR [ ] (Normal screen)

      BOX2

      BOM [ BOM-OW] TO [BOM-HIGH] (subscreen)

      BOX3

      radio buttons

      push button

      selection screnn etc..

      if i selection 2nd radio button i will get.

      BOX1

      MATNR [ ] (Normal screen)

      BOX2

      empty

      BOX3

      radio buttons

      push button

      selection screnn etc..

      my requirement is:

      BOX1

      MATNR [ ] (Normal screen)

      BOX3

      radio buttons

      push button

      selection screnn etc..

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2011 at 06:01 AM

    You need to do

    screen-active = 0.

    and then modify screen.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Srinivas,

      The code that you have written is perfect. Only thing is maintain a screen group say 'G1' for al the elements in the subscreen that needs to be hidden. If I assume that the subscreen is SUB1, then maintain the screen group as G1 in the screen layout for all the screen elements of SUB1. Then use the code below:-

      if rb_2 eq 'X'.

      loop at screen.

      if screen-group1 = 'G1'.

      screen-active = 0.

      modify screen.

      endif.

      endloop.

      endif.

      This code needs to be written under the PBO of the subscreen SUB1 and after selecting the radio button 2 press 'Enter' on keyboard to trigger the PAI from where this subscreen is being called.

      Edited by: remitra_cap on Nov 21, 2011 11:26 AM

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.