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

modulepool-screen

Former Member
0 Likes
466

hi,

why do we use the

Loop at screen.

if screen-group = grp.

Screen-invisible = 0 / 1.

endif.

endloop.

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
440

Hi,

This is to hide the SCREEN fields that are grouped under the group name 'grp'.

So if you want hide some fields on some condition then generally you group then into one screen group (SCREEN-GROUP1 or SCREEN-GROUP2 or etc etc)

and then when you say

SCREEN-ACTIVE = 0 or SCREEN-INVISIBL = 0 that entriee group becomes invisible.

but you code is missing MODIFY SCREEN between LOOP AT SCREEN and ENDLOOP.

'0' is for making it invisible and '1' to make it visible.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
441

Hi,

This is to hide the SCREEN fields that are grouped under the group name 'grp'.

So if you want hide some fields on some condition then generally you group then into one screen group (SCREEN-GROUP1 or SCREEN-GROUP2 or etc etc)

and then when you say

SCREEN-ACTIVE = 0 or SCREEN-INVISIBL = 0 that entriee group becomes invisible.

but you code is missing MODIFY SCREEN between LOOP AT SCREEN and ENDLOOP.

'0' is for making it invisible and '1' to make it visible.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

former_member196299
Active Contributor
0 Likes
440

hi ,

Loop at screen.

if screen-group = grp.

Screen-invisible = 0 / 1.

<b>modify screen .</b>

endif.

endloop.

Screen-group provides the information about the functionality group to whcih ur screen fields are assigned to .

By using screen-invisible , you can make the screen element invisible .

You use LOOP AT SCREEN ........ ENDLOOP to do runtime modifications to the screen elements .

the statement provided is used to make the screen fields invisible , which are assigned under a screen group .

Reward if helpful !

Regards,

Ranjita

Read only

Former Member
0 Likes
440

Hi

This is done to modify the screen depending on the values entered.

For example, if user clicks any checkbox, then you can hide some other selections or add other variables on the screen.

For modulepool screens, for any variable created on the screen, the attributes contains group1, group2, group3 and group4. So, using this you can modify a set of variables together by grouping.

Remember that the screen modifications should be done only in PBO.

Regards

Navneet