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

Fields to make visible in Screen programming at runtime.

Former Member
0 Likes
928

Hi All,

I am developing a screen program (Main screen - '0100') in which I want to make fields visible at runtime on a subscreen (0200) if user clicks a checkbox field on the same screen(ie. 0200).

Please let me know the procedure for this.

TIA,

Nitin

Message was edited by:

Nitin N Gaikwad

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
904

Hi,

You have to use technique calle LOOP AT SCREEN.

Here you can select Group of Screen elements or Individual Screen Element and Make the property of it invisible to visible.

Hope this will help, for further help you can write to me any time on my email or in this post.

Cheers

Darshan

    • Pl. Reward points for helpful answer, it MOTIVATES

9 REPLIES 9
Read only

amit_khare
Active Contributor
0 Likes
904

Check these threads-

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
Read only

Former Member
0 Likes
905

Hi,

You have to use technique calle LOOP AT SCREEN.

Here you can select Group of Screen elements or Individual Screen Element and Make the property of it invisible to visible.

Hope this will help, for further help you can write to me any time on my email or in this post.

Cheers

Darshan

    • Pl. Reward points for helpful answer, it MOTIVATES

Read only

Former Member
0 Likes
904

Hi

give a screen group to your screen fields..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

if <give ur checkbox condition>

IF screen-group1 = 'SC1'.

screen-visible = '1'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDIF.

ENDLOOP.

hope it helps..

Award points if it helps

Read only

Former Member
0 Likes
904

hi,

First go to the attributes of the check box assign it a function code (say <b>chk</b>).

now go to the pai of ur subscreen (in which chk box is there)

in user command write the following code...

ok_code = sy-ucomm.

if ok_code = 'chk'.

loop at screen.

IF screen-group1 = 'gp1'.

screen-visible = '1'.

modify screen.

endif.

endloop.

endif.

declare ok_code as sy-ucomm in top include.

to create screen group

go to the attributes of respective control u want to assign and in group field assign the groupname (say gp1)

do the same with all the controls u want to put in group gp1.

hope it helps.

regards,

gaurav

  • Please reward points if it helps.

Read only

Former Member
0 Likes
904

Yes, its possible

Just use the 'MODIFY SCREEN' in the 'LOOP AT SCREEN' statement

This should be done before the screen is displayed, i.e in the AT SELECTION-SCREEN OUTPUT event

Hope this helps u

Reward points if useful

Regards

Read only

Former Member
0 Likes
904

Solved on my own.

Read only

Former Member
0 Likes
904

Solved on my own.

Read only

Former Member
0 Likes
904

Solved on my own.