‎2008 Apr 25 5:53 AM
Hello gurus ,
Hw to modify the screen in modulepool (loop at screen ) , i have a button in my screen , when I wl predssed that a new window wl come and main screen will enlarge , and when I pressed collapse , new wl remove from main screen , just like FINT tcode (intesest calculation) . If some have this idea , plz healp .
I m waiting for your valuable answer .
Regards ,
Joy .
‎2008 Apr 25 5:56 AM
Hi,
you can assign your fields on the screen to different groups based on your requirements and then do like below
IF SCREEN-GROUP1 = 'G1'.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 0.
SCREEN-OUTPUT = 1.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'G2'.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 1.
SCREEN-OUTPUT = 1.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
these change in attributes will totally based on your requirements
reward if helpful
‎2008 Apr 25 6:12 AM
hello friend ,
I m getting you , but prob is that i m in module pool , in that What i have to do for new window , I have created one screen like 0002 and made that one screen group sc1 . but after putting your code through screen group(sc1) its not working , hw to do plz help .
regards ,
Joy
‎2008 Apr 25 6:07 AM
Hi,
This piece of code may be helpful .....
AT SELECTION-SCREEN OUTPUT.
IF F_BUTTON EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 EQ 'G1'.
screen-active = 1.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF F_COLLAPSE EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 EQ 'G1'.
screen-active = 0.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Regards,
Rasheed.
‎2008 Apr 25 6:37 AM
Hi joy,
Try to put the code in the PAI of that screen.
Regards,
Rasheed.
‎2008 Apr 25 6:54 AM
Hello friend , I m getting your code but prob is that screen group is not showing , I mean to say , My current screen is 101 in that I have a button in pai of screen I have put your code inside the button ok code , I have created second screen 0002 (with screen group scg1) that one I have to call in the current screen or hw to design that one , dynamic modification is req , when I press the button screen wll enlarge with new window .
WHEN 'CM1' .
LOOP AT SCREEN .
IF screen-group1 = 'SCG1'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP .
is it ok ?
plz help .
Joy .