Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

module pool .

Former Member
0 Likes
664

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 .

5 REPLIES 5
Read only

Former Member
0 Likes
631

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

Read only

0 Likes
631

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

Read only

Former Member
0 Likes
631

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.

Read only

Former Member
0 Likes
631

Hi joy,

Try to put the code in the PAI of that screen.

Regards,

Rasheed.

Read only

0 Likes
631

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 .